]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Simplify compile_module cleanup
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
92677124
TT
12020-09-23 Tom Tromey <tom@tromey.com>
2
3 * compile/compile-object-run.c (do_module_cleanup)
4 <~do_module_cleanup> :Remove.
5 (do_module_cleanup): Update.
6 * compile/compile-object-load.h (struct munmap_list): Add move
7 assignment operator.
8 <source_file>: Now a std::string.
9 <munmap_list>: Rename. No longer a pointer.
10 * compile/compile-object-load.c (struct setup_sections_data): Add
11 constructor.
12 <setup_one_section>: Declare.
13 <munmap_list>: Move earlier.
14 <m_bfd>: New member.
15 <m_last_size, m_last_section_first, m_last_prot,
16 m_last_max_alignment>: Rename, add initializers where needed.
17 (setup_sections_data::setup_one_section): Rename from
18 setup_sections. Update.
19 (compile_object_load): Update. Don't use bfd_map_over_sections.
20
e616f60a
TT
212020-09-23 Tom Tromey <tom@tromey.com>
22
23 * compile/compile-object-run.c (struct do_module_cleanup): Add
24 parameters to constructor. Update destructor.
25 <source_file, scope, scope_data, out_value_type, out_value_addr,
26 munmap_list_head, objfile_name_string>: Remove.
27 <module>: New member.
28 (do_module_cleanup): Update.
29 (compile_object_run): Update.
30
e947a848
TT
312020-09-23 Tom Tromey <tom@tromey.com>
32
33 * compile/compile.c (eval_compile_command): Update.
34 * compile/compile-object-run.h (compile_object_run): Take a
35 compile_module_up.
36 * compile/compile-object-run.c (compile_object_run): Take a
37 compile_module_up.
38 * compile/compile-object-load.h (struct compile_module): Add
39 constructor, destructor.
40 (compile_module_up): New typedef.
41 (compile_object_load): Return compile_object_up.
42 * compile/compile-object-load.c (compile_object_load): Return
43 compile_module_up.
44
0dbf6ee6
TT
452020-09-23 Tom Tromey <tom@tromey.com>
46
47 * compile/compile-object-run.c (struct do_module_cleanup): Add
48 constructor, destructor.
49 <objfile_name_string>: Don't use struct hack.
50 (do_module_cleanup): Use delete.
51 (compile_object_run): Use new.
52
ebe824f5
TT
532020-09-23 Tom Tromey <tom@tromey.com>
54
55 * compile/compile-cplus-types.c
56 (compile_cplus_convert_struct_or_union): Use std::vector.
57 (compile_cplus_convert_func): Likewise.
58 * compile/compile-c-types.c (convert_func): Use std::vector.
59
5dd918d9
TT
602020-09-21 Tom Tromey <tromey@adacore.com>
61
62 * sparc-tdep.c (sparc32_skip_prologue): Use
63 skip_prologue_using_sal.
64
5486c517
TT
652020-09-19 Tom Tromey <tom@tromey.com>
66
67 * symfile.c (add_section_size_callback): Remove.
68 (load_one_section): Rename from load_section_callback. Change
69 parameters.
70 (generic_load): Use foreach.
71
8a6bb1d1
TT
722020-09-19 Tom Tromey <tom@tromey.com>
73
74 * exec.c (add_to_section_table): Remove.
75 (build_section_table): Use foreach.
76
08f93a1a
TT
772020-09-19 Tom Tromey <tom@tromey.com>
78
79 * elfread.c (elf_locate_sections): Change parameters.
80 (elf_symfile_read): Use foreach.
81
03cd72b8
TT
822020-09-19 Tom Tromey <tom@tromey.com>
83
84 * cli/cli-dump.c (struct callback_data): Remove.
85 (restore_one_section): Rename from restore_section_callback.
86 Change parameters.
87 (restore_binary_file): Change parameters.
88 (restore_command): Use foreach.
89
f4f2b85f
TT
902020-09-19 Tom Tromey <tom@tromey.com>
91
92 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
93 (gcore_copy_callback): Likewise.
94 (gcore_memory_sections): Use foreach.
95
b35c1d1c
TT
962020-09-19 Tom Tromey <tom@tromey.com>
97
98 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
99 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
100 parameters.
101 (generic_elf_osabi_sniffer): Use foreach.
102 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
103 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
104
5bb6e9dd
TT
1052020-09-19 Tom Tromey <tom@tromey.com>
106
107 * dwarf2/read.c (locate_dwz_sections): Change parameters.
108 (dwarf2_get_dwz_file): Use foreach.
109 (dwarf2_locate_dwo_sections): Change parameters.
110 (open_and_init_dwo_file): Use foreach.
111 (dwarf2_locate_common_dwp_sections): Change parameters.
112 (open_and_init_dwp_file): Use foreach.
113
ad7277da
TT
1142020-09-19 Tom Tromey <tom@tromey.com>
115
116 * symfile.h: (find_lowest_section): Don't declare.
117 * symfile.c (find_lowest_section): Now static. Change
118 parameters.
119 (struct place_section_arg): Remove.
120 (place_section): Change parameters.
121 (addr_info_make_relative): Use foreach.
122 (symfile_dummy_outputs): Remove.
123 (default_symfile_relocate): Use foreach.
124
cb814f2e
TT
1252020-09-19 Tom Tromey <tom@tromey.com>
126
127 * objfiles.c (add_to_objfile_sections): Rename from
128 add_to_objfile_sections_full.
129 (add_to_objfile_sections): Remove.
130 (build_objfile_section_table): Use foreach.
131
3cabfd26
TT
1322020-09-19 Tom Tromey <tom@tromey.com>
133
134 * stap-probe.c (get_stap_base_address_1): Remove.
135 (get_stap_base_address): Use foreach.
136
1ce51eb5
TT
1372020-09-19 Tom Tromey <tom@tromey.com>
138
139 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
140 parameters.
141 (gdb_bfd_close_or_warn): Use foreach.
142
a190fabb
TT
1432020-09-19 Tom Tromey <tom@tromey.com>
144
145 * corelow.c (add_to_thread_list): Change parameters.
146 (core_target_open): Use foreach.
147
cafb0d81
TT
1482020-09-19 Tom Tromey <tom@tromey.com>
149
150 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
151 existing function.
152
c8d5abea
AB
1532020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
154
155 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
156 for arrays.
157
6d816919
AB
1582020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
159
160 * eval.c: Remove 'f-lang.h' include.
161 (value_f90_subarray): Moved to f-lang.c.
162 (eval_call): Renamed to...
163 (evaluate_subexp_do_call): ...this, is no longer static, header
164 comment moved into header file.
165 (evaluate_funcall): Update call to eval_call.
166 (skip_undetermined_arglist): Moved to f-lang.c.
167 (fortran_value_subarray): Likewise.
168 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
169 moved to evaluate_subexp_f.
170 (calc_f77_array_dims): Moved to f-lang.c
171 * expprint.c (print_subexp_funcall): New function.
172 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
173 moved to print_subexp_f, OP_FUNCALL uses new function.
174 (dump_subexp_body_funcall): New function.
175 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
176 moved to dump_subexp_f, OP_FUNCALL uses new function.
177 * expression.h (evaluate_subexp_do_call): Declare.
178 * f-lang.c (value_f90_subarray): Moved from eval.c.
179 (skip_undetermined_arglist): Likewise.
180 (calc_f77_array_dims): Likewise.
181 (fortran_value_subarray): Likewise.
182 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
183 (operator_length_f): Likewise.
184 (print_subexp_f): Likewise.
185 (dump_subexp_body_f): Likewise.
186 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
187 declaration of this operation to here.
188 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
189 support moved to operator_length_f.
190 * parser-defs.h (dump_subexp_body_funcall): Declare.
191 (print_subexp_funcall): Declare.
192 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
193 fortran-operator.def.
194
8c37706a
AB
1952020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
196
197 * eval.c (fortran_value_subarray): New function, content is taken
198 from...
199 (evaluate_subexp_standard): ...here, in two places. Now arrays
200 and strings both call the new function.
201 (calc_f77_array_dims): Add header comment, handle strings.
202
14f9473c
VC
2032020-09-18 Victor Collod <vcollod@nvidia.com>
204
205 PR gdb/26635
206 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
207 (i386_analyze_prologue): Call i386_skip_endbr.
208
b60cea74
TT
2092020-09-18 Tom Tromey <tromey@adacore.com>
210
211 * windows-nat.c (struct windows_nat_target) <wait>: Update.
212 (windows_nat_target::wait): Update.
213 * target/wait.h (enum target_wait_flag): New. Use
214 DEF_ENUM_FLAGS_TYPE.
215 * target/target.h (target_wait): Change type of options.
216 * target.h (target_options_to_string, default_target_wait):
217 Update.
218 (struct target_ops) <wait>: Change type of options.
219 * target.c (target_wait, default_target_wait, do_option): Change
220 type of "options".
221 (target_options_to_string): Likewise.
222 * target-delegates.c: Rebuild.
223 * target-debug.h (target_debug_print_target_wait_flags): Rename
224 from target_debug_print_options.
225 * sol-thread.c (class sol_thread_target) <wait>: Update.
226 (sol_thread_target::wait): Update.
227 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
228 (rs6000_nat_target::wait): Update.
229 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
230 Update.
231 (remote_target::wait_ns, remote_target::wait_as): Change type of
232 "options".
233 (remote_target::wait): Update.
234 * remote-sim.c (struct gdbsim_target) <wait>: Update.
235 (gdbsim_target::wait): Update.
236 * record-full.c (class record_full_base_target) <wait>: Update.
237 (record_full_wait_1): Change type of "options".
238 (record_full_base_target::wait): Update.
239 * record-btrace.c (class record_btrace_target) <wait>: Update.
240 (record_btrace_target::wait): Update.
241 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
242 Update.
243 (ravenscar_thread_target::wait): Update.
244 * procfs.c (class procfs_target) <wait>: Update.
245 (procfs_target::wait): Update.
246 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
247 * obsd-nat.c (obsd_nat_target::wait): Update.
248 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
249 (nto_procfs_target::wait): Update.
250 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
251 * nbsd-nat.c (nbsd_wait): Change type of "options".
252 (nbsd_nat_target::wait): Update.
253 * linux-thread-db.c (class thread_db_target) <wait>: Update.
254 (thread_db_target::wait): Update.
255 * linux-nat.h (class linux_nat_target) <wait>: Update.
256 * linux-nat.c (linux_nat_target::wait): Update.
257 (linux_nat_wait_1): Update.
258 * infrun.c (do_target_wait_1, do_target_wait): Change type of
259 "options".
260 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
261 * inf-ptrace.c (inf_ptrace_target::wait): Update.
262 * go32-nat.c (struct go32_nat_target) <wait>: Update.
263 (go32_nat_target::wait): Update.
264 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
265 * gnu-nat.c (gnu_nat_target::wait): Update.
266 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
267 * fbsd-nat.c (fbsd_nat_target::wait): Update.
268 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
269 * darwin-nat.c (darwin_nat_target::wait): Update.
270 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
271 (bsd_uthread_target::wait): Update.
272 * aix-thread.c (class aix_thread_target) <wait>: Update.
273 (aix_thread_target::wait): Update.
274
0295dde6
AB
2752020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
276
277 * compile/compile-object-run.c (create_copied_type_recursive): New
278 function.
279 (compile_object_run): Use new function.
280
d3483b43
JT
2812020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
282
283 * NEWS: Mention x86_64 Cygwin core file support.
284
e7d612ad
JT
2852020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
286
287 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
288 (core_process_module_section): Handle NOTE_INFO_MODULE64.
289
aff9d387
JT
2902020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
291
62a5151b
JT
292 * windows-tdep.h: Add prototypes.
293 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
294 (i386_windows_core_pid_to_str): Move and rename ...
295 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
296 (windows_core_pid_to_str): ... and here.
297 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
298
2992020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
300 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
301 (amd64_windows_init_abi_common): ... and register.
302
7d155da3
JT
3032020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
304
305 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
306 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
307
e8ef12b9
PA
3082020-09-18 Pedro Alves <pedro@palves.net>
309
310 PR gdb/26631
311 * thread.c (thread_find_command): Switch inferior before calling
312 target methods.
313
c1e1314d
TT
3142020-09-17 Tom Tromey <tromey@adacore.com>
315
316 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
317 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
318 (tdesc_arch_data_up): New typedef.
319 (tdesc_use_registers, tdesc_data_alloc): Update.
320 (tdesc_data_cleanup): Don't declare.
321 * target-descriptions.c (tdesc_data_alloc): Return a
322 tdesc_arch_data_up.
323 (tdesc_arch_data_deleter::operator()): Rename from
324 tdesc_data_cleanup. Change argument type.
325 (tdesc_use_registers): Change early_data to an rvalue reference.
326 (tdesc_use_registers): Don't use delete.
327 * sparc-tdep.c (sparc32_gdbarch_init): Update.
328 * s390-tdep.c (s390_gdbarch_init): Update.
329 * rx-tdep.c (rx_gdbarch_init): Update.
330 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
331 * riscv-tdep.c (riscv_gdbarch_init): Update.
332 * or1k-tdep.c (or1k_gdbarch_init): Update.
333 * nios2-tdep.c (nios2_gdbarch_init): Update.
334 * nds32-tdep.c (nds32_gdbarch_init): Update.
335 * mips-tdep.c (mips_gdbarch_init): Update.
336 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
337 * m68k-tdep.c (m68k_gdbarch_init): Update.
338 * i386-tdep.c (i386_gdbarch_init): Update.
339 * arm-tdep.c (arm_gdbarch_init): Update.
340 * arc-tdep.c (arc_tdesc_init): Update.
341 (arc_gdbarch_init): Update.
342 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
343
0363df3d
HD
3442020-09-17 Hannes Domani <ssbssa@yahoo.de>
345
346 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
347 for WOW64 processes.
348
280a9412
TT
3492020-09-17 Tom Tromey <tom@tromey.com>
350
351 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
352
6108fd18
TT
3532020-09-17 Tom Tromey <tom@tromey.com>
354
355 * value.c (preserve_values): Update.
356 * python/py-type.c (save_objfile_types): Update.
357 * guile/scm-type.c (save_objfile_types): Update.
358 * gdbtypes.h (create_copied_types_hash): Return htab_up.
359 * gdbtypes.c (create_copied_types_hash): Return htab_up.
360 * compile/compile-object-run.c (compile_object_run): Update.
361
fa9b1164
TT
3622020-09-17 Tom Tromey <tom@tromey.com>
363
364 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
365 Remove.
366 <m_table>: Now htab_up.
367 * typeprint.c (typedef_hash_table::recursively_update)
368 (typedef_hash_table::add_template_parameters)
369 (typedef_hash_table::typedef_hash_table): Update.
370 (typedef_hash_table::~typedef_hash_table): Remove.
371 (typedef_hash_table::typedef_hash_table)
372 (typedef_hash_table::find_global_typedef)
373 (typedef_hash_table::find_typedef): Update.
374
eb53f105
TT
3752020-09-17 Tom Tromey <tom@tromey.com>
376
377 * target-descriptions.c (tdesc_use_registers): Use htab_up.
378
7a8a5d47
TT
3792020-09-17 Tom Tromey <tom@tromey.com>
380
381 * linespec.c (class decode_compound_collector)
382 <~decode_compound_collector>: Remove.
383 <m_unique_syms>: Now htab_up.
384 (decode_compound_collector::operator ()): Update.
385 (class symtab_collector) <~symtab_collector>: Remove.
386 <m_symtab_table>: Now htab_up.
387 (symtab_collector::operator ()): Update.
388
99032cfc
TT
3892020-09-17 Tom Tromey <tom@tromey.com>
390
391 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
392 (filename_seen_cache::clear): Update.
393 (~filename_seen_cache): Remove.
394 (filename_seen_cache::seen): Update.
395 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
396 htab_up.
397 <~filename_seen_cache>: Remove.
398 <traverse>: Update.
399
32580f6d
TT
4002020-09-17 Tom Tromey <tom@tromey.com>
401
402 * completer.c (completion_tracker::discard_completions)
403 (completion_tracker::~completion_tracker)
404 (completion_tracker::maybe_add_completion)
405 (completion_tracker::remove_completion)
406 (completion_tracker::recompute_lowest_common_denominator)
407 (completion_tracker::build_completion_result): Update.
408 * completer.h (class completion_tracker) <have_completions>:
409 Update.
410 <m_entries_hash>: Now htab_up.
411
c1fb9836
TT
4122020-09-17 Tom Tromey <tom@tromey.com>
413
414 * breakpoint.c (ambiguous_names_p): Use htab_up.
415
88f07206
TT
4162020-09-17 Tom Tromey <tom@tromey.com>
417
418 * auto-load.c (struct auto_load_pspace_info)
419 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
420 <loaded_script_files, loaded_script_texts>: Change type to
421 htab_up.
422 (~auto_load_pspace_info) Remove.
423 (init_loaded_scripts_info, maybe_add_script_file)
424 (maybe_add_script_text, auto_load_info_scripts): Update.
425
9519b2ee
TT
4262020-09-17 Tom Tromey <tromey@adacore.com>
427
428 * c-exp.y (name_obstack): Now static.
429
d2cd4113
CC
4302020-09-17 Chungyi Chi <demonic@csie.io>
431
432 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
433
b650a282
SM
4342020-09-16 Simon Marchi <simon.marchi@efficios.com>
435
436 * breakpoint.h (init_catchpoint): Change int parameter to bool.
437 (add_solib_catchpoint): Likewise.
438 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
439 to bool.
440 (add_solib_catchpoint): Change int parameter/variable to bool.
441 (catch_load_or_unload): Likewise.
442 (init_catchpoint): Likewise.
443 (create_fork_vfork_event_catchpoint): Likewise.
444 (catch_fork_command_1): Likewise.
445 (catch_exec_command_1): Likewise.
446
4d0bcfcf
SM
4472020-09-16 Simon Marchi <simon.marchi@efficios.com>
448
449 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
450 Change instance_flags to m_instance_flags.
451
fe830662
TT
4522020-09-16 Tom Tromey <tromey@adacore.com>
453
454 PR gdb/26598:
455 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
456
fe5ddfc3
JB
4572020-09-16 John Baldwin <jhb@FreeBSD.org>
458
459 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
460 PL_FLAG_EXEC.
461 (fbsd_nat_target::insert_exec_catchpoint)
462 (fbsd_nat_target::remove_exec_catchpoint): Always define.
463 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
464 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
465
e911c666
JB
4662020-09-16 John Baldwin <jhb@FreeBSD.org>
467
468 * configure.ac: Remove check for kinfo_getvmmap().
469 * configure, config.in: Regenerate.
470 * fbsd-nat.c (fbsd_read_mapping): Remove
471 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
472 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
473 kinfo_get_vmmap() are always present.
474
1f17d372
JB
4752020-09-16 John Baldwin <jhb@FreeBSD.org>
476
477 * fbsd-nat.c: Always include support for
478 TARGET_OBJECT_SIGNAL_INFO.
479
bcb1da7f
JB
4802020-09-16 John Baldwin <jhb@FreeBSD.org>
481
482 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
483 sysctl and remove procfs fallback.
484
5515f729
JB
4852020-09-16 John Baldwin <jhb@FreeBSD.org>
486
487 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
488 * fbsd-nat.h: Likewise.
489
da1df1db
TBA
4902020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
491
492 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
493 argument.
494
0e25e767
AB
4952020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
496
497 * ada-lang.c (ada_language_data): Delete.
498 (ada_language): Remove references to ada_language_data.
499 * c-lang.c (c_language_data): Delete.
500 (c_language): Remove references to c_language_data.
501 (cplus_language_data): Delete.
502 (cplus_language): Remove references to cplus_language_data.
503 (asm_language_data): Delete.
504 (asm_language): Remove references to asm_language_data.
505 (minimal_language_data): Delete.
506 (minimal_language): Remove references to minimal_language_data.
507 * d-lang.c (d_language_data): Delete.
508 (d_language): Remove references to d_language_data.
509 * f-lang.c (f_language_data): Delete.
510 (f_language): Remove references to f_language_data.
511 * go-lang.c (go_language_data): Delete.
512 (go_language): Remove references to go_language_data.
513 * language.c (unknown_language_data): Delete.
514 (unknown_language): Remove references to unknown_language_data.
515 (auto_language_data): Delete.
516 (auto_language): Remove references to auto_language_data.
517 * language.h (language_data): Delete struct.
518 (language_defn): No longer inherit from language_data.
519 * m2-lang.c (m2_language_data): Delete.
520 (m2_language): Remove references to m2_language_data.
521 * objc-lang.c (objc_language_data): Delete.
522 (objc_language): Remove references to objc_language_data.
523 * opencl-lang.c (opencl_language_data): Delete.
524 (opencl_language): Remove references to opencl_language_data.
525 * p-lang.c (pascal_language_data): Delete.
526 (pascal_language): Remove references to pascal_language_data.
527 * rust-lang.c (rust_language_data): Delete.
528 (rust_language): Remove references to rust_language_data.
529
b7c6e27d
AB
5302020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
531
532 * ada-lang.c (ada_language_data): Remove la_op_print_tab
533 initializer.
534 (ada_language::opcode_print_table): New member function.
535 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
536 (c_language::opcode_print_table): New member function.
537 (cplus_language_data): Remove la_op_print_tab initializer.
538 (cplus_language::opcode_print_table): New member function.
539 (asm_language_data): Remove la_op_print_tab initializer.
540 (asm_language::opcode_print_table): New member function.
541 (minimal_language_data): Remove la_op_print_tab initializer.
542 (minimal_language::opcode_print_table): New member function.
543 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
544 (d_language::opcode_print_table): New member function.
545 * expprint.c (print_subexp_standard): Update call to
546 opcode_print_table.
547 (op_string): Likewise.
548 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
549 (f_language::opcode_print_table): New member function.
550 * go-lang.c (go_language_data): Remove la_op_print_tab
551 initializer.
552 (go_language::opcode_print_table): New member function.
553 * language.c (unknown_language_data): Remove la_op_print_tab
554 initializer.
555 (unknown_language::opcode_print_table): New member function.
556 (auto_language_data): Remove la_op_print_tab initializer.
557 (auto_language::opcode_print_table): New member function.
558 * language.h (language_data): Remove la_op_print_tab field.
559 (language_defn::opcode_print_table): Declare new member function.
560 * m2-lang.c (m2_language_data): Remove la_op_print_tab
561 initializer.
562 (m2_language::opcode_print_table): New member function.
563 * objc-lang.c (objc_language_data): Remove la_op_print_tab
564 initializer.
565 (objc_language::opcode_print_table): New member function.
566 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
567 initializer.
568 (opencl_language::opcode_print_table): New member function.
569 * p-lang.c (pascal_language_data): Remove la_op_print_tab
570 initializer.
571 (pascal_language::opcode_print_table): New member function.
572 * rust-lang.c (rust_language_data): Remove la_op_print_tab
573 initializer.
574 (rust_language::opcode_print_table): New member function.
575
5aba6ebe
AB
5762020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
577
578 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
579 (ada_language::expression_ops): New member function.
580 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
581 (c_language::expression_ops): New member function.
582 (cplus_language_data): Remove la_exp_desc initializer.
583 (cplus_language::expression_ops): New member function.
584 (asm_language_data): Remove la_exp_desc initializer.
585 (asm_language::expression_ops): New member function.
586 (minimal_language_data): Remove la_exp_desc initializer.
587 (minimal_language::expression_ops): New member function.
588 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
589 (d_language::expression_ops): New member function.
590 * eval.c (evaluate_subexp): Update call to expression_ops.
591 * expprint.c (print_subexp): Likewise.
592 (op_name): Likewise.
593 (dump_subexp_body): Likewise.
594 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
595 (f_language::expression_ops): New member function.
596 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
597 (go_language::expression_ops): New member function.
598 * language.c (language_defn::expression_ops): New function.
599 (unknown_language_data): Remove la_exp_desc initializer.
600 (auto_language_data): Likewise.
601 * language.h (language_data): Remove la_exp_desc field.
602 (language_defn::expression_ops): Declare new member function.
603 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
604 (m2_language::expression_ops): New member function.
605 * objc-lang.c (objc_language_data): Remove la_exp_desc
606 initializer.
607 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
608 initializer.
609 (opencl_language::expression_ops): New member function.
610 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
611 * parse.c (operator_length): Update call to expression_ops.
612 (exp_iterate): Likewise.
613 * rust-lang.c (rust_language_data): Remove la_exp_desc
614 initializer.
615 (ruse_language::expression_ops): New member function.
616
b63a3f3f
AB
6172020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
618
619 * ada-lang.c (ada_language_data): Remove la_varobj_ops
620 initializer.
621 (ada_language::varobj_ops): New member function.
622 * c-lang.c (c_language_data): Remove la_varobj_ops
623 initializer.
624 (cplus_language_data): Likewise.
625 (cplus_language::varobj_ops): New member function.
626 (asm_language_data): Remove la_varobj_ops initializer.
627 (minimal_language_data): Likewise.
628 * d-lang.c (d_language_data): Likewise.
629 * f-lang.c (f_language_data): Likewise.
630 * go-lang.c (go_language_data): Likewise.
631 * language.c (language_defn::varobj_ops): New function.
632 (unknown_language_data): Remove la_varobj_ops
633 initializer.
634 (auto_language_data): Likewise.
635 * language.h (language_data): Remove la_varobj_ops field.
636 (language_defn::varobj_ops): Declare new member function.
637 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
638 * objc-lang.c (objc_language_data): Likewise.
639 * opencl-lang.c (opencl_language_data): Likewise.
640 * p-lang.c (pascal_language_data): Likewise.
641 * rust-lang.c (rust_language_data): Likewise.
642 * varobj.c (varobj_create): Update call to varobj_ops.
643 * varobj.h (default_varobj_ops): Delete define.
644
1ac14a04
AB
6452020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
646
647 * ada-lang.c (ada_language_data): Remove la_macro_expansion
648 initializer.
649 * c-lang.c (c_language_data): Likewise.
650 (c_language::macro_expansion): New member function.
651 (cplus_language_data): Likewise.
652 (cplus_language::macro_expansion): New member function.
653 (asm_language_data): Likewise.
654 (asm_language::macro_expansion): New member function.
655 (minimal_language_data): Likewise.
656 (minimal_language::macro_expansion): New member function.
657 * d-lang.c (d_language_data): Remove la_macro_expansion
658 initializer.
659 * f-lang.c (f_language_data): Likewise.
660 * go-lang.c (go_language_data): Likewise.
661 * language.c (unknown_language_data): Likewise.
662 (auto_language_data): Likewise.
663 * language.h (language_data): Remove la_macro_expansion field.
664 (language_defn::macro_expansion): New member function.
665 * m2-lang.c (m2_language_data): Remove la_macro_expansion
666 initializer.
667 * objc-lang.c (objc_language_data): Likewise.
668 (objc_language::macro_expansion): New member function.
669 * opencl-lang.c (opencl_language_data): Likewise.
670 (opencl_language::macro_expansion): New member function.
671 * p-lang.c (pascal_language_data): Remove la_macro_expansion
672 initializer.
673 * rust-lang.c (rust_language_data): Likewise.
674 * symtab.c (default_collect_symbol_completion_matches_break_on):
675 Update call to macro_expansion.
676
3a3440fb
AB
6772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
678
679 * ada-lang.c (ada_language_data): Remove la_array_ordering
680 initializer.
681 * c-lang.c (c_language_data): Likewise.
682 (cplus_language_data): Likewise.
683 (asm_language_data): Likewise.
684 (minimal_language_data): Likewise.
685 * d-lang.c (d_language_data): Likewise.
686 * dwarf2/read.c (read_array_order): Update for call to
687 array_ordering.
688 * f-lang.c (f_language_data): Remove la_array_ordering
689 initializer.
690 (f_language::array_ordering): New member function.
691 * go-lang.c (go_language_data): Remove la_array_ordering
692 initializer.
693 * language.c (unknown_language_data): Likewise.
694 (auto_language_data): Likewise.
695 * language.h (language_data): Delete la_array_ordering field.
696 (language_defn::array_ordering): New member function.
697 * m2-lang.c (m2_language_data): Remove la_array_ordering
698 initializer.
699 * objc-lang.c (objc_language_data): Likewise.
700 * opencl-lang.c (opencl_language_data): Likewise.
701 * p-lang.c (pascal_language_data): Likewise.
702 * rust-lang.c (rust_language_data): Likewise.
703
0d201fa4
AB
7042020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
705
706 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
707 initializer.
708 * c-lang.c (c_language_data): Likewise.
709 (cplus_language_data): Likewise.
710 (asm_language_data): Likewise.
711 (minimal_language_data): Likewise.
712 * d-lang.c (d_language_data): Likewise.
713 * f-lang.c (f_language_data): Likewise.
714 (f_language::case_sensitivity): New member function.
715 * go-lang.c (go_language_data): Remove la_case_sensitivity
716 initializer.
717 * language.c (enum case_mode): Moved here from language.h.
718 (case_mode): Make static.
719 (show_case_command): Update for case_sensitivity being a method.
720 (set_case_command): Likewise.
721 (set_range_case): Likewise.
722 (unknown_language_data): Remove la_case_sensitivity initializer.
723 (auto_language_data): Likewise.
724 * language.h (case_mode): Delete, move enum declaration to
725 language.c.
726 (language_data): Delete la_case_sensitivity field.
727 (language_defn::case_sensitivity): New member function.
728 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
729 initializer.
730 * objc-lang.c (objc_language_data): Likewise.
731 * opencl-lang.c (opencl_language_data): Likewise.
732 * p-lang.c (pascal_language_data): Likewise.
733 * rust-lang.c (rust_language_data): Likewise.
734
efdf6a73
AB
7352020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
736
737 * ada-lang.c (ada_language_data): Remove la_range_check
738 initializer.
739 * c-lang.c (c_language_data): Likewise.
740 (cplus_language_data): Likewise.
741 (asm_language_data): Likewise.
742 (minimal_language_data): Likewise.
743 * d-lang.c (d_language_data): Likewise.
744 * f-lang.c (f_language_data): Likewise.
745 (f_language::range_checking_on_by_default): New member function.
746 * go-lang.c (go_language_data): Remove la_range_check initializer.
747 * language.c (enum range_mode): Moved here from language.h.
748 (range_mode): Made static.
749 (show_range_command): Update to use
750 range_checking_on_by_default.
751 (set_range_command): Likewise.
752 (set_range_case): Likewise.
753 (unknown_language_data): Remove la_range_check initializer.
754 (auto_language_data): Likewise.
755 * language.h (range_mode): Delete. Enum definition moved to
756 language.c.
757 (language_data): Remove la_range_check field.
758 (language_defn::range_checking_on_by_default): New member
759 function.
760 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
761 (m2_language::range_checking_on_by_default): New member function.
762 * objc-lang.c (objc_language_data): Remove la_range_check
763 initializer.
764 * opencl-lang.c (opencl_language_data): Likewise.
765 * p-lang.c (pascal_language_data): Likewise.
766 (pascal_language::range_checking_on_by_default): New member
767 function.
768 * rust-lang.c (rust_language_data): Remove la_range_check
769 initializer.
770 (rust_language::range_checking_on_by_default): New member
771 function.
772
bf92aec5
AB
7732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
774
775 * dwarf2/read.c (dwarf2_physname): Remove special case for
776 language_go.
777 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
778 member function.
779
d3355e4d
AB
7802020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
781
782 * ada-lang.c (ada_language_data): Remove
783 la_store_sym_names_in_linkage_form_p initializer.
784 (ada_language::store_sym_names_in_linkage_form_p): New member
785 function.
786 * c-lang.c (c_language_data): Remove
787 la_store_sym_names_in_linkage_form_p initializer.
788 (c_language::store_sym_names_in_linkage_form_p): New member
789 function.
790 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
791 initializer.
792 (asm_language_data): Likewise.
793 (asm_language::store_sym_names_in_linkage_form_p): New member
794 function.
795 (minimal_language_data): Remove
796 la_store_sym_names_in_linkage_form_p initializer.
797 (minimal_language::store_sym_names_in_linkage_form_p): New member
798 function.
799 * d-lang.c (d_language_data): Remove
800 la_store_sym_names_in_linkage_form_p initializer.
801 * dwarf2/read.c (dwarf2_physname): Update call to
802 store_sym_names_in_linkage_form_p.
803 * f-lang.c (f_language_data): Remove
804 la_store_sym_names_in_linkage_form_p initializer.
805 * go-lang.c (go_language_data): Remove
806 la_store_sym_names_in_linkage_form_p initializer.
807 * language.c (unknown_language_data): Remove
808 la_store_sym_names_in_linkage_form_p initializer.
809 (unknown_language::store_sym_names_in_linkage_form_p): New member
810 function.
811 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
812 initializer.
813 (auto_language::store_sym_names_in_linkage_form_p): New member
814 function.
815 * language.h (language_data): Remove
816 la_store_sym_names_in_linkage_form_p member variable.
817 (language_defn::store_sym_names_in_linkage_form_p): New member
818 function.
819 * m2-lang.c (m2_language_data): Remove
820 la_store_sym_names_in_linkage_form_p initializer.
821 * objc-lang.c (objc_language_data): Likewise.
822 * opencl-lang.c (opencl_language_data): Likewise.
823 * p-lang.c (pascal_language_data): Likewise.
824 * rust-lang.c (rust_language_data): Likewise.
825
22c12a6c
AB
8262020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
827
828 * ada-lang.c (ada_language_data): Remove string_lower_bound
829 initializer.
830 * c-lang.c (c_language_data): Likewise.
831 (cplus_language_data): Likewise.
832 (asm_language_data): Likewise.
833 (minimal_language_data): Likewise.
834 * d-lang.c (d_language_data): Likewise.
835 * f-lang.c (f_language_data): Likewise.
836 * go-lang.c (go_language_data): Likewise.
837 * language.c (unknown_language_data): Likewise.
838 (auto_language_data): Likewise.
839 * language.h (language_data): Remove string_lower_bound field.
840 (language_defn::string_lower_bound): New member function.
841 * m2-lang.c (m2_language_data): Remove string_lower_bound
842 initializer.
843 (m2_language::string_lower_bound): New member function.
844 * objc-lang.c (objc_language_data): Remove string_lower_bound
845 initializer.
846 * opencl-lang.c (opencl_language_data): Likewise.
847 * p-lang.c (pascal_language_data): Likewise.
848 * rust-lang.c (rust_language_data): Likewise.
849 * valops.c (value_cstring): Update call to string_lower_bound.
850 (value_string): Likewise.
851 * value.c (allocate_repeated_value): Likewise.
852
1c236ddd
AB
8532020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
854
855 * valops.c (value_repeat): Fix incorrect argument name in comment.
856
67bd3fd5
AB
8572020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
858
859 * ada-lang.c (ada_language_data): Remove c_style_arrays
860 initializer.
861 (ada_language::c_style_arrays_p): New member fuction.
862 * c-lang.c (c_language_data): Remove c_style_arrays
863 initializer.
864 (cplus_language_data): Likewise.
865 (asm_language_data): Likewise.
866 (minimal_language_data): Likewise.
867 * d-lang.c (d_language_data): Likewise.
868 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
869 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
870 (f_language::c_style_arrays_p): New member function.
871 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
872 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
873 * language.c (unknown_language_data): Remove c_style_arrays
874 initializer.
875 (auto_language_data): Likewise.
876 * language.h (language_data): Remove c_style_arrays field.
877 (language_defn::c_style_arrays_p): New member function.
878 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
879 (m2_language::c_style_arrays_p): New member function.
880 * objc-lang.c (objc_language_data): Remove c_style_arrays
881 initializer.
882 * opencl-lang.c (opencl_language_data): Likewise.
883 * p-lang.c (pascal_language_data): Likewise.
884 * rust-lang.c (rust_language_data): Likewise.
885 * valarith.c (value_subscript): Update call to c_style_arrays_p,
886 and update local variable to a bool.
887 * valops.c (value_cast): Update call to c_style_arrays_p.
888 (value_array): Likewise.
889 * value.c (coerce_array): Likewise.
890
85967615
AB
8912020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
892
893 * ada-lang.c (ada_language_data): Remove la_language initializer.
894 * c-lang.c (c_language_data): Likewise.
895 (cplus_language_data): Likewise.
896 (asm_language_data): Likewise.
897 (minimal_language_data): Likewise.
898 * d-lang.c (d_language_data): Likewise.
899 * f-lang.c (f_language_data): Likewise.
900 * go-lang.c (go_language_data): Likewise.
901 * language.c (unknown_language_data): Likewise.
902 (auto_language_data): Likewise.
903 * language.h (language_data): Remove la_language field.
904 (language_defn::language_defn): Initialise la_language field.
905 (language_defn::la_language): New member variable.
906 * m2-lang.c (m2_language_data): Remove la_language field.
907 * objc-lang.c (objc_language_data): Likewise.
908 * opencl-lang.c (opencl_language_data): Likewise.
909 * p-lang.c (pascal_language_data): Likewise.
910 * rust-lang.c (rust_language_data): Likewise.
911
e171d6f1
AB
9122020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
913
914 * ada-lang.c (ada_extensions): Delete, moved into
915 ada_language::filename_extensions.
916 (ada_language_data): Remove la_filename_extensions initializer.
917 (ada_language::filename_extensions): New member function.
918 * c-lang.c (c_extensions): Delete, moved into
919 c_language::filename_extensions.
920 (c_language_data): Remove la_filename_extensions initializer.
921 (c_language::filename_extensions): New member function.
922 (cplus_extensions): Delete, moved into
923 cplus_language::filename_extensions.
924 (cplus_language_data): Remove la_filename_extensions initializer.
925 (cplus_language::filename_extensions): New member function.
926 (asm_extensions): Delete, moved into
927 asm_language::filename_extensions.
928 (asm_language_data): Remove la_filename_extensions initializer.
929 (asm_language::filename_extensions): New member function.
930 (minimal_language_data): Remove la_filename_extensions
931 initializer.
932 * d-lang.c (d_extensions): Delete, moved into
933 d_language::filename_extensions.
934 (d_language_data): Remove la_filename_extensions initializer.
935 (d_language::filename_extensions): New member function.
936 * f-lang.c (f_extensions): Delete, moved into
937 f_language::filename_extensions.
938 (f_language_data): Remove la_filename_extensions initializer.
939 (f_language::filename_extensions): New member function.
940 * go-lang.c (go_language_data): Remove la_filename_extensions
941 initializer.
942 * language.c (add_set_language_command): Update now that
943 filename_extensions returns a vector.
944 (unknown_language_data): Remove la_filename_extensions
945 initializer.
946 (auto_language_data): Likewise.
947 * language.h (language_data): Remove la_filename_extensions field.
948 (language_defn::filename_extensions): New member function.
949 * m2-lang.c (m2_language_data): Remove la_filename_extensions
950 initializer.
951 * objc-lang.c (objc_extensions): Delete, moved into
952 objc_language::filename_extensions.
953 (objc_language_data): Remove la_filename_extensions initializer.
954 (objc_language::filename_extensions): New member function.
955 * opencl-lang.c (opencl_language_data): Remove
956 la_filename_extensions initializer.
957 * p-lang.c (pascal_extensions): Delete, moved into
958 pascal_language::filename_extensions.
959 (pascal_language_data): Remove la_filename_extensions initializer.
960 (pascal_language::filename_extensions): New member function.
961 * rust-lang.c (rust_extensions): Delete, moved into
962 rust_language::filename_extensions.
963 (rust_language_data): Remove la_filename_extensions initializer.
964 (rust_language::filename_extensions): New member function.
965 * symfile.c (add_filename_language): Add new assert.
966
6f7664a9
AB
9672020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
968
969 * ada-lang.c (ada_language_data): Remove la_name and
970 la_natural_name initializers.
971 (ada_language::name): New member function.
972 (ada_language::natural_name): New member function.
973 * c-lang.c (c_language_data): Remove la_name and
974 la_natural_name initializers.
975 (c_language::name): New member function.
976 (c_language::natural_name): New member function.
977 (cplus_language_data): Remove la_name and
978 la_natural_name initializers.
979 (cplus_language::name): New member function.
980 (cplus_language::natural_name): New member function.
981 (asm_language_data): Remove la_name and
982 la_natural_name initializers.
983 (asm_language::name): New member function.
984 (asm_language::natural_name): New member function.
985 (minimal_language_data): Remove la_name and
986 la_natural_name initializers.
987 (minimal_language::name): New member function.
988 (minimal_language::natural_name): New member function.
989 * compile/compile.c (compile_to_object): Update call to
990 lanugage_defn::name.
991 * d-lang.c (d_language_data): Remove la_name and
992 la_natural_name initializers.
993 (d_language::name): New member function.
994 (d_language::natural_name): New member function.
995 * expprint.c (print_subexp_standard): Update call to
996 language_defn::name.
997 (dump_raw_expression): Likewise
998 (dump_prefix_expression): Likewise.
999 * f-lang.c (f_language_data): Remove la_name and
1000 la_natural_name initializers.
1001 (f_language::name): New member function.
1002 (f_language::natural_name): New member function.
1003 * go-lang.c (go_language_data): Remove la_name and
1004 la_natural_name initializers.
1005 (go_language::name): New member function.
1006 (go_language::natural_name): New member function.
1007 * language.c (show_language_command): Update call to
1008 language_defn::name.
1009 (set_language_command): Likewise.
1010 (language_enum): Likewise.
1011 (language_str): Likewise.
1012 (add_set_language_command): Likewise, use
1013 language_defn::natural_name in the doc string.
1014 (unknown_language_data): Remove la_name and
1015 la_natural_name initializers.
1016 (unknown_language::name): New member function.
1017 (unknown_language::natural_name): New member function.
1018 (auto_language_data): Remove la_name and
1019 la_natural_name initializers.
1020 (auto_language::name): New member function.
1021 (auto_language::natural_name): New member function.
1022 (language_lookup_primitive_type_as_symbol): Update call to
1023 language_defn::name.
1024 * language.h (language_data): Remove la_name and la_natural_name
1025 member variables.
1026 (language_defn::name): New member function.
1027 (language_defn::natural_name): New member function.
1028 * m2-lang.c (m2_language_data): Remove la_name and
1029 la_natural_name initializers.
1030 (m2_language::name): New member function.
1031 (m2_language::natural_name): New member function.
1032 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1033 language_defn::natural_name.
1034 * objc-lang.c (objc_language_data): Remove la_name and
1035 la_natural_name initializers.
1036 (objc_language::name): New member function.
1037 (objc_language::natural_name): New member function.
1038 * opencl-lang.c (opencl_language_data): Remove la_name and
1039 la_natural_name initializers.
1040 (opencl_language::name): New member function.
1041 (opencl_language::natural_name): New member function.
1042 * p-lang.c (pascal_language_data): Remove la_name and
1043 la_natural_name initializers.
1044 (pascal_language::name): New member function.
1045 (pascal_language::natural_name): New member function.
1046 * rust-lang.c (rust_language_data): Remove la_name and
1047 la_natural_name initializers.
1048 (rust_language::name): New member function.
1049 (rust_language::natural_name): New member function.
1050 * symtab.c (lookup_language_this): Update call to
1051 language_defn::name.
1052
5bae7c4e
AB
10532020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1054
1055 * ada-lang.c (ada_language_data): Remove la_name_of_this
1056 initializer.
1057 * ax-gdb.c (gen_expr): Update call to name_of_this.
1058 * c-exp.y (classify_name): Likewise.
1059 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1060 (cplus_language_data): Likewise.
1061 (cplus_language::name_of_this): New member function.
1062 (asm_language_data): Remove la_name_of_this initializer.
1063 (minimal_language_data): Likewise.
1064 * d-lang.c (d_language_data): Likewise.
1065 (d_language::name_of_this): New member function.
1066 * expprint.c (print_subexp_standard): Update call to name_of_this.
1067 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1068 * go-lang.c (go_language_data): Likewise.
1069 * language.c (unknown_language_data): Likewise.
1070 (unknown_language::name_of_this): New member function.
1071 (auto_language_data): Remove la_name_of_this initializer.
1072 (auto_language::name_of_this): New member function.
1073 * language.h (language_data): Delete la_name_of_this member
1074 variable.
1075 (language_defn::name_of_this): New member function.
1076 * m2-lang.c (m2_language_data): Remove la_name_of_this
1077 initializer.
1078 * objc-lang.c (objc_language_data): Likewise.
1079 (objc_language::name_of_this): New member function.
1080 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1081 initializer.
1082 * p-lang.c (pascal_language_data): Likewise.
1083 (pascal_language::name_of_this): New member function.
1084 * rust-lang.c (rust_language_data): Remove la_name_of_this
1085 initializer.
1086 * symtab.c (lookup_language_this): Update call to name_of_this.
1087 (lookup_symbol_aux): Likewise.
1088 * valops.c (value_of_this): Likewise.
1089
22e3f3ed
AB
10902020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1091
1092 * ada-lang.c (ada_language_data): Remove
1093 la_struct_too_deep_ellipsis initializer.
1094 (ada_language::struct_too_deep_ellipsis): New member function.
1095 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1096 initializer.
1097 (cplus_language_data): Likewise.
1098 (asm_language_data): Likewise.
1099 (minimal_language_data): Likewise.
1100 * cp-valprint.c (cp_print_value): Update call to
1101 struct_too_deep_ellipsis.
1102 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1103 initializer.
1104 * f-lang.c (f_language_data): Likewise.
1105 (f_language::struct_too_deep_ellipsis): New member function.
1106 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1107 initializer.
1108 * language.c (unknown_language_data): Likewise.
1109 (auto_language_data): Likewise.
1110 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1111 member variable.
1112 (language_defn::struct_too_deep_ellipsis): New member function.
1113 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1114 initializer.Q
1115 * objc-lang.c (objc_language_data): Likewise.
1116 * opencl-lang.c (opencl_language_data): Likewise.
1117 * p-lang.c (pascal_language_data): Likewise.
1118 * rust-lang.c (rust_language_data): Likewise.
1119 * valprint.c (val_print_check_max_depth): Update call to
1120 struct_too_deep_ellipsis.
1121
ed29e1c7
FW
11222020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1123
1124 * MAINTAINERS (Write After Approval): Add myself.
1125
12d8f940
TT
11262020-09-15 Tom Tromey <tom@tromey.com>
1127
1128 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1129 Remove.
1130
6b5a7bc7
TT
11312020-09-15 Tom Tromey <tom@tromey.com>
1132
1133 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1134 and TYPE_CODE_METHODPTR cases.
1135 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1136 (c_value_print_inner): Update.
1137 * valprint.c (generic_value_print_memberptr): New function, from
1138 c_value_print_memberptr.
1139 (generic_value_print): Use it. Call cplus_print_method_ptr.
1140
47f0e2ff
TT
11412020-09-15 Tom Tromey <tromey@adacore.com>
1142
1143 * python/python-internal.h (PyInt_FromLong): Remove define.
1144 * python/py-value.c (convert_value_from_python): Use
1145 gdb_py_object_from_longest.
1146 * python/py-type.c (typy_get_code): Use
1147 gdb_py_object_from_longest.
1148 * python/py-symtab.c (salpy_get_line): Use
1149 gdb_py_object_from_longest.
1150 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1151 gdb_py_object_from_longest.
1152 * python/py-record.c (recpy_gap_reason_code): Use
1153 gdb_py_object_from_longest.
1154 * python/py-record-btrace.c (recpy_bt_insn_size)
1155 (recpy_bt_func_level, btpy_list_count): Use
1156 gdb_py_object_from_longest.
1157 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1158 gdb_py_object_from_longest. Fix error handling.
1159 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1160 gdb_py_object_from_longest.
1161 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1162 gdb_py_object_from_longest.
1163 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1164 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1165 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1166
512116ce
TT
11672020-09-15 Tom Tromey <tromey@adacore.com>
1168
1169 * python/python.c (gdbpy_parameter_value): Use
1170 gdb_py_object_from_ulongest.
1171
4ab1029c
TT
11722020-09-15 Tom Tromey <tromey@adacore.com>
1173
1174 * python/py-infevents.c (create_register_changed_event_object):
1175 Use gdb_py_object_from_longest.
1176 * python/py-exitedevent.c (create_exited_event_object): Use
1177 gdb_py_object_from_longest.
1178
062534d4
TT
11792020-09-15 Tom Tromey <tromey@adacore.com>
1180
1181 * python/python.c (gdbpy_parameter_value): Use
1182 gdb_py_object_from_longest.
1183 * python/py-type.c (convert_field, typy_range): Use
1184 gdb_py_object_from_longest.
1185 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1186 gdb_py_object_from_longest.
1187 * python/py-lazy-string.c (stpy_get_length): Use
1188 gdb_py_object_from_longest.
1189 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1190 gdb_py_object_from_longest.
1191 * python/py-infevents.c (create_memory_changed_event_object): Use
1192 gdb_py_object_from_longest.
1193 * python/py-inferior.c (infpy_get_num): Use
1194 gdb_py_object_from_longest.
1195 (infpy_get_pid): Likewise.
1196
d1cab987
TT
11972020-09-15 Tom Tromey <tromey@adacore.com>
1198
1199 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1200 defines.
1201 * python/py-value.c (valpy_long): Use
1202 gdb_py_object_from_ulongest.
1203 * python/py-symtab.c (salpy_get_pc): Use
1204 gdb_py_object_from_ulongest.
1205 (salpy_get_last): Likewise.
1206 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1207 gdb_py_object_from_ulongest.
1208 * python/py-lazy-string.c (stpy_get_address): Use
1209 gdb_py_object_from_ulongest.
1210 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1211 * python/py-arch.c (archpy_disassemble): Use
1212 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1213 error handling.
1214
4bde49dc
TT
12152020-09-15 Tom Tromey <tromey@adacore.com>
1216
1217 * python/python-internal.h (gdb_py_long_from_longest): Remove
1218 defines.
1219 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1220 * python/py-type.c (convert_field, typy_get_sizeof): Use
1221 gdb_py_object_from_longest.
1222 * python/py-record-btrace.c (btpy_list_index): Use
1223 gdb_py_object_from_longest.
1224
37431074
TT
12252020-09-15 Tom Tromey <tromey@adacore.com>
1226
1227 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1228 * python/py-record.c (recpy_element_number): Use
1229 gdb_py_object_from_longest.
1230 (recpy_gap_number): Likewise.
1231
cbe25684
TT
12322020-09-15 Tom Tromey <tromey@adacore.com>
1233
1234 * top.c (ui::ui): Update.
1235 (highest_ui_num): Remove.
1236 * top.h (struct ui) <num>: Remove.
1237
db92ac45
TT
12382020-09-15 Tom Tromey <tromey@adacore.com>
1239
1240 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1241 * ui-style.c (ansi_regex_text): Now array.
1242 * rust-exp.y (number_regex_text): Now array.
1243 * linespec.c (linespec_quote_characters): Now array.
1244 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1245 Now arrays.
1246
d2b31b67
SM
12472020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1248
1249 * debuginfod-support.c (debuginfod_client_deleter): New.
1250 (debuginfod_client_up): New.
1251 (debuginfod_init): Return debuginfod_client_up.
1252 (debuginfod_source_query): Adjust.
1253 (debuginfod_debuginfo_query): Adjust.
1254
3246bd8e
SM
12552020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1256
1257 * debuginfod-support.c (debuginfod_source_query): Use
1258 make_unique_xstrdup.
1259
10242f36
SM
12602020-09-14 Simon Marchi <simon.marchi@efficios.com>
1261
1262 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1263 with `type::instance_flags`.
1264
e1044e6a
MM
12652020-09-14 Michael Mullin <masmullin@gmail.com>
1266
1267 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1268 Remove baton parameter.
1269
04902b09
PA
12702020-09-14 Pedro Alves <pedro@palves.net>
1271
1272 * Makefile.in (SELFTESTS_SRCS): Add
1273 unittests/enum-flags-selftests.c.
1274 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1275 btrace_function_flags instead of enum btrace_function_flag.
1276 * compile/compile-c-types.c (convert_qualified): Use
1277 enum_flags::raw.
1278 * compile/compile-cplus-symbols.c (convert_one_symbol)
1279 (convert_symbol_bmsym):
1280 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1281 (compile_cplus_convert_struct_or_union_methods)
1282 (compile_cplus_instance::convert_qualified_base):
1283 * go-exp.y (parse_string_or_char): Add cast to int.
1284 * unittests/enum-flags-selftests.c: New file.
1285 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1286 type to btrace_thread_flags from btrace_thread_flag.
1287 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1288 local's type to btrace_thread_flags from btrace_thread_flag. Add
1289 cast in DEBUG call.
1290
69896a2c
PA
12912020-09-14 Pedro Alves <pedro@palves.net>
1292
1293 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1294 * gdbtypes.c (address_space_name_to_int): Rename to ...
1295 (address_space_name_to_type_instance_flags): ... this.
1296 (address_space_int_to_name): Rename to ...
1297 (address_space_type_instance_flags_to_name): ... this.
1298 * gdbtypes.h (address_space_name_to_int): Rename to ...
1299 (address_space_name_to_type_instance_flags): ... this.
1300 (address_space_int_to_name): Rename to ...
1301 (address_space_type_instance_flags_to_name): ... this.
1302 * type-stack.c (type_stack::insert): Adjust to rename.
1303 * type-stack.h (type_stack::insert): Likewise.
1304
314ad88d
PA
13052020-09-14 Pedro Alves <pedro@palves.net>
1306 Andrew Burgess <andrew.burgess@embecosm.com>
1307
1308 * avr-tdep.c (avr_address_class_type_flags): Return
1309 type_instance_flags.
1310 (avr_address_class_type_flags_to_name): Take a
1311 type_instance_flags.
1312 (avr_address_class_name_to_type_flags): Return bool and take a
1313 type_instance_flags.
1314 * d-lang.c (build_d_types): Use type::set_instance_flags.
1315 * ft32-tdep.c (ft32_address_class_type_flags): Return
1316 type_instance_flags.
1317 (ft32_address_class_type_flags_to_name): Take a
1318 type_instance_flags.
1319 (ft32_address_class_name_to_type_flags): Return bool and take a
1320 type_instance_flags.
1321 (ft32_gdbarch_init): Use type::set_instance_flags.
1322 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1323 * gdbarch.h, gdbarch.c: Regenerate.
1324 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1325 (address_class_name_to_type_flags): Use type_instance_flags and
1326 bool.
1327 * gdbtypes.c (address_space_name_to_int)
1328 (address_space_int_to_name, make_qualified_type): Use
1329 type_instance_flags.
1330 (make_qualified_type): Use type_instance_flags and
1331 type::set_instance_flags.
1332 (make_type_with_address_space, make_cv_type, make_vector_type)
1333 (check_typedef): Use type_instance_flags.
1334 (recursive_dump_type): Cast type_instance_flags to unsigned for
1335 printing.
1336 (copy_type_recursive): Use type::set_instance_flags.
1337 (gdbtypes_post_init): Use type::set_instance_flags.
1338 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1339 <m_instance_flags>: ... this.
1340 <instance_flags, set_instance_flags>: New methods.
1341 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1342 (SET_TYPE_INSTANCE_FLAGS): New.
1343 (address_space_name_to_int, address_space_int_to_name)
1344 (make_type_with_address_space): Pass flags using
1345 type_instance_flags instead of int.
1346 * stabsread.c (cleanup_undefined_types_noname): Use
1347 type::set_instance_flags.
1348 * s390-tdep.c (s390_address_class_type_flags): Return
1349 type_instance_flags.
1350 (s390_address_class_type_flags_to_name): Take a
1351 type_instance_flags.
1352 (s390_address_class_name_to_type_flags): Return bool and take a
1353 type_instance_flags.
1354 * type-stack.c (type_stack::follow_types): Use
1355 type_instance_flags.
1356 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1357
27087b7f
TT
13582020-09-14 Tom Tromey <tromey@adacore.com>
1359
1360 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1361 * x86-tdep.c (x86_is_thunk_register_name)
1362 (x86_in_indirect_branch_thunk): Update.
1363 * sparc64-tdep.c (sparc64_fpu_register_names)
1364 (sparc64_cp0_register_names, sparc64_register_names)
1365 (sparc64_pseudo_register_names): Now const.
1366 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1367 cp0_registers_num>: Now const.
1368 * sparc-tdep.c (sparc_core_register_names)
1369 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1370 (sparc32_pseudo_register_names): Now const.
1371 (validate_tdesc_registers): Update.
1372 * rust-lang.c (rust_extensions): Now const.
1373 * p-lang.c (p_extensions): Now const.
1374 * objc-lang.c (objc_extensions): Now const.
1375 * nto-tdep.c (nto_thread_state_str): Now const.
1376 * moxie-tdep.c (moxie_register_names): Now const.
1377 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1378 Now const.
1379 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1380 (mips_linux_reg_names): Now const.
1381 (mips_gdbarch_init): Update.
1382 * microblaze-tdep.c (microblaze_register_names): Now const.
1383 * m68k-tdep.c (m68k_register_names): Now const.
1384 * m32r-tdep.c (m32r_register_names): Now const.
1385 * ia64-tdep.c (ia64_register_names): Now const.
1386 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1387 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1388 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1389 ymm_avx512_register_names, pkeys_register_names>: Now const.
1390 * i386-tdep.c (i386_register_names, i386_zmm_names)
1391 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1392 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1393 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1394 * f-lang.c (f_extensions): Now const.
1395 * d-lang.c (d_extensions): Now const.
1396 * csky-tdep.c (csky_register_names): Now const.
1397 * charset.c (default_charset_names, charset_enum): Now const.
1398 (_initialize_charset): Update.
1399 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1400 const.
1401 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1402 (bsd_uthread_solib_loaded): Update.
1403 (bsd_uthread_state): Now const.
1404 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1405 (amd64_ymm_avx512_names, amd64_ymmh_names)
1406 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1407 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1408 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1409 (amd64_dword_names): Now const.
1410 * agent.c (can_use_agent_enum): Now const.
1411 * ada-tasks.c (task_states, long_task_states): Now const.
1412 * ada-lang.c (known_runtime_file_name_patterns)
1413 (known_auxiliary_function_name_patterns, attribute_names)
1414 (standard_exc, ada_extensions): Now const.
1415
89806626
SM
14162020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1417
1418 * bcache.h (struct bcache) <bcache>: Remove constructor.
1419 <m_hash_function, m_compare_function>: Remove.
1420 <~bcache>: Make virtual.
1421 <compare>: Remove static method, introduce virtual method.
1422 <default_hash>: Remove.
1423 <hash>: New virtual method.
1424 * bcache.c (bcache::expand_hash_table): Update.
1425 (bcache::insert): Update.
1426 (bcache::hash): New.
1427 (bcache::compare): Update comment and parameter names.
1428 * gdbtypes.c (types_deeply_equal): Update.
1429 * psymtab.h (struct psymbol_bcache): New struct.
1430 (class psymtab_storage) <psymtab_storage>: Make default.
1431 <psymbol_cache>: Change type to psymbol_bcache.
1432 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1433 (psymbol_hash): Change to...
1434 (psymbol_bcache::hash): ... this.
1435 (psymbol_compare): Change to...
1436 (psymbol_bcache::compare): ... this.
1437
677c92fe
SM
14382020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1439
1440 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1441 checking for initial lwp.
1442
3eba3a01
TT
14432020-09-14 Tom Tromey <tromey@adacore.com>
1444
1445 * m68k-tdep.c (m68k_extract_return_value): Use
1446 pointer_result_regnum.
1447 (m68k_store_return_value): Likewise.
1448 (m68k_reg_struct_return_p): Handle vectors and arrays.
1449 (m68k_return_value): Handle arrays.
1450 (m68k_svr4_return_value): Fix single-element aggregate handling.
1451 Handle long double. Adjust for embedded ABI.
1452 (m68k_svr4_init_abi): Set pointer_result_regnum.
1453 (m68k_embedded_init_abi): New function.
1454 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1455 (m68k_osabi_sniffer): New function.
1456 (_initialize_m68k_tdep): Register osabi sniffer.
1457 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1458 member.
1459
33f4dd48
SM
14602020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1461
1462 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1463 with gdb::unique_xmalloc_ptr<char>.
1464
8400a90d
SM
14652020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1466
1467 * xml-support.h (xml_fetch_another): Change type to be a
1468 function_view.
1469 (xml_process_xincludes): Remove baton parameter.
1470 (xml_fetch_content_from_file): Change baton parameter to
1471 dirname.
1472 * xml-support.c (struct xinclude_parsing_data)
1473 <xinclude_parsing_data>: Remove baton parameter.
1474 <fetcher_baton>: Remove.
1475 (xinclude_start_include): Adjust.
1476 (xml_process_xincludes): Adjust.
1477 (xml_fetch_content_from_file): Replace baton parameter with
1478 dirname.
1479 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1480 (xml_init_syscalls_info): Use a lambda.
1481 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1482 (file_read_description_xml): Use a lambda.
1483 (fetch_available_features_from_target): Change baton parameter
1484 to target_ops.
1485 (target_read_description_xml): Use a lambda.
1486 (target_fetch_description_xml): Use a lambda.
1487 (string_read_description_xml): Update.
1488
04f5bab2
SM
14892020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1490
1491 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1492 uses with type::endianity_is_not_default.
1493
db558e34
SM
14942020-09-14 Simon Marchi <simon.marchi@efficios.com>
1495
1496 * gdbtypes.h (struct type) <endianity_is_not_default,
1497 set_endianity_is_not_default>: New methods.
1498 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1499 type::endianity_is_not_default, change all write call sites to
1500 use type::set_endianity_is_not_default.
1501
22c4c60c
SM
15022020-09-14 Simon Marchi <simon.marchi@efficios.com>
1503
1504 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1505 uses with type::is_fixed_instance.
1506
9cdd0d12
SM
15072020-09-14 Simon Marchi <simon.marchi@efficios.com>
1508
1509 * gdbtypes.h (struct type) <is_fixed_instance,
1510 set_is_fixed_instance>: New methods.
1511 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1512 write call sites to use type::set_is_fixed_instance.
1513
0becda7a
SM
15142020-09-14 Simon Marchi <simon.marchi@efficios.com>
1515
1516 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1517 uses with type::is_gnu_ifunc.
1518
03cc7249
SM
15192020-09-14 Simon Marchi <simon.marchi@efficios.com>
1520
1521 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1522 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1523 use type::set_is_gnu_ifunc.
1524
3f46044c
SM
15252020-09-14 Simon Marchi <simon.marchi@efficios.com>
1526
1527 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1528 uses with type::stub_is_supported.
1529
9baccff6
SM
15302020-09-14 Simon Marchi <simon.marchi@efficios.com>
1531
1532 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1533 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1534 use type::set_stub_is_supported.
1535
bd63c870
SM
15362020-09-14 Simon Marchi <simon.marchi@efficios.com>
1537
1538 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1539 uses with type::is_vector.
1540
2062087b
SM
15412020-09-14 Simon Marchi <simon.marchi@efficios.com>
1542
1543 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1544 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1545 use type::set_is_vector.
1546
a409645d
SM
15472020-09-14 Simon Marchi <simon.marchi@efficios.com>
1548
1549 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1550 uses with type::has_varargs.
1551
1d6286ed
SM
15522020-09-14 Simon Marchi <simon.marchi@efficios.com>
1553
1554 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1555 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1556 use type::set_has_varargs.
1557
7f9f399b
SM
15582020-09-14 Simon Marchi <simon.marchi@efficios.com>
1559
1560 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1561 uses with type::is_prototyped.
1562
27e69b7a
SM
15632020-09-14 Simon Marchi <simon.marchi@efficios.com>
1564
1565 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1566 New methods.
1567 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1568 call sites to use type::set_is_prototyped.
1569
d2183968
SM
15702020-09-14 Simon Marchi <simon.marchi@efficios.com>
1571
1572 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1573 uses with type::target_is_stub.
1574
8f53807e
SM
15752020-09-14 Simon Marchi <simon.marchi@efficios.com>
1576
1577 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1578 New methods.
1579 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1580 sites to use type::set_target_is_stub.
1581
e46d3488
SM
15822020-09-14 Simon Marchi <simon.marchi@efficios.com>
1583
1584 * gdbtypes.h (TYPE_STUB): Remove, replace all
1585 uses with type::is_stub.
1586
b4b73759
SM
15872020-09-14 Simon Marchi <simon.marchi@efficios.com>
1588
1589 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1590 (TYPE_STUB): Use type::is_stub, change all write call sites to
1591 use type::set_is_stub.
1592
20ce4123
SM
15932020-09-14 Simon Marchi <simon.marchi@efficios.com>
1594
1595 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1596 type::has_no_signedness.
1597
15152a54
SM
15982020-09-14 Simon Marchi <simon.marchi@efficios.com>
1599
1600 * gdbtypes.h (struct type) <has_no_signedness,
1601 set_has_no_signedness>: New methods.
1602 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1603 call sites to use type::set_has_no_signedness.
1604
c6d940a9
SM
16052020-09-14 Simon Marchi <simon.marchi@efficios.com>
1606
1607 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1608 type::is_unsigned.
1609
653223d3
SM
16102020-09-14 Simon Marchi <simon.marchi@efficios.com>
1611
1612 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1613 methods.
1614 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1615 sites to use type::set_is_unsigned.
1616
55ea94da
FH
16172020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1618 Adam Renquinha <arenquinha@cimeq.qc.ca>
1619
1620 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1621 pointer and stack frame offset when unwinding.
1622
6791b117
PA
16232020-09-13 Pedro Alves <pedro@palves.net>
1624
1625 * NEWS: Document "-break-insert --qualified".
1626 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1627
77f2120b
PA
16282020-09-13 Pedro Alves <pedro@palves.net>
1629
1630 * linespec.c (classify_mtype, compare_msyms): Delete.
1631 (search_minsyms_for_name): Remove classification logic. Instead
1632 filter out trampoline symbols if we also found an external
1633 function of the same name.
1634
ed6a896c
JB
16352020-09-13 Joel Brobecker <brobecker@adacore.com>
1636
1637 * NEWS: Create a new section for the next release branch.
1638 Rename the section of the current branch, now that it has
1639 been cut.
1640
32aea73e
JB
16412020-09-13 Joel Brobecker <brobecker@adacore.com>
1642
1643 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1644 * version.in: Bump version to 11.0.50.DATE-git.
1645
8087c3fa
JB
16462020-09-12 Joel Brobecker <brobecker@adacore.com>
1647
1648 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1649
2a67f09d
FW
16502020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1651 Felix Willgerodt <Felix.Willgerodt@intel.com>
1652
1653 * gdbarch.sh: Added bfloat16 type.
1654 * gdbarch.c: Regenerated.
1655 * gdbarch.h: Regenerated.
1656 * gdbtypes.c (floatformats_bfloat16): New struct.
1657 (gdbtypes_post_init): Add builtin_bfloat16.
1658 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1659 (floatformats_bfloat16): New struct.
1660 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1661 (i386_ymm_type): Add field "v16_bfloat16"
1662 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1663 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1664 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1665 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1666 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1667 * features/i386/64bit-avx512.c: Regenerated.
1668 * features/i386/64bit-sse.xml: Add bfloat16 type.
1669 * features/i386/64bit-sse.c: Regenerated.
1670
1347d111
FW
16712020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1672
1673 * i386-tdep.c (i386_zmm_type): Fix field names.
1674 (i386_ymm_type): Fix field names.
1675
7a4e8e7d
TBA
16762020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1677
1678 * breakpoint.c: Fix typo in the help message of the
1679 "set breakpoint condition-evaluation" command.
1680
cf4ac4be
KR
16812020-09-10 Kamil Rytarowski <n54@gmx.com>
1682
1683 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1684 * (nbsd_nat_target::pid_to_exec_file)
1685 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1686 (nbsd_nat_target::post_startup_inferior)
1687 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1688 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1689 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1690 * (nbsd_thread_lister): Remove.
1691
f404573e
KR
16922020-09-10 Kamil Rytarowski <n54@gmx.com>
1693
1694 * fork-inferior.c (startup_inferior): Avoid double free.
1695
1ccb2c17
KR
16962020-09-10 Kamil Rytarowski <n54@gmx.com>
1697
1698 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1699 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1700
feedfcc7
KR
17012020-09-10 Kamil Rytarowski <n54@gmx.com>
1702
1703 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1704 * netbsd-nat.c: Include <sys/ptrace.h>.
1705 * (netbsd_nat::enable_proc_events): Add.
1706
c489f8c6
KR
17072020-09-10 Kamil Rytarowski <n54@gmx.com>
1708
1709 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1710 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1711 (netbsd_nat::for_each_thread): Add.
1712 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1713 "gdbsupport/common-debug.h".
1714 * (netbsd_nat::netbsd_thread_lister)
1715 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1716 (netbsd_nat::for_each_thread): Add.
1717
330662f6
KR
17182020-09-10 Kamil Rytarowski <n54@gmx.com>
1719
1720 * netbsd-nat.h: Include <unistd.h>.
1721 * (netbsd_nat::pid_to_exec_file): Add.
1722 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1723 * (netbsd_nat::pid_to_exec_file) Add.
1724
70b67307
KR
17252020-09-10 Kamil Rytarowski <n54@gmx.com>
1726
1727 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1728
99cf6da6
KR
17292020-09-10 Kamil Rytarowski <n54@gmx.com>
1730
1731 * netbsd-nat.h: New file.
1732 * netbsd-nat.c: Likewise.
1733
1b788fb6
TT
17342020-09-09 Tom Tromey <tromey@adacore.com>
1735
1736 * ada-lang.c (remove_extra_symbols): Do not increment when
1737 removing an element
1738
03b0a45f
TT
17392020-09-08 Tom Tromey <tromey@adacore.com>
1740
1741 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1742
3cae4447
TT
17432020-09-08 Tom Tromey <tromey@adacore.com>
1744
1745 PR win32/25302:
1746 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1747 (gdb_bfd_init_data): New function.
1748 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1749
7f08fd51
TBA
17502020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1751
1752 * infrun.c (fetch_inferior_event): Use
1753 `switch_to_target_no_thread` to switch the target.
1754
3e6ff933
TT
17552020-09-06 Tom Tromey <tom@tromey.com>
1756
1757 * symfile.h (dwarf2_free_objfile): Don't declare.
1758
e56798df
AKS
17592020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1760
1761 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1762 to match 16 byte real/complex type generated by Flang compiler.
1763
8f5c6526
TV
17642020-09-03 Tom de Vries <tdevries@suse.de>
1765
1766 PR breakpoint/26546
1767 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1768 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1769
c5065df0
SM
17702020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1771
1772 * maint.c (index_digits): New function.
1773 (struct maint_print_section_data): Remove.
1774 (print_bfd_section_info): Remove print_data parameter, add arg
1775 and index_digits.
1776 (print_objfile_section_info): Likewise.
1777 (print_bfd_section_info_maybe_relocated): Likewise (plus
1778 objfile).
1779 (maintenance_info_sections): Adjust calls.
1780
02c6f3f1
TT
17812020-09-02 Tom Tromey <tromey@adacore.com>
1782
1783 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1784 for null pointers.
1785 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1786
ef5e5b0b
SM
17872020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1788
1789 * bcache.h (struct bcache) <insert>: Change type of `added` to
1790 pointer to bool.
1791 * bcache.c (bcache::insert): Likewise.
1792 * gdbtypes.c (check_types_worklist): Adjust.
1793 * psymtab.c (add_psymbol_to_bcache): Adjust.
1794
973695d6
KB
17952020-08-31 Kevin Buettner <kevinb@redhat.com>
1796
1797 * corelow.c (unordered_set): Include.
1798 (class core_target): Add field 'm_core_unavailable_mappings'.
1799 (core_target::build_file_mappings): Print only one warning
1800 per inaccessible file. Add unavailable/broken mappings
1801 to m_core_unavailable_mappings.
1802 (core_target::xfer_partial): Call...
1803 (core_target::xfer_memory_via_mappings): New method.
1804
264fc0e2
SM
18052020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1806
1807 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1808 type to bool.
1809
2de01bdb
SM
18102020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1811
1812 * dwarf2/read.c (struct field_info): Fix indentation.
1813
f3bd50f1
SM
18142020-08-31 Simon Marchi <simon.marchi@efficios.com>
1815
1816 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1817 ordering in comment.
1818 * frame.c (frame_id_eq): Fix indentation.
1819
22b9b4b0
SL
18202020-08-31 Scott Linder <scott@scottlinder.com>
1821 Simon Marchi <simon.marchi@efficios.com>
1822
1823 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1824 inline frame ids in outer frame.
1825
84154d16
SM
18262020-08-31 Simon Marchi <simon.marchi@efficios.com>
1827
1828 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1829 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1830 (outer_frame_id): Use FID_STACK_OUTER instead of
1831 FID_STACK_INVALID.
1832 (frame_id_p): Don't check for outer_frame_id.
1833
8efaf6b3
SM
18342020-08-31 Simon Marchi <simon.marchi@efficios.com>
1835
1836 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1837 regnum/frame in value. Call allocate_value_lazy.
1838 * frame.c (frame_unwind_register_value): Use
1839 val_print_not_saved.
1840
fe1fe7ea
SM
18412020-08-31 Simon Marchi <simon.marchi@efficios.com>
1842
1843 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1844
f7c7700d
PA
18452020-08-29 Pedro Alves <pedro@palves.net>
1846
1847 * progspace.c (print_program_space): Use all_inferiors. Switch to
1848 the inferior before calling target_pid_to_str.
1849
e0814aae
TT
18502020-08-28 Tom Tromey <tom@tromey.com>
1851
1852 * xcoffread.c (xcoff_end_psymtab): Update comment.
1853 * dbxread.c (dbx_end_psymtab): Update comment.
1854
626d2320
TV
18552020-08-28 Tom de Vries <tdevries@suse.de>
1856
1857 PR breakpoint/26544
1858 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1859 event_location.
1860 (create_breakpoint): Same.
1861 (base_breakpoint_decode_location): Same.
1862 (bkpt_create_sals_from_location): Same.
1863 (bkpt_decode_location): Same.
1864 (bkpt_probe_create_sals_from_location): Same.
1865 (bkpt_probe_decode_location): Same.
1866 (tracepoint_create_sals_from_location): Same.
1867 (tracepoint_decode_location): Same.
1868 (tracepoint_probe_decode_location): Same.
1869 (strace_marker_create_sals_from_location): Same.
1870 (strace_marker_decode_location): Same.
1871 (create_sals_from_location_default): Same.
1872 (decode_location_default): Same.
1873 * breakpoint.h (struct breakpoint_ops): Same.
1874 (create_breakpoint): Same.
1875 * linespec.h (decode_line_full): Same.
1876 * linespec.c (decode_line_full): Same. Throw error if
1877 result.size () == 0.
1878
df631783
PA
18792020-08-27 Pedro Alves <pedro@palves.net>
1880
1881 PR gdb/26524
1882 * breakpoint.c (until_break_fsm) <location_breakpoint,
1883 caller_breakpoint>: Delete fields.
1884 <breakpoints>: New field.
1885 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1886 two individual breakpoints.
1887 (until_break_fsm::should_stop): Loop over breakpoints in the
1888 breakpoint vector.
1889 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1890 vector.
1891 (until_break_command): Handle location expanding into multiple
1892 sals.
1893
b2b38aa4
PA
18942020-08-27 Pedro Alves <pedro@palves.net>
1895
1896 PR gdb/26523
1897 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1898 bp_until breakpoints user-specified locations. Update intro
1899 comment.
1900
b886559f
SM
19012020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1902
1903 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1904 gdb_bfd_sections): New.
1905 * maint.c (print_bfd_section_info): Change param type to
1906 maint_print_section_data.
1907 (print_objfile_section_info): Likewise.
1908 (print_bfd_section_info_maybe_relocated): Likewise.
1909 (maintenance_info_sections): Use gdb_bfd_sections.
1910
4c6e63bf
SV
19112020-08-25 Shahab Vahedi <shahab@synopsys.com>
1912
1913 * MAINTAINERS: Add ARC target and maintainer.
1914
8d7f0635
AK
19152020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1916
1917 * configure.tgt: ARC support for GNU/Linux.
1918 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1919 * arc-linux-tdep.c: New file.
1920 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1921 * arc-tdep.c (arc_write_pc): Use it.
1922
fdd8731b
SV
19232020-08-25 Shahab Vahedi <shahab@synopsys.com>
1924
1925 * arc-tdep.c (arc_check_for_hardware_loop): New.
1926 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1927
22459524
SV
19282020-08-25 Shahab Vahedi <shahab@synopsys.com>
1929
1930 * arc-tdep.h: Include "gdbarch.h".
1931
995d3a19
SV
19322020-08-25 Shahab Vahedi <shahab@synopsys.com>
1933
1934 * arch/arc.h
1935 (arc_gdbarch_features): New class to stir the selection of target XML.
1936 (arc_create_target_description): Use FEATURES to choose XML target.
1937 (arc_lookup_target_description): Use arc_create_target_description
1938 to create _new_ target descriptions or return the already created
1939 ones if the FEATURES is the same.
1940 * arch/arc.c: Implementation of prototypes described above.
1941 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1942 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1943 * arc-tdep.c (*_feature_name): Make feature names consistent.
1944 (arc_register_feature): A new struct to hold information about
1945 registers of a particular target/feature.
1946 (arc_check_tdesc_feature): Check if XML provides registers in
1947 compliance with ARC_REGISTER_FEATURE structs.
1948 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1949 (determine_*_reg_feature_set): Which feature name to look for.
1950 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1951 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1952 to expected ISA enums to be used in arc_gdbarch_features structs.
1953 * features/Makefile (FEATURE_XMLFILES): Add new files.
1954 * gdb/features/arc/v1-aux.c: New file.
1955 * gdb/features/arc/v1-aux.xml: Likewise.
1956 * gdb/features/arc/v1-core.c: Likewise.
1957 * gdb/features/arc/v1-core.xml: Likewise.
1958 * gdb/features/arc/v2-aux.c: Likewise.
1959 * gdb/features/arc/v2-aux.xml: Likewise.
1960 * gdb/features/arc/v2-core.c: Likewise.
1961 * gdb/features/arc/v2-core.xml: Likewise.
1962 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1963
3945d2d7
GM
19642020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1965 Andrew Burgess <andrew.burgess@embecosm.com>
1966
1967 PR m2/26372
fc5d6901 1968 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
1969 an assert. Remove single element array indexing pattern as the
1970 MULTI_SUBSCRIPT support will handle this case too.
1971
2677f2d3
SM
19722020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1973
1974 * value.h (valprint_check_validity): Move declaration from
1975 here...
1976 * valprint.h (valprint_check_validity): ... to here.
1977
c426fddb
SM
19782020-08-24 Simon Marchi <simon.marchi@efficios.com>
1979
1980 * debug.h: New file.
1981 * debug.c (debug_prefixed_vprintf): New function.
1982 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1983 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1984
1eb8556f
SM
19852020-08-24 Simon Marchi <simon.marchi@efficios.com>
1986
1987 * infrun.h (infrun_debug_printf_1): New function declaration.
1988 (infrun_debug_printf): New macro.
1989 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1990 throughout.
1991 (infrun_debug_printf): New function.
1992 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1993 (handle_jit_event): Likewise.
1994
b8fff44e
MW
19952020-08-21 Mark Wielaard <mark@klomp.org>
1996
1997 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1998
d19c3068
SM
19992020-08-22 Simon Marchi <simon.marchi@efficios.com>
2000
2001 * frame.c (enum class frame_id_status): New.
2002 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2003 (fprintf_frame): Update.
2004 (compute_frame_id): Set frame id status to "computing" on entry.
2005 Set it back to "not_computed" on failure and to "computed" on
2006 success.
2007 (get_frame_id): Assert the frame id is not being computed.
2008 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2009 (create_new_frame): Likewise.
2010 (frame_cleanup_after_sniffer): Update assert.
2011
b70e516e
SM
20122020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2013
2014 * regcache.c (pid_ptid_regcache_map): New type.
2015 (target_ptid_regcache_map): Remove.
2016 (target_pid_ptid_regcache_map): New type.
2017 (regcaches): Change type to target_pid_ptid_regcache_map.
2018 (get_thread_arch_aspace_regcache): Update.
2019 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2020 case.
2021 (regcaches_size): Update.
2022 (regcache_count): Update.
2023 (registers_changed_ptid_target_pid_test): New.
2024 (_initialize_regcache): Register new test.
2025
cdd9148a
SM
20262020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2027
2028 * regcache.c (regcache_count): New.
2029 (struct regcache_test_data): New.
2030 (regcache_test_data_up): New.
2031 (populate_regcaches_for_test): New.
2032 (regcaches_test): Remove.
2033 (get_thread_arch_aspace_regcache_test): New.
2034 (registers_changed_ptid_all_test): New.
2035 (registers_changed_ptid_target_test): New.
2036 (registers_changed_ptid_target_ptid_test): New.
2037 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2038 (_initialize_regcache): Register new tests.
2039
dd125343
SM
20402020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2041
2042 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2043 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2044 gdbarch and aspace parameter. Use current inferior's aspace.
2045 Validate regcache's arch value.
2046 (regcaches_test): Update.
2047
3ee93972
SM
20482020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2049
2050 * regcache.c (regcaches_test): Call registers_changed.
2051
33bf4c5c
TBA
20522020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2053
2054 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2055
c2fd7fae
AKS
20562020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2057
2058 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2059 to find the end of prologue for flang compiled binaries.
2060 * arm-tdep.c (arm_skip_prologue): Likewise.
2061 * i386-tdep.c (i386_skip_prologue): Likewise.
2062 * producer.c (producer_is_llvm): New function.
2063 (producer_parsing_tests): Added new tests for clang/flang.
2064 * producer.h (producer_is_llvm): New declaration.
2065
9327494e
SM
20662020-08-18 Simon Marchi <simon.marchi@efficios.com>
2067
2068 * linux-nat.c (linux_nat_debug_printf): New function.
2069 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2070
d138725a
AM
20712020-08-18 Aaron Merey <amerey@redhat.com>
2072
2073 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2074 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2075 (CLIBS): Add DEBUGINFOD_LIBS.
2076
f9b11e6b
ST
20772020-08-17 Sergei Trofimovich <siarheit@google.com>
2078
2079 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2080 'gdbarch_num_regs'.
2081
3ae7ab99
TT
20822020-08-17 Tom Tromey <tromey@adacore.com>
2083
2084 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2085 ada_get_decoded_value returns NULL.
2086
b017825f
TT
20872020-08-17 Tom Tromey <tromey@adacore.com>
2088
2089 * python/py-inferior.c (infpy_search_memory): Use
2090 gdb_py_object_from_ulongest.
2091 * python/py-infevents.c (create_inferior_call_event_object)
2092 (create_memory_changed_event_object): Use
2093 gdb_py_object_from_ulongest.
2094 * python/py-linetable.c (ltpy_entry_get_pc): Use
2095 gdb_py_object_from_ulongest.
2096
7635cf79
SM
20972020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2098
2099 * loc.c (class symbol_needs_eval_context): Fix indentation.
2100
f54be24b
SM
21012020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2102
2103 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2104 bool.
2105
53d5a2a5
TV
21062020-08-17 Tom de Vries <tdevries@suse.de>
2107
2108 PR gdb/26393
2109 * gdbtypes.c (dump_dynamic_prop): New function.
2110 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2111
547ce8f0
TV
21122020-08-15 Tom de Vries <tdevries@suse.de>
2113
2114 PR backtrace/26390
2115 * stack.c (print_frame_args): Temporarily set the selected
2116 frame to FRAME while printing the frame's arguments.
2117
6ea815e7
PFC
21182020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2119
2120 PR breakpoints/26385
2121 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2122 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2123
6e562fa3
PFC
21242020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2125
2126 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2127 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2128 and >= to check return value instead of == -1 and != -1.
2129
d369b608
SM
21302020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2131
2132 * utils.h (class gdb_argv) <as_array_view>: New method.
2133 * utils.c (gdb_argv_as_array_view_test): New.
2134 (_initialize_utils): Register selftest.
2135 * maint.c (maintenance_selftest): Use the new method.
2136
b31488a3
KR
21372020-08-13 Kamil Rytarowski <n54@gmx.com>
2138
2139 * target.h (supports_dumpcore, dumpcore): New
2140 function declarations.
2141 * target.c (supports_dumpcore, dumpcore): New
2142 functions.
2143 * target-delegates.c: Rebuild.
2144 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2145 and target_dumpcore ().
2146
002a3166
AM
21472020-08-13 Aaron Merey <amerey@redhat.com>
2148
2149 * debuginfod-support.c: Replace global variables with user_data.
2150
ece5bc8a
SM
21512020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2152
2153 * maint.c (maintenance_selftest): Split args and pass array_view
2154 to run_tests.
2155
6d8a0a5e
LM
21562020-08-12 Luis Machado <luis.machado@linaro.org>
2157
2158 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2159 type's length.
2160 Use %s and pulongest to print the length.
2161
7cf663a9
PA
21622020-08-12 Pedro Alves <palves@redhat.com>
2163
2164 * NEWS: Move "Multi-target debugging support" item to the
2165 "Changes since GDB 9" section.
2166
27c7b875
PA
21672020-08-12 Pedro Alves <palves@redhat.com>
2168
2169 PR gdb/26336
2170 * progspace.c (program_space::remove_objfile): Invalidate the
2171 frame cache.
2172
1796a2a1
TV
21732020-08-11 Tom de Vries <tdevries@suse.de>
2174
2175 * MAINTAINERS: Mark ms1 as deleted.
2176
f8e3fe0d
LM
21772020-08-10 Luis Machado <luis.machado@linaro.org>
2178
2179 PR gdb/26310
2180
2181 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2182 act accordingly.
2183 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2184 movz/str/stur/stp skipping behavior.
2185
cc308722
LM
21862020-08-10 Luis Machado <luis.machado@linaro.org>
2187
2188 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2189 struct user_sve_header instead of struct sve_context.
2190
041d9819
SM
21912020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2192
2193 * read.h (dwarf2_fetch_die_loc_sect_off,
2194 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2195 `void *` parameter with function_view.
2196 * read.c (dwarf2_fetch_die_loc_sect_off,
2197 dwarf2_fetch_die_loc_cu_off): Likewise.
2198 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2199 (per_cu_dwarf_call): Adjust.
2200 (get_frame_address_in_block_wrapper): Remove.
2201 (indirect_synthetic_pointer): Adjust.
2202 (get_ax_pc): Remove.
2203 (dwarf2_compile_expr_to_ax): Adjust.
2204
38f8aa06
TV
22052020-08-08 Tom de Vries <tdevries@suse.de>
2206
2207 PR build/26344
2208 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2209 constructor.
2210 * regcache.c (get_thread_arch_aspace_regcache): Same.
2211
a52b3ae2
TT
22122020-08-07 Tom Tromey <tromey@adacore.com>
2213
2214 * ravenscar-thread.c
2215 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2216 New method.
2217 (ravenscar_thread_target::wait): Check
2218 runtime_initialized.
2219 (ravenscar_thread_target::prepare_to_store)
2220 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2221 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2222 (ravenscar_thread_target::stopped_by_watchpoint)
2223 (ravenscar_thread_target::stopped_data_address)
2224 (ravenscar_thread_target::core_of_thread): Use
2225 scoped_restore_current_thread and
2226 set_base_thread_from_ravenscar_task.
2227
0e29517d
TT
22282020-08-07 Tom Tromey <tromey@adacore.com>
2229
2230 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2231
592f9bd7
TT
22322020-08-07 Tom Tromey <tromey@adacore.com>
2233
2234 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2235 update_inferior_ptid before update_thread_list.
2236 (temporarily_change_regcache_ptid): New class.
2237 (ravenscar_thread_target::fetch_registers)
2238 (ravenscar_thread_target::store_registers)
2239 (ravenscar_thread_target::prepare_to_store): Use base thread when
2240 forwarding operation.
2241
39e2018a
TT
22422020-08-07 Tom Tromey <tromey@adacore.com>
2243
2244 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2245 "is_pid" case.
2246
2080266b
TT
22472020-08-07 Tom Tromey <tromey@adacore.com>
2248
2249 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2250 New methods.
2251 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2252 first.
2253 (ravenscar_thread_target::add_thread): Rename from
2254 ravenscar_add_thread.
2255 (ravenscar_thread_target::update_thread_list): Use a lambda.
2256 (ravenscar_thread_target::xfer_partial): New method.
2257
78c02f21
TT
22582020-08-07 Tom Tromey <tromey@adacore.com>
2259
2260 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2261 gdb::function_view.
2262 (iterate_over_live_ada_tasks): Change type of argument.
2263 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2264 of argument.
2265
d5d833af
TT
22662020-08-07 Tom Tromey <tromey@adacore.com>
2267
2268 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2269 Remove.
2270 (ravenscar_thread_target::extra_thread_info): Remove.
2271 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2272 defer to target beneath for non-Ravenscar threads.
2273
a8ac85bb
TT
22742020-08-07 Tom Tromey <tromey@adacore.com>
2275
2276 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2277 get_base_thread_from_ravenscar_task>: Now methods.
2278 <m_cpu_map>: New member.
2279 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2280 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2281 (ravenscar_thread_target::task_is_currently_active): Update.
2282 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2283 Now a method.
2284 (ravenscar_thread_target::add_active_thread): Put initial thread
2285 into the m_cpu_map.
2286
550ab58d
TT
22872020-08-07 Tom Tromey <tromey@adacore.com>
2288
2289 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2290 event_ptid.
2291
e9546579
TT
22922020-08-07 Tom Tromey <tromey@adacore.com>
2293
2294 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2295 runtime_initialized.
2296
3d4470e5
TT
22972020-08-07 Tom Tromey <tromey@adacore.com>
2298
2299 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2300 add_active_thread.
2301 (ravenscar_thread_target::add_active_thread): Now public.
2302 (ravenscar_inferior_created): Call add_active_thread after pushing
2303 the target.
2304
888bdb2b
SM
23052020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2306
2307 * regcache.c (ptid_regcache_map): New type.
2308 (target_ptid_regcache_map): New type.
2309 (regcaches): Change type to target_ptid_regcache_map.
2310 (get_thread_arch_aspace_regcache): Update to regcaches' new
2311 type.
2312 (regcache_thread_ptid_changed): Likewise.
2313 (registers_changed_ptid): Likewise.
2314 (regcaches_size): Likewise.
2315 (regcaches_test): Update.
2316 (regcache_thread_ptid_changed): Update.
2317 * regcache.h (regcache_up): New type.
2318 * gdbsupport/ptid.h (hash_ptid): New struct.
2319
b161a60d
SM
23202020-08-07 Simon Marchi <simon.marchi@efficios.com>
2321
2322 * observable.h (thread_ptid_changed): Add parameter
2323 `process_stratum_target *`.
2324 * infrun.c (infrun_thread_ptid_changed): Add parameter
2325 `process_stratum_target *` and use it.
2326 (selftests): New namespace.
2327 (infrun_thread_ptid_changed): New function.
2328 (_initialize_infrun): Register selftest.
2329 * regcache.c (regcache_thread_ptid_changed): Add parameter
2330 `process_stratum_target *` and use it.
2331 (regcache_thread_ptid_changed): New function.
2332 (_initialize_regcache): Register selftest.
2333 * thread.c (thread_change_ptid): Pass target to
2334 thread_ptid_changed observable.
2335
d2854d8d
CT
23362020-08-06 Caroline Tice <cmtice@google.com>
2337
fe4c3d43
SM
2338 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2339 (struct dwp_sections): Update field comments. Add loclists and
2340 rnglists fields.
2341 (struct virtual_v2_dwo_sections): Rename struct to
2342 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2343 size & offset fields for loclists and rnglists.
2344 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2345 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2346 skipping dummy type units.
2347 (create_dwp_hash_table): Update the large comment above the function to
2348 discuss Version 5 DWP files as well, with references. Update all the
2349 version checks in the function to check for version 5 as well. Add new
2350 section at the end to create dwp hash table for version 5.
2351 (create_dwp_v2_section): Rename function to
2352 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2353 Add V5 to error message text.
2354 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2355 into calls to create_dwp_v2_or_v5_section.
2356 (create_dwo_unit_in_dwp_v5): New function.
2357 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2358 check for version2; add else clause to handle version 5.
2359 (open_and_init_dwo_file): Add code to check dwarf version & only call
2360 create_debug_types_hash_table (with sections.types) if version is not 5;
2361 else call create_debug_type_hash_table, with sections.info.
2362 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2363 version 5.
2364 (dwarf2_locate_v5_dwp_sections): New function.
2365 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2366 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2367
159ed7d9
SM
23682020-08-06 Simon Marchi <simon.marchi@efficios.com>
2369
2370 * regcache.h (class regcache): Remove friend
2371 registers_changed_ptid.
2372 <regcache_thread_ptid_changed>: Remove.
2373 <regcaches>: Remove.
2374 * regcache.c (regcache::regcaches): Rename to...
2375 (regcaches): ... this. Make static.
2376 (get_thread_arch_aspace_regcache): Update.
2377 (regcache::regcache_thread_ptid_changed): Rename to...
2378 (regcache_thread_ptid_changed): ... this. Update.
2379 (class regcache_access): Remove.
2380 (regcaches_test): Update.
2381 (_initialize_regcache): Update.
2382 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2383 <forward_list>.
2384
174981ae
SM
23852020-08-06 Simon Marchi <simon.marchi@efficios.com>
2386
2387 * regcache.h (class regcache) <current_regcache>: Rename to...
2388 <regcaches>: ... this. Move doc here.
2389 * regcache.c (regcache::current_regcache) Rename to...
2390 (regcache::regcaches): ... this. Move doc to header.
2391 (get_thread_arch_aspace_regcache): Update.
2392 (regcache::regcache_thread_ptid_changed): Update.
2393 (registers_changed_ptid): Update.
2394 (class regcache_access) <current_regcache_size>: Rename to...
2395 <regcaches_size>: ... this.
2396 (current_regcache_test): Rename to...
2397 (regcaches_test): ... this.
2398 (_initialize_regcache): Update.
2399
ed908db6
VC
24002020-08-06 Victor Collod <vcollod@nvidia.com>
2401
2402 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2403
b5582ab7
KB
24042020-08-05 Kevin Buettner <kevinb@redhat.com>
2405
2406 * corelow.c (core_target::build_file_mappings): Don't output
2407 null pathname in warning.
2408
ea946b86
SM
24092020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2410
2411 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2412 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2413 gdb.dwarf2/dw2-single-line-discriminators.exp,
2414 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2415
57d02173
TT
24162020-08-05 Tom Tromey <tromey@adacore.com>
2417
2418 PR rust/26197:
2419 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2420 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2421 Fix off-by-one and type size errors in ordinary case.
2422
5555c86d
TV
24232020-08-05 Tom de Vries <tdevries@suse.de>
2424
2425 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2426 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2427
97916bfe
SM
24282020-08-04 Simon Marchi <simon.marchi@efficios.com>
2429
2430 * frame.h (frame_id_p): Return bool.
2431 (frame_id_artificial_p): Return bool.
2432 (frame_id_eq): Return bool.
2433 (has_stack_frames): Return bool.
2434 (get_selected_frame): Fix typo in comment.
2435 (get_frame_pc_if_available): Return bool.
2436 (get_frame_address_in_block_if_available): Return bool.
2437 (get_frame_func_if_available): Return bool.
2438 (read_frame_register_unsigned): Return bool.
2439 (get_frame_register_bytes): Return bool.
2440 (safe_frame_unwind_memory): Return bool.
2441 (deprecated_frame_register_read): Return bool.
2442 (frame_unwinder_is): Return bool.
2443 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2444 bool.
2445 <this_id::p>: Likewise.
2446 <prev_p>: Likewise.
2447 (frame_stash_add): Return bool.
2448 (get_frame_id): Use bool.
2449 (frame_id_build_special) Use bool.
2450 (frame_id_build_unavailable_stack): Use bool.
2451 (frame_id_build): Use bool.
2452 (frame_id_p): Return bool, use true/false instead of 1/0.
2453 (frame_id_artificial_p): Likewise.
2454 (frame_id_eq): Likewise.
2455 (frame_id_inner): Likewise.
2456 (get_frame_func_if_available): Likewise.
2457 (read_frame_register_unsigned): Likewise.
2458 (deprecated_frame_register_read): Likewise.
2459 (get_frame_register_bytes): Likewise.
2460 (has_stack_frames): Likewise.
2461 (inside_main_func): Likewise.
2462 (inside_entry_func): Likewise.
2463 (get_frame_pc_if_available): Likewise.
2464 (get_frame_address_in_block_if_available): Likewise.
2465 (frame_unwinder_is): Likewise.
2466 (safe_frame_unwind_memory): Likewise.
2467 (frame_unwind_arch): Likewise.
2468
fedfee88
SM
24692020-08-04 Simon Marchi <simon.marchi@efficios.com>
2470
2471 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2472 type to cached_copy_status.
2473 (fprintf_frame): Adjust.
2474 (get_frame_func_if_available): Adjust.
2475 (frame_cleanup_after_sniffer): Adjust.
2476
6cfa9b59
MW
24772020-08-04 Mark Wielaard <mark@klomp.org>
2478
2479 * MAINTAINERS (Write After Approval): Update email address.
2480
66d6346b
SM
24812020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2482
2483 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2484 dynamic_prop::const_val.
2485
8a6d5e35
SM
24862020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2487
2488 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2489 dynamic_prop::kind.
2490
51d6067d
SM
24912020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2492
2493 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2494
b26e2ae7
JM
24952020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2496
2497 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2498
39791af2
JM
24992020-08-04 Weimin Pan <weimin.pan@oracle.com>
2500 Jose E. Marchesi <jose.marchesi@oracle.com>
2501
2502 * configure.tgt: Add entry for bpf-*-*.
2503 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2504 (ALLDEPFILES): Add bpf-tdep.c.
2505 * bpf-tdep.c: New file.
2506 * MAINTAINERS: Add bpf target and maintainer.
2507 * NEWS: Mention the support for the new target.
2508
521894aa
TV
25092020-08-04 Tom de Vries <tdevries@suse.de>
2510
2511 PR symtab/23270
2512 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2513 Error.
2514
5d6356e9
JB
25152020-08-03 John Baldwin <jhb@FreeBSD.org>
2516
2517 * syscalls/freebsd.xml: Regenerate.
2518
0cf82b81
JB
25192020-08-03 John Baldwin <jhb@FreeBSD.org>
2520
2521 * syscalls/update-freebsd.sh: Fix usage and year range.
2522
8f34b746
TV
25232020-08-03 Tom de Vries <tdevries@suse.de>
2524
2525 PR symtab/26333
2526 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2527 DW_LNE_lo_user/DW_LNE_hi_user range.
2528
5e500d33
SM
25292020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2530
2531 PR ada/26318
2532 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2533 kind.
2534
78319c15
TBA
25352020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2536
2537 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2538
4c55e970
TBA
25392020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2540
2541 * breakpoint.c (set_breakpoint_condition): Update the condition
2542 expressions after checking that the input condition string parses
2543 successfully and does not contain junk at the end.
2544
1e620590
TBA
25452020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2546
2547 * breakpoint.c (set_breakpoint_condition): Update the
2548 condition string after parsing the new condition successfully.
2549
c8693053
RO
25502020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2551
2552 * proc-api.c (_STRUCTURED_PROC): Don't define.
2553 * proc-events.c: Likewise.
2554 * proc-flags.c: Likewise.
2555 * proc-why.c: Likewise.
2556 * procfs.c: Likewise.
2557
2558 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2559 * configure, config.in: Regenerate.
2560
5a99adb8
TV
25612020-07-30 Tom de Vries <tdevries@suse.de>
2562
2563 PR build/26320
2564 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2565 m_red/m_green/m_blue in a union.
2566
8ba83e91
TV
25672020-07-29 Tom de Vries <tdevries@suse.de>
2568
2569 PR tdep/26280
2570 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2571
f75a0693
AB
25722020-07-28 Tom Tromey <tromey@adacore.com>
2573
2574 PR symtab/26270:
2575 * symtab.h (find_pc_partial_function_sym): Declare.
2576 * cli/cli-cmds.c (disassemble_command): Use
2577 find_pc_partial_function_sym. Check asm_demangle.
2578 * blockframe.c (cache_pc_function_sym): New global.
2579 (cache_pc_function_name): Remove.
2580 (clear_pc_function_cache): Update.
2581 (find_pc_partial_function_sym): New function, from
2582 find_pc_partial_function.
2583 (find_pc_partial_function): Rewrite using
2584 find_pc_partial_function_sym.
2585
16f3242c
TT
25862020-07-28 Tom Tromey <tromey@adacore.com>
2587
2588 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2589 help. Add usage.
2590
4888741a
TT
25912020-07-28 Tom Tromey <tromey@adacore.com>
2592
2593 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2594 <DW_OP_GNU_variable_value>: Cast to address type.
2595
4d46f402
KR
25962020-07-28 Kamil Rytarowski <n54@gmx.com>
2597
2598 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2599 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2600 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2601 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2602 (nbsd_get_siginfo_type): New.
2603 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2604 (_initialize_nbsd_tdep): New.
2605
d70f978b
L
26062020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2607
2608 PR binutils/26301
2609 * configure: Regenerated.
2610
377170fa
L
26112020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2612
2613 PR binutils/26301
2614 * configure: Regenerated.
2615
43d5901d
AB
26162020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2617
2618 * python/py-frame.c: Remove 'user-regs.h' include.
2619 (frapy_read_register): Rewrite to make use of
2620 gdbpy_parse_register_id.
2621 * python/py-registers.c (gdbpy_parse_register_id): New function,
2622 moved here from python/py-unwind.c. Updated the return type, and
2623 also accepts register descriptor objects.
2624 * python/py-unwind.c: Remove 'user-regs.h' include.
2625 (pyuw_parse_register_id): Moved to python/py-registers.c.
2626 (unwind_infopy_add_saved_register): Update to use
2627 gdbpy_parse_register_id.
2628 (pending_framepy_read_register): Likewise.
2629 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2630
14fa8fb3
AB
26312020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2632
2633 * python/py-registers.c: Add 'user-regs.h' include.
2634 (register_descriptor_iter_find): New function.
2635 (register_descriptor_iterator_object_methods): New static global
2636 methods array.
2637 (register_descriptor_iterator_object_type): Add pointer to methods
2638 array.
2639
ddce1758
JB
26402020-07-27 John Baldwin <jhb@FreeBSD.org>
2641
2642 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2643 for all architectures on FreeBSD 11.3 and later.
2644
a4089f52
TT
26452020-07-27 Tom Tromey <tromey@adacore.com>
2646
2647 * gcore.h (load_corefile): Don't declare.
2648
95420d30
TV
26492020-07-27 Tom de Vries <tdevries@suse.de>
2650
2651 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2652 * config.in: Regenerate.
2653 * configure: Regenerate.
2654
05a6b8c2
EZ
26552020-07-26 Eli Zaretskii <eliz@gnu.org>
2656
2657 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2658 ws2tcpip.h. When checking whether socklen_t type is defined, use
2659 ws2tcpip.h if it is available and sys/socket.h isn't.
2660 * configure: Regenerate.
2661 * config.in: Regenerate.
2662
e79eb02f
AB
26632020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2664
2665 PR fortran/23051
2666 PR fortran/26139
2667 * valops.c (value_ind): Pass address to
2668 readjust_indirect_value_type.
2669 * value.c (readjust_indirect_value_type): Make parameter
2670 non-const, and add extra address parameter. Resolve original type
2671 before using it.
2672 * value.h (readjust_indirect_value_type): Update function
2673 signature and comment.
2674
876518dd
TV
26752020-07-25 Tom de Vries <tdevries@suse.de>
2676
2677 PR symtab/26243
2678 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2679 entries.
2680
f6720b1c
AM
26812020-07-24 Aaron Merey <amerey@redhat.com>
2682
2683 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2684 * configure: Rebuild.
2685
513487e1
KB
26862020-07-23 Kevin Buettner <kevinb@redhat.com>
2687
2688 PR corefiles/26294
2689 * corelow.c (_initialize_corelow): Add period to help text
2690 for "maintenance print core-file-backed-mappings".
2691
e7bc9db8
PA
26922020-07-23 Pedro Alves <pedro@palves.net>
2693
2694 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2695 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2696 meanwhile.
2697 * frame.c (frame_cache_generation, get_frame_cache_generation):
2698 New.
2699 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2700 (get_prev_frame_if_no_cycle): On exception, don't touch
2701 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2702 * frame.h (get_frame_cache_generation): Declare.
2703
90fcc466
TV
27042020-07-23 Tom de Vries <tdevries@suse.de>
2705
2706 PR tui/26282
2707 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2708 New default constructor.
2709
78344df7
AB
27102020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2711
2712 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2713 exclude non-statement entries.
2714
b089853a
KB
27152020-07-22 Kevin Buettner <kevinb@redhat.com>
2716
2717 * NEWS (New commands): Mention new command
2718 "maintenance print core-file-backed-mappings".
2719
09c2f5d4
KB
27202020-07-22 Kevin Buettner <kevinb@redhat.com>
2721
2722 * corelow.c (gdbcmd.h): Include.
2723 (core_target::info_proc_mappings): New method.
2724 (get_current_core_target): New function.
2725 (maintenance_print_core_file_backed_mappings): New function.
2726 (_initialize_corelow): Add core-file-backed-mappings to
2727 "maint print" commands.
2728
9c5ec5c2 27292020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 2730
9c5ec5c2
KB
2731 * linux-tdep.c (dump_note_entry_p): New function.
2732 (linux_dump_mapping_p_ftype): New typedef.
2733 (linux_find_memory_regions_full): Add new parameter,
2734 should_dump_mapping_p.
2735 (linux_find_memory_regions): Adjust call to
2736 linux_find_memory_regions_full.
2737 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2738 call to linux_find_memory_regions_full.
2739
db082f59
KB
27402020-07-22 Kevin Buettner <kevinb@redhat.com>
2741
2742 * corelow.c (solist.h, unordered_map): Include.
2743 (class core_target): Add field m_core_file_mappings and
2744 method build_file_mappings.
2745 (core_target::core_target): Call build_file_mappings.
2746 (core_target::~core_target): Free memory associated with
2747 m_core_file_mappings.
2748 (core_target::build_file_mappings): New method.
2749 (core_target::xfer_partial): Use m_core_file_mappings
2750 for memory transfers.
2751 * linux-tdep.c (linux_read_core_file_mappings): New
2752 function.
2753 (linux_core_info_proc_mappings): Rewrite to use
2754 linux_read_core_file_mappings.
2755 (linux_init_abi): Register linux_read_core_file_mappings.
2756
7e183d27
KB
27572020-07-22 Kevin Buettner <kevinb@redhat.com>
2758
2759 * arch-utils.c (default_read_core_file_mappings): New function.
2760 * arch-utils.c (default_read_core_file_mappings): Declare.
2761 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2762 * gdbarch.h, gdbarch.c: Regenerate.
2763
2735d421
KB
27642020-07-22 Kevin Buettner <kevinb@redhat.com>
2765
2766 PR corefiles/25631
2767 * corelow.c (core_target:xfer_partial): Revise
2768 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2769 case after first checking the stratum beneath the core
2770 target.
2771 (has_all_memory): Return true.
2772 * target.c (raw_memory_xfer_partial): Revise comment
2773 regarding use of has_all_memory.
2774
e56cb451
KB
27752020-07-22 Kevin Buettner <kevinb@redhat.com>
2776
2777 * exec.h (section_table_xfer_memory): Revise declaration,
2778 replacing section name parameter with an optional callback
2779 predicate.
2780 * exec.c (section_table_xfer_memory): Likewise.
2781 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2782 of section_table_xfer_memory.
2783
32fa152e
TT
27842020-07-22 Tom Tromey <tromey@adacore.com>
2785
2786 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2787 lookup_symbol_search_name.
2788
a67a1c41
AB
27892020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2790
2791 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2792 redundant local variable.
2793 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2794 reference, not pointer, update code accordingly.
2795
a7b4ff4f
SM
27962020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2797 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2798
2799 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2800 * jit.c (jit_breakpoint_re_set_internal): Use the
2801 `skip_jit_symbol_lookup` field.
2802
2340e834
SM
28032020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2804 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2805
2806 * jit.c (jit_read_descriptor): Define the descriptor address once,
2807 use twice.
2808 (jit_breakpoint_deleted): Move the declaration of the loop variable
2809 `iter` into the loop header.
2810 (jit_breakpoint_re_set_internal): Move the declaration of the local
2811 variable `objf_data` to the first point of definition.
2812 (jit_event_handler): Move the declaration of local variables
2813 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2814 Rename `objf` to `jited`.
2815
c1072906
SM
28162020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2817
2818 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2819 Remove.
2820 * jit.c (get_jiter_objfile_data): Update.
2821
c8474dc3
TBA
28222020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2823 Simon Marchi <simon.marchi@polymtl.ca>
2824
2825 * jit.c (struct jit_program_space_data): Remove.
2826 (jit_program_space_key): Remove.
2827 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2828 stuff.
2829 (get_jit_program_space_data): Remove.
2830 (jit_breakpoint_deleted): Iterate on all of the program space's
2831 objfiles.
2832 (jit_inferior_init): Likewise.
2833 (jit_breakpoint_re_set_internal): Likewise. Also change return
2834 type to void.
2835 (jit_breakpoint_re_set): Pass current_program_space to
2836 jit_breakpoint_re_set_internal.
2837
77208eb7
SM
28382020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2839
2840 * jit.h (struct jiter_objfile_data) <cached_code_address,
2841 jit_breakpoint>: Move to here from ...
2842 * jit.c (jit_program_space_data): ... here.
2843 (jiter_objfile_data::~jiter_objfile_data): Update.
2844 (jit_breakpoint_deleted): Update.
2845 (jit_breakpoint_re_set_internal): Update.
2846
8c1c720f
SM
28472020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2848
2849 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2850 checks.
2851 (jit_read_descriptor): Remove NULL check.
2852 (jit_event_handler): Add an assertion.
2853
0e74a041
SM
28542020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2855
2856 * jit.h (struct jit_objfile_data): Split into...
2857 (struct jiter_objfile_data): ... this ...
2858 (struct jited_objfile_data): ... and this.
2859 * objfiles.h (struct objfile) <jit_data>: Remove.
2860 <jiter_data, jited_data>: New fields.
2861 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2862 (jiter_objfile_data::~jiter_objfile_data): ... this.
2863 (get_jit_objfile_data): Rename to ...
2864 (get_jiter_objfile_data): ... this.
2865 (add_objfile_entry): Update.
2866 (jit_read_descriptor): Use get_jiter_objfile_data.
2867 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2868 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2869 (jit_inferior_exit_hook): Use objfile's jited_data field.
2870
238b5c9f
SM
28712020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2872
2873 * jit.h: Forward-declare `struct minimal_symbol`.
2874 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2875 constructor, destructor, and an objfile* field.
2876 * jit.c (jit_objfile_data): Remove.
2877 (struct jit_objfile_data): Migrate from here to jit.h.
2878 (jit_objfile_data::~jit_objfile_data): New destructor
2879 implementation with code moved from free_objfile_data.
2880 (free_objfile_data): Delete.
2881 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2882 (jit_find_objf_with_entry_addr): Ditto.
2883 (jit_inferior_exit_hook): Ditto.
2884 (_initialize_jit): Remove the call to
2885 register_objfile_data_with_cleanup.
2886 * objfiles.h (struct objfile) <jit_data>: New field.
2887
fe053b9e
TBA
28882020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2889
2890 * jit.h: Forward-declare `struct objfile`.
2891 (jit_event_handler): Add a second parameter, the JITer objfile.
2892 * jit.c (jit_read_descriptor): Change the signature to take the
2893 JITer objfile as an argument instead of the jit_program_space_data.
2894 (jit_inferior_init): Update the call to jit_read_descriptor.
2895 (jit_event_handler): Use the new JITer objfile argument when calling
2896 jit_read_descriptor.
2897 * breakpoint.c (handle_jit_event): Update the call to
2898 jit_event_handler to pass the JITer objfile.
2899
4cec0c66
JB
29002020-07-21 John Baldwin <jhb@FreeBSD.org>
2901
2902 * gdbarch.c: Regenerate.
2903 * gdbarch.h: Regenerate.
2904 * gdbarch.sh (handle_segmentation_fault): Remove method.
2905 * infrun.c (handle_segmentation_fault): Remove.
2906 (print_signal_received_reason): Remove call to
2907 handle_segmentation_fault.
2908
0e42f66a
JB
29092020-07-21 John Baldwin <jhb@FreeBSD.org>
2910
2911 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2912 Rename to sparc64_linux_report_signal_info and add siggnal
2913 argument.
2914 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2915 instead of sparc64_linux_handle_segmentation_fault.
2916
77bdfeb2
JB
29172020-07-21 John Baldwin <jhb@FreeBSD.org>
2918
2919 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2920 i386_linux_report_signal_info instead of
2921 i386_linux_handle_segmentation_fault.
2922 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2923 to i386_linux_report_signal_info and add siggnal argument.
2924 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2925 of i386_linux_handle_segmentation_fault.
2926 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2927 to i386_linux_report_signal_info and add siggnal argument.
2928
ad97bfc5
JB
29292020-07-21 John Baldwin <jhb@FreeBSD.org>
2930
2931 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2932 hook if present.
2933
272bb05c
JB
29342020-07-21 John Baldwin <jhb@FreeBSD.org>
2935
2936 * gdbarch.c: Regenerate.
2937 * gdbarch.h: Regenerate.
2938 * gdbarch.sh (report_signal_info): New method.
2939 * infrun.c (print_signal_received_reason): Invoke gdbarch
2940 report_signal_info hook if present.
2941
baf8791e
AB
29422020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2943
2944 * python/py-registers.c : Add 'unordered_map' include.
2945 (gdbpy_new_reggroup): Renamed to...
2946 (gdbpy_get_reggroup): ...this. Update to only create register
2947 group descriptors when needed.
2948 (gdbpy_reggroup_iter_next): Update.
2949
f7306dac
AB
29502020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2951
2952 * python/py-registers.c (gdbpy_register_object_data): New static
2953 global.
2954 (gdbpy_register_object_data_init): New function.
2955 (gdbpy_new_register_descriptor): Renamed to...
2956 (gdbpy_get_register_descriptor): ...this, and update to reuse
2957 existing register descriptors where possible.
2958 (gdbpy_register_descriptor_iter_next): Update.
2959 (gdbpy_initialize_registers): Register new gdbarch data.
2960
05c309a8
SM
29612020-07-21 Simon Marchi <simon.marchi@efficios.com>
2962
2963 * linux-nat.c (stopped_pids): Make static.
2964
d1fd641e
SM
29652020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2966
2967 PR ada/26235
2968 * gdbtypes.c (ada_discrete_type_low_bound,
2969 ada_discrete_type_high_bound): Handle undefined bounds.
2970
1de14d77
KR
29712020-07-21 Kamil Rytarowski <n54@gmx.com>
2972
2973 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2974 declaration.
2975 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2976 function.
2977
ed810cc7
JB
29782020-07-20 John Baldwin <jhb@FreeBSD.org>
2979
2980 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2981 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2982 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2983 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2984 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2985 method.
2986
ae5369e7
LC
29872020-07-20 Ludovic Courtès <ludo@gnu.org>
2988
2989 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2990 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2991 which are deprecated in Guile 3.0.
2992 * configure.ac (try_guile_versions): Add "guile-3.0".
2993 * configure (try_guile_versions): Regenerate.
2994 * NEWS: Update entry.
2995
68cf161c
LC
29962020-07-20 Ludovic Courtès <ludo@gnu.org>
2997 Doug Evans <dje@google.com>
2998
2999 PR gdb/21104
3000 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3001 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3002 USING_GUILE_BEFORE_2_2.
3003 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3004 Change type to 'scm_t_port_type *'.
3005 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3006 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3007 parameter and honor it. Update callers.
3008 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3009 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3010 functions.
3011 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3012 USING_GUILE_BEFORE_2_2.
3013 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3014 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3015 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3016 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3017 and 'SCM_PORT_TYPE'.
3018 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3019 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3020 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3021 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3022 [!USING_GUILE_BEFORE_2_2]: New functions.
3023 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3024 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3025 'gdbscm_memory_port_read'.
3026 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3027 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3028 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3029 function.
3030 (ioscm_init_memory_port): Remove.
3031 (ioscm_init_memory_port_stream): New function
3032 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3033 function.
3034 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3035 Return scm_from_uint (0).
3036 (gdbscm_set_memory_port_read_buffer_size_x)
3037 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3038 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3039 Return scm_from_uint (0).
3040 (gdbscm_set_memory_port_write_buffer_size_x)
3041 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3042 * configure.ac (try_guile_versions): Add "guile-2.2".
3043 * configure: Regenerate.
3044 * NEWS: Add entry.
3045
aee91db3
TT
30462020-07-18 Tom Tromey <tom@tromey.com>
3047
3048 * linux-nat.c (linux_multi_process): Remove.
3049 (linux_nat_target::supports_multi_process): Return true.
3050
0e267416
AB
30512020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3052
3053 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3054 (riscv_lookup_target_description): Return pointer out of
3055 unique_ptr.
3056 * target-descriptions.c (allocate_target_description): Add
3057 comment.
3058 (target_desc_deleter::operator()): Likewise.
3059 * target-descriptions.h (struct target_desc_deleter): Moved to
3060 gdbsupport/tdesc.h.
3061 (target_desc_up): Likewise.
3062
f80c8ec4
TT
30632020-07-17 Tom Tromey <tromey@adacore.com>
3064
3065 * linux-nat.c (linux_nat_target::supports_non_stop)
3066 (linux_nat_target::always_non_stop_p): Use "true".
3067 (linux_nat_target::supports_disable_randomization): Use "true" and
3068 "false".
3069
d0ce17d8
CT
30702020-07-16 Caroline Tice <cmtice@google.com>
3071
3072 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3073 (RNGLIST_HEADER_SIZE64): New constant definition.
3074 (struct dwop_section_names): Add rnglists_dwo.
3075 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3076 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3077 (struct dwo_sections): Add rnglists field.
3078 (read_attribut_reprocess): Add tag parameter.
3079 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3080 (cu_debug_rnglists_section): New function (decl & definition).
3081 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3082 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3083 die whose range is being checked; get rnglist section from
3084 cu_debug_rnglists_section, to get from either objfile or dwo file as
3085 appropriate. Add cases for DW_RLE_base_addressx,
3086 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3087 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3088 test inside if-condition and updating complaint message.
3089 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3090 dwarf2_rnglists_process.
3091 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3092 dwarf2_ranges_process.
3093 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3094 need_ranges_base and update comment appropriately. Also pass die tag
3095 to dwarf2_ranges_read.
3096 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3097 need_ranges_base and update comment appropriately. Also pass die tag
3098 to dwarf2_ranges_process.
3099 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3100 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3101 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3102 need_ranges_base and update comment appropriately. Also pass die tag
3103 to read_attribute_reprocess and dwarf2_ranges_read.
3104 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3105 and update function comment appropriately.
3106 (read_loclist_index): Call read_loclists_rnglists_header instead of
3107 read_loclist_header.
3108 (read_rnglist_index): New function.
3109 (read_attribute_reprocess): Add tag parameter. Add code for
3110 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3111 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3112
3dcc261c
AB
31132020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3114
3115 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3116 being resolved.
3117
ccb9eba6
AB
31182020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3119
3120 * arch-utils.c (show_architecture): Update formatting of messages.
3121
cf88be68
SM
31222020-07-12 Simon Marchi <simon.marchi@efficios.com>
3123
3124 * gdbtypes.h (struct type) <bounds>: Handle array and string
3125 types.
3126 * ada-lang.c (assign_aggregate): Use type::bounds on
3127 array/string type.
3128 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3129 * c-varobj.c (c_number_of_children): Likewise.
3130 (c_describe_child): Likewise.
3131 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3132 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3133 (f_type_print_base): Likewise.
3134 * f-valprint.c (f77_array_offset_tbl): Likewise.
3135 (f77_get_upperbound): Likewise.
3136 (f77_print_array_1): Likewise.
3137 * guile/scm-type.c (gdbscm_type_range): Likewise.
3138 * m2-typeprint.c (m2_array): Likewise.
3139 (m2_is_long_set_of_type): Likewise.
3140 * m2-valprint.c (get_long_set_bounds): Likewise.
3141 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3142 * python/py-type.c (typy_range): Likewise.
3143 * rust-lang.c (rust_internal_print_type): Likewise.
3144 * type-stack.c (type_stack::follow_types): Likewise.
3145 * valarith.c (value_subscripted_rvalue): Likewise.
3146 * valops.c (value_cast): Likewise.
3147
509971ae
SM
31482020-07-12 Simon Marchi <simon.marchi@efficios.com>
3149
3150 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3151 callers to use the equivalent accessor methods.
3152
107406b7
SM
31532020-07-12 Simon Marchi <simon.marchi@efficios.com>
3154
3155 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3156 (struct type) <bit_stride>: New method.
3157 (TYPE_BIT_STRIDE): Remove.
3158 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3159
bb789949
SM
31602020-07-12 Simon Marchi <simon.marchi@efficios.com>
3161
3162 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3163 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3164 callers to use the equivalent accessor methods instead.
3165
39498edb
SM
31662020-07-12 Simon Marchi <simon.marchi@efficios.com>
3167
3168 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3169 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3170 callers to use the equivalent accessor methods instead.
3171
3b606f38
SM
31722020-07-12 Simon Marchi <simon.marchi@efficios.com>
3173
3174 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3175 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3176 to use dynamic_prop::kind.
3177
064d9cb9
SM
31782020-07-12 Simon Marchi <simon.marchi@efficios.com>
3179
3180 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3181 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3182 to get the bound property's kind and check against
3183 PROP_UNDEFINED.
3184
5537ddd0
SM
31852020-07-12 Simon Marchi <simon.marchi@efficios.com>
3186
3187 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3188 all callers to use type::range_bounds followed by
3189 dynamic_prop::{low,high}.
3190
8c2e4e06
SM
31912020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3192
3193 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3194 const_val, set_const_val, baton, set_locexpr, set_loclist,
3195 set_addr_offset, variant_parts, set_variant_parts,
3196 original_type, set_original_type>: New methods.
3197 <kind>: Rename to...
3198 <m_kind>: ... this. Update all users to use the new methods
3199 instead.
3200 <data>: Rename to...
3201 <m_data>: ... this. Update all users to use the new methods
3202 instead.
3203
7c6f2712
SM
32042020-07-12 Simon Marchi <simon.marchi@efficios.com>
3205
3206 * gdbtypes.c (get_discrete_bounds): Return failure if
3207 the range type's bounds are not both defined and constant
3208 values.
3209 (get_array_bounds): Update comment. Remove undefined bound check.
3210
599088e3
SM
32112020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3212
3213 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3214 the type::bounds method directly.
3215
c4dfcb36
SM
32162020-07-12 Simon Marchi <simon.marchi@efficios.com>
3217
3218 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3219 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3220 are used to set the range type's bounds to use set_bounds.
3221
0a278aa7
PW
32222020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3223
3224 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3225
cce20f10
PA
32262020-07-10 Pedro Alves <pedro@palves.net>
3227
3228 * gdbthread.h (inferior_ref): Define.
3229 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3230 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3231 * thread.c
3232 (scoped_restore_current_thread::restore):
3233 Adjust to gdb::ref_ptr.
3234 (scoped_restore_current_thread::~scoped_restore_current_thread):
3235 Remove manual decref handling.
3236 (scoped_restore_current_thread::scoped_restore_current_thread):
3237 Adjust to use
3238 inferior_ref::new_reference/thread_info_ref::new_reference.
3239 Incref the thread before calling get_frame_id instead of after.
3240 Let TARGET_CLOSE_ERROR propagate.
3241
6d7aa592
PA
32422020-07-10 Pedro Alves <pedro@palves.net>
3243
3244 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3245 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3246 NOT_AVAILABLE_ERROR.
3247 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3248 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3249
b3e3a4c1
SM
32502020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3251 Pedro Alves <pedro@palves.net>
3252
3253 PR gdb/26199
3254 * infrun.c (threads_are_resumed_pending_p): Delete.
3255 (do_target_wait): Remove threads_are_executing and
3256 threads_are_resumed_pending_p checks from the inferior_matches
3257 lambda. Update comments.
3258
d6cc5d98
PA
32592020-07-10 Pedro Alves <pedro@palves.net>
3260
3261 PR gdb/26199
3262 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3263 executing threads.
3264
7d3badc6
PA
32652020-07-10 Pedro Alves <pedro@palves.net>
3266
3267 PR gdb/26199
3268 * infrun.c (handle_no_resumed): Handle multiple targets.
3269
42bd97a6
PA
32702020-07-10 Pedro Alves <pedro@palves.net>
3271
3272 PR gdb/26199
3273 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3274 target_is_async_p.
3275
43667cc6
PA
32762020-07-10 Pedro Alves <pedro@palves.net>
3277
3278 PR gdb/26199
3279 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3280 threads, not all threads.
3281
96118d11
PA
32822020-07-10 Pedro Alves <pedro@palves.net>
3283
3284 PR gdb/26199
3285 * remote.c (remote_target::open_1): Pass remote target pointer as
3286 data to create_async_event_handler.
3287 (remote_async_inferior_event_handler): Mark async event handler
3288 before returning if the remote target still has either pending
3289 events or unacknowledged notifications.
3290
54904d81
JB
32912020-07-10 John Baldwin <jhb@FreeBSD.org>
3292
3293 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3294 declaration.
3295 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3296 function.
3297
f37e5866
JB
32982020-07-09 John Baldwin <jhb@FreeBSD.org>
3299
3300 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3301 inferior_ptid.
3302
fc238d4a
JB
33032020-07-09 John Baldwin <jhb@FreeBSD.org>
3304
3305 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3306 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3307 AT_FREEBSD_PS_STRINGS.
3308
6e2469ff
HD
33092020-07-08 Hannes Domani <ssbssa@yahoo.de>
3310
3311 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3312 of debugfile path on Windows.
3313
d1076c41
JB
33142020-07-08 John Baldwin <jhb@FreeBSD.org>
3315
3316 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3317 argument to 'data'.
3318
15f3b077
TT
33192020-07-08 Tom Tromey <tromey@adacore.com>
3320
3321 * ada-lang.c (ada_exception_message_1): Use read_memory.
3322
9fc501fd
AB
33232020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3324
3325 PR python/22748
3326 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3327 special handling for inline frames.
3328 * findvar.c (value_of_register_lazy): Skip inline frames when
3329 creating lazy register values.
3330 * frame.c (frame_id_computed_p): Delete definition.
3331 * frame.h (frame_id_computed_p): Delete declaration.
3332
64cb3757
AB
33332020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3334
3335 * NEWS: Mention additions to Python API.
3336 * python/py-arch.c (archpy_register_groups): New function.
3337 (arch_object_methods): Add 'register_groups' method.
3338 * python/py-registers.c (reggroup_iterator_object): New struct.
3339 (reggroup_object): New struct.
3340 (gdbpy_new_reggroup): New function.
3341 (gdbpy_reggroup_to_string): New function.
3342 (gdbpy_reggroup_name): New function.
3343 (gdbpy_reggroup_iter): New function.
3344 (gdbpy_reggroup_iter_next): New function.
3345 (gdbpy_new_reggroup_iterator): New function
3346 (gdbpy_initialize_registers): Register new types.
3347 (reggroup_iterator_object_type): Define new Python type.
3348 (gdbpy_reggroup_getset): New static global.
3349 (reggroup_object_type): Define new Python type.
3350 * python/python-internal.h
3351
0f767f94
AB
33522020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3353
3354 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3355 * python/py-arch.c (archpy_registers): New function.
3356 (arch_object_methods): Add 'registers' method.
3357 * python/py-registers.c: New file.
3358 * python/python-internal.h
3359 (gdbpy_new_register_descriptor_iterator): Declare.
3360 (gdbpy_initialize_registers): Declare.
3361 * python/python.c (do_start_initialization): Call
3362 gdbpy_initialize_registers.
3363 * NEWS: Mention additions to the Python API.
3364
87dbc774
AB
33652020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3366
3367 * NEWS: Mention new Python API method.
3368 * python/py-unwind.c (pending_framepy_architecture): New function.
3369 (pending_frame_object_methods): Add architecture method.
3370
3bc98c0c
AB
33712020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3372
3373 * gdbarch.c: Regenerate.
3374 * gdbarch.h: Regenerate.
3375 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3376 (gdbarch_data): Use internal_error for the case where
3377 deprecated_set_gdbarch_data was originally needed.
3378 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3379 and use passed in obstack.
3380 (libunwind_frame_set_descr): Should no longer get back NULL from
3381 gdbarch_data.
3382 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3383 type.
3384 * user-regs.c (user_regs_init): Update parameters, and use passed
3385 in obstack.
3386 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3387 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3388
d8cc8af6
TV
33892020-07-06 Tom de Vries <tdevries@suse.de>
3390
3391 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3392 End-Of-Sequence in lte_is_less_than.
3393 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3394 "gdb: Don't reorder line table entries too much when sorting".
3395
947f7597
TV
33962020-07-06 Tom de Vries <tdevries@suse.de>
3397
3398 PR tui/26205
3399 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3400
1e7c1b22
TV
34012020-07-05 Tom de Vries <tdevries@suse.de>
3402
3403 PR build/26187
3404 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3405 std::uncaught_exceptions instead of deprecated
3406 std::uncaught_exception.
3407
a36158ec
SM
34082020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3409
3410 * macroexp.h (macro_stringify): Return
3411 gdb::unique_xmalloc_ptr<char>.
3412 * macroexp.c (macro_stringify): Likewise.
3413 * macrotab.c (fixup_definition): Update.
3414
14d960c8
SM
34152020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3416
3417 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3418 (lex_one_token): Update.
3419 * macroexp.c (struct macro_buffer) <release>: Return
3420 gdb::unique_xmalloc_ptr<char>.
3421 (macro_stringify): Update.
3422 (macro_expand): Update.
3423 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3424 * macroexp.h (macro_expand_next): Likewise.
3425
211d5b1c
SM
34262020-07-02 Simon Marchi <simon.marchi@efficios.com>
3427
3428 * macroexp.h (macro_lookup_ftype): Remove.
3429 (macro_expand, macro_expand_once, macro_expand_next): Remove
3430 lookup function parameters, add scope parameter.
3431 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3432 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3433 * macroscope.h (standard_macro_lookup): Change parameter type
3434 to macro_scope.
3435 * macroscope.c (standard_macro_lookup): Likewise.
3436 * c-exp.y (lex_one_token): Update.
3437 * macrocmd.c (macro_expand_command): Likewise.
3438 (macro_expand_once_command): Likewise.
3439
b1a35af2
SM
34402020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3441
3442 * inf-loop.c (inferior_event_handler): Remove client_data param.
3443 * inf-loop.h (inferior_event_handler): Likewise.
3444 * infcmd.c (step_1): Adjust.
3445 * infrun.c (proceed): Adjust.
3446 (fetch_inferior_event): Remove client_data param.
3447 (infrun_async_inferior_event_handler): Adjust.
3448 * infrun.h (fetch_inferior_event): Remove `void *` param.
3449 * linux-nat.c (handle_target_event): Adjust.
3450 * record-btrace.c (record_btrace_handle_async_inferior_event):
3451 Adjust.
3452 * record-full.c (record_full_async_inferior_event_handler):
3453 Adjust.
3454 * remote.c (remote_async_inferior_event_handler): Adjust.
3455
1cdf9e33
TT
34562020-07-01 Tom Tromey <tom@tromey.com>
3457
3458 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3459 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3460
32c1e210
TT
34612020-07-01 Tom Tromey <tom@tromey.com>
3462
3463 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3464 tui_gen_win_info.
3465 (tui_win_info::make_window): Merge with
3466 tui_gen_win_info::make_window.
3467 (tui_win_info::make_visible): Move from tui_gen_win_info.
3468 * tui/tui-win.c (tui_win_info::max_width): Move from
3469 tui_gen_win_info.
3470 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3471 type.
3472 <window_factory>: Likewise.
3473 * tui/tui-layout.c (tui_win_info::resize): Move from
3474 tui_gen_win_info.
3475 (make_standard_window): Change return type.
3476 (get_locator_window, tui_get_window_by_name): Likewise.
3477 (tui_layout_window::apply): Remove a cast.
3478 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3479 (struct tui_win_info): Merge with tui_gen_win_info.
3480 (struct tui_gen_win_info): Remove.
3481
a30cb6da
TT
34822020-07-01 Tom Tromey <tom@tromey.com>
3483
3484 * tui/tui-stack.h (struct tui_locator_window): Derive from
3485 tui_win_info.
3486 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3487 <can_box>: New method.
3488
1eb2161f
TT
34892020-07-01 Tom Tromey <tom@tromey.com>
3490
3491 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3492
7134f2eb
TT
34932020-07-01 Tom Tromey <tom@tromey.com>
3494
3495 * tui/tui-regs.c (tui_data_window::display_registers_from)
3496 (tui_data_window::display_registers_from)
3497 (tui_data_window::first_data_item_displayed)
3498 (tui_data_window::delete_data_content_windows): Update.
3499 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3500 Remove.
3501 (tui_data_window::check_register_values): Update.
3502 (tui_data_item_window::rerender): Add parameters. Update.
3503 (tui_data_item_window::refresh_window): Remove.
3504 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3505 virtual.
3506 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3507 tui_gen_win_info.
3508 <refresh_window, max_height, min_height>: Remove.
3509 <rerender>: Add parameters.
3510 <x, y, visible>: New members.
3511 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3512 <m_item_width>: New member.
3513
22b7b041
TT
35142020-07-01 Tom Tromey <tom@tromey.com>
3515
3516 * tui/tui-regs.c (tui_data_window::show_register_group)
3517 (tui_data_window::check_register_values): Update.
3518 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3519 from item_no.
3520
c9753adb
TT
35212020-07-01 Tom Tromey <tom@tromey.com>
3522
3523 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3524 useless "if".
3525
9ab26b4a
TT
35262020-07-01 Tom Tromey <tom@tromey.com>
3527
3528 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3529 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3530
e555083f
TT
35312020-07-01 Tom Tromey <tom@tromey.com>
3532
3533 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3534 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3535 (struct tui_line_or_address): Move from tui-data.h.
3536 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3537 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3538 (tui_cmd_window, tui_source_window_base, tui_source_window)
3539 (tui_disasm_window): Don't declare.
3540 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3541 to tui-winsource.h.
3542 (SINGLE_KEY): Move to tui-stack.c.
3543
7a02bab7
TT
35442020-07-01 Tom Tromey <tom@tromey.com>
3545
3546 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3547 std::string.
3548 * tui/tui-regs.c (class tab_expansion_file): New.
3549 (tab_expansion_file::write): New method.
3550 (tui_register_format): Change return type. Use
3551 tab_expansion_file.
3552 (tui_get_register, tui_data_window::display_registers_from)
3553 (tui_data_item_window::rerender): Update.
3554 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3555 * tui/tui-io.c (tui_expand_tabs): Remove.
3556
ea68593b
TT
35572020-07-01 Tom Tromey <tom@tromey.com>
3558
3559 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3560
a8caed5d
FS
35612020-07-01 Fangrui Song <maskray@google.com>
3562
3563 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3564
9cdf9820
AKS
35652020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3566
3567 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3568 forms for DW_AT_associated and DW_AT_allocated attributes,
3569 which is already checked in function attr_to_dynamic_prop.
3570
a1520ad8
TT
35712020-06-30 Tom Tromey <tromey@adacore.com>
3572
3573 * dwarf2/read.c (quirk_rust_enum): Correctly call
3574 alloc_rust_variant for default-less enum.
3575
5ac58899
TT
35762020-06-30 Tom Tromey <tromey@adacore.com>
3577
3578 PR build/26183:
3579 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3580 gdb::to_string.
3581
19b187a9
SM
35822020-06-29 Simon Marchi <simon.marchi@efficios.com>
3583
3584 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3585 * gdbarch.h: Re-generate.
3586
cd4c4c07
TT
35872020-06-28 Tom Tromey <tom@tromey.com>
3588
3589 * command.h (cmd_types): Remove.
3590 (cmd_type): Don't declare.
3591 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3592 typedef.
3593 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3594 * cli/cli-decode.c (cmd_type): Remove.
3595
05779d57
PA
35962020-06-27 Pedro Alves <palves@redhat.com>
3597
3598 * fork-child.c (prefork_hook): Adjust.
3599 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3600 Delete.
3601 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3602 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3603 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3604 Remove declarations.
3605 (struct inferior) <set_tty, tty>: New methods.
3606 (struct inferior) <terminal>: Rename to ...
3607 (struct inferior) <m_terminal>: ... this and make private.
3608 * main.c (captured_main_1): Adjust.
3609 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3610 (mi_cmd_inferior_tty_show): Adjust.
3611 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3612 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3613
1776e3e5
NA
36142020-06-26 Nick Alcock <nick.alcock@oracle.com>
3615
3616 * configure.ac: Add --enable-libctf: handle --disable-static
3617 properly.
3618 * acinclude.m4: sinclude ../config/enable.m4.
3619 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3620 (LIBCTF): Substitute in.
3621 (CTF_DEPS): New, likewise.
3622 (CLIBS): libctf needs symbols from libbfd: move earlier.
3623 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3624 flags.
3625 * ctfread.c: Surround in ENABLE_LIBCTF.
3626 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3627 * configure: Regenerate.
3628 * config.in: Likewise.
3629
58373b80
SM
36302020-06-25 Simon Marchi <simon.marchi@efficios.com>
3631
3632 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3633
277474ee
SM
36342020-06-25 Simon Marchi <simon.marchi@efficios.com>
3635
3636 * inferior.h (struct inferior) <terminal>: Change type to
3637 gdb::unique_xmalloc_ptr<char>.
3638 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3639 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3640 field, adjust to unique pointer.
3641 (get_inferior_io_terminal): Adjust to unique pointer.
3642
6d74da72
AB
36432020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3644
3645 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3646 registers, not just the known core set of registers.
3647
2e52d038
AB
36482020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3649
3650 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3651 fflags, frm, and fcsr registers.
3652 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3653 restore groups.
3654 (riscv_tdesc_unknown_reg): New function.
3655 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3656 tdesc_use_registers.
3657 * riscv-tdep.h (struct gdbarch_tdep): Add
3658 unknown_csrs_first_regnum, unknown_csrs_count,
3659 duplicate_fflags_regnum, duplicate_frm_regnum, and
3660 duplicate_fcsr_regnum fields.
3661
be64fd07
AB
36622020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3663
3664 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3665 callback, use the callback (when not null) to help number unknown
3666 registers.
3667 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3668 (tdesc_use_registers): Add extra parameter to declaration.
3669
3b9fce96
AB
36702020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3671
3672 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3673 in the file.
3674 (class riscv_pending_register_alias): Likewise.
3675 (riscv_register_feature::register_info): Change 'required_p' field
3676 to 'required', and change its type. Add 'check' member function.
3677 (riscv_register_feature::register_info::check): Define new member
3678 function.
3679 (riscv_xreg_feature): Change initialisation of 'required' field.
3680 (riscv_freg_feature): Likewise.
3681 (riscv_virtual_feature): Likewise.
3682 (riscv_csr_feature): Likewise.
3683 (riscv_check_tdesc_feature): Take extra parameter, the csr
3684 tdesc_feature, rewrite the function to use the new
3685 riscv_register_feature::register_info::check function.
3686 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3687
865bad26
AB
36882020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3689
3690 * features/Makefile: Remove all references to the deleted files
3691 below.
3692 * features/riscv/32bit-csr.c: Deleted.
3693 * features/riscv/32bit-csr.xml: Deleted.
3694 * features/riscv/64bit-csr.c: Deleted.
3695 * features/riscv/64bit-csr.xml: Deleted.
3696 * features/riscv/rebuild-csr-xml.sh: Deleted.
3697
ed69cbc8
AB
36982020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3699
3700 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3701 whitespace error for declaration of names member variable.
3702 (struct riscv_register_feature): Add new prefer_first_name member
3703 variable, and fix whitespace error in declaration of registers.
3704 (riscv_xreg_feature): Initialize prefer_first_name field.
3705 (riscv_freg_feature): Likewise.
3706 (riscv_virtual_feature): Likewise.
3707 (riscv_csr_feature): Likewise.
3708 (riscv_register_name): Expand on comments. Remove register name
3709 modifications for CSR and virtual registers.
3710
4445e8f5
AB
37112020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3712
3713 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3714 errors.
3715
767a879e
AB
37162020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3717
3718 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3719 riscv-opc.h.
3720 (class riscv_pending_register_alias): New class.
3721 (riscv_check_tdesc_feature): Take vector of pending aliases and
3722 populate it as appropriate.
3723 (riscv_setup_register_aliases): Delete.
3724 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3725 to riscv_check_tdesc_feature in all cases. Use the vector to
3726 create the register aliases.
3727
bb6e55f3
RO
37282020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3729
3730 * sol2-tdep.c (sol2_static_transform_name): Remove.
3731 (sol2_init_abi): Don't register it.
3732 * gdbarch.sh (static_transform_name): Remove.
3733 * gdbarch.c, gdbarch.h: Regenerate.
3734
3735 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3736 gdbarch_static_transform_name.
3737 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3738 * stabsread.c (define_symbol) <'X'>: Remove.
3739 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3740 handling.
3741 <'V'>: Likewise.
3742 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3743 <'S'>: Remove call to gdbarch_static_transform_name.
3744
c6d36836
RO
37452020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3746
3747 * procfs.c (procfs_pre_trace): New function.
3748 (procfs_target::create_inferior): Pass it to fork_inferior.
3749
a7e6196b
RO
37502020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3751
3752 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3753 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3754 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3755 sol2-tdep.o, sparc-sol2-tdep.o.
3756 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3757 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3758 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3759 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3760
d412e696
RO
37612020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3762
3763 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3764 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3765 Call sol2_init_abi.
3766 Remove calls to set_gdbarch_skip_solib_resolver,
3767 set_gdbarch_core_pid_to_str.
3768 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3769 (i386_sol2_static_transform_name): Remove.
3770 (i386_sol2_init_abi): Call sol2_init_abi.
3771 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3772 set_gdbarch_static_transform_name,
3773 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3774 Use sol2_sigtramp_p.
3775 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3776 (sol2_sigtramp_p): New function.
3777 (sol2_static_transform_name): New function.
3778 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3779 (sol2_init_abi): New function.
3780 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3781 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3782 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3783 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3784 (sparc_sol2_static_transform_name): Remove.
3785 (sparc32_sol2_init_abi): Call sol2_init_abi.
3786 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3787 set_gdbarch_static_transform_name,
3788 set_gdbarch_skip_solib_resolver,
3789 set_gdbarch_core_pid_to_str.
3790 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3791 (sparc_sol2_static_transform_name): Remove
3792 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3793 call sol2_sigtramp_p.
3794 (sparc64_sol2_init_abi): Call sol2_init_abi.
3795 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3796 set_gdbarch_static_transform_name,
3797 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3798
a8654e7d
PW
37992020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3800
3801 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3802 * exec.c (validate_exec_file): If from_tty, set both
3803 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3804 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3805 and from_tty, unconditionally ask a confirmation.
3806
caa7fd04
AB
38072020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3808
3809 * target-descriptions.c (tdesc_architecture_name): Protect against
3810 NULL pointer dereference.
3811 (maint_print_xml_tdesc_cmd): New function.
3812 (_initialize_target_descriptions): Register new 'maint print
3813 xml-tdesc' command and give it the filename completer.
3814 * NEWS: Mention new 'maint print xml-tdesc' command.
3815
fbf42f4e
AB
38162020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3817
3818 * target-descriptions.c (class tdesc_compatible_info): New class.
3819 (struct target_desc): Change type of compatible vector.
3820 (tdesc_compatible_p): Update for change in type of
3821 target_desc::compatible.
3822 (tdesc_compatible_info_list): New function.
3823 (tdesc_compatible_info_arch_name): New function.
3824 (tdesc_add_compatible): Update for change in type of
3825 target_desc::compatible.
3826 (print_c_tdesc::visit_pre): Likewise.
3827
20821f4e
AB
38282020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3829
3830 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3831 whitespace to underscore.
3832 (maint_print_c_tdesc_cmd): Use fake filename for target
3833 descriptions that came from the target.
3834 (_initialize_target_descriptions): Add filename command completion
3835 for 'maint print c-tdesc'.
3836
1fb5ee62
SM
38372020-06-23 Simon Marchi <simon.marchi@efficios.com>
3838
3839 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3840 lines.
3841
fc3ecb3e
SM
38422020-06-23 Simon Marchi <simon.marchi@efficios.com>
3843
3844 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3845 lines.
3846 (dwarf2_find_location_expression): Likewise.
3847 (call_site_parameter_matches): Likewise.
3848 (dwarf2_compile_expr_to_ax): Likewise.
3849 (disassemble_dwarf_expression): Likewise.
3850 (loclist_describe_location): Likewise.
3851
236ef034
PA
38522020-06-23 Pedro Alves <palves@redhat.com>
3853
3854 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3855 progspace-and-thread.h. Include scoped-mock-context.h instead.
3856 (register_to_value_test): Use scoped_mock_context.
3857 * regcache.c: Include "scoped-mock-context.h".
3858 (cooked_read_test): Don't error out if a target is already pushed.
3859 Use scoped_mock_context. Adjust.
3860 * scoped-mock-context.h: New file.
3861
39e7ecca
AB
38622020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3863
3864 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3865 initializer.
3866 (ada_language::is_string_type_p): New member function.
3867 * c-lang.c (c_language_data): Delete la_is_string_type_p
3868 initializer.
3869 (cplus_language_data): Likewise.
3870 (asm_language_data): Likewise.
3871 (minimal_language_data): Likewise.
3872 * d-lang.c (d_language_data): Likewise.
3873 * f-lang.c (f_is_string_type_p): Delete function, implementation
3874 moved to f_language::is_string_type_p.
3875 (f_language_data): Delete la_is_string_type_p initializer.
3876 (f_language::is_string_type_p): New member function,
3877 implementation from f_is_string_type_p.
3878 * go-lang.c (go_is_string_type_p): Delete function, implementation
3879 moved to go_language::is_string_type_p.
3880 (go_language_data): Delete la_is_string_type_p initializer.
3881 (go_language::is_string_type_p): New member function,
3882 implementation from go_is_string_type_p.
3883 * language.c (language_defn::is_string_type_p): Define new member
3884 function.
3885 (default_is_string_type_p): Make static, add comment copied from
3886 header file.
3887 (unknown_language_data): Delete la_is_string_type_p initializer.
3888 (unknown_language::is_string_type_p): New member function.
3889 (auto_language_data): Delete la_is_string_type_p initializer.
3890 (auto_language::is_string_type_p): New member function.
3891 * language.h (language_data): Delete la_is_string_type_p field.
3892 (language_defn::is_string_type_p): Declare new function.
3893 (default_is_string_type_p): Delete desclaration, move comment to
3894 definition.
3895 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3896 moved to m2_language::is_string_type_p.
3897 (m2_language_data): Delete la_is_string_type_p initializer.
3898 (m2_language::is_string_type_p): New member function,
3899 implementation from m2_is_string_type_p.
3900 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3901 initializer.
3902 * opencl-lang.c (opencl_language_data): Likewise.
3903 * p-lang.c (pascal_is_string_type_p): Delete function,
3904 implementation moved to pascal_language::is_string_type_p.
3905 (pascal_language_data): Delete la_is_string_type_p initializer.
3906 (pascal_language::is_string_type_p): New member function,
3907 implementation from pascal_is_string_type_p.
3908 * rust-lang.c (rust_is_string_type_p): Delete function,
3909 implementation moved to rust_language::is_string_type_p.
3910 (rust_language_data): Delete la_is_string_type_p initializer.
3911 (rust_language::is_string_type_p): New member function,
3912 implementation from rust_is_string_type_p.
3913 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3914 is_string_type_p.
3915
4ffc13fb
AB
39162020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3917
3918 * ada-lang.c (ada_language_data): Delete la_print_typedef
3919 initializer.
3920 (ada_language::print_typedef): New member function.
3921 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3922 (cplus_language_data): Likewise.
3923 (asm_language_data): Likewise.
3924 (minimal_language_data): Likewise.
3925 * d-lang.c (d_language_data): Likewise.
3926 * f-lang.c (f_language_data): Likewise.
3927 (f_language::print_typedef): New member function.
3928 * go-lang.c (go_language_data): Delete la_print_typedef
3929 initializer.
3930 * language.c (language_defn::print_typedef): Define member
3931 function.
3932 (unknown_language_data): Delete la_print_typedef initializer.
3933 (unknown_language::print_typedef): New member function.
3934 (auto_language_data): Delete la_print_typedef initializer.
3935 (auto_language::print_typedef): New member function.
3936 * language.h (language_data): Delete la_print_typedef field.
3937 (language_defn::print_typedef): Declare new member function.
3938 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3939 (default_print_typedef): Delete declaration.
3940 * m2-lang.c (m2_language_data): Delete la_print_typedef
3941 initializer.
3942 (m2_language::print_typedef): New member function.
3943 * objc-lang.c (objc_language_data): Delete la_print_typedef
3944 initializer.
3945 * opencl-lang.c (opencl_language_data): Likewise.
3946 * p-lang.c (pascal_language_data): Likewise.
3947 (pascal_language::print_typedef): New member function.
3948 * rust-lang.c (rust_print_typedef): Delete function,
3949 implementation moved to rust_language::print_typedef.
3950 (rust_language): Delete la_print_typedef initializer.
3951 (rust_language::print_typedef): New member function,
3952 implementation from rust_print_typedef.
3953 * typeprint.c (default_print_typedef): Delete.
3954
d711ee67
AB
39552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3956
3957 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3958 (ada_language::printstr): New member function.
3959 * c-lang.c (c_language_data): Delete la_printstr initializer.
3960 (cplus_language_data): Likewise.
3961 (asm_language_data): Likewise.
3962 (minimal_language_data): Likewise.
3963 * d-lang.c (d_language_data): Likewise.
3964 * f-lang.c (f_printstr): Rename to f_language::printstr.
3965 (f_language_data): Delete la_printstr initializer.
3966 (f_language::printstr): New member function, implementation from
3967 f_printstr.
3968 * go-lang.c (go_language_data): Delete la_printstr initializer.
3969 * language.c (language_defn::printstr): Define new member
3970 function.
3971 (unk_lang_printstr): Delete.
3972 (unknown_language_data): Delete la_printstr initializer.
3973 (unknown_language::printstr): New member function.
3974 (auto_language_data): Delete la_printstr initializer.
3975 (auto_language::printstr): New member function.
3976 * language.h (language_data): Delete la_printstr field.
3977 (language_defn::printstr): Declare new member function.
3978 (LA_PRINT_STRING): Update call to printstr.
3979 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3980 (m2_language_data): Delete la_printstr initializer.
3981 (m2_language::printstr): New member function, implementation from
3982 m2_printstr.
3983 * objc-lang.c (objc_language_data): Delete la_printstr
3984 initializer.
3985 * opencl-lang.c (opencl_language_data): Likewise.
3986 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3987 (pascal_language_data): Delete la_printstr initializer.
3988 (pascal_language::printstr): New member function, implementation
3989 from pascal_printstr.
3990 * p-lang.h (pascal_printstr): Delete declaration.
3991 * rust-lang.c (rust_printstr): Update header comment.
3992 (rust_language_data): Delete la_printstr initializer.
3993 (rust_language::printstr): New member function.
3994
52b50f2c
AB
39952020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3996
3997 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3998 (ada_language::printchar): New member function.
3999 * c-lang.c (c_language_data): Delete la_printchar initializer.
4000 (cplus_language_data): Likewise.
4001 (asm_language_data): Likewise.
4002 (minimal_language_data): Likewise.
4003 * d-lang.c (d_language_data): Likewise.
4004 * f-lang.c (f_printchar): Rename to f_language::printchar.
4005 (f_language_data): Delete la_printchar initializer.
4006 (f_language::printchar): New member function, implementation from
4007 f_printchar.
4008 * go-lang.c (go_language_data): Delete la_printchar initializer.
4009 * language.c (unk_lang_printchar): Delete.
4010 (language_defn::printchar): Define new member function.
4011 (unknown_language_data): Delete la_printchar initializer.
4012 (unknown_language::printchar): New member function.
4013 (auto_language_data): Delete la_printchar initializer.
4014 (auto_language::printchar): New member function.
4015 * language.h (language_data): Delete la_printchar field.
4016 (language_defn::printchar): Declare new member function.
4017 (LA_PRINT_CHAR): Update call to printchar.
4018 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4019 (m2_language::printchar): New member function.
4020 * objc-lang.c (objc_language_data): Delete la_printchar
4021 initializer.
4022 * opencl-lang.c (opencl_language_data): Likewise.
4023 * p-lang.c (pascal_language_data): Delete la_printchar
4024 initializer.
4025 (pascal_language::printchar): New member function.
4026 * rust-lang.c (rust_printchar): Rename to
4027 rust_language::printchar.
4028 (rust_language_data): Delete la_printchar initializer.
4029 (rust_language::printchar): New member function, implementation
4030 from rust_printchar.
4031
ec8cec5b
AB
40322020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4033
4034 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4035 (ada_language_data): Delete la_emitchar initializer.
4036 (ada_language::emitchar): New member function, implementation from
4037 emit_char.
4038 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4039 (cplus_language_data): Likewise.
4040 (asm_language_data): Likewise.
4041 (minimal_language_data): Likewise.
4042 * d-lang.c (d_language_data): Likewise.
4043 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4044 (f_language_data): Delete la_emitchar initializer.
4045 (f_language::emitchar): New member function, implementation from
4046 f_emit_char.
4047 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4048 * language.c (unk_lang_emit_char): Delete.
4049 (language_defn::emitchar): New member function definition.
4050 (unknown_language_data): Delete la_emitchar initializer.
4051 (unknown_language::emitchar): New member function.
4052 (auto_language_data): Delete la_emitchar initializer.
4053 (auto_language::emitchar): New member function.
4054 * language.h (language_data): Delete la_emitchar field.
4055 (language_defn::emitchar): New member field declaration.
4056 (LA_EMIT_CHAR): Update call to emitchar.
4057 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4058 (m2_language_data): Delete la_emitchar initializer.
4059 (m2_language::emitchar): New member function, implementation from
4060 m2_emit_char.
4061 * objc-lang.c (objc_language_data): Delete la_emitchar
4062 initializer.
4063 * opencl-lang.c (opencl_language_data): Likewise.
4064 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4065 (pascal_language_data): Delete la_emitchar initializer.
4066 (pascal_language::emitchar): New member function, implementation
4067 from pascal_emit_char.
4068 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4069 (rust_language_data): Delete la_emitchar initializer.
4070 (rust_language::emitchar): New member function, implementation
4071 from rust_emitchar.
4072
1bf9c363
AB
40732020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4074
4075 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4076 (ada_language_data): Delete la_post_parser initializer.
4077 (ada_language::post_parser): New member function.
4078 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4079 (cplus_language_data): Likewise.
4080 (asm_language_data): Likewise.
4081 (minimal_language_data): Likewise.
4082 * d-lang.c (d_language_data): Likewise.
4083 * f-lang.c (f_language_data): Likewise.
4084 * go-lang.c (go_language_data): Likewise.
4085 * language.c (unknown_language_data): Likewise.
4086 (auto_language_data): Likewise.
4087 * language.h (language_data): Delete la_post_parser field.
4088 (language_defn::post_parser): New member function.
4089 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4090 * objc-lang.c (objc_language_data): Likewise.
4091 * opencl-lang.c (opencl_language_data): Likewise.
4092 * p-lang.c (pascal_language_data): Likewise.
4093 * parse.c (parse_exp_in_context): Update call to post_parser.
4094 (null_post_parser): Delete definition.
4095 * parser-defs.h (null_post_parser): Delete declaration.
4096 * rust-lang.c (rust_language_data): Delete la_post_parser
4097 initializer.
4098
87afa652
AB
40992020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4100
4101 * ada-lang.c (parse): Rename to ada_language::parser.
4102 (ada_language_data): Delete la_parser initializer.
4103 (ada_language::parser): New member function, implementation from
4104 parse.
4105 * c-lang.c (c_language_data): Delete la_parser initializer.
4106 (cplus_language_data): Likewise.
4107 (asm_language_data): Likewise.
4108 (minimal_language_data): Likewise.
4109 * d-lang.c (d_language_data): Likewise.
4110 (d_language::parser): New member function.
4111 * f-lang.c (f_language_data): Delete la_parser initializer.
4112 (f_language::parser): New member function.
4113 * go-lang.c (go_language_data): Delete la_parser initializer.
4114 (go_language::parser): New member function.
4115 * language.c (unk_lang_parser): Delete.
4116 (language_defn::parser): Define new member function.
4117 (unknown_language_data): Delete la_parser initializer.
4118 (unknown_language::parser): New member function.
4119 (auto_language_data): Delete la_parser initializer.
4120 (auto_language::parser): New member function.
4121 * language.h (language_data): Delete la_parser field.
4122 (language_defn::parser): Declare new member function.
4123 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4124 (m2_language::parser): New member function.
4125 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4126 * opencl-lang.c (opencl_language_data): Likewise.
4127 * p-lang.c (pascal_language_data): Likewise.
4128 (pascal_language::parser): New member function.
4129 * parse.c (parse_exp_in_context): Update call to parser.
4130 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4131 (rust_language::parser): New member function.
4132
37825800
AB
41332020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4134
4135 * top.c (print_gdb_configuration): Print --with-python-libdir
4136 configuration value.
4137
5b860c93
PW
41382020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4139
4140 * NEWS: Mention change to the alias command.
4141
cf00cd6f
PW
41422020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4143
4144 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4145 (alias_command_completer)
4146 (make_alias_options_def_group): New functions.
4147 (alias_opts, alias_option_defs): New struct and array.
4148 (alias_usage_error): Update usage.
4149 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4150 Use option framework.
4151 (_initialize_cli_cmds): Update alias command help.
4152 Update aliases command help.
4153 (show_user):
4154 Add NULL for new default_args lookup_cmd argument.
4155 (valid_command_p): Rename to validate_aliased_command.
4156 Add NULL for new default_args lookup_cmd argument. Verify that the
4157 aliased_command has no default args.
4158 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4159 (lookup_cmd_1, lookup_cmd): New argument default_args.
4160 (add_alias_cmd):
4161 Add NULL for new default_args lookup_cmd argument.
4162 (print_help_for_command): Show default args under the layout
4163 alias some_alias = some_aliased_cmd some_alias_default_arg.
4164 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4165 xfree default_args in destructor.
4166 * cli/cli-script.c (process_next_line, do_define_command):
4167 Add NULL for new default_args lookup_cmd argument.
4168 * command.h: Declare new default_args argument in lookup_cmd
4169 and lookup_cmd_1.
4170 * completer.c (complete_line_internal_1):
4171 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4172 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4173 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4174 Likewise.
4175 * infcmd.c (_initialize_infcmd): Likewise.
4176 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4177 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4178 * python/py-param.c (add_setshow_generic): Likewise.
4179 * remote.c (_initialize_remote): Likewise.
4180 * top.c (execute_command): Prepend default_args if command has some.
4181 (set_verbose):
4182 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4183 * tracepoint.c (validate_actionline, encode_actions_1):
4184 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4185
bd920864
TBA
41862020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4187
4188 * jit.c (jit_read_descriptor): Use bool as the return type.
4189 (jit_breakpoint_re_set_internal): Use bool as the return type.
4190 Invert the return value logic; return true if the jit breakpoint
4191 has been successfully initialized.
4192 (jit_inferior_init): Update the call to
4193 jit_breakpoint_re_set_internal.
4194
f8098322
PA
41952020-06-22 Pedro Alves <palves@redhat.com>
4196
4197 PR gdb/25939
4198 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4199 Use the current inferior instead. Don't return
4200 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4201 wait again.
4202 * sol-thread.c (sol_thread_target::wait): Don't reference
4203 inferior_ptid.
4204 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4205 (sol_update_thread_list_callback): Use the current inferior's pid
4206 instead of inferior_ptid.
4207
196535a6
RO
42082020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4209
4210 * procfs.c: Cleanup many comments.
4211
4212 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4213 (AFTER_WATCHFLAG): Replace by value.
4214
4215 (MAIN_PROC_NAME_FORMAT): Inline ...
4216 (create_procinfo): ... here.
4217
4218 (procfs_debug_inferior): Remove SYS_exec handling.
4219 (syscall_is_exec): Likewise.
4220 (procfs_set_exec_trap): Likewise.
4221
4222 (syscall_is_lwp_exit): Inline in callers.
4223 (syscall_is_exit): Likewise.
4224 (syscall_is_exec): Likewise.
4225 (syscall_is_lwp_create): Likewise.
4226
4227 (invalidate_cache): Remove #if 0 code.
4228
4229 (make_signal_thread_runnable): Remove.
4230 (procfs_target::resume): Remove #if 0 code.
4231
cf6f3e86
RO
42322020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4233
4234 PR gdb/25939
4235 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4236 call ...
4237 (procfs_target::create_inferior): ... here.
4238
48e9cc84
PW
42392020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4240
4241 * exec.c (validate_exec_file): Ensure the build-id is up to
4242 date by calling reopen_exec_file (that checks file timestamp
4243 to decide to re-read the file).
4244
3922b302
PA
42452020-06-18 Pedro Alves <palves@redhat.com>
4246
4247 PR gdb/25412
4248 * gdbthread.h (delete_thread, delete_thread_silent)
4249 (find_thread_ptid): Update comments.
4250 * thread.c (current_thread_): New global.
4251 (is_current_thread): Move higher, and reimplement.
4252 (inferior_thread): Reimplement.
4253 (set_thread_exited): Use bool. Add assertions.
4254 (add_thread_silent): Simplify thread-reuse handling by always
4255 calling delete_thread.
4256 (delete_thread): Remove intro comment.
4257 (find_thread_ptid): Skip exited threads.
4258 (switch_to_thread_no_regs): Write to current_thread_.
4259 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4260 INFERIOR_PTID. Clear current_thread_.
4261
6dbdab44
PA
42622020-06-18 Pedro Alves <palves@redhat.com>
4263
4264 * aix-thread.c (pd_update): Use switch_to_thread.
4265
2da4b788
PA
42662020-06-18 Pedro Alves <palves@redhat.com>
4267
4268 * ravenscar-thread.c (ravenscar_thread_target): Update.
4269 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4270 (ravenscar_thread_target::add_active_thread): ... this. Don't
4271 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4272 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4273
50838d1b
PA
42742020-06-18 Pedro Alves <palves@redhat.com>
4275
4276 * nat/windows-nat.c (current_windows_thread): Remove.
4277 * nat/windows-nat.h (current_windows_thread): Remove.
4278 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4279 Adjust.
4280 (display_selectors): Adjust to fetch the current
4281 windows_thread_info based on inferior_ptid.
4282 (fake_create_process): No longer write to current_windows_thread.
4283 (windows_nat_target::get_windows_debug_event):
4284 Don't set inferior_ptid or current_windows_thread.
4285 (windows_nat_target::wait): Adjust to not rely on
4286 current_windows_thread.
4287 (do_initial_windows_stuff): Now a method of windows_nat_target.
4288 Switch to the last_ptid thread.
4289 (windows_nat_target::attach): Adjust.
4290 (windows_nat_target::detach): Use switch_to_no_thread instead of
4291 writing to inferior_ptid directly.
4292 (windows_nat_target::create_inferior): Adjust.
4293
31ce04e9
PA
42942020-06-18 Pedro Alves <palves@redhat.com>
4295
4296 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4297
1ee1a363
PA
42982020-06-18 Pedro Alves <palves@redhat.com>
4299
4300 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4301 after creating it, instead of writing to inferior_ptid. Don't
4302 write to inferior_ptid.
4303
6d350754
PA
43042020-06-18 Pedro Alves <palves@redhat.com>
4305
4306 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4307
5d971d48
PA
43082020-06-18 Pedro Alves <palves@redhat.com>
4309
4310 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4311 it, instead of writing to inferior_ptid.
4312
86e57d1b
PA
43132020-06-18 Pedro Alves <palves@redhat.com>
4314
4315 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4316 to inferior_ptid.
4317
f2e1c129
PA
43182020-06-18 Pedro Alves <palves@redhat.com>
4319
4320 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4321 instead of writing to inferior_ptid directly.
4322
60db1b85
PA
43232020-06-18 Pedro Alves <palves@redhat.com>
4324
4325 * corelow.c (core_target::close): Use switch_to_no_thread instead
4326 of writing to inferior_ptid directly.
4327 (add_to_thread_list, core_target_open): Use switch_to_thread
4328 instead of writing to inferior_ptid directly.
4329
fe7d6a8d
PA
43302020-06-18 Pedro Alves <palves@redhat.com>
4331
4332 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4333 inferior_ptid.
4334 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4335 inferior_ptid.
4336 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4337 inferior_ptid directly.
4338 (darwin_nat_target::init_thread_list): Switch to thread, instead
4339 of writing to inferior_ptid.
4340 (darwin_nat_target::attach): Don't write to inferior_ptid.
4341 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4342
975f8708
PA
43432020-06-18 Pedro Alves <palves@redhat.com>
4344
4345 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4346 thread.
4347 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4348 Instead use switch_to_thread.
4349 (gnu_nat_target::detach): Use switch_to_no_thread
4350 instead of writing to inferior_ptid directly. Used passed-in
4351 inferior instead of looking up the inferior by pid.
4352
1a204730
PA
43532020-06-18 Pedro Alves <palves@redhat.com>
4354
4355 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4356 inferior_ptid.
4357
ebe84f23
PA
43582020-06-18 Pedro Alves <palves@redhat.com>
4359
4360 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4361 inferior_ptid.
4362 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4363 thread.
4364 (nto_procfs_target::detach): Avoid referencing
4365 inferior_ptid. Use switch_to_no_thread instead of writing to
4366 inferior_ptid directly.
4367 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4368 instead of writing to inferior_ptid directly.
4369 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4370 to thread.
4371
191f02e5
PA
43722020-06-18 Pedro Alves <palves@redhat.com>
4373
4374 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4375 after creating it, instead of writing to inferior_ptid.
4376 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4377 to inferior_ptid directly.
4378 (gdbsim_target::wait): Don't write to inferior_ptid.
4379
0ac55310
PA
43802020-06-18 Pedro Alves <palves@redhat.com>
4381
4382 * remote.c (remote_target::remote_notice_new_inferior): Use
4383 switch_to_thread instead of writing to inferior_ptid directly.
4384 (remote_target::add_current_inferior_and_thread): Use
4385 switch_to_no_thread instead of writing to inferior_ptid directly.
4386 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4387 and switch_to_thread instead of using set_current_inferior or
4388 writing to inferior_ptid directly.
4389
5233f39b
PA
43902020-06-18 Pedro Alves <palves@redhat.com>
4391
4392 * tracectf.c (ctf_target_open): Switch to added thread instead of
4393 writing to inferior_ptid directly.
4394 (ctf_target::close): Use switch_to_no_thread instead of writing to
4395 inferior_ptid directly.
4396
087e161b
PA
43972020-06-18 Pedro Alves <palves@redhat.com>
4398
4399 * tracefile-tfile.c (tfile_target_open): Don't write to
4400 inferior_ptid directly, instead switch to added thread.
4401 (tfile_target::close): Use switch_to_no_thread instead of writing
4402 to inferior_ptid directly.
4403
7fb43e53
PA
44042020-06-18 Pedro Alves <palves@redhat.com>
4405
4406 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4407 (procfs_target::detach): Use switch_to_no_thread
4408 instead of writing to inferior_ptid directly.
4409 (do_attach): Change return type to void. Switch to the added
4410 thread.
4411 (procfs_target::create_inferior): Switch to the added thread.
4412 (procfs_do_thread_registers): Don't write to inferior_ptid.
4413
18493a00
PA
44142020-06-18 Pedro Alves <palves@redhat.com>
4415
4416 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4417 of writing to inferior_ptid.
4418 (scoped_restore_exited_inferior): Delete.
4419 (handle_vfork_child_exec_or_exit): Simplify using
4420 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4421 instead of writing to inferior_ptid.
4422 (THREAD_STOPPED_BY): Delete.
4423 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4424 (thread_stopped_by_hw_breakpoint): Delete.
4425 (save_waitstatus): Use
4426 scoped_restore_current_thread+switch_to_thread, and call
4427 target_stopped_by_watchpoint instead of
4428 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4429 instead of thread_stopped_by_sw_breakpoint, and
4430 target_stopped_by_hw_breakpoint instead of
4431 thread_stopped_by_hw_breakpoint.
4432 (handle_inferior_event)
4433 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4434 inferior_ptid directly, nor
4435 set_current_inferior/set_current_program_space. Use
4436 switch_to_thread / switch_to_inferior_no_thread instead.
4437
a0776b13
PA
44382020-06-18 Pedro Alves <palves@redhat.com>
4439
4440 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4441 instead of writing to inferior_ptid.
4442
6155c136
PA
44432020-06-18 Pedro Alves <palves@redhat.com>
4444
4445 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4446 added thread.
4447 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4448 to the added thread.
4449 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4450 instead of writing to inferior_ptid.
4451
c5316fc6
PA
44522020-06-18 Pedro Alves <palves@redhat.com>
4453
4454 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4455 (register_to_value_test): Mock a program_space too. Heap-allocate
4456 the address space. Don't write to inferior_ptid. Use
4457 switch_to_thread instead.
4458
8df01799
PA
44592020-06-18 Pedro Alves <palves@redhat.com>
4460
4461 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4462 Delete.
4463 (find_signalled_thread()): New, factored out from
4464 linux_make_corefile_notes and adjusted to handle exited threads.
4465 (linux_make_corefile_notes): Adjust to use the new
4466 find_signalled_thread.
4467
41792d68
PA
44682020-06-18 Pedro Alves <palves@redhat.com>
4469
4470 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4471 of saving/restoring inferior_ptid.
4472
612f258a
TT
44732020-06-17 Tom Tromey <tom@tromey.com>
4474
4475 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4476 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4477 declare.
4478 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4479
efb763a5
SM
44802020-06-15 Simon Marchi <simon.marchi@efficios.com>
4481
4482 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4483 of partial symtabs.
4484
2951f6c0
SM
44852020-06-17 Simon Marchi <simon.marchi@efficios.com>
4486
4487 * regformats/reg-arm.dat: Remove.
4488 * regformats/reg-bfin.dat: Remove.
4489 * regformats/reg-cris.dat: Remove.
4490 * regformats/reg-crisv32.dat: Remove.
4491 * regformats/reg-m32r.dat: Remove.
4492 * regformats/reg-tilegx.dat: Remove.
4493 * regformats/reg-tilegx32.dat: Remove.
4494
7d458ea5
SM
44952020-06-17 Simon Marchi <simon.marchi@efficios.com>
4496
4497 * features/Makefile (WHICH): Remove arm files.
4498 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4499 * regformats/arm/arm-with-neon.dat: Remove.
4500 * regformats/arm/arm-with-vfpv2.dat: Remove.
4501 * regformats/arm/arm-with-vfpv3.dat: Remove.
4502
3af96c0d
SM
45032020-06-17 Simon Marchi <simon.marchi@efficios.com>
4504
4505 * features/Makefile (XMLTOC): Remove rx.xml.
4506
b25e22fd
PA
45072020-06-17 Pedro Alves <palves@redhat.com>
4508
4509 * gdbthread.h (thread_control_state) <trap_expected> Update
4510 comments.
4511
a78a19b1
AB
45122020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4513
4514 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4515 ada_language::lookup_symbol_nonlocal.
4516 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4517 (ada_language::lookup_symbol_nonlocal): New member function,
4518 implementation from ada_lookup_symbol_nonlocal.
4519 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4520 initializer.
4521 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4522 initializer.
4523 (cplus_language::lookup_symbol_nonlocal): New member function.
4524 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4525 (minimal_language_data) Likewise.
4526 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4527 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4528 initializer.
4529 (d_language::lookup_symbol_nonlocal): New member function.
4530 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4531 initializer.
4532 (f_language::lookup_symbol_nonlocal): New member function.
4533 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4534 initializer.
4535 * language.c (unknown_language_data): Likewise.
4536 (auto_language_data): Likewise.
4537 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4538 field.
4539 (language_defn::lookup_symbol_nonlocal): New member function.
4540 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4541 initializer.
4542 * objc-lang.c (objc_language_data): Likewise.
4543 * opencl-lang.c (opencl_language_data): Likewise.
4544 * p-lang.c (pascal_language_data): Likewise.
4545 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4546 rust_language::lookup_symbol_nonlocal.
4547 (rust_language_data): Delete la_lookup_symbol_nonlocal
4548 initializer.
4549 (rust_language::lookup_symbol_nonlocal): New member function,
4550 implementation from rust_lookup_symbol_nonlocal.
4551 * symtab.c (lookup_symbol_aux): Update call to
4552 lookup_symbol_nonlocal.
4553 (basic_lookup_symbol_nonlocal): Rename to...
4554 (language_defn::lookup_symbol_nonlocal): ...this, and update
4555 header comment. Remove language_defn parameter, and replace with
4556 uses of `this'.
4557 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4558
ebe2334e
AB
45592020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4560
4561 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4562 initializer.
4563 (ada_language::value_print_inner): New member function.
4564 * c-lang.c (c_language_data): Delete la_value_print_inner
4565 initializer.
4566 (cplus_language_data): Likewise.
4567 (asm_language_data): Likewise.
4568 (minimal_language_data): Likewise.
4569 * d-lang.c (d_language_data): Likewise.
4570 (d_language::value_print_inner): New member function.
4571 * f-lang.c (f_language_data): Delete la_value_print_inner
4572 initializer.
4573 (f_language::value_print_inner): New member function.
4574 * f-lang.h (f_value_print_innner): Rename to...
4575 (f_value_print_inner): ...this (note spelling of 'inner').
4576 * f-valprint.c (f_value_print_innner): Rename to...
4577 (f_value_print_inner): ...this (note spelling of 'inner').
4578 * go-lang.c (go_language_data): Delete la_value_print_inner
4579 initializer.
4580 (go_language::value_print_inner): New member function.
4581 * language.c (language_defn::value_print_inner): Define new member
4582 function.
4583 (unk_lang_value_print_inner): Delete.
4584 (unknown_language_data): Delete la_value_print_inner initializer.
4585 (unknown_language::value_print_inner): New member function.
4586 (auto_language_data): Delete la_value_print_inner initializer.
4587 (auto_language::value_print_inner): New member function.
4588 * language.h (language_data): Delete la_value_print_inner field.
4589 (language_defn::value_print_inner): Delcare new member function.
4590 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4591 initializer.
4592 (m2_language::value_print_inner): New member function.
4593 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4594 initializer.
4595 * opencl-lang.c (opencl_language_data): Likewise.
4596 * p-lang.c (pascal_language_data): Likewise.
4597 (pascal_language::value_print_inner): New member function.
4598 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4599 initializer.
4600 (rust_language::value_print_inner): New member function.
4601 * valprint.c (do_val_print): Update call to value_print_inner.
4602
a1d1fa3e
AB
46032020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4604
4605 * ada-lang.c (ada_language_data): Delete la_value_print
4606 initializer.
4607 (ada_language::value_print): New member function.
4608 * c-lang.c (c_language_data): Delete la_value_print initializer.
4609 (cplus_language_data): Likewise.
4610 (asm_language_data): Likewise.
4611 (minimal_language_data): Likewise.
4612 * d-lang.c (d_language_data): Likewise.
4613 * f-lang.c (f_language_data): Likewise.
4614 * go-lang.c (go_language_data): Likewise.
4615 * language.c (unk_lang_value_print): Delete.
4616 (language_defn::value_print): Define new member function.
4617 (unknown_language_data): Delete la_value_print initializer.
4618 (unknown_language::value_print): New member function.
4619 (auto_language_data): Delete la_value_print initializer.
4620 (auto_language::value_print): New member function.
4621 * language.h (language_data): Delete la_value_print field.
4622 (language_defn::value_print): Declare new member function.
4623 (LA_VALUE_PRINT): Update call to value_print.
4624 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4625 * objc-lang.c (objc_language_data): Likewise.
4626 * opencl-lang.c (opencl_language_data): Likewise.
4627 * p-lang.c (pascal_language_data): Likewise.
4628 (pascal_language::value_print): New member function.
4629 * rust-lang.c (rust_language_data): Delete la_value_print
4630 initializer.
4631
f16a9f57
AB
46322020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4633
4634 * ada-lang.c (ada_watch_location_expression): Rename to
4635 ada_language::watch_location_expression.
4636 (ada_language_data): Delete la_watch_location_expression
4637 initializer.
4638 (ada_language::watch_location_expression): New member function,
4639 implementation from ada_watch_location_expression.
4640 * breakpoint.c (watch_command_1): Update call to
4641 watch_location_expression.
4642 * c-lang.c (c_watch_location_expression): Rename to
4643 language_defn::watch_location_expression.
4644 (c_language_data): Delete la_watch_location_expression
4645 initializer.
4646 (cplus_language_data): Likewise.
4647 (asm_language_data): Likewise.
4648 (minimal_language_data): Likewise.
4649 * c-lang.h (c_watch_location_expression): Delete declaration.
4650 * d-lang.c (d_language_data): Delete la_watch_location_expression
4651 initializer.
4652 * f-lang.c (f_language_data): Likewise.
4653 * go-lang.c (go_language_data): Likewise.
4654 * language.c (language_defn::watch_location_expression): Member
4655 function implementation from c_watch_location_expression.
4656 (unknown_language_data): Delete la_watch_location_expression
4657 initializer.
4658 (auto_language_data): Likewise.
4659 * language.h (language_data): Delete la_watch_location_expression
4660 field.
4661 (language_defn::watch_location_expression): Declare new member
4662 function.
4663 * m2-lang.c (m2_language_data): Delete
4664 la_watch_location_expression initializer.
4665 * objc-lang.c (objc_language_data): Likewise.
4666 * opencl-lang.c (opencl_language_data): Likewise.
4667 * p-lang.c (pascal_language_data): Likewise.
4668 * rust-lang.c (rust_watch_location_expression): Rename to
4669 rust_language::watch_location_expression.
4670 (rust_language_data): Delete la_watch_location_expression
4671 initializer.
4672 (rust_language::watch_location_expression): New member function,
4673 implementation from rust_watch_location_expression.
4674
7e56227d
AB
46752020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4676
4677 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4678 ada_language::collect_symbol_completion_matches.
4679 (ada_language_data): Delete la_collect_symbol_completion_matches
4680 initializer.
4681 (ada_language::collect_symbol_completion_matches): New member
4682 function, implementation from
4683 ada_collect_symbol_completion_matches.
4684 * c-lang.c (c_language_data): Delete
4685 la_collect_symbol_completion_matches initializer.
4686 (cplus_language_data): Likewise.
4687 (asm_language_data): Likewise.
4688 (minimal_language_data): Likewise.
4689 * d-lang.c (d_language_data): Likewise.
4690 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4691 f_language::collect_symbol_completion_matches.
4692 (f_language_data): Delete la_collect_symbol_completion_matches
4693 initializer.
4694 (f_language::collect_symbol_completion_matches) New member
4695 function, implementation from f_collect_symbol_completion_matches.
4696 * go-lang.c (go_language_data): Delete
4697 la_collect_symbol_completion_matches initializer.
4698 * language.c (unknown_language_data): Likewise.
4699 (auto_language_data): Likewise.
4700 * language.h (language_data): Delete
4701 la_collect_symbol_completion_matches field.
4702 (language_defn::collect_symbol_completion_matches): New member
4703 function.
4704 * m2-lang.c (m2_language_data): Delete
4705 la_collect_symbol_completion_matches initializer.
4706 * objc-lang.c (objc_language_data): Likewise.
4707 * opencl-lang.c (opencl_language_data): Likewise.
4708 * p-lang.c (pascal_language_data): Likewise.
4709 * rust-lang.c (rust_language_data): Likewise.
4710 * symtab.c (default_collect_symbol_completion_matches): Delete.
4711 (collect_symbol_completion_matches): Update call to
4712 collect_symbol_completion_matches.
4713 (collect_symbol_completion_matches_type): Likewise.
4714 * symtab.h (default_collect_symbol_completion_matches): Delete
4715 declaration.
4716
53fc67f8
AB
47172020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4718
4719 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4720 (ada_language_data): Delete la_word_break_characters initializer.
4721 (ada_language::word_break_characters): New member function.
4722 * c-lang.c (c_language_data): Delete la_word_break_characters
4723 initializer.
4724 (cplus_language_data): Likewise.
4725 (asm_language_data): Likewise.
4726 (minimal_language_data): Likewise.
4727 * completer.c: Update global comment.
4728 (advance_to_expression_complete_word_point): Update call to
4729 word_break_characters.
4730 (complete_files_symbols): Likewise.
4731 (complete_line_internal_1): Likewise.
4732 (default_completer_handle_brkchars): Likewise.
4733 (skip_quoted_chars): Likewise.
4734 * d-lang.c (d_language_data): Delete la_word_break_characters
4735 initializer.
4736 * f-lang.c (f_word_break_characters): Delete.
4737 (f_language_data): Delete la_word_break_characters initializer.
4738 (f_language::word_break_characters): New member function.
4739 * go-lang.c (go_language_data): Delete la_word_break_characters
4740 initializer.
4741 * language.c (unknown_language_data): Likewise.
4742 (auto_language_data): Likewise.
4743 * language.h (default_word_break_characters): Move declaration to
4744 earlier in the file.
4745 (language_data): Delete la_word_break_characters field.
4746 (language_defn::word_break_characters): New member function.
4747 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4748 initializer.
4749 * objc-lang.c (objc_language_data): Likewise.
4750 * opencl-lang.c (opencl_language_data): Likewise.
4751 * p-lang.c (pascal_language_data): Likewise.
4752 * rust-lang.c (rust_language_data): Likewise.
4753
c9debfb9
AB
47542020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4755
4756 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4757 (ada_language_data): Delete la_get_symbol_name_matcher
4758 initializer.
4759 (language_defn::get_symbol_name_matcher_inner): New member
4760 function.
4761 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4762 initializer.
4763 (cplus_language_data): Likewise.
4764 (cplus_language::get_symbol_name_matcher_inner): New member
4765 function.
4766 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4767 (minimal_language_data): Likewise.
4768 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4769 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4770 initializer.
4771 * dictionary.c (iter_match_first_hashed): Update call to
4772 get_symbol_name_matcher.
4773 (iter_match_next_hashed): Likewise.
4774 (iter_match_next_linear): Likewise.
4775 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4776 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4777 initializer.
4778 (f_language::get_symbol_name_matcher_inner): New member function.
4779 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4780 initializer.
4781 * language.c (default_symbol_name_matcher): Update header comment,
4782 make static.
4783 (language_defn::get_symbol_name_matcher): New definition.
4784 (language_defn::get_symbol_name_matcher_inner): Likewise.
4785 (get_symbol_name_matcher): Delete.
4786 (unknown_language_data): Delete la_get_symbol_name_matcher
4787 initializer.
4788 (auto_language_data): Likewise.
4789 * language.h (language_data): Delete la_get_symbol_name_matcher
4790 field.
4791 (language_defn::get_symbol_name_matcher): New member function.
4792 (language_defn::get_symbol_name_matcher_inner): Likewise.
4793 (default_symbol_name_matcher): Delete declaration.
4794 * linespec.c (find_methods): Update call to
4795 get_symbol_name_matcher.
4796 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4797 initializer.
4798 * minsyms.c (lookup_minimal_symbol): Update call to
4799 get_symbol_name_matcher.
4800 (iterate_over_minimal_symbols): Likewise.
4801 * objc-lang.c (objc_language_data): Delete
4802 la_get_symbol_name_matcher initializer.
4803 * opencl-lang.c (opencl_language_data): Likewise.
4804 * p-lang.c (pascal_language_data): Likewise.
4805 * psymtab.c (psymbol_name_matches): Update call to
4806 get_symbol_name_matcher.
4807 * rust-lang.c (rust_language_data): Delete
4808 la_get_symbol_name_matcher initializer.
4809 * symtab.c (symbol_matches_search_name): Update call to
4810 get_symbol_name_matcher.
4811 (compare_symbol_name): Likewise.
4812
9a49ad8c
AB
48132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4814
4815 * ada-lang.c (ada_language_data): Delete la_compute_program
4816 initializer.
4817 * c-lang.c (c_language_data): Likewise.
4818 (c_language::compute_program): New member function.
4819 (cplus_language_data): Delete la_compute_program initializer.
4820 (cplus_language::compute_program): New member function.
4821 (asm_language_data): Delete la_compute_program initializer.
4822 (minimal_language_data): Likewise.
4823 * c-lang.h (c_compute_program): Update comment.
4824 (cplus_compute_program): Likewise.
4825 * compile/compile-c-support.c (c_compute_program): Likewise.
4826 (cplus_compute_program): Likewise.
4827 * compile/compile.c (compile_to_object): Update call to
4828 la_compute_program.
4829 * d-lang.c (d_language_data): Delete la_compute_program
4830 initializer.
4831 * f-lang.c (f_language_data): Likewise.
4832 * go-lang.c (go_language_data): Likewise.
4833 * language.c (unknown_language_data): Likewise.
4834 (auto_language_data): Likewise.
4835 * language.h (language_data): Delete la_compute_program field.
4836 (language_defn::compute_program): New member function.
4837 * m2-lang.c (m2_language_data): Delete la_compute_program
4838 initializer.
4839 * objc-lang.c (objc_language_data): Likewise.
4840 * opencl-lang.c (opencl_language_data): Likewise.
4841 * p-lang.c (pascal_language_data): Likewise.
4842 * rust-lang.c (rust_language_data): Likewise.
4843
eff93b4d
AB
48442020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4845
4846 * ada-lang.c (ada_language_data) Delete
4847 la_class_name_from_physname initializer.
4848 * c-lang.c (c_language_data): Likewise.
4849 (cplus_language_data): Likewise.
4850 (cplus_language::class_name_from_physname): New member function.
4851 (asm_language_data): Delete la_class_name_from_physname
4852 initializer.
4853 (minimal_language_data): Likewise.
4854 * d-lang.c (d_language_data): Likewise.
4855 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4856 method on language_defn class.
4857 (guess_full_die_structure_name): Likewise.
4858 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4859 initializer.
4860 * go-lang.c (go_language_data): Likewise.
4861 * language.c (language_class_name_from_physname): Delete.
4862 (unk_lang_class_name): Delete.
4863 (unknown_language_data): Delete la_class_name_from_physname
4864 initializer.
4865 (auto_language_data): Likewise.
4866 * language.h (language_data): Delete la_class_name_from_physname
4867 field.
4868 (language_defn::class_name_from_physname): New function.
4869 (language_class_name_from_physname): Delete declaration.
4870 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4871 initializer.
4872 * objc-lang.c (objc_language_data): Likewise.
4873 * opencl-lang.c (opencl_language_data): Likewise.
4874 * p-lang.c (pascal_language_data): Likewise.
4875 * rust-lang.c (rust_language_data): Likewise.
4876
de543742
TT
48772020-06-16 Tom Tromey <tom@tromey.com>
4878
4879 * tui/tui-data.h (STATUS_NAME): New macro.
4880 * tui/tui-layout.c (tui_remove_some_windows)
4881 (initialize_known_windows, tui_register_window)
4882 (tui_layout_split::remove_windows, initialize_layouts)
4883 (tui_new_layout_command): Don't use hard-coded window names.
4884
a350efd4
TT
48852020-06-16 Tom Tromey <tom@tromey.com>
4886
4887 PR tui/25348:
4888 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4889 tui_initialize_readline. Only run once. Call rl_initialize.
4890 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4891 tui_initialize_readline.
4892 * tui/tui-io.c (tui_setup_io): Call
4893 tui_ensure_readline_initialized.
4894 * tui/tui-interp.c (tui_interp::init): Update.
4895
39ec0490
TT
48962020-06-16 Tom Tromey <tom@tromey.com>
4897
4898 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4899 Also preserve the status window.
4900
d2d1ea20
TT
49012020-06-16 Tom Tromey <tom@tromey.com>
4902
4903 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4904 where m_window==nullptr.
4905
66920317
TT
49062020-06-15 Tom Tromey <tromey@adacore.com>
4907
4908 * windows-nat.c (windows_nat::handle_output_debug_string):
4909 Update.
4910 (windows_nat::handle_ms_vc_exception): Update.
4911 * target.h (target_read_string): Change API.
4912 * target.c (target_read_string): Change API.
4913 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4914 Update.
4915 * solib-frv.c (frv_current_sos): Update.
4916 * solib-dsbt.c (dsbt_current_sos): Update.
4917 * solib-darwin.c (darwin_current_sos): Update.
4918 * linux-thread-db.c (inferior_has_bug): Update.
4919 * expprint.c (print_subexp_standard): Update.
4920 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4921 (ada_exception_message_1): Update.
4922
a5d871dd
TT
49232020-06-15 Tom Tromey <tromey@adacore.com>
4924
4925 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4926
670e35fa
TT
49272020-06-15 Tom Tromey <tromey@adacore.com>
4928
4929 * valprint.c (read_string): Update comment.
4930 * target.c (MIN): Remove.
4931 (target_read_string): Rewrite.
4932
f5272a3b
TT
49332020-06-15 Tom Tromey <tromey@adacore.com>
4934
4935 * corefile.c (read_memory_string): Remove.
4936 * ada-valprint.c (ada_value_print_ptr): Update.
4937 * ada-lang.h (ada_tag_name): Change return type.
4938 * ada-lang.c (type_from_tag): Update.
4939 (ada_tag_name_from_tsd): Change return type. Use
4940 target_read_string.
4941 (ada_tag_name): Likewise.
4942 * gdbcore.h (read_memory_string): Don't declare.
4943
2c074f49
HD
49442020-06-14 Hannes Domani <ssbssa@yahoo.de>
4945
4946 * symtab.c (rbreak_command): Ignore Windows drive colon.
4947
6a17d503
SM
49482020-06-12 Simon Marchi <simon.marchi@efficios.com>
4949
4950 * NEWS: Mention removed GDBserver host support.
4951
453c733f
NC
49522020-06-12 Nelson Chu <nelson.chu@sifive.com>
4953
4954 * features/riscv/rebuild-csr-xml.sh: Updated.
4955
2b4e6a3f
TT
49562020-06-11 Tom Tromey <tom@tromey.com>
4957
4958 PR gdb/18318:
4959 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4960
4412332f
JG
49612020-06-09 Jonny Grant <jg@jguk.org>
49622020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4963
4964 * main.c (captured_main_1): Don't print new line after help.
4965 (print_gdb_help): add mailing list and IRC channel information
4966 to --help. Add new lines between items in the footer. Remove
4967 quotes around bug url.
4968
2f33032a
KS
49692020-06-11 Keith Seitz <keiths@redhat.com>
4970
4971 PR gdb/21356
4972 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4973 Resolve typedefs for type length calculations.
4974
7ab96794
TV
49752020-06-10 Tom de Vries <tdevries@suse.de>
4976
4977 PR ada/24713
4978 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4979 (write_psymbols): Enable .gdb_index for ada.
4980 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4981 ada.
4982
e5f3ece2
TV
49832020-06-10 Tom de Vries <tdevries@suse.de>
4984
4985 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4986 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4987 namei" instead of "const char *name" argument.
4988 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4989 dw2_symtab_iter_init.
4990
940da03e
SM
49912020-06-08 Simon Marchi <simon.marchi@efficios.com>
4992
4993 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4994 to use type::field and field::type instead.
4995
b6cdac4b
SM
49962020-06-08 Simon Marchi <simon.marchi@efficios.com>
4997
4998 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4999 to use field::type instead.
5000
5d14b6e5
SM
50012020-06-08 Simon Marchi <simon.marchi@efficios.com>
5002
5003 * gdbtypes.h (struct field) <type, set_type>: New methods.
5004 Rename `type` field to...
5005 <m_type>: ... this. Change references throughout to use type or
5006 set_type methods.
5007 (FIELD_TYPE): Use field::type. Change call sites that modify
5008 the field's type to use field::set_type instead.
5009
3d967001
SM
50102020-06-08 Simon Marchi <simon.marchi@efficios.com>
5011
5012 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5013 to use type::index_type instead.
5014
262abc0d
SM
50152020-06-08 Simon Marchi <simon.marchi@efficios.com>
5016
5017 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5018 methods.
5019 (TYPE_INDEX_TYPE): Use type::index_type.
5020 * gdbtypes.c (create_array_type_with_stride): Likewise.
5021
82836c92
TT
50222020-06-07 Tom Tromey <tom@tromey.com>
5023
5024 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5025 parameter.
5026 (generic_value_print): Update.
5027
940dace9
AB
50282020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5029
5030 Revert commit 982a38f60b0.
5031 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5032
982a38f6
AB
50332020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5034
5035 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5036 avoid use after free.
5037
82f06518
TV
50382020-06-05 Tom de Vries <tdevries@suse.de>
5039
5040 * NEWS: Fix typos.
5041
f8c41851
SM
50422020-06-04 Simon Marchi <simon.marchi@efficios.com>
5043
5044 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5045 the per_bfd object.
5046 (dwarf2_read_debug_names): Likewise.
5047 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5048 object when re-using a per_bfd object with an index.
5049
f9b5d5ea
TV
50502020-06-03 Tom de Vries <tdevries@suse.de>
5051
5052 PR symtab/26046
5053 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5054 children for C++.
5055 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5056 DW_TAG_subprogram.
5057
f6eee2d0
AB
50582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5059
5060 * ada-lang.c (ada_language_data): Delete skip_trampoline
5061 initializer.
5062 * c-lang.c (c_language_data): Likewise.
5063 (cplus_language_data): Likewise.
5064 (cplus_language::skip_trampoline): New member function.
5065 (asm_language_data): Delete skip_trampoline initializer.
5066 (minimal_language_data): Likewise.
5067 * d-lang.c (d_language_data): Likewise.
5068 * f-lang.c (f_language_data): Likewise.
5069 * go-lang.c (go_language_data): Likewise.
5070 * language.c (unk_lang_trampoline): Delete function.
5071 (skip_language_trampoline): Update.
5072 (unknown_language_data): Delete skip_trampoline initializer.
5073 (auto_language_data): Likewise.
5074 * language.h (language_data): Delete skip_trampoline field.
5075 (language_defn::skip_trampoline): New function.
5076 * m2-lang.c (m2_language_data): Delete skip_trampoline
5077 initializer.
5078 * objc-lang.c (objc_skip_trampoline): Delete function, move
5079 implementation to objc_language::skip_trampoline.
5080 (objc_language_data): Delete skip_trampoline initializer.
5081 (objc_language::skip_trampoline): New member function with
5082 implementation from objc_skip_trampoline.
5083 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5084 initializer.
5085 * p-lang.c (pascal_language_data): Likewise.
5086 * rust-lang.c (rust_language_data): Likewise.
5087
0a50df5d
AB
50882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5089
5090 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5091 (ada_language::demangle): New member function.
5092 * c-lang.c (c_language_data): Delete la_demangle initializer.
5093 (cplus_language_data): Delete la_demangle initializer.
5094 (cplus_language::demangle): New member function.
5095 (asm_language_data): Delete la_demangle initializer.
5096 (minimal_language_data): Delete la_demangle initializer.
5097 * d-lang.c (d_language_data): Delete la_demangle initializer.
5098 (d_language::demangle): New member function.
5099 * f-lang.c (f_language_data): Delete la_demangle initializer.
5100 (f_language::demangle): New member function.
5101 * go-lang.c (go_language_data): Delete la_demangle initializer.
5102 (go_language::demangle): New member function.
5103 * language.c (language_demangle): Update.
5104 (unk_lang_demangle): Delete.
5105 (unknown_language_data): Delete la_demangle initializer.
5106 (unknown_language::demangle): New member function.
5107 (auto_language_data): Delete la_demangle initializer.
5108 (auto_language::demangle): New member function.
5109 * language.h (language_data): Delete la_demangle field.
5110 (language_defn::demangle): New function.
5111 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5112 * objc-lang.c (objc_language_data): Delete la_demangle
5113 initializer.
5114 (objc_language::demangle): New member function.
5115 * opencl-lang.c (opencl_language_data): Delete la_demangle
5116 initializer.
5117 * p-lang.c (pascal_language_data): Likewise.
5118 * rust-lang.c (rust_language_data): Likewise.
5119 (rust_language::demangle): New member function.
5120
fbfb0a46
AB
51212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5122
5123 * ada-lang.c (ada_language_data): Delete la_print_type
5124 initializer.
5125 (ada_language::print_type): New member function.
5126 * c-lang.c (c_language_data): Delete la_print_type initializer.
5127 (c_language::print_type): New member function.
5128 (cplus_language_data): Delete la_print_type initializer.
5129 (cplus_language::print_type): New member function.
5130 (asm_language_data): Delete la_print_type initializer.
5131 (asm_language::print_type): New member function.
5132 (minimal_language_data): Delete la_print_type initializer.
5133 (minimal_language::print_type): New member function.
5134 * d-lang.c (d_language_data): Delete la_print_type initializer.
5135 (d_language::print_type): New member function.
5136 * f-lang.c (f_language_data): Delete la_print_type initializer.
5137 (f_language::print_type): New member function.
5138 * go-lang.c (go_language_data): Delete la_print_type initializer.
5139 (go_language::print_type): New member function.
5140 * language.c (unk_lang_print_type): Delete.
5141 (unknown_language_data): Delete la_print_type initializer.
5142 (unknown_language::print_type): New member function.
5143 (auto_language_data): Delete la_print_type initializer.
5144 (auto_language::print_type): New member function.
5145 * language.h (language_data): Delete la_print_type field.
5146 (language_defn::print_type): New function.
5147 (LA_PRINT_TYPE): Update.
5148 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5149 (m2_language::print_type): New member function.
5150 * objc-lang.c (objc_language_data): Delete la_print_type
5151 initializer.
5152 (objc_language::print_type): New member function.
5153 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5154 to opencl_language::print_type.
5155 (opencl_language_data): Delete la_print_type initializer.
5156 (opencl_language::print_type): New member function, implementation
5157 from opencl_print_type.
5158 * p-lang.c (pascal_language_data): Delete la_print_type
5159 initializer.
5160 (pascal_language::print_type): New member function.
5161 * rust-lang.c (rust_print_type): Delete, implementation moved to
5162 rust_language::print_type.
5163 (rust_language_data): Delete la_print_type initializer.
5164 (rust_language::print_type): New member function, implementation
5165 from rust_print_type.
5166
6f827019
AB
51672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5168
5169 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5170 implementation moves to...
5171 (ada_language::sniff_from_mangled_name): ...here. Update return
5172 type.
5173 (ada_language_data): Delete la_sniff_from_mangled_name
5174 initializer.
5175 * c-lang.c (c_language_data): Likewise.
5176 (cplus_language_data): Likewise.
5177 (cplus_language::sniff_from_mangled_name): New member function,
5178 implementation taken from gdb_sniff_from_mangled_name.
5179 (asm_language_data): Delete la_sniff_from_mangled_name
5180 initializer.
5181 (minimal_language_data): Likewise.
5182 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5183 implementation moves to cplus_language::sniff_from_mangled_name.
5184 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5185 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5186 moves to...
5187 (d_language::sniff_from_mangled_name): ...here.
5188 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5189 * f-lang.c (f_language_data): Likewise.
5190 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5191 moves to...
5192 (go_language::sniff_from_mangled_name): ...here.
5193 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5194 * language.c (language_sniff_from_mangled_name): Delete.
5195 (unknown_language_data): Delete la_sniff_from_mangled_name
5196 initializer.
5197 (auto_language_data): Likewise.
5198 * language.h (language_data): Delete la_sniff_from_mangled_name
5199 field.
5200 (language_defn::sniff_from_mangled_name): New function.
5201 (language_sniff_from_mangled_name): Delete declaration.
5202 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5203 field.
5204 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5205 implementation moves to...
5206 (objc_language::sniff_from_mangled_name): ...here.
5207 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5208 * opencl-lang.c (opencl_language_data): Likewise.
5209 * p-lang.c (pascal_language_data): Likewise.
5210 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5211 implementation moves to...
5212 (rust_language::sniff_from_mangled_name): ...here.
5213 (rust_language_data): Delete la_sniff_from_mangled_name
5214 initializer.
5215 * symtab.c (symbol_find_demangled_name): Call
5216 sniff_from_mangled_name member function.
5217
fb8006fd
AB
52182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5219
5220 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5221 initializer.
5222 * c-lang.c (c_language_data): Likewise.
5223 (cplus_language_data): Likewise.
5224 (cplus_language::search_name_hash): New member function.
5225 (asm_language_data): Delete la_search_name_hash initializer.
5226 (minimal_language_data): Likewise.
5227 * d-lang.c (d_language_data): Likewise.
5228 * dictionary.c (default_search_name_hash): Rename to...
5229 (language_defn::search_name_hash): ...this.
5230 * f-lang.c (f_language_data): Likewise.
5231 (f_language::search_name_hash): New member function.
5232 * go-lang.c (go_language_data): Delete la_search_name_hash
5233 initializer.
5234 * language.c (unknown_language_data): Likewise.
5235 (auto_language_data): Likewise.
5236 * language.h (struct language_data): Delete la_search_name_hash
5237 field.
5238 (language_defn::search_name_hash): Declare new member function.
5239 (default_search_name_hash): Delete declaration.
5240 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5241 initializer.
5242 * objc-lang.c (objc_language_data): Likewise.
5243 * opencl-lang.c (opencl_language_data): Likewise.
5244 * p-lang.c (pascal_language_data): Likewise.
5245 * rust-lang.c (rust_language_data): Likewise.
5246 * symtab.c (search_name_hash): Update call.
5247
8e25bafe
AB
52482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5249
5250 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5251 initializer.
5252 * c-lang.c (class compile_instance): Declare.
5253 (c_language_data): Delete la_get_compile_instance initializer.
5254 (c_language::get_compile_instance): New member function.
5255 (cplus_language_data): Delete la_get_compile_instance initializer.
5256 (cplus_language::get_compile_instance): New member function.
5257 (asm_language_data): Delete la_get_compile_instance initializer.
5258 (minimal_language_data): Likewise.
5259 * c-lang.h (c_get_compile_context): Update comment.
5260 (cplus_get_compile_context): Update comment.
5261 * compile/compile.c (compile_to_object): Update calls, don't rely
5262 on function pointer being NULL.
5263 * d-lang.c (d_language_data): Delete la_get_compile_instance
5264 initializer.
5265 * f-lang.c (f_language_data): Likewise.
5266 * go-lang.c (go_language_data): Likewise.
5267 * language.c (unknown_language_data): Likewise.
5268 (auto_language_data): Likewise.
5269 * language.h (language_data): Delete la_get_compile_instance field.
5270 (language_defn::get_compile_instance): New member function.
5271 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5272 initializer.
5273 * objc-lang.c (objc_language_data): Likewise.
5274 * opencl-lang.c (opencl_language_data): Likewise.
5275 * p-lang.c (pascal_language_data): Likewise.
5276 * rust-lang.c (rust_language_data): Likewise.
5277
4009ee92
AB
52782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5279
5280 * ada-lang.c (ada_add_all_symbols): Update comment.
5281 (ada_iterate_over_symbols): Delete, move implementation to...
5282 (ada_language::iterate_over_symbols): ...here, a new member
5283 function, rewrite to use range based for loop.
5284 (ada_language_data): Delete la_iterate_over_symbols initializer.
5285 * c-lang.c (c_language_data): Likewise.
5286 (cplus_language_data): Likewise.
5287 (asm_language_data): Likewise.
5288 (minimal_language_data): Likewise.
5289 * d-lang.c (d_language_data): Likewise.
5290 * f-lang.c (f_language_data): Likewise.
5291 * go-lang.c (go_language_data): Likewise.
5292 * language.c (unknown_language_data): Likewise.
5293 (auto_language_data): Likewise.
5294 * language.h (language_data): Delete la_iterate_over_symbols field.
5295 (language_defn::iterate_over_symbols): New member function.
5296 (LA_ITERATE_OVER_SYMBOLS): Update.
5297 * linespec.c (iterate_over_all_matching_symtabs): Update.
5298 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5299 initializer.
5300 * objc-lang.c (objc_language_data): Likewise.
5301 * opencl-lang.c (opencl_language_data): Likewise.
5302 * p-lang.c (pascal_language_data): Likewise.
5303 * rust-lang.c (rust_language_data): Likewise.
5304
54f4ca46
AB
53052020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5306
5307 * ada-lang.c (ada_language_data): Delete
5308 la_lookup_transparent_type initializer.
5309 * c-lang.c (c_language_data): Likewise.
5310 (cplus_language_data): Likewise.
5311 (cplus_language::lookup_transparent_type): New member function.
5312 (asm_language_data): Delete la_lookup_transparent_type
5313 initializer.
5314 (minimal_language_data): Likewise.
5315 * d-lang.c (d_language_data): Likewise.
5316 * f-lang.c (f_language_data): Likewise.
5317 * go-lang.c (go_language_data): Likewise.
5318 * language.c (unknown_language_data): Likewise.
5319 (auto_language_data): Likewise.
5320 * language.h (struct language_data): Delete
5321 la_lookup_transparent_type field.
5322 (language_defn::lookup_transparent_type): New member function.
5323 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5324 initializer.
5325 * objc-lang.c (objc_language_data): Likewise.
5326 * opencl-lang.c (opencl_language_data): Likewise.
5327 * p-lang.c (pascal_language_data): Likewise.
5328 * rust-lang.c (rust_language_data): Likewise.
5329 * symtab.c (symbol_matches_domain): Update call.
5330
1fb314aa
AB
53312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5332
5333 * ada-lang.c (ada_language_arch_info): Delete function, move
5334 implementation to...
5335 (ada_language::language_arch_info): ...here, a new member
5336 function.
5337 (ada_language_data): Delete la_language_arch_info.
5338 * c-lang.c (c_language_data): Likewise.
5339 (c_language::language_arch_info): New member function.
5340 (cplus_language_arch_info): Delete function, move
5341 implementation to...
5342 (cplus_language::language_arch_info): ...here, a new member
5343 function.
5344 (cplus_language_data): Delete la_language_arch_info.
5345 (asm_language_data): Likewise.
5346 (asm_language::language_arch_info): New member function.
5347 (minimal_language_data): Delete la_language_arch_info.
5348 (minimal_language::language_arch_info): New member function.
5349 * d-lang.c (d_language_arch_info): Delete function, move
5350 implementation to...
5351 (d_language::language_arch_info): ...here, a new member
5352 function.
5353 (d_language_data): Delete la_language_arch_info.
5354 * f-lang.c (f_language_arch_info): Delete function, move
5355 implementation to...
5356 (f_language::language_arch_info): ...here, a new member
5357 function.
5358 (f_language_data): Delete la_language_arch_info.
5359 * go-lang.c (go_language_arch_info): Delete function, move
5360 implementation to...
5361 (go_language::language_arch_info): ...here, a new member
5362 function.
5363 (go_language_data): Delete la_language_arch_info.
5364 * language.c (unknown_language_data): Likewise.
5365 (unknown_language::language_arch_info): New member function.
5366 (auto_language_data): Delete la_language_arch_info.
5367 (auto_language::language_arch_info): New member function.
5368 (language_gdbarch_post_init): Update call to
5369 la_language_arch_info.
5370 * language.h (language_data): Delete la_language_arch_info
5371 function pointer.
5372 (language_defn::language_arch_info): New function.
5373 * m2-lang.c (m2_language_arch_info): Delete function, move
5374 implementation to...
5375 (m2_language::language_arch_info): ...here, a new member
5376 function.
5377 (m2_language_data): Delete la_language_arch_info.
5378 * objc-lang.c (objc_language_arch_info): Delete function, move
5379 implementation to...
5380 (objc_language::language_arch_info): ...here, a new member
5381 function.
5382 (objc_language_data): Delete la_language_arch_info.
5383 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5384 implementation to...
5385 (opencl_language::language_arch_info): ...here, a new member
5386 function.
5387 (opencl_language_data): Delete la_language_arch_info.
5388 * p-lang.c (pascal_language_arch_info): Delete function, move
5389 implementation to...
5390 (pascal_language::language_arch_info): ...here, a new member
5391 function.
5392 (pascal_language_data): Delete la_language_arch_info.
5393 * rust-lang.c (rust_language_arch_info): Delete function, move
5394 implementation to...
5395 (rust_language::language_arch_info): ...here, a new member
5396 function.
5397 (rust_language_data): Delete la_language_arch_info.
5398
48448202
AB
53992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5400
5401 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5402 initializer.
5403 * c-lang.c (c_language_data): Likewise.
5404 (cplus_language_data): Likewise.
5405 (cplus_language::pass_by_reference_info): New method.
5406 (asm_language_data): Delete la_pass_by_reference initializer.
5407 (minimal_language_data): Likewise.
5408 * cp-abi.c (cp_pass_by_reference): Remove use of
5409 default_pass_by_reference.
5410 * d-lang.c (d_language_data): Likewise.
5411 * f-lang.c (f_language_data): Likewise.
5412 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5413 default_pass_by_reference.
5414 * go-lang.c (go_language_data): Likewise.
5415 * language.c (language_pass_by_reference): Update.
5416 (default_pass_by_reference): Delete.
5417 (unknown_language_data): Delete la_pass_by_reference
5418 initializer.
5419 (auto_language_data): Likewise.
5420 * language.h (struct language_data): Delete la_pass_by_reference
5421 field.
5422 (language_defn::pass_by_reference_info): New member function.
5423 (default_pass_by_reference): Delete declaration.
5424 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5425 initializer.
5426 * objc-lang.c (objc_language_data): Likewise.
5427 * opencl-lang.c (opencl_language_data): Likewise.
5428 * p-lang.c (pascal_language_data): Likewise.
5429 * rust-lang.c (rust_language_data): Likewise.
5430
15e5fd35
AB
54312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5432
5433 * ada-lang.c (ada_read_var_value): Delete function, move
5434 implementation to...
5435 (ada_language::read_var_value): ...here.
5436 (ada_language_data): Delete la_read_var_value initializer.
5437 * c-lang.c (c_language_data): Likewise.
5438 (cplus_language_data): Likewise.
5439 (minimal_language_data): Likewise.
5440 * d-lang.c (d_language_data): Likewise.
5441 * f-lang.c (f_language_data): Likewise.
5442 * findvar.c (default_read_var_value): Rename to...
5443 (language_defn::read_var_value): ...this.
5444 * findvar.c (read_var_value): Update header comment, and change to
5445 call member function instead of function pointer.
5446 * go-lang.c (go_language_data): Likewise.
5447 * language.c (unknown_language_data): Delete la_read_var_value
5448 initializer.
5449 (auto_language_data): Likewise.
5450 * language.h (struct language_data): Delete la_read_var_value
5451 field.
5452 (language_defn::read_var_value): New member function.
5453 (default_read_var_value): Delete declaration.
5454 * m2-lang.c (m2_language_data): Delete la_read_var_value
5455 initializer.
5456 * objc-lang.c (objc_language_data): Likewise.
5457 * opencl-lang.c (opencl_language_data): Likewise.
5458 * p-lang.c (pascal_language_data): Likewise.
5459 * rust-lang.c (rust_language_data): Likewise.
5460 * value.h (default_read_var_value): Delete declaration.
5461
5bd40f2a
AB
54622020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5463
5464 * ada-lang.c (ada_print_array_index): Delete function, move
5465 implementation to...
5466 (ada_language::print_array_index): ...here.
5467 (ada_language_data): Delete la_print_array_index initializer.
5468 * c-lang.c (c_language_data): Likewise.
5469 (cplus_language_data): Likewise.
5470 (minimal_language_data): Likewise.
5471 * d-lang.c (d_language_data): Likewise.
5472 * f-lang.c (f_language_data): Likewise.
5473 * go-lang.c (go_language_data): Likewise.
5474 * language.c (default_print_array_index): Delete function, move
5475 implementation to...
5476 (language_defn::print_array_index): ...here.
5477 (unknown_language_data): Delete la_print_array_index initializer.
5478 (auto_language_data): Likewise.
5479 * language.h (struct language_data): Delete la_print_array_index
5480 field.
5481 (language_defn::print_array_index): New member function.
5482 (LA_PRINT_ARRAY_INDEX): Update.
5483 (default_print_array_index): Delete declaration.
5484 * m2-lang.c (m2_language_data): Delete la_print_array_index
5485 initializer.
5486 * objc-lang.c (objc_language_data): Likewise.
5487 * opencl-lang.c (opencl_language_data): Likewise.
5488 * p-lang.c (pascal_language_data): Likewise.
5489 * rust-lang.c (rust_language_data): Likewise.
5490
0874fd07
AB
54912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5492
5493 * gdb/ada-lang.c (ada_language_defn): Convert to...
5494 (ada_language_data): ...this.
5495 (class ada_language): New class.
5496 (ada_language_defn): New static global.
5497 * gdb/c-lang.c (c_language_defn): Convert to...
5498 (c_language_data): ...this.
5499 (class c_language): New class.
5500 (c_language_defn): New static global.
5501 (cplus_language_defn): Convert to...
5502 (cplus_language_data): ...this.
5503 (class cplus_language): New class.
5504 (cplus_language_defn): New static global.
5505 (asm_language_defn): Convert to...
5506 (asm_language_data): ...this.
5507 (class asm_language): New class.
5508 (asm_language_defn): New static global.
5509 (minimal_language_defn): Convert to...
5510 (minimal_language_data): ...this.
5511 (class minimal_language): New class.
5512 (minimal_language_defn): New static global.
5513 * gdb/d-lang.c (d_language_defn): Convert to...
5514 (d_language_data): ...this.
5515 (class d_language): New class.
5516 (d_language_defn): New static global.
5517 * gdb/f-lang.c (f_language_defn): Convert to...
5518 (f_language_data): ...this.
5519 (class f_language): New class.
5520 (f_language_defn): New static global.
5521 * gdb/go-lang.c (go_language_defn): Convert to...
5522 (go_language_data): ...this.
5523 (class go_language): New class.
5524 (go_language_defn): New static global.
5525 * gdb/language.c (unknown_language_defn): Remove declaration.
5526 (current_language): Initialize to nullptr, real initialization is
5527 moved to _initialize_language.
5528 (languages): Delete global.
5529 (language_defn::languages): Define.
5530 (set_language_command): Use language_defn::languages.
5531 (set_language): Likewise.
5532 (range_error): Likewise.
5533 (language_enum): Likewise.
5534 (language_def): Likewise.
5535 (add_set_language_command): Use language_def::languages for the
5536 language list, and language_def to lookup language pointers.
5537 (skip_language_trampoline): Use language_defn::languages.
5538 (unknown_language_defn): Convert to...
5539 (unknown_language_data): ...this.
5540 (class unknown_language): New class.
5541 (unknown_language_defn): New static global.
5542 (auto_language_defn): Convert to...
5543 (auto_language_data): ...this.
5544 (class auto_language): New class.
5545 (auto_language_defn): New static global.
5546 (language_gdbarch_post_init): Use language_defn::languages.
5547 (_initialize_language): Initialize current_language.
5548 * gdb/language.h (struct language_defn): Rename to...
5549 (struct language_data): ...this.
5550 (struct language_defn): New.
5551 (auto_language_defn): Delete.
5552 (unknown_language_defn): Delete.
5553 (minimal_language_defn): Delete.
5554 (ada_language_defn): Delete.
5555 (asm_language_defn): Delete.
5556 (c_language_defn): Delete.
5557 (cplus_language_defn): Delete.
5558 (d_language_defn): Delete.
5559 (f_language_defn): Delete.
5560 (go_language_defn): Delete.
5561 (m2_language_defn): Delete.
5562 (objc_language_defn): Delete.
5563 (opencl_language_defn): Delete.
5564 (pascal_language_defn): Delete.
5565 (rust_language_defn): Delete.
5566 * gdb/m2-lang.c (m2_language_defn): Convert to...
5567 (m2_language_data): ...this.
5568 (class m2_language): New class.
5569 (m2_language_defn): New static global.
5570 * gdb/objc-lang.c (objc_language_defn): Convert to...
5571 (objc_language_data): ...this.
5572 (class objc_language): New class.
5573 (objc_language_defn): New static global.
5574 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5575 (opencl_language_data): ...this.
5576 (class opencl_language): New class.
5577 (opencl_language_defn): New static global.
5578 * gdb/p-lang.c (pascal_language_defn): Convert to...
5579 (pascal_language_data): ...this.
5580 (class pascal_language): New class.
5581 (pascal_language_defn): New static global.
5582 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5583 language pointer, update comment format.
5584 * gdb/rust-lang.c (rust_language_defn): Convert to...
5585 (rust_language_data): ...this.
5586 (class rust_language): New class.
5587 (rust_language_defn): New static global.
5588
1313c56e
AB
55892020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5590
5591 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5592 member variable.
5593 <m_stmt_at_address>: New member variable.
5594 (lnp_state_machine::record_line): Don't record some lines, update
5595 tracking of is_stmt at the same address.
5596 (lnp_state_machine::lnp_state_machine): Initialise new member
5597 variables.
5598
b7ed9f3d
ST
55992020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5600
5601 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5602 "-include gnu-nat-mig.h".
5603 * gnu-nat-mig.h: New file.
5604 * gnu-nat.c: Include "gnu-nat-mig.h".
5605 (exc_server, msg_reply_server, notify_server,
5606 process_reply_server): Remove declarations.
5607
14a8ad62
ST
56082020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5609
5610 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5611 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5612 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5613 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5614 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5615 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5616 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5617 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5618 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5619 to gnu_nat_target class.
5620 * gnu-nat.c: Likewise.
5621 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5622 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5623 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5624 object.
5625 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5626 instead of `gnu_target'.
5627
0af5e106
ST
56282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5629
5630 * i386-gnu-tdep.c: Include "gdbcore.h"
5631 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5632 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5633 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5634 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5635 i386_gnu_sigcontext_addr): New functions
5636 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5637 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5638 tdep.
5639
078f2fc9
ST
56402020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5641
5642 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5643 before fork_inferior call. Avoid calling it if target_is_pushed returns
5644 true.
5645
53dff92c
ST
56462020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5647
5648 * gnu-nat.h (gnu_target): New variable declaration.
5649 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5650 gnu_target.
5651 * gnu-nat.c (gnu_target): New variable.
5652 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5653 add_thread_silent, and add_thread calls.
5654 (gnu_nat_target::create_inferior): Pass gnu_target to
5655 add_thread_silent, thread_change_ptid call.
5656 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5657 call.
5658
5a8b8627
ST
56592020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5660
5661 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5662 (gnu_nat_target::find_memory_regions): Remove unused
5663 `old_address' variable.
5664
366f550a
ST
56652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5666
5667 * gnu-nat.c: Include "gdbarch.h".
5668
f14871bf
ST
56692020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5670
5671 * reply_mig_hack.awk (Error return): Cast function through
5672 void *, to bypass compiler function call check.
5673
c6887cfb
ST
56742020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5675
5676 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5677 $(srcdir)/reply_mig_hack.awk.
5678
6930bffe
ST
56792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5680
5681 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5682
112c22ed
JG
56832020-05-30 Jonny Grant <jg@jguk.org>
5684
5685 * configure.ac (ACX_BUGURL): change bug URL to https.
5686
f68f85b5
PA
56872020-05-30 Pedro Alves <palves@redhat.com>
5688
5689 * cp-support.c (replace_typedefs_template): New.
5690 (replace_typedefs_qualified_name): Handle
5691 DEMANGLE_COMPONENT_TEMPLATE.
5692
976ca316
SM
56932020-05-29 Simon Marchi <simon.marchi@efficios.com>
5694
5695 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5696 dwarf2/index-cache.h, dwarf2/index-write.c,
5697 dwarf2/index-write.h, dwarf2/line-header.c,
5698 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5699 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5700 variables and fields from `dwarf2_per_objfile` to just
5701 `per_objfile` throughout.
5702
989ade05
SM
57032020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5704
5705 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5706 <push_dwarf_reg_entry_value>: Add comment.
5707
c47bae85
KB
57082020-05-28 Kevin Buettner <kevinb@redhat.com>
5709 Keith Seitz <keiths@redhat.com>
5710
5711 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5712 instead of PyEval_ReleaseLock.
5713 (class gdbpy_gil): Move to earlier in file.
5714 (finalize_python): Set gdb_python_initialized.
5715 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5716 when not initialized.
5717
44486dcf
SM
57182020-05-28 Simon Marchi <simon.marchi@efficios.com>
5719
5720 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5721 <push_dwarf_reg_entry_value>: Remove assert. Override
5722 per_objfile with caller_per_objfile.
5723
f030440d
TV
57242020-05-28 Tom de Vries <tdevries@suse.de>
5725
5726 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5727 PR gold/15646 workaround to symbol kind "type".
5728
f0fbb768
TT
57292020-05-27 Tom Tromey <tromey@adacore.com>
5730
5731 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5732
af0b2a3e
TT
57332020-05-27 Tom Tromey <tromey@adacore.com>
5734
5735 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5736 Use htab_find_with_hash.
5737 <add_abbrev>: Remove "abbrev_number" parameter.
5738 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5739 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5740 (hash_abbrev): Add comment.
5741 (abbrev_table::lookup_abbrev): Move to header file.
5742 (abbrev_table::read): Update.
5743
7d00ffec
TT
57442020-05-27 Tom Tromey <tromey@adacore.com>
5745
5746 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5747 method.
5748 <canonical_name>: New member.
5749 <raw_name>: Rename from "name".
5750 (partial_die_info): Initialize canonical_name.
5751 (scan_partial_symbols): Check raw_name.
5752 (partial_die_parent_scope, partial_die_full_name)
5753 (add_partial_symbol, add_partial_subprogram)
5754 (add_partial_enumeration, load_partial_dies): Use "name" method.
5755 (partial_die_info::name): New method.
5756 (partial_die_info::read, guess_partial_die_structure_name)
5757 (partial_die_info::fixup): Update.
5758
697bba18
TT
57592020-05-27 Tom Tromey <tromey@adacore.com>
5760
5761 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5762 <get_ref_die_offset>: Inline.
5763 <get_ref_die_offset_complaint>: New method.
5764 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5765 (attribute::get_ref_die_offset_complaint): Rename from
5766 get_ref_die_offset. Just issue complaint.
5767
c17ace43
HD
57682020-05-27 Hannes Domani <ssbssa@yahoo.de>
5769
5770 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5771
96445f0b
HD
57722020-05-27 Hannes Domani <ssbssa@yahoo.de>
5773
5774 * exec.c (exec_file_attach): Use errno value of first openp failure.
5775
ac637ec3
HD
57762020-05-27 Hannes Domani <ssbssa@yahoo.de>
5777
5778 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5779 Don't close thread handle.
5780
17ee85fc
TT
57812020-05-27 Tom Tromey <tom@tromey.com>
5782 Simon Marchi <simon.marchi@efficios.com>
5783
5784 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5785 shared_ptr.
5786 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5787 member.
5788 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5789 dwarf2_per_bfd_objfile_data_key>: New globals.
5790 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5791 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5792 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5793 shared.
5794 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5795 short-circuit when sharing.
5796 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5797 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5798
39b16f87
SM
57992020-05-27 Simon Marchi <simon.marchi@efficios.com>
5800
5801 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5802 to...
5803 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5804 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5805
fcf23d5b
SM
58062020-05-27 Simon Marchi <simon.marchi@efficios.com>
5807
5808 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5809 build_name_components, find_name_components_bounds>:
5810 Add per_objfile parameter.
5811 (struct mapped_index) <symbol_name_at>: Likewise.
5812 (struct mapped_debug_names): Remove constructor.
5813 <dwarf2_per_objfile>: Remove field.
5814 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5815 (mapped_index_base::find_name_components_bounds,
5816 mapped_index_base::build_name_components,
5817 dw2_expand_symtabs_matching_symbol): Likewise.
5818 (class mock_mapped_index) <symbol_name_at>: Likewise.
5819 (check_match): Likewise.
5820 (check_find_bounds_finds): Likewise.
5821 (test_mapped_index_find_name_component_bounds): Update.
5822 (CHECK_MATCH): Update.
5823 (dw2_expand_symtabs_matching): Update.
5824 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5825 per_objfile parameter.
5826 <find_vec_in_debug_names>: Likewise.
5827 <m_per_objfile>: New field.
5828 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5829 parameter.
5830 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5831 (dw2_debug_names_iterator::next): Update.
5832 (dw2_debug_names_lookup_symbol): Update.
5833 (dw2_debug_names_expand_symtabs_for_function): Update.
5834 (dw2_debug_names_map_matching_symbols): Update.
5835 (dw2_debug_names_expand_symtabs_matching): Update.
5836 (dwarf2_read_debug_names): Update.
5837
7188ed02
SM
58382020-05-27 Simon Marchi <simon.marchi@efficios.com>
5839
5840 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5841 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5842 move to dwarf2_per_objfile.
5843 <read_in_chain>: Remove.
5844 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5845 remove_all_cus, age_comp_units>: New methods.
5846 <m_dwarf2_cus>: New member.
5847 (struct dwarf2_per_cu_data) <cu>: Remove.
5848 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5849 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5850 moved to methods of dwarf2_per_objfile.
5851 (dwarf2_clear_marks): Remove.
5852 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5853 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5854 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5855 (dwarf2_per_objfile::remove_all_cus): New.
5856 (class free_cached_comp_units) <~free_cached_comp_units>:
5857 Update.
5858 (load_cu): Update.
5859 (dw2_do_instantiate_symtab): Adjust.
5860 (fill_in_sig_entry_from_dwo_entry): Adjust.
5861 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5862 (cutu_reader::cutu_reader): Likewise.
5863 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5864 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5865 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5866 and dwarf2_per_objfile::age_comp_units.
5867 (load_partial_comp_unit): Update.
5868 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5869 (process_queue): Likewise.
5870 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5871 backlink.
5872 (dwarf2_read_addr_index): Likewise.
5873 (follow_die_offset): Likewise.
5874 (dwarf2_fetch_die_loc_sect_off): Likewise.
5875 (dwarf2_fetch_constant_bytes): Likewise.
5876 (dwarf2_fetch_die_type_sect_off): Likewise.
5877 (follow_die_sig_1): Likewise.
5878 (load_full_type_unit): Likewise.
5879 (read_signatured_type): Likewise.
5880 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5881 (dwarf2_cu::~dwarf2_cu): Remove.
5882 (dwarf2_per_objfile::get_cu): New.
5883 (dwarf2_per_objfile::set_cu): New.
5884 (age_cached_comp_units): Rename to...
5885 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5886 to std::unordered_map.
5887 (free_one_cached_comp_unit): Rename to...
5888 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5889 to std::unordered_map.
5890 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5891 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5892 a dwarf2_per_objfile in data.
5893 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5894 (dwarf2_clear_marks): Remove.
5895
2e671100
SM
58962020-05-27 Simon Marchi <simon.marchi@efficios.com>
5897
5898 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5899 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5900 (init_tu_and_read_dwo_dies): Likewise.
5901 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5902 (cutu_reader::cutu_reader): Likewise.
5903 (load_partial_comp_unit): Likewise.
5904 (process_psymtab_comp_unit): Update.
5905 (build_type_psymtabs_1): Update.
5906 (process_skeletonless_type_unit): Update.
5907 (load_full_comp_unit): Update.
5908 (find_partial_die): Update.
5909 (dwarf2_read_addr_index): Update.
5910 (read_signatured_type): Update.
5911
2e6a9f79
SM
59122020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5913
5914 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5915 m_header_read_in>: New fields.
5916 <get_header>: New method.
5917 * dwarf2/read.c (per_cu_header_read_in): Remove.
5918 (dwarf2_per_cu_data::get_header): New.
5919 (dwarf2_per_cu_data::addr_size): Update.
5920 (dwarf2_per_cu_data::offset_size): Update.
5921 (dwarf2_per_cu_data::ref_addr_size): Update.
5922
1b555f17
SM
59232020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5924
5925 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5926 (dw2_do_instantiate_symtab): Update.
5927 (queue_and_load_all_dwo_tus): Change parameter from
5928 dwarf2_per_cu_data to dwarf2_cu.
5929 (dwarf2_fetch_die_loc_sect_off): Update.
5930 (dwarf2_fetch_constant_bytes): Update.
5931 (dwarf2_fetch_die_type_sect_off): Update.
5932
8fc0b21d
SM
59332020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5934
5935 * dwarf2/read.c (process_full_comp_unit,
5936 process_full_type_unit): Remove per_cu, per_objfile paramters.
5937 Add dwarf2_cu parameter.
5938 (process_queue): Update.
5939
168c9250
SM
59402020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5941
5942 * dwarf2/read.c (create_cu_from_index_list): Replace
5943 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5944 (create_cus_from_index_list): Likewise.
5945 (create_cus_from_index): Likewise.
5946 (create_signatured_type_table_from_index): Likewise.
5947 (create_cus_from_debug_names_list): Likewise.
5948 (create_cus_from_debug_names): Likewise.
5949 (dwarf2_read_gdb_index): Update.
5950 (dwarf2_read_debug_names): Update.
5951
e286671b
TT
59522020-05-27 Tom Tromey <tom@tromey.com>
5953 Simon Marchi <simon.marchi@efficios.com>
5954
5955 * dwarf2/read.h (struct dwarf2_per_objfile)
5956 <get_type_for_signatured_type, set_type_for_signatured_type>:
5957 New methods.
5958 <m_type_map>: New member.
5959 (struct signatured_type) <type>: Remove.
5960 * dwarf2/read.c
5961 (dwarf2_per_objfile::get_type_for_signatured_type,
5962 dwarf2_per_objfile::set_type_for_signatured_type): New.
5963 (get_signatured_type): Use new methods.
5964
8adb8487
TT
59652020-05-27 Tom Tromey <tom@tromey.com>
5966 Simon Marchi <simon.marchi@efficios.com>
5967
5968 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5969 (struct dwarf2_per_objfile) <type_units>: New member.
5970 <get_type_unit_group_unshareable>: New method.
5971 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5972 num_symtabs, symtabs>: Remove; move to
5973 type_unit_group_unshareable.
5974 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5975 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5976 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5977
127bbf4b
SM
59782020-05-27 Simon Marchi <simon.marchi@efficios.com>
5979
5980 * dwarf2/read.h (struct dwarf2_per_cu_data):
5981 <dwarf2_per_objfile>: Remove.
5982 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5983 dwarf2_per_objfile.
5984 (create_signatured_type_table_from_index): Likewise.
5985 (create_signatured_type_table_from_debug_names): Likewise.
5986 (create_debug_type_hash_table): Likewise.
5987 (fill_in_sig_entry_from_dwo_entry): Likewise.
5988 (create_type_unit_group): Likewise.
5989 (read_comp_units_from_section): Likewise.
5990 (create_cus_hash_table): Likewise.
5991
f6e649dd
SM
59922020-05-27 Simon Marchi <simon.marchi@efficios.com>
5993
5994 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5995 dwarf2_per_cu_data::dwarf2_per_objfile.
5996 (compute_compunit_symtab_includes): Likewise.
5997 (dwarf2_cu::start_symtab): Likewise.
5998
aa66c379
SM
59992020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6000
6001 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6002 parameter.
6003 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6004 (read_namespace_alias): Update.
6005 (lookup_die_type): Update.
6006 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6007 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6008 Update.
6009 (disassemble_dwarf_expression): Update.
6010
120ce1b5
SM
60112020-05-27 Simon Marchi <simon.marchi@efficios.com>
6012
6013 * dwarf2/read.h (struct dwarf2_queue_item): Add
6014 dwarf2_per_objfile parameter, assign new parameter.
6015 <per_objfile>: New field.
6016 * dwarf2/read.c (free_one_cached_comp_unit): Add
6017 dwarf2_per_objfile parameter.
6018 (queue_comp_unit): Likewise.
6019 (dw2_do_instantiate_symtab): Update.
6020 (process_psymtab_comp_unit): Update.
6021 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6022 (process_imported_unit_die): Update.
6023 (queue_and_load_dwo_tu): Update.
6024 (follow_die_offset): Update.
6025 (follow_die_sig_1): Update.
6026
9f47c707
SM
60272020-05-27 Simon Marchi <simon.marchi@efficios.com>
6028
6029 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6030 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6031 (read_call_site_scope): Assign per_objfile.
6032 (dwarf2_per_cu_data::objfile): Remove.
6033 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6034 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6035 dwarf2_per_objfile parameter.
6036 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6037 dwarf2_per_objfile parameter.
6038 (dwarf_expr_reg_to_entry_parameter): Add output
6039 dwarf2_per_objfile parameter.
6040 (locexpr_get_frame_base): Update.
6041 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6042 <push_dwarf_reg_entry_value>: Update.
6043 <call_site_to_target_addr>: Update.
6044 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6045 parameter.
6046 (value_of_dwarf_reg_entry): Update.
6047 (rw_pieced_value): Update.
6048 (indirect_synthetic_pointer): Update.
6049 (dwarf2_evaluate_property): Update.
6050 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6051 parameter.
6052 (locexpr_read_variable): Update.
6053 (locexpr_get_symbol_read_needs): Update.
6054 (loclist_read_variable): Update.
6055
14095eb3
SM
60562020-05-27 Simon Marchi <simon.marchi@efficios.com>
6057
6058 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6059 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6060 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6061 parameter.
6062 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6063 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6064 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6065 parameter.
6066 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6067 sect_variable_value): Add dwarf2_per_objfile parameter.
6068 (class dwarf_evaluate_loc_desc) <dwarf_call,
6069 dwarf_variable_value>: Update.
6070 (fetch_const_value_from_synthetic_pointer): Add
6071 dwarf2_per_objfile parameter.
6072 (fetch_const_value_from_synthetic_pointer): Update.
6073 (coerced_pieced_ref): Update.
6074 (class symbol_needs_eval_context) <dwarf_call,
6075 dwarf_variable_value>: Update.
6076 (dwarf2_compile_expr_to_ax): Update.
6077
3c3cd3d4
SM
60782020-05-27 Simon Marchi <simon.marchi@efficios.com>
6079
6080 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6081 parameter.
6082 (dwarf2_evaluate_loc_desc_full): Update.
6083
82ca3f51
SM
60842020-05-27 Simon Marchi <simon.marchi@efficios.com>
6085
6086 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6087 parameter.
6088 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6089 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6090 dwarf2_per_objfile parameter.
6091 (decode_debug_loc_dwo_addresses): Likewise.
6092 (dwarf2_find_location_expression): Update.
6093 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6094 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6095 parameter.
6096 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6097 parameter.
6098 (locexpr_describe_location_1): Likewise.
6099 (locexpr_describe_location): Update.
6100
4b167ea1
SM
61012020-05-27 Simon Marchi <simon.marchi@efficios.com>
6102
6103 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6104 Remove.
6105 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6106 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6107 (dwarf2_compile_property_to_c): Update.
6108 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6109 use text offset from objfile.
6110 (locexpr_tracepoint_var_ref): Update.
6111 (locexpr_generate_c_location): Update.
6112 (loclist_describe_location): Update.
6113 (loclist_tracepoint_var_ref): Update.
6114 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6115 dwarf2_per_objfile parameter.
6116 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6117 use text offset from objfile.
6118 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6119
89b07335
SM
61202020-05-27 Simon Marchi <simon.marchi@efficios.com>
6121
6122 * dwarf2/expr.h (struct dwarf_expr_context)
6123 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6124 <offset>: Remove.
6125 <per_objfile>: New member.
6126 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6127 dwarf2_per_objfile parameter. Don't set offset, set
6128 per_objfile.
6129 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6130 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6131 a dwarf2_per_objfile object instead of an offset.
6132 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6133 constructor.
6134 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6135 to dwarf2_expr_executor constructor. Don't set offset.
6136 (dwarf2_fetch_cfa_info): Update.
6137 (struct dwarf2_frame_cache) <text_offset>: Remove.
6138 <per_objfile>: New field.
6139 (dwarf2_frame_cache): Update.
6140 (dwarf2_frame_prev_register): Update.
6141 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6142 <dwarf_evaluate_loc_desc>: Add constructor.
6143 (dwarf2_evaluate_loc_desc_full): Update.
6144 (dwarf2_locexpr_baton_eval): Update.
6145 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6146 Add constructor.
6147 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6148
293e7e51
SM
61492020-05-27 Simon Marchi <simon.marchi@efficios.com>
6150
6151 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6152 addr_sized_int_type>: Move to dwarf2_cu.
6153 <int_type>: Move to dwarf2_per_objfile.
6154 (struct dwarf2_per_objfile) <int_type>: Move here.
6155 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6156 addr_sized_int_type>: Move here.
6157 (read_func_scope): Update.
6158 (read_array_type): Update.
6159 (read_tag_string_type): Update.
6160 (attr_to_dynamic_prop): Update.
6161 (dwarf2_per_cu_data::int_type): Rename to...
6162 (dwarf2_per_objfile::int_type): ... this.
6163 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6164 (dwarf2_cu::addr_sized_int_type): ... this.
6165 (read_subrange_type): Update.
6166 (dwarf2_per_cu_data::addr_type): Rename to...
6167 (dwarf2_cu::addr_type): ... this.
6168 (set_die_type): Update.
6169
64874a40
SM
61702020-05-27 Simon Marchi <simon.marchi@efficios.com>
6171
6172 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6173 data through per_cu->cu.
6174
4ab09049
SM
61752020-05-27 Simon Marchi <simon.marchi@efficios.com>
6176
6177 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6178 dwarf2_per_cu_data parameter fo dwarf2_cu.
6179 (lookup_dwo_type_unit): Likewise.
6180 (read_cutu_die_from_dwo): Likewise.
6181 (lookup_dwo_unit): Likewise.
6182 (open_and_init_dwo_file): Likewise.
6183 (lookup_dwo_cutu): Likewise.
6184 (lookup_dwo_comp_unit): Likewise.
6185 (lookup_dwo_type_unit): Likewise.
6186 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6187 (cutu_reader::cutu_reader): Update.
6188
47b14e86
SM
61892020-05-27 Simon Marchi <simon.marchi@efficios.com>
6190
6191 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6192 parameter.
6193 (process_full_type_unit): Likewise.
6194 (process_queue): Update.
6195
43182c09
SM
61962020-05-27 Simon Marchi <simon.marchi@efficios.com>
6197
6198 * dwarf2/read.c (recursively_compute_inclusions): Add
6199 dwarf2_per_objfile parameter.
6200 (compute_compunit_symtab_includes): Likewise.
6201 (process_cu_includes): Update.
6202
7aa104c4
SM
62032020-05-27 Simon Marchi <simon.marchi@efficios.com>
6204
6205 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6206 parameter.
6207 (create_type_unit_group): Update.
6208 (process_psymtab_comp_unit_reader): Update.
6209 (build_type_psymtabs_reader): Update.
6210
e3beb21d
SM
62112020-05-27 Simon Marchi <simon.marchi@efficios.com>
6212
6213 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6214 object through m_this_cu->cu.
6215
d460f660
SM
62162020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6217
6218 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6219 the info parameter.
6220 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6221
ab432490
SM
62222020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6223
6224 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6225 per_objfile parameter.
6226 (load_full_type_unit): Add per_objfile parameter.
6227 (read_signatured_type): Likewise.
6228 (load_full_comp_unit): Likewise.
6229 (load_cu): Likewise.
6230 (dw2_do_instantiate_symtab): Likewise.
6231 (dw2_get_file_names): Likewise.
6232 (dw2_map_symtabs_matching_filename): Update.
6233 (dw_expand_symtabs_matching_file_matcher): Update.
6234 (dw2_map_symbol_filenames): Update.
6235 (process_psymtab_comp_unit): Add per_objfile parameter.
6236 (build_type_psymtabs_1): Update.
6237 (process_skeletonless_type_unit): Update.
6238 (dwarf2_build_psymtabs_hard): Update.
6239 (load_partial_comp_unit): Add per_objfile parameter.
6240 (scan_partial_symbols): Update.
6241 (load_full_comp_unit): Add per_objfile parameter.
6242 (process_imported_unit_die): Update.
6243 (create_cus_hash_table): Update.
6244 (find_partial_die): Update.
6245 (dwarf2_read_addr_index): Update.
6246 (follow_die_offset): Update.
6247 (dwarf2_fetch_die_loc_sect_off): Update.
6248 (dwarf2_fetch_constant_bytes): Update.
6249 (dwarf2_fetch_die_type_sect_off): Update.
6250 (follow_die_sig_1): Update.
6251 (load_full_type_unit): Add per_objfile parameter.
6252 (read_signatured_type): Likewise.
6253
313bad1b
SM
62542020-05-27 Simon Marchi <simon.marchi@efficios.com>
6255
6256 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6257 of objfile_name.
6258
c3699833
SM
62592020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6260
6261 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6262 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6263 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6264 field.
6265 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6266 (create_cus_from_index): Update.
6267 (dwarf2_read_gdb_index): Update.
6268 (create_cus_from_debug_names): Update.
6269 (dwarf2_read_debug_names): Update.
6270 (get_abbrev_section_for_cu): Update.
6271 (create_all_comp_units): Update.
6272 (read_attribute_value): Update.
6273 (get_debug_line_section): Update.
6274 * dwarf2/index-cache.c (index_cache::store): Update.
6275 * dwarf2/index-write.c (save_gdb_index_command): Update.
6276 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6277
1859c670
SM
62782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6279
6280 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6281 member.
6282 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6283 dwarf2_per_cu_data::per_bfd.
6284 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6285 (create_type_unit_group): Likewise.
6286 (queue_comp_unit): Remove reference to
6287 per_cu->dwarf2_per_objfile.
6288 (maybe_queue_comp_unit): Likewise.
6289 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6290 (create_cus_hash_table): Assign new field.
6291
5e22e966
SM
62922020-05-27 Simon Marchi <simon.marchi@efficios.com>
6293
6294 * dwarf2/read.c: Replace
6295 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6296 dwarf2_cu->per_objfile throughout.
6297
97a1449a
SM
62982020-05-27 Simon Marchi <simon.marchi@efficios.com>
6299
6300 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6301 parameter, don't use per_cu->dwarf2_per_objfile.
6302 (dw2_instantiate_symtab): Likewise.
6303 (dw2_find_last_source_symtab): Update.
6304 (dw2_map_expand_apply): Update.
6305 (dw2_lookup_symbol): Update.
6306 (dw2_expand_symtabs_for_function): Update.
6307 (dw2_expand_all_symtabs): Update.
6308 (dw2_expand_symtabs_with_fullname): Update.
6309 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6310 don't use per_cu->dwarf2_per_objfile.
6311 (dw2_expand_marked_cus): Update.
6312 (dw2_find_pc_sect_compunit_symtab): Update.
6313 (dw2_debug_names_lookup_symbol): Update.
6314 (dw2_debug_names_expand_symtabs_for_function): Update.
6315 (dw2_debug_names_map_matching_symbols): Update.
6316 (dwarf2_psymtab::expand_psymtab): Update.
6317
9e021579
SM
63182020-05-27 Simon Marchi <simon.marchi@efficios.com>
6319
6320 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6321 <per_objfile>: New member.
6322 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6323 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6324 call to dwarf2_cu.
6325 (cutu_reader::cutu_reader): Update.
6326 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6327
ae090bdb
SM
63282020-05-27 Simon Marchi <simon.marchi@efficios.com>
6329
6330 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6331 struct dwarf2_per_objfile.
6332 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6333 dwarf2_per_bfd.
6334 * dwarf2/read.c (set_die_type): Update.
6335 (get_die_type_at_offset): Update.
6336
af758d11
SM
63372020-05-27 Tom Tromey <tom@tromey.com>
6338 Simon Marchi <simon.marchi@efficios.com>
6339
6340 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6341 method.
6342 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6343 get_symtab, set_symtab>: New methods.
6344 <m_symtabs>: New field.
6345 (struct dwarf2_psymtab): Derive from partial_symtab.
6346 <readin_p, get_compunit_symtab>: Declare methods.
6347 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6348 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6349 New methods.
6350 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6351 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6352 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6353 (dw2_symtab_iter_next, dw2_print_stats)
6354 (dw2_expand_symtabs_with_fullname)
6355 (dw2_expand_symtabs_matching_one)
6356 (dw_expand_symtabs_matching_file_matcher)
6357 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6358 (dw2_debug_names_iterator::next)
6359 (dw2_debug_names_map_matching_symbols)
6360 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6361 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6362 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6363 New methods.
6364 (get_compunit_symtab, process_full_comp_unit)
6365 (process_full_type_unit): Update.
6366 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6367
5989a64e
SM
63682020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6369
6370 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6371 then introduce a new dwarf2_per_objfile type.
6372 <read_line_string>: Move to the new dwarf2_per_objfile type.
6373 <objfile>: Likewise.
6374 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6375 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6376 dwarf2_per_objfile->per_bfd.
6377 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6378 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6379 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6380 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6381 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6382 (dwarf2_per_objfile::locate_sections): Rename to...
6383 (dwarf2_per_bfd::locate_sections): ... this.
6384 (dwarf2_per_objfile::get_cutu): Rename to...
6385 (dwarf2_per_bfd::get_cutu): ... this.
6386 (dwarf2_per_objfile::get_cu): Rename to...
6387 (dwarf2_per_bfd::get_cu): ... this.
6388 (dwarf2_per_objfile::get_tu): Rename to...
6389 (dwarf2_per_bfd::get_tu): ... this.
6390 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6391 (dwarf2_per_bfd::allocate_per_cu): ... this.
6392 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6393 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6394 (get_gdb_index_contents_ftype): Change parameter from
6395 dwarf2_per_objfile to dwarf2_per_bfd.
6396 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6397 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6398
a50264ba
TT
63992020-05-27 Tom Tromey <tom@tromey.com>
6400 Simon Marchi <simon.marchi@efficios.com>
6401
6402 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6403 (allocate_piece_closure): Set "per_objfile" member.
6404 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6405 (locexpr_describe_location, loclist_describe_location): Use new
6406 member.
6407 * dwarf2/read.c (read_call_site_scope)
6408 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6409 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6410 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6411 handle_data_member_location): Set per_objfile member.
6412 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6413 member.
6414 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6415
d3473f0c
TT
64162020-05-27 Tom Tromey <tom@tromey.com>
6417
6418 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6419 allocate_signatured_type>: Declare new methods.
6420 <m_num_psymtabs>: New member.
6421 (struct dwarf2_per_cu_data) <index>: New member.
6422 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6423 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6424 (create_cu_from_index_list): Use allocate_per_cu.
6425 (create_signatured_type_table_from_index)
6426 (create_signatured_type_table_from_debug_names)
6427 (create_debug_type_hash_table, add_type_unit)
6428 (read_comp_units_from_section): Use allocate_signatured_type.
6429
5717c425
TT
64302020-05-27 Tom Tromey <tom@tromey.com>
6431
6432 * psymtab.c (partial_map_expand_apply)
6433 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6434 (psym_lookup_global_symbol_language)
6435 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6436 (psym_print_stats, psym_expand_symtabs_for_function)
6437 (psym_map_symbol_filenames, psym_map_matching_symbols)
6438 (psym_expand_symtabs_matching)
6439 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6440 (maintenance_check_psymtabs): Update.
6441 * psympriv.h (struct partial_symtab) <readin_p,
6442 get_compunit_symtab>: Add objfile parameter.
6443 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6444 Likewise.
6445 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6446 get_compunit_symtab>: Likewise.
6447 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6448
45940949
TT
64492020-05-27 Tom Tromey <tom@tromey.com>
6450
6451 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6452 member.
6453 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6454 (create_cu_from_index_list)
6455 (create_signatured_type_table_from_index)
6456 (create_signatured_type_table_from_debug_names)
6457 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6458 (dwarf2_create_include_psymtab)
6459 (create_debug_type_hash_table, add_type_unit)
6460 (create_type_unit_group, read_comp_units_from_section)
6461 (dwarf2_compute_name, create_cus_hash_table)
6462 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6463 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6464 obstack.
6465 (dw2_get_real_path): Likewise. Change argument to
6466 dwarf2_per_objfile.
6467
f8c6d152
LM
64682020-05-27 Luis Machado <luis.machado@linaro.org>
6469
6470 PR tdep/26000
6471 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6472 for ldrd (immediate).
6473
e98d2e6d
PW
64742020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6475
6476 * command.h: Add comment giving the name of class_tui.
6477 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6478 create the fake command for the help for class_tui.
6479
53a47a3e
TT
64802020-05-26 Tom Tromey <tromey@adacore.com>
6481
6482 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6483 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6484 (val_atr): New function.
6485 (value_val_atr): Use it.
6486 * ada-valprint.c (print_optional_low_bound): Change low bound
6487 handling for enums.
6488 (val_print_packed_array_elements): Don't call discrete_position.
6489 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6490 discrete_position for enum types.
6491 * language.c (default_print_array_index): Change type.
6492 * language.h (struct language_defn) <la_print_array_index>: Add
6493 index_type parameter, change type of index_value.
6494 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6495 (default_print_array_index): Update.
6496 * valprint.c (maybe_print_array_index): Don't call
6497 value_from_longest. Update.
6498 (value_print_array_elements): Don't call discrete_position.
6499
0bc2354b
TT
65002020-05-26 Tom Tromey <tromey@adacore.com>
6501
6502 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6503 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6504
1218a4bf
CDA
65052020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6506
6507 PR gdb/13519
6508 * avr-tdep.c (avr_integer_to_address): Return data or code
6509 address accordingly to the second 'type' argument of the
6510 function.
6511
92651b1d
MW
65122020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6513
6514 * infcmd.c, inferior.h: (construct_inferior_arguments):
6515 Moved function from here to gdbsupport/common-inferior.{h,cc}
6516
0a4f5f8c
TT
65172020-05-23 Tom Tromey <tom@tromey.com>
6518
6519 Revert commit eca1f90c:
6520 * NEWS: Remove entry for completion styling.
6521 * completer.c (_rl_completion_prefix_display_length): Move
6522 declaration later.
6523 (gdb_fnprint): Revert.
6524 (gdb_display_match_list_1): Likewise.
6525 * cli/cli-style.c (completion_prefix_style)
6526 (completion_difference_style, completion_suffix_style): Remove.
6527 (_initialize_cli_style): Revert.
6528 * cli/cli-style.h (completion_prefix_style)
6529 (completion_difference_style, completion_suffix_style): Don't
6530 declare.
6531
e08bd6c5
PA
65322020-05-24 Pedro Alves <palves@redhat.com>
6533
6534 * symtab.c (completion_list_add_name): Return boolean indication
6535 of whether the symbol matched.
6536 (completion_list_add_symbol): Don't try to remove C++ aliases if
6537 the symbol didn't match in the first place.
6538 * symtab.h (completion_list_add_name): Return bool.
6539
ceacbf6e
SM
65402020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6541
6542 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6543 type::field.
6544
26f16254
JB
65452020-05-23 Joel Brobecker <brobecker@adacore.com>
6546
6547 GDB 9.2 released.
6548
eca1f90c
TT
65492020-05-23 Tom Tromey <tom@tromey.com>
6550
6551 * NEWS: Add entry for completion styling.
6552 * completer.c (_rl_completion_prefix_display_length): Move
6553 declaration earlier.
6554 (gdb_fnprint): Use completion_style.
6555 (gdb_display_match_list_1): Likewise.
6556 * cli/cli-style.c (completion_prefix_style)
6557 (completion_difference_style, completion_suffix_style): New
6558 globals.
6559 (_initialize_cli_style): Register new globals.
6560 * cli/cli-style.h (completion_prefix_style)
6561 (completion_difference_style, completion_suffix_style): Declare.
6562
51e2cfa2
PA
65632020-05-23 Pedro Alves <palves@redhat.com>
6564
6565 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6566 (parse_escape): Use ISDIGIT instead of isdigit.
6567 (puts_debug): Use gdb_isprint instead of isprint.
6568 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6569 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6570 ISSPACE instead of isspace.
6571 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6572 instead of isspace.
6573 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6574 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6575 instead of isxdigit and ISDIGIT instead of isdigit.
6576
80fc5e77
SM
65772020-05-22 Simon Marchi <simon.marchi@efficios.com>
6578
6579 * gdbtypes.h (struct type) <field>: New method.
6580 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6581 or type::field.
6582
3cabb6b0
SM
65832020-05-22 Simon Marchi <simon.marchi@efficios.com>
6584
6585 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6586 (TYPE_FIELDS): Use type::fields. Change all call sites that
6587 modify the propery to use type::set_fields instead.
6588
1f704f76
SM
65892020-05-22 Simon Marchi <simon.marchi@efficios.com>
6590
6591 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6592 type::num_fields instead.
6593
5e33d5f4
SM
65942020-05-22 Simon Marchi <simon.marchi@efficios.com>
6595
6596 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6597 methods.
6598 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6599 that modify the number of fields to use type::set_num_fields
6600 instead.
6601
9392ebb3
TT
66022020-05-22 Tom Tromey <tromey@adacore.com>
6603
6604 * compile/compile-object-load.h (munmap_list_free): Don't
6605 declare.
6606
7c13f4e8
AB
66072020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6608
6609 * annotate.c (annotate_source_line): Update return type, add call
6610 to update current symtab and line.
6611 * annotate.h (annotate_source_line): Update return type, and
6612 extend header comment.
6613 * source.c (info_line_command): Check annotation_level before
6614 calling annotate_source_line.
6615 * stack.c (print_frame_info): If calling annotate_source_line
6616 returns true, then don't print any other source line information.
6617
aa370940
SM
66182020-05-21 Simon Marchi <simon.marchi@efficios.com>
6619
6620 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6621
84d53fa9
SM
66222020-05-21 Simon Marchi <simon.marchi@efficios.com>
6623
6624 * coffread.c (patch_type): Remove NULL check before xfree.
6625 * corefile.c (set_gnutarget): Likewise.
6626 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6627 * exec.c (build_section_table): Likewise.
6628 * remote.c (remote_target::pass_signals): Likewise.
6629 * utils.c (n_spaces): Likewise.
6630 * cli/cli-script.c (document_command): Likewise.
6631 * i386-windows-tdep.c (core_process_module_section): Likewise.
6632 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6633
9d428aae
SM
66342020-05-20 Simon Marchi <simon.marchi@efficios.com>
6635
6636 * symfile.c (reread_symbols): Clear objfile's section_offsets
6637 vector and section indices, re-compute them by calling
6638 sym_offsets.
6639
250106a7
TT
66402020-05-20 Tom Tromey <tromey@adacore.com>
6641
6642 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6643 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6644
9a0bacfb
TV
66452020-05-20 Tom de Vries <tdevries@suse.de>
6646
6647 PR symtab/25833
6648 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6649
7b958a48
AM
66502020-05-20 Alan Modra <amodra@gmail.com>
6651
6652 PR 25993
6653 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6654 bfd_set_filename.
6655 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6656 passed to bfd_set_filename.
6657 * symfile-mem.c (add_vsyscall_page): Likewise for string
6658 passed to symbol_file_add_from_memory.
6659 (symbol_file_add_from_memory): Make name param a const char* and
6660 don't strdup.
6661
c7e97679
AM
66622020-05-20 Alan Modra <amodra@gmail.com>
6663
6664 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6665 rather than accessing bfd->filename directly.
6666 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6667 and use bfd_section_name.
6668 * dwarf2/frame.c (decode_frame_entry): Likewise.
6669 * exec.c (exec_set_section_address): Likewise.
6670 * solib-aix.c (solib_aix_bfd_open): Likewise.
6671 * stap-probe.c (get_stap_base_address): Likewise.
6672 * symfile.c (reread_symbols): Likewise.
6673
563c591b
TT
66742020-05-19 Tom Tromey <tromey@adacore.com>
6675
6676 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6677
f408d82c
SM
66782020-05-19 Simon Marchi <simon.marchi@efficios.com>
6679
6680 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6681
98c59b52
PA
66822020-05-19 Pedro Alves <palves@redhat.com>
6683
6684 * NEWS (set exec-file-mismatch): Adjust entry.
6685 * exec.c: Include "build-id.h".
6686 (validate_exec_file): Try to match build IDs instead of filenames.
6687 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6688 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6689 and pass down 'warn_if_slow'.
6690 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6691 gdb_bfd_open_closure to pass it down.
6692 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6693
4111f652
PA
66942020-05-19 Pedro Alves <palves@redhat.com>
6695
6696 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6697 * target.c (target_fileio_open_1): Rename to target_fileio_open
6698 and make extern. Use bool.
6699 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6700 (target_fileio_read_alloc_1): Adjust.
6701 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6702 (target_fileio_open_warn_if_slow): Delete declaration.
6703
ad80db5b
PA
67042020-05-19 Pedro Alves <palves@redhat.com>
6705
6706 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6707 Adjust all callers.
6708
1d6ce4d3
YS
67092020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6710
6711 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6712 whether disp is negative.
6713
9005fbbb
SM
67142020-05-19 Simon Marchi <simon.marchi@efficios.com>
6715
6716 * symfile.h (struct symfile_segment_data)
6717 <~symfile_segment_data>: Remove.
6718 <segment_info>: Change to std::vector.
6719 * symfile.c (default_symfile_segments): Update.
6720 * elfread.c (elf_symfile_segments): Update.
6721
68b888ff
SM
67222020-05-19 Simon Marchi <simon.marchi@efficios.com>
6723
6724 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6725 <segments>: New.
6726 <segment_bases, segment_sizes>: Remove.
6727 * symfile.c (default_symfile_segments): Update.
6728 * elfread.c (elf_symfile_segments): Update.
6729 * remote.c (remote_target::get_offsets): Update.
6730 * solib-target.c (solib_target_relocate_section_addresses):
6731 Update.
6732
62982abd
SM
67332020-05-19 Simon Marchi <simon.marchi@efficios.com>
6734
6735 * symfile.h (struct symfile_segment_data): Initialize fields.
6736 <~symfile_segment_data>: Add.
6737 (symfile_segment_data_up): New.
6738 (struct sym_fns) <sym_segments>: Return a
6739 symfile_segment_data_up.
6740 (default_symfile_segments): Return a symfile_segment_data_up.
6741 (free_symfile_segment_data): Remove.
6742 (get_symfile_segment_data): Return a symfile_segment_data_up.
6743 * symfile.c (default_symfile_segments): Likewise.
6744 (get_symfile_segment_data): Likewise.
6745 (free_symfile_segment_data): Remove.
6746 (symfile_find_segment_sections): Update.
6747 * elfread.c (elf_symfile_segments): Return a
6748 symfile_segment_data_up.
6749 * remote.c (remote_target::get_offsets): Update.
6750 * solib-target.c (solib_target_relocate_section_addresses):
6751 Update.
6752 * symfile-debug.c (debug_sym_segments): Return a
6753 symfile_segment_data_up.
6754
7f204339
RO
67552020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6756
e52a0f1b
RO
6757 PR build/25981
6758 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6759 Hardcode register numbers.
6760
7f204339
RO
6761 PR build/25981
6762 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6763 procfs_find_LDT_entry): Remove.
6764 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6765 procfs_find_LDT_entry): Remove.
6766 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6767 Remove.
6768
7f32a4d5
PA
67692020-05-17 Pedro Alves <palves@redhat.com>
6770 Andrew Burgess <andrew.burgess@embecosm.com>
6771 Keno Fischer <keno@juliacomputing.com>
6772
6773 PR gdb/25741
6774 * breakpoint.c (build_target_condition_list): Update comments.
6775 (build_target_command_list): Update comments and skip matching
6776 locations.
6777 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6778 a separate function. Simplify "set breakpoint auto-hw off"
6779 handling.
6780 (insert_breakpoints): Update comment.
6781 (tracepoint_locations_match): New parameter. For breakpoints,
6782 compare location types too, if the caller wants to.
6783 (handle_automatic_hardware_breakpoints): New functions.
6784 (bp_location_is_less_than): Also sort by location type and
6785 hardware breakpoint length.
6786 (update_global_location_list): Handle "set breakpoint auto-hw on"
6787 here.
6788 (update_breakpoint_locations): Ask breakpoint_locations_match to
6789 ignore location types.
6790
7d93a1e0
SM
67912020-05-16 Simon Marchi <simon.marchi@efficios.com>
6792
6793 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6794 type::name instead.
6795
d0e39ea2
SM
67962020-05-16 Simon Marchi <simon.marchi@efficios.com>
6797
6798 * gdbtypes.h (struct type) <name, set_name>: New methods.
6799 (TYPE_CODE): Use type::name. Change all call sites used to set
6800 the name to use type::set_name instead.
6801
2dab0c7b
TT
68022020-05-16 Tom Tromey <tom@tromey.com>
6803
6804 * top.c (quit_force): Update.
6805 * infrun.c (handle_no_resumed): Update.
6806 * top.h (all_uis): New function.
6807 (ALL_UIS): Remove.
6808
59f7bd8d
SM
68092020-05-16 Simon Marchi <simon.marchi@efficios.com>
6810
6811 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6812
9bf058f0
PA
68132020-05-16 Pedro Alves <palves@redhat.com>
6814
6815 * ia64-linux-nat.c
6816 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6817 Declare method.
6818 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6819
8f86ae1a
SM
68202020-05-15 Simon Marchi <simon.marchi@efficios.com>
6821
6822 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6823 (sparc64_adi_info): Likewise.
6824
d6bc0792
TT
68252020-05-15 Tom Tromey <tom@tromey.com>
6826
6827 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6828 block_objfile.
6829 (lookup_objfile_from_block): Remove.
6830 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6831 (lookup_global_symbol): Use block_objfile.
6832 * symtab.h (lookup_objfile_from_block): Don't declare.
6833 * printcmd.c (clear_dangling_display_expressions): Use
6834 block_objfile.
6835 * parse.c (operator_check_standard): Use block_objfile.
6836
8c14c3a3
TT
68372020-05-15 Tom Tromey <tom@tromey.com>
6838
6839 * language.c (language_alloc_type_symbol): Set
6840 SYMBOL_SECTION.
6841 * symtab.c (initialize_objfile_symbol): Remove.
6842 (allocate_symbol): Remove.
6843 (allocate_template_symbol): Remove.
6844 * dwarf2/read.c (fixup_go_packaging): Use "new".
6845 (new_symbol): Use "new".
6846 (read_variable): Don't call initialize_objfile_symbol. Use
6847 "new".
6848 (read_func_scope): Use "new".
6849 * xcoffread.c (process_xcoff_symbol): Don't call
6850 initialize_objfile_symbol.
6851 (SYMBOL_DUP): Remove.
6852 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6853 "new".
6854 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6855 (allocate_template_symbol): Don't declare.
6856 (struct symbol): Add copy constructor. Change defaults.
6857 * jit.c (finalize_symtab): Use "new".
6858 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6859 Use "new".
6860 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6861 (common_block_end): Use "new".
6862 * mdebugread.c (parse_symbol): Use "new".
6863 (new_symbol): Likewise.
6864
5b4a1a8d
PW
68652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6866
6867 * NEWS: Mention changes to help and apropos.
6868
57b4f16e
PW
68692020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6870
6871 * command.h (enum command_class): Improve comments, document
6872 that class_alias is for user-defined aliases, give the class
6873 name for each class, remove unused class_xdb.
6874 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6875 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6876 by a precise class.
6877 * infcmd.c (_initialize_infcmd): Likewise.
6878 * reverse.c (_initialize_reverse): Likewise.
6879 * stack.c (_initialize_stack): Likewise.
6880 * symfile.c (_initialize_symfile): Likewise.
6881 * tracepoint.c (_initialize_tracepoint): Likewise.
6882
7c05caf7
PW
68832020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6884
6885 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6886 when their aliased command is traversed.
6887 (help_cmd): Add fput_command_names_styled call to
6888 output command name and aliases when command has an alias.
6889
3b3aaacb
PW
68902020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6891
6892 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6893 * cli/cli-decode.c (help_cmd_list): Declare as static,
6894 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6895 a command together with the command.
6896 (fput_command_name_styled, fput_command_names_styled): New functions.
6897 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6898 fput_command_name_styled.
6899 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6900 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6901
7aa1b46f
PW
69022020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6903
6904 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6905 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6906 * command.h (cmd_show_list): Likewise.
6907 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6908 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6909
89bcba74
PW
69102020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6911
6912 * unittests/command-def-selftests.c (traverse_command_structure):
6913 Verify all commands of a list have the same prefix command and
6914 that only the top cmdlist commands have a null prefix.
6915
3f4d92eb
PW
69162020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6917
6918 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6919 as prefix, not one of its aliases.
6920 (set_cmd_prefix): Remove.
6921 (do_add_cmd): Centralize the setting of the prefix of a command, when
6922 command is defined after its full chain of prefix commands.
6923 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6924 (add_setshow_cmd_full): Likewise.
6925 (update_prefix_field_of_prefixed_commands): New function.
6926 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6927 update_prefix_field_of_prefixed_commands.
6928 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6929 addresses of remote_set_cmdlist and remote_show_cmdlist given
6930 as argument, not the address of an argument.
6931 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6932 * gdb/remote.c (_initialize_remote): Likewise.
6933
0605465f
PW
69342020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6935
6936 * cli/cli-cmds.c (alias_command): Check for an existing alias
6937 using lookup_cmd_composition, as valid_command_p is too strict
6938 and forbids aliases that are the prefix of an existing alias
6939 or command.
6940 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6941 command is properly recognised as a valid command.
6942
58e6ac70
PW
69432020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6944
6945 * unittests/help-doc-selftests.c: Rename to
6946 unittests/command-def-selftests.c
6947 * unittests/command-def-selftests.c (help_doc_tests): Update some
6948 comments.
6949 (command_structure_tests, traverse_command_structure): New namespace
6950 and function.
6951 (command_structure_invariants_tests): New function.
6952 (_initialize_command_def_selftests) Renamed from
6953 _initialize_help_doc_selftests, register command_structure_invariants
6954 selftest.
6955
a7b9ceb8
PW
69562020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6957
6958 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6959 an alias of 'show'.
6960
b2188a06
JB
69612020-05-15 Joel Brobecker <brobecker@adacore.com>
6962
6963 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6964 ada_is_fixed_point_type. Update all callers.
6965 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6966 all callers.
6967 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6968 Update all callers.
6969 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6970 print_fixed_point_type. Update all callers.
6971 * ada-valprint.c (ada_value_print_num): Replace call to
6972 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6973
a51951c2
KB
69742020-05-14 Kevin Buettner <kevinb@redhat.com>
6975
6976 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6977 processors.
6978 (cpu_supports_bts): Add CV_AMD case.
6979
29d6859f
LM
69802020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6981 Simon Marchi <simon.marchi@efficios.com>
6982
6983 * infrun.c (stop_all_threads): Collect multiple wait events at
6984 each pass.
6985
78134374
SM
69862020-05-14 Simon Marchi <simon.marchi@efficios.com>
6987
6988 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6989 type::code instead.
6990
67607e24
SM
69912020-05-14 Simon Marchi <simon.marchi@efficios.com>
6992
6993 * gdbtypes.h (struct type) <code, set_code>: New methods.
6994 (TYPE_CODE): Use type::code. Change all call sites used to set
6995 the code to use type::set_code instead.
6996
a05575d3
TBA
69972020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6998 Tom de Vries <tdevries@suse.de>
6999 Pedro Alves <palves@redhat.com>
7000
7001 PR threads/25478
7002 * infrun.c (stop_all_threads): Do NOT ignore
7003 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7004 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7005 received.
7006 (handle_no_resumed): Remove code handling a live inferior with no
7007 threads.
7008 * remote.c (has_single_non_exited_thread): New.
7009 (remote_target::update_thread_list): Do not delete a thread if is
7010 the last thread of the process.
7011 * thread.c (thread_select): Call delete_exited_threads instead of
7012 prune_threads.
7013
6ad82919
TBA
70142020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7015
7016 * infrun.c (stop_all_threads): Enable/disable thread events of all
7017 targets. Move a debug message denoting the end of the function
7018 into the SCOPED_EXIT block.
7019
d890404b
TBA
70202020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7021
7022 * process-stratum-target.h: Include <set>.
7023 (all_non_exited_process_targets, switch_to_target_no_thread): New
7024 function declarations.
7025 * process-stratum-target.c (all_non_exited_process_targets)
7026 (switch_to_target_no_thread): New function implementations.
7027
293b3ebc
TBA
70282020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7029
7030 * infrun.c (handle_inferior_event): Extract out a piece of code
7031 into...
7032 (mark_non_executing_threads): ...this new function.
7033
7ca9b62a
TBA
70342020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7035
7036 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7037 use.
7038
fc75c28b
TBA
70392020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7040
7041 * regcache.c (regcache_read_pc_protected): New function
7042 implementation that returns 0 if the PC cannot read via
7043 'regcache_read_pc'.
7044 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7045 instead of 'regcache_read_pc'.
7046 (keep_going_pass_signal): Ditto.
7047
a89febbd
TT
70482020-05-13 Tom Tromey <tromey@adacore.com>
7049
7050 * ada-lang.c (align_value): Remove.
7051 (ada_template_to_fixed_record_type_1): Use align_up.
7052
f7e23710
TBA
70532020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7054
7055 * async-event.c: Update the copyright year.
7056 * async-event.h: Update the copyright year.
7057
02ff80c2
SM
70582020-05-12 Simon Marchi <simon.marchi@efficios.com>
7059
7060 * objfiles.h (is_addr_in_objfile,
7061 shared_objfile_contains_address_p): Return bool.
7062 * objfile.c (is_addr_in_objfile,
7063 shared_objfile_contains_address_p): Return bool.
7064
4fd6c7e8
TT
70652020-05-11 Tom Tromey <tromey@adacore.com>
7066
7067 * cli/cli-cmds.c (info_command): Restore.
7068 (_initialize_cli_cmds): Use add_prefix_command for "info".
7069 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7070
5eb68a39
TT
70712020-05-11 Tom Tromey <tromey@adacore.com>
7072
7073 * ada-lang.c (ada_value_primitive_field): Now public.
7074 * ada-lang.h (ada_value_primitive_field): Declare.
7075 * ada-valprint.c (print_field_values): Use
7076 ada_value_primitive_field for wrapper fields.
7077
7666722f
TV
70782020-05-11 Tom de Vries <tdevries@suse.de>
7079
7080 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7081 MODULE_DOMAIN.
7082
3ee6bb11
TV
70832020-05-11 Tom de Vries <tdevries@suse.de>
7084
7085 PR symtab/25941
7086 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7087 with length 0, if not gdb-produced.
7088 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7089
43434996
TV
70902020-05-09 Tom de Vries <tdevries@suse.de>
7091
7092 PR gdb/25955
7093 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7094 calculation.
7095
2f78cffc
TT
70962020-05-09 Tom Tromey <tom@tromey.com>
7097
7098 * top.c (server_command): Now bool.
7099 * top.h (server_command): Now bool.
7100
4f7bc5ed
TT
71012020-05-08 Tom Tromey <tromey@adacore.com>
7102
7103 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7104 already being processed.
7105
8be4b118
TT
71062020-05-08 Tom Tromey <tom@tromey.com>
7107
7108 * printcmd.c (struct display) <next>: Remove.
7109 <display>: New constructor.
7110 <exp_string>: Now a std::string.
7111 <enabled_p>: Now a bool.
7112 (display_number): Move definition earlier.
7113 (displays): Rename from display_chain. Now a std::vector.
7114 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7115 (display_command): Update.
7116 (do_one_display, disable_display)
7117 (enable_disable_display_command, do_enable_disable_display):
7118 Update.
7119 (free_display): Remove.
7120 (clear_displays): Rewrite.
7121 (delete_display): Update.
7122 (map_display_numbers): Use function_view. Remove "data"
7123 parameter. Update.
7124 (do_delete_display): Remove.
7125 (undisplay_command): Update.
7126 (do_one_display, do_displays, disable_display)
7127 (info_display_command): Update.
7128 (do_enable_disable_display): Remove.
7129 (enable_disable_display_command)
7130 (clear_dangling_display_expressions): Update.
7131
94c93c35
TT
71322020-05-08 Tom Tromey <tom@tromey.com>
7133
7134 * symtab.c (set_symbol_cache_size)
7135 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7136 (maintenance_print_symbol_cache_statistics): Update.
7137 * symmisc.c (print_symbol_bcache_statistics)
7138 (print_objfile_statistics, maintenance_print_objfiles)
7139 (maintenance_info_symtabs, maintenance_check_symtabs)
7140 (maintenance_expand_symtabs, maintenance_info_line_tables):
7141 Update.
7142 * symfile-debug.c (set_debug_symfile): Update.
7143 * source.c (forget_cached_source_info): Update.
7144 * python/python.c (gdbpy_progspaces): Update.
7145 * psymtab.c (maintenance_info_psymtabs): Update.
7146 * probe.c (parse_probes): Update.
7147 * linespec.c (iterate_over_all_matching_symtabs)
7148 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7149 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7150 * exec.c (exec_target::close): Update.
7151 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7152 * breakpoint.c (print_one_breakpoint_location)
7153 (create_longjmp_master_breakpoint)
7154 (create_std_terminate_master_breakpoint): Update.
7155 * progspace.c (program_spaces): Now a std::vector.
7156 (maybe_new_address_space): Update.
7157 (add_program_space): Remove.
7158 (program_space::program_space): Update.
7159 (remove_program_space): Update.
7160 (number_of_program_spaces): Remove.
7161 (print_program_space, update_address_spaces): Update.
7162 * progspace.h (program_spaces): Change type.
7163 (ALL_PSPACES): Remove.
7164 (number_of_program_spaces): Don't declare.
7165 (struct program_space) <next>: Remove.
7166
a1fd1ac9
TT
71672020-05-08 Tom Tromey <tom@tromey.com>
7168
7169 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7170 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7171 (enable_break): Update.
7172 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7173 (frv_fdpic_find_canonical_descriptor): Update.
7174 (frv_fetch_objfile_link_map): Update.
7175 * progspace.c (program_space::free_all_objfiles): Update.
7176 (program_space::solibs): New method.
7177 * progspace.h (struct program_space) <solibs>: New method.
7178 * solist.h (master_so_list): Don't declare.
7179 (ALL_SO_LIBS): Remove.
7180 * solib.h (so_list_head): Remove.
7181 (update_solib_list): Update comment.
7182 * solib.c (master_so_list): Remove.
7183 (solib_used, update_solib_list, solib_add)
7184 (info_sharedlibrary_command, clear_solib)
7185 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7186
38eae084
TT
71872020-05-08 Tom Tromey <tom@tromey.com>
7188
7189 * extension.c (extension_languages): Now a std::array.
7190 (ALL_EXTENSION_LANGUAGES): Remove.
7191 (get_ext_lang_defn, get_ext_lang_of_file)
7192 (eval_ext_lang_from_control_command): Update.
7193 (finish_ext_lang_initialization)
7194 (auto_load_ext_lang_scripts_for_objfile)
7195 (ext_lang_type_printers::ext_lang_type_printers)
7196 (apply_ext_lang_type_printers)
7197 (ext_lang_type_printers::~ext_lang_type_printers)
7198 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7199 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7200 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7201 (get_matching_xmethod_workers, ext_lang_colorize)
7202 (ext_lang_before_prompt): Update.
7203 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7204
596dc4ad
TT
72052020-05-08 Tom Tromey <tom@tromey.com>
7206
7207 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7208 overload.
7209 <swap_string, m_string>: Remove.
7210 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7211 Update.
7212 * stabsread.c (define_symbol, read_type): Update.
7213 * linespec.c (find_linespec_symbols): Update.
7214 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7215 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7216 * dbxread.c (read_dbx_symtab): Update.
7217 * cp-support.h (cp_canonicalize_string_full)
7218 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7219 Return unique_xmalloc_ptr.
7220 * cp-support.c (inspect_type): Update.
7221 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7222 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7223 Likewise.
7224 * c-typeprint.c (print_name_maybe_canonical): Update.
7225 * break-catch-throw.c (check_status_exception_catchpoint):
7226 Update.
7227
bf4cb9be
TV
72282020-05-08 Tom de Vries <tdevries@suse.de>
7229
7230 * infrun.c (follow_fork): Copy current_line and current_symtab to
7231 child thread.
7232
a1b68f28
SM
72332020-05-07 Simon Marchi <simon.marchi@efficios.com>
7234
7235 * async-event.c (struct async_signal_handler, struct
7236 async_event_handler): Reformat, remove typedef.
7237
98d48915
SM
72382020-05-07 Simon Marchi <simon.marchi@efficios.com>
7239
7240 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7241 access thistype->main_type->dyn_prop_list directly.
7242
7aa91313
SM
72432020-05-07 Simon Marchi <simon.marchi@efficios.com>
7244
7245 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7246 (remove_dyn_prop): Remove. Update all users to use
7247 type::remove_dyn_prop.
7248 * gdbtypes.c (remove_dyn_prop): Rename to...
7249 (type::remove_dyn_prop): ... this.
7250
5c54719c
SM
72512020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7252
7253 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7254 (add_dyn_prop): Remove. Update all users to use
7255 type::add_dyn_prop.
7256 * gdbtypes.c (add_dyn_prop): Rename to...
7257 (type::add_dyn_prop): ... this.
7258
24e99c6c
SM
72592020-05-07 Simon Marchi <simon.marchi@efficios.com>
7260
7261 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7262 (get_dyn_prop): Remove. Update all users to use
7263 type::dyn_prop.
7264 * gdbtypes.c (get_dyn_prop): Rename to...
7265 (type::dyn_prop): ... this.
7266
0d4bf016
SM
72672020-05-06 Simon Marchi <simon.marchi@efficios.com>
7268
7269 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7270
ac4a4f1c
SM
72712020-05-06 Simon Marchi <simon.marchi@efficios.com>
7272
7273 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7274 instruction, skip it if it's there.
7275
a3bbacc1
SM
72762020-05-05 Simon Marchi <simon.marchi@efficios.com>
7277
7278 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7279
c3236f84
SM
72802020-05-04 Simon Marchi <simon.marchi@efficios.com>
7281
7282 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7283 * gdbtypes.c (recursive_dump_type): Remove use of
7284 TYPE_INCOMPLETE.
7285
3b6acaee
TT
72862020-05-03 Tom Tromey <tom@tromey.com>
7287
7288 * breakpoint.c (catch_command, tcatch_command): Remove.
7289 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7290 add_show_prefix_cmd.
7291 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7292 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7293 Remove.
7294 (add_internal_problem_command): Use add_basic_prefix_cmd,
7295 add_show_prefix_cmd.
7296 * mips-tdep.c (set_mipsfpu_command): Remove.
7297 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7298 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7299 (_initialize_index_cache): Use add_basic_prefix_cmd.
7300 * memattr.c (dummy_cmd): Remove.
7301 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7302 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7303 (_initialize_tui_win): Use add_basic_prefix_cmd,
7304 add_show_prefix_cmd.
7305 * cli/cli-logging.c (set_logging_command): Remove.
7306 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7307 add_show_prefix_cmd.
7308 (show_logging_command): Remove.
7309 * target.c (target_command): Remove.
7310 (add_target): Use add_basic_prefix_cmd.
7311
a51119cd
HD
73122020-05-02 Hannes Domani <ssbssa@yahoo.de>
7313
7314 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7315
652fc23a 73162020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7317
652fc23a
PW
7318 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7319 info_command.
7320
117539e6
KR
73212020-04-30 Kamil Rytarowski <n54@gmx.com>
7322
7323 * nbsd-nat.c (nbsd_enable_proc_events)
7324 (nbsd_nat_target::post_startup_inferior): Add.
7325 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7326 (nbsd_nat_target::update_thread_list): Rewrite.
7327 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7328 "PTRACE_LWP_CREATE".
7329 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7330
102e38eb 73312020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7332
102e38eb
PW
7333 * stack.c (_initialize_stack): Remove duplicated creation
7334 of "frame" command and "f" alias.
7335
ee9d1e5f
HD
73362020-04-30 Hannes Domani <ssbssa@yahoo.de>
7337
7338 PR gdb/18706
7339 * gdbtypes.c (check_typedef): Calculate size of array of
7340 stubbed type.
7341
627c7fb8
HD
73422020-04-30 Hannes Domani <ssbssa@yahoo.de>
7343
7344 PR gdb/15559
7345 * i386-tdep.c (i386_push_dummy_call): Call
7346 i386_thiscall_push_dummy_call.
7347 (i386_thiscall_push_dummy_call): New function.
7348 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7349 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7350 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7351
ffc2844e
SM
73522020-04-29 Simon Marchi <simon.marchi@efficios.com>
7353
7354 * gdbarch.sh (do_read): Add shellcheck disable directive for
7355 warning SC2162.
7356
1207375d
SM
73572020-04-29 Simon Marchi <simon.marchi@efficios.com>
7358
7359 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7360 "referenced but not assigned" warning.
7361
9fdb2916
SM
73622020-04-29 Simon Marchi <simon.marchi@efficios.com>
7363
7364 * gdbarch.sh: Remove code that sets fallbackdefault.
7365
759cea5e
SM
73662020-04-29 Simon Marchi <simon.marchi@efficios.com>
7367
7368 * gdbarch.sh: Use shell operators && and || instead of
7369 -a and -o.
7370
cb02ab24
SM
73712020-04-29 Simon Marchi <simon.marchi@efficios.com>
7372
7373 * gdbarch.sh: Use $(...) instead of `...`.
7374
a6fc5ffc
SM
73752020-04-29 Simon Marchi <simon.marchi@efficios.com>
7376
7377 * gdbarch.sh: Use double quotes around variables.
7378
8d113d13
SM
73792020-04-29 Simon Marchi <simon.marchi@efficios.com>
7380
7381 * gdbarch.sh: Use %s with printf, instead of variables in the
7382 format string.
7383
ed6acedd
TT
73842020-04-29 Tom Tromey <tromey@adacore.com>
7385
7386 PR ada/25875:
7387 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7388 type fields here.
7389 (read_enumeration_type): Call
7390 update_enumeration_type_from_children later. Update comments.
7391 (process_enumeration_scope): Don't create type fields.
7392
b68b1b58
KR
73932020-04-29 Kamil Rytarowski <n54@gmx.com>
7394
7395 * nbsd-tdep.c: Include "xml-syscall.h".
7396 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7397
f94b2e03
KR
73982020-04-29 Kamil Rytarowski <n54@gmx.com>
7399
7400 * nbsd-nat.c: Include "sys/wait.h".
7401 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7402 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7403 (nbsd_nat_target::remove_exec_catchpoint)
7404 (nbsd_nat_target::set_syscall_catchpoint): Add.
7405 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7406 (nbsd_nat_target::insert_exec_catchpoint)
7407 (nbsd_nat_target::remove_exec_catchpoint)
7408 (nbsd_nat_target::set_syscall_catchpoint): Add.
7409 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7410 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7411 `nbsd_get_syscall_number'.
7412
fc49bc72
TT
74132020-04-29 Tom Tromey <tom@tromey.com>
7414
7415 * stack.c (print_block_frame_labels): Remove.
7416
d642b692
HD
74172020-04-29 Hannes Domani <ssbssa@yahoo.de>
7418
7419 PR gdb/17320
7420 * ada-valprint.c (val_print_packed_array_elements): Move array
7421 end bracket to new line.
7422 (ada_val_print_string): Remove extra spaces before first array
7423 element.
7424 * c-valprint.c (c_value_print_array): Likewise.
7425 * m2-valprint.c (m2_print_array_contents): Likewise.
7426 (m2_value_print_inner): Likewise.
7427 * p-valprint.c (pascal_value_print_inner): Likewise.
7428 * valprint.c (generic_val_print_array): Likewise.
7429 (value_print_array_elements): Move first array element and array
7430 end bracket to new line.
7431
ea90f227
TV
74322020-04-29 Tom de Vries <tdevries@suse.de>
7433
7434 PR symtab/25889
7435 * linespec.c (find_method): Fix ix calculation.
7436
4498ef4f
KR
74372020-04-28 Kamil Rytarowski <n54@gmx.com>
7438
7439 * syscalls/update-netbsd.sh: New file.
7440 * syscalls/netbsd.xml: Regenerate.
7441 * data-directory/Makefile.in: Register `netbsd.xml' in
7442 `SYSCALLS_FILES'.
7443
a55e30b5
SM
74442020-04-28 Simon Marchi <simon.marchi@efficios.com>
7445
7446 * syscalls/update-freebsd.sh: Add double quotes.
7447
2b2fbab8
TT
74482020-04-28 Tom Tromey <tom@tromey.com>
7449
7450 * NEWS: Update.
7451 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7452 (cmdpy_init): Allow class_tui.
7453
a65189c9
TV
74542020-04-28 Mark Williams <mark@myosotissp.com>
7455
7456 PR gdb/24480
7457 * dwarf2read.c: Add missing assingments to list_in_scope when
7458 start_symtab was already called.
7459
1b95cdb7
SM
74602020-04-28 Simon Marchi <simon.marchi@efficios.com>
7461
7462 PR gdb/25881
7463 * dwarf2/read.c (offset_map_type): Use
7464 gdb:hash_enum<sect_offset> as hash function.
7465
15cd93d0
TV
74662020-04-28 Tom de Vries <tdevries@suse.de>
7467
7468 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7469 with DW_AT_signature.
7470
1eb39914
SM
74712020-04-27 Simon Marchi <simon.marchi@efficios.com>
7472
7473 * configure.ac: Remove check for fs_base/gs_base in
7474 user_regs_struct.
7475 * configure: Re-generate.
7476 * config.in: Re-generate.
7477 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7478 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7479 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7480
991a3e2e
LM
74812020-04-27 Luis Machado <luis.machado@linaro.org>
7482
7483 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7484 problematic inline frame unwinding situation.
7485 * frame.c (frame_id_computed_p): New function.
7486 * frame.h (frame_id_computed_p): New prototype.
7487
361ba0e8
TT
74882020-04-26 Tom Tromey <tom@tromey.com>
7489
7490 * command.h (enum command_class) <class_pseudo>: Remove.
7491
bc3609fd
PW
74922020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7493
7494 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7495 and whitespace.
7496
b9771db7
KR
74972020-04-25 Kamil Rytarowski <n54@gmx.com>
7498
ec16513e
SM
7499 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7500 `PT_GET_PROCESS_STATE' block.
b9771db7 7501
7151c1af
TT
75022020-04-24 Tom Tromey <tom@tromey.com>
7503
7504 * symtab.h (symbol_get_demangled_name): Don't declare.
7505 * symtab.c (symbol_get_demangled_name): Remove.
7506 (general_symbol_info::natural_name)
7507 (general_symbol_info::demangled_name): Update.
7508
906bb4c5
TT
75092020-04-24 Tom Tromey <tom@tromey.com>
7510
7511 PR rust/25025:
7512 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7513
bcfe6157
TT
75142020-04-24 Tom Tromey <tom@tromey.com>
7515
7516 PR symtab/12707:
7517 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7518 exists.
7519 (new_symbol): Likewise.
7520 * compile/compile-object-load.c (get_out_value_type): Use
7521 symbol_matches_search_name.
7522
f049a313
TT
75232020-04-24 Tom Tromey <tom@tromey.com>
7524
7525 * dwarf2/read.c (add_partial_symbol): Do not call
7526 compute_and_set_names.
7527
76e288d1
TT
75282020-04-24 Tom Tromey <tom@tromey.com>
7529
7530 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7531 overload.
7532
2467f4f6
TT
75332020-04-24 Tom Tromey <tom@tromey.com>
7534
7535 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7536 (add_psymbol_to_list): New overload. Make old overload call new
7537 one.
7538 * psympriv.h (add_psymbol_to_list): New overload.
7539
e61108c9
TT
75402020-04-24 Tom Tromey <tom@tromey.com>
7541
7542 * dwarf2/read.c (partial_die_info::read) <case
7543 DW_AT_linkage_name>: Use value_as_string.
7544 (dwarf2_string_attr): Use value_as_string.
7545 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7546 method.
7547 * dwarf2/attribute.c (attribute::value_as_string): New method.
7548
8c87a452
TT
75492020-04-24 Tom Tromey <tom@tromey.com>
7550
7551 * symtab.c (general_symbol_info::natural_name)
7552 (general_symbol_info::demangled_name): Check for language_rust.
7553
787de330
TT
75542020-04-24 Tom Tromey <tom@tromey.com>
7555
7556 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7557 (dwarf2_physname): ... from here.
7558 (partial_die_info::read): Add Rust "{" hack.
7559
ff985671
TT
75602020-04-24 Tom Tromey <tom@tromey.com>
7561
7562 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7563 method.
7564 (symbol_set_demangled_name): Don't declare.
7565 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7566 symbol_set_demangled_name.
7567 (general_symbol_info::set_language)
7568 (general_symbol_info::compute_and_set_names): Update.
7569 * minsyms.c (minimal_symbol_reader::install): Update.
7570 * dwarf2/read.c (new_symbol): Update.
7571
1acda803
TT
75722020-04-24 Tom Tromey <tromey@adacore.com>
7573
7574 PR python/23662:
7575 * python/py-type.c (convert_field): Handle
7576 FIELD_LOC_KIND_DWARF_BLOCK.
7577 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7578 (typy_get_dynamic): Nw function.
7579 (type_object_getset): Add "dynamic".
7580 * NEWS: Add entry.
7581
d656f129
TT
75822020-04-24 Tom Tromey <tromey@adacore.com>
7583
7584 * ada-typeprint.c (print_choices, print_variant_part)
7585 (print_record_field_types_dynamic): New functions.
7586 (print_record_field_types): Use print_record_field_types_dynamic.
7587
7d79de9a
TT
75882020-04-24 Tom Tromey <tromey@adacore.com>
7589
7590 * dwarf2/read.c (handle_data_member_location): New overload.
7591 (dwarf2_add_field): Use it.
7592 (decode_locdesc): Add "computed" parameter. Update comment.
7593 * gdbtypes.c (is_dynamic_type_internal): Also look for
7594 FIELD_LOC_KIND_DWARF_BLOCK.
7595 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7596 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7597 virtual base classes.
7598 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7599 FIELD_LOC_KIND_DWARF_BLOCK.
7600
f8e89861
TT
76012020-04-24 Tom Tromey <tromey@adacore.com>
7602
7603 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7604 * gdbtypes.c (is_dynamic_type_internal): Check
7605 TYPE_HAS_DYNAMIC_LENGTH.
7606 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7607 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7608 New macros.
7609 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7610 constant.
7611
9c6a1327
TT
76122020-04-24 Tom Tromey <tromey@adacore.com>
7613
7614 * dwarf2/read.c (struct variant_field): Rewrite.
7615 (struct variant_part_builder): New.
7616 (struct nextfield): Remove "variant" field. Add "offset".
7617 (struct field_info): Add "current_variant_part" and
7618 "variant_parts".
7619 (alloc_discriminant_info): Remove.
7620 (alloc_rust_variant): New function.
7621 (quirk_rust_enum): Update.
7622 (dwarf2_add_field): Set "offset" member. Don't handle
7623 DW_TAG_variant_part.
7624 (offset_map_type): New typedef.
7625 (convert_variant_range, create_one_variant)
7626 (create_one_variant_part, create_variant_parts)
7627 (add_variant_property): New functions.
7628 (dwarf2_attach_fields_to_type): Call add_variant_property.
7629 (read_structure_type): Don't handle DW_TAG_variant_part.
7630 (handle_variant_part, handle_variant): New functions.
7631 (handle_struct_member_die): Use them.
7632 (process_structure_scope): Don't handle variant parts.
7633 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7634 (struct discriminant_info): Remove.
7635 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7636 (struct main_type) <flag_discriminated_union>: Remove.
7637 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7638 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7639 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7640 Update.
7641 * valops.c (value_union_variant): Remove.
7642 * value.h (value_union_variant): Don't declare.
7643
b249d2c2
TT
76442020-04-24 Tom Tromey <tromey@adacore.com>
7645
7646 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7647 (ada_value_primitive_packed_val): Update.
7648 * ada-valprint.c (ada_value_print_1): Update.
7649 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7650 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7651 just an address. Use evaluate_for_locexpr_baton.
7652 (dwarf2_evaluate_property): Update.
7653 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7654 array_view.
7655 * findvar.c (default_read_var_value): Update.
7656 * gdbtypes.c (compute_variant_fields_inner)
7657 (resolve_dynamic_type_internal): Update.
7658 (resolve_dynamic_type): Change type of valaddr parameter.
7659 * gdbtypes.h (resolve_dynamic_type): Update.
7660 * valarith.c (value_subscripted_rvalue): Update.
7661 * value.c (value_from_contents_and_address): Update.
7662
61122aa9
TT
76632020-04-24 Tom Tromey <tromey@adacore.com>
7664
7665 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7666 "push_initial_value" parameter.
7667 (dwarf2_evaluate_property): Likewise.
7668 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7669
ef83a141
TT
76702020-04-24 Tom Tromey <tromey@adacore.com>
7671
7672 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7673 (variant::matches, compute_variant_fields_recurse)
7674 (compute_variant_fields_inner, compute_variant_fields): New
7675 functions.
7676 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7677 Use resolved_type after type is made.
7678 (operator==): Add new cases.
7679 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7680 (struct discriminant_range, struct variant, struct variant_part):
7681 New.
7682 (union dynamic_prop_data) <variant_parts, original_type>: New
7683 members.
7684 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7685 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7686 constants.
7687 * value.c (unpack_bits_as_long): Now public.
7688 * value.h (unpack_bits_as_long): Declare.
7689
675127ec
TT
76902020-04-24 Tom Tromey <tromey@adacore.com>
7691
7692 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7693 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7694
9852ceef
HD
76952020-04-24 Hannes Domani <ssbssa@yahoo.de>
7696
7697 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7698
7632c6ce
KR
76992020-04-24 Kamil Rytarowski <n54@gmx.com>
7700
7701 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7702 (remove_fork_catchpoint, post_startup_inferior)
7703 (post_attach): Move...
7704 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7705 (remove_fork_catchpoint, post_startup_inferior)
7706 (post_attach): ...here.
7707 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7708 (remove_fork_catchpoint, post_startup_inferior)
7709 (post_attach): Move...
7710 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7711 (remove_fork_catchpoint, post_startup_inferior)
7712 (post_attach): ...here.
7713
7be2bb4f
TT
77142020-04-24 Tom Tromey <tromey@adacore.com>
7715
7716 * nat/windows-nat.h (struct windows_thread_info)
7717 <pc_adjusted>: New member.
7718 * windows-nat.c (windows_fetch_one_register): Check
7719 pc_adjusted.
7720 (windows_nat_target::get_windows_debug_event)
7721 (windows_nat_target::wait): Set pc_adjusted.
7722
f80cb3b4
TV
77232020-04-24 Tom de Vries <tdevries@suse.de>
7724
7725 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7726 Run gdb-add-index inside temp dir.
7727
29514b87
TT
77282020-04-23 Tom Tromey <tromey@adacore.com>
7729
7730 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7731 in loop.
7732
5939967b
LM
77332020-04-23 Luis Machado <luis.machado@linaro.org>
7734
7735 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7736 get_frame_register instead of gdbarch_unwind_pc.
7737
70bc38f5
TV
77382020-04-23 Tom de Vries <tdevries@suse.de>
7739
7740 * symtab.c (lookup_global_symbol): Prefer def over decl.
7741
de82891c
TV
77422020-04-23 Tom de Vries <tdevries@suse.de>
7743
7744 PR symtab/25807
7745 * block.c (best_symbol, better_symbol): Promote to external.
7746 * block.h (best_symbol, better_symbol): Declare.
7747 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7748 decl.
7749
ecc6c606
TT
77502020-04-23 Tom Tromey <tromey@adacore.com>
7751
7752 PR ada/25837:
7753 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7754 "const char *", not a "const std::string &".
7755 <name_and_matcher::operator==>: Update.
7756 * unittests/lookup_name_info-selftests.c: Change type of
7757 "result".
7758
740480b8
TT
77592020-04-23 Tom Tromey <tom@tromey.com>
7760
7761 * inferior.h (iterate_over_inferiors): Don't declare.
7762 * inferior.c (iterate_over_inferiors): Remove.
7763 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7764 Remove.
7765 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7766 use iterate_over_inferiors.
7767 (darwin_resume_inferior_it)
7768 (struct resume_inferior_threads_param)
7769 (darwin_resume_inferior_threads_it): Remove.
7770 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7771
ae3ab1f0
TV
77722020-04-23 Tom de Vries <tdevries@suse.de>
7773
7774 * blockframe.c (find_pc_partial_function): Use
7775 find_pc_sect_compunit_symtab rather than
7776 objfile->sf->qf->find_pc_sect_compunit_symtab.
7777
317d2668
TV
77782020-04-22 Tom de Vries <tdevries@suse.de>
7779
7780 PR symtab/25764
7781 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7782 in psymtabs.
7783
eea9e357
TV
77842020-04-22 Tom de Vries <tdevries@suse.de>
7785
7786 PR symtab/25801
7787 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7788 symtabs.
7789
3d5afab3
TV
77902020-04-22 Tom de Vries <tdevries@suse.de>
7791
7792 PR symtab/25700
7793 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7794 CU if already created.
7795
d43b7a2d
TBA
77962020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7797
7798 * infrun.c (displaced_step_fixup): Switch to the event_thread
7799 before calling displaced_step_restore, not after.
7800
d89edf9b
MM
78012020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7802
7803 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7804 its inferior is not recorded by us.
7805 (record_btrace_target_open): Replace call to
7806 all_non_exited_threads () with call to current_inferior
7807 ()->non_exited_threads ().
7808 (record_btrace_target::stop_recording): Likewise.
7809 (record_btrace_target::close): Likewise.
7810 (record_btrace_target::wait): Likewise.
7811 (record_btrace_target::record_stop_replaying): Likewise.
7812
5897fd49
MM
78132020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7814
7815 * btrace.c (btrace_enable): Throw an error on double enables and
7816 when enabling recording fails.
7817 (btrace_disable): Throw an error if the thread is not recorded.
7818
1a476b6d
MM
78192020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7820
7821 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7822 request if we do not have a thread_info.
7823
4778a5f8
TV
78242020-04-21 Tom de Vries <tdevries@suse.de>
7825
7826 PR gdb/25471
7827 * thread.c
7828 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7829 exception in get_frame_id.
7830
0fa7617d
TT
78312020-04-20 Tom Tromey <tromey@adacore.com>
7832
7833 * python/python.c (struct gdbpy_event): Mark move constructor as
7834 noexcept.
7835 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7836 constructor as noexcept.
7837 * completer.h (struct completion_result): Mark move constructor as
7838 noexcept.
7839 * completer.c (completion_result::completion_result): Use
7840 initialization style. Don't call reset_match_list.
7841
ad23bda0
MS
78422020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7843
7844 * MAINTAINERS (Write After Approval): Add myself.
7845
45e1f031
TT
78462020-04-18 Tom Tromey <tom@tromey.com>
7847
7848 * windows-tdep.c (init_w32_command_list)
7849 (w32_prefix_command_valid): Restore.
7850 (_initialize_windows_tdep): Call init_w32_command_list.
7851
08feed99
TT
78522020-04-18 Tom Tromey <tom@tromey.com>
7853
7854 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7855 * value.c (value_fn_field): Update.
7856 * valops.c (find_function_in_inferior)
7857 (value_allocate_space_in_inferior): Update.
7858 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7859 Update.
7860 * tui/tui-source.c (tui_source_window::set_contents): Update.
7861 * symtab.c (lookup_global_or_static_symbol)
7862 (find_function_start_sal_1, skip_prologue_sal)
7863 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7864 * symmisc.c (dump_msymbols, dump_symtab_1)
7865 (maintenance_print_one_line_table): Update.
7866 * symfile.c (init_entry_point_info, section_is_mapped)
7867 (list_overlays_command, simple_read_overlay_table)
7868 (simple_overlay_update_1): Update.
7869 * stap-probe.c (handle_stap_probe): Update.
7870 * stabsread.c (dbx_init_float_type, define_symbol)
7871 (read_one_struct_field, read_enum_type, read_range_type): Update.
7872 * source.c (info_line_command): Update.
7873 * python/python.c (gdbpy_source_objfile_script)
7874 (gdbpy_execute_objfile_script): Update.
7875 * python/py-type.c (save_objfile_types): Update.
7876 * python/py-objfile.c (py_free_objfile): Update.
7877 * python/py-inferior.c (python_new_objfile): Update.
7878 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7879 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7880 (maintenance_check_psymtabs): Update.
7881 * printcmd.c (info_address_command): Update.
7882 * objfiles.h (struct objfile) <arch>: New method, from
7883 get_objfile_arch.
7884 (get_objfile_arch): Don't declare.
7885 * objfiles.c (get_objfile_arch): Remove.
7886 (filter_overlapping_sections): Update.
7887 * minsyms.c (msymbol_is_function): Update.
7888 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7889 (output_nondebug_symbol): Update.
7890 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7891 (mdebug_expand_psymtab): Update.
7892 * machoread.c (macho_add_oso_symfile): Update.
7893 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7894 Update.
7895 * linux-fork.c (checkpoint_command): Update.
7896 * linespec.c (convert_linespec_to_sals): Update.
7897 * jit.c (finalize_symtab): Update.
7898 * infrun.c (insert_exception_resume_from_probe): Update.
7899 * ia64-tdep.c (ia64_find_unwind_table): Update.
7900 * hppa-tdep.c (internalize_unwinds): Update.
7901 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7902 Update.
7903 * gcore.c (call_target_sbrk): Update.
7904 * elfread.c (record_minimal_symbol, elf_symtab_read)
7905 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7906 (elf_gnu_ifunc_resolve_by_got): Update.
7907 * dwarf2/read.c (create_addrmap_from_index)
7908 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7909 (read_debug_names_from_section)
7910 (process_psymtab_comp_unit_reader, add_partial_symbol)
7911 (add_partial_subprogram, process_full_comp_unit)
7912 (read_file_scope, read_func_scope, read_lexical_block_scope)
7913 (read_call_site_scope, dwarf2_ranges_read)
7914 (dwarf2_record_block_ranges, dwarf2_add_field)
7915 (mark_common_block_symbol_computed, read_tag_pointer_type)
7916 (read_tag_string_type, dwarf2_init_float_type)
7917 (dwarf2_init_complex_target_type, read_base_type)
7918 (partial_die_info::read, partial_die_info::read)
7919 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7920 (dwarf2_fetch_die_loc_sect_off): Update.
7921 * dwarf2/loc.c (dwarf2_find_location_expression)
7922 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7923 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7924 (dwarf2_loc_desc_get_symbol_read_needs)
7925 (locexpr_describe_location_piece, locexpr_describe_location_1)
7926 (loclist_describe_location): Update.
7927 * dwarf2/index-write.c (write_debug_names): Update.
7928 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7929 * dtrace-probe.c (dtrace_process_dof): Update.
7930 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7931 (process_one_symbol): Update.
7932 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7933 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7934 (coff_read_enum_type): Update.
7935 * cli/cli-cmds.c (edit_command, list_command): Update.
7936 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7937 * breakpoint.c (create_overlay_event_breakpoint)
7938 (create_longjmp_master_breakpoint)
7939 (create_std_terminate_master_breakpoint)
7940 (create_exception_master_breakpoint, get_sal_arch): Update.
7941 * block.c (block_gdbarch): Update.
7942 * annotate.c (annotate_source_line): Update.
7943
0743fc83
TT
79442020-04-17 Tom Tromey <tromey@adacore.com>
7945
7946 * auto-load.c (show_auto_load_cmd): Remove.
7947 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7948 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7949 (maintenance_print_arc_command): Remove.
7950 * tui/tui-win.c (tui_command): Remove.
7951 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7952 * tui/tui-layout.c (tui_layout_command): Remove.
7953 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7954 * python/python.c (user_set_python, user_show_python): Remove.
7955 (_initialize_python): Use add_basic_prefix_cmd,
7956 add_show_prefix_cmd.
7957 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7958 (install_gdb_commands): Use add_basic_prefix_cmd,
7959 add_show_prefix_cmd.
7960 (info_guile_command): Remove.
7961 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7962 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7963 add_show_prefix_cmd.
7964 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7965 Remove do_set and do_show parameters.
7966 * cli/cli-style.c (set_style, show_style): Remove.
7967 (_initialize_cli_style): Use add_basic_prefix_cmd,
7968 add_show_prefix_cmd.
7969 (cli_style_option::add_setshow_commands): Remove do_set and
7970 do_show parameters.
7971 (cli_style_option::add_setshow_commands): Use
7972 add_basic_prefix_cmd, add_show_prefix_cmd.
7973 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7974 (set_style_name): Remove.
7975 * cli/cli-dump.c (dump_command, append_command): Remove.
7976 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7977 (tekhex_dump_command, binary_dump_command)
7978 (binary_append_command): Remove.
7979 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7980 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7981 (init_w32_command_list): Remove; move into ...
7982 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7983 * valprint.c (set_print, show_print, set_print_raw)
7984 (show_print_raw): Remove.
7985 (_initialize_valprint): Use add_basic_prefix_cmd,
7986 add_show_prefix_cmd.
7987 * typeprint.c (set_print_type, show_print_type): Remove.
7988 (_initialize_typeprint): Use add_basic_prefix_cmd,
7989 add_show_prefix_cmd.
7990 * record.c (set_record_command, show_record_command): Remove.
7991 (_initialize_record): Use add_basic_prefix_cmd,
7992 add_show_prefix_cmd.
7993 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7994 add_show_prefix_cmd.
7995 (info_command, show_command, set_debug, show_debug): Remove.
7996 * top.h (set_history, show_history): Don't declare.
7997 * top.c (set_history, show_history): Remove.
7998 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7999 (unset_tdesc_cmd): Remove.
8000 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8001 add_show_prefix_cmd.
8002 * symtab.c (info_module_command): Remove.
8003 (_initialize_symtab): Use add_basic_prefix_cmd.
8004 * symfile.c (overlay_command): Remove.
8005 (_initialize_symfile): Use add_basic_prefix_cmd.
8006 * sparc64-tdep.c (info_adi_command): Remove.
8007 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8008 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8009 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8010 add_show_prefix_cmd.
8011 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8012 (_initialize_serial): Use add_basic_prefix_cmd,
8013 add_show_prefix_cmd.
8014 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8015 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8016 add_show_prefix_cmd.
8017 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8018 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8019 add_show_prefix_cmd.
8020 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8021 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8022 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8023 add_show_prefix_cmd.
8024 * remote.c (remote_command, set_remote_cmd): Remove.
8025 (_initialize_remote): Use add_basic_prefix_cmd.
8026 * record-full.c (set_record_full_command)
8027 (show_record_full_command): Remove.
8028 (_initialize_record_full): Use add_basic_prefix_cmd,
8029 add_show_prefix_cmd.
8030 * record-btrace.c (cmd_set_record_btrace)
8031 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8032 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8033 (cmd_show_record_btrace_pt): Remove.
8034 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8035 add_show_prefix_cmd.
8036 * ravenscar-thread.c (set_ravenscar_command)
8037 (show_ravenscar_command): Remove.
8038 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8039 add_show_prefix_cmd.
8040 * mips-tdep.c (show_mips_command, set_mips_command)
8041 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8042 add_show_prefix_cmd.
8043 * maint.c (maintenance_command, maintenance_info_command)
8044 (maintenance_check_command, maintenance_print_command)
8045 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8046 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8047 add_show_prefix_cmd.
8048 (show_per_command_cmd): Remove.
8049 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8050 Remove.
8051 (maintenance_show_test_settings_cmd): Remove.
8052 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8053 add_show_prefix_cmd.
8054 * maint-test-options.c (maintenance_test_options_command):
8055 Remove.
8056 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8057 * macrocmd.c (macro_command): Remove
8058 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8059 * language.c (set_check, show_check): Remove.
8060 (_initialize_language): Use add_basic_prefix_cmd,
8061 add_show_prefix_cmd.
8062 * infcmd.c (unset_command): Remove.
8063 (_initialize_infcmd): Use add_basic_prefix_cmd.
8064 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8065 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8066 add_show_prefix_cmd.
8067 * go32-nat.c (go32_info_dos_command): Remove.
8068 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8069 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8070 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8071 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8072 (_initialize_frame): Use add_basic_prefix_cmd,
8073 add_show_prefix_cmd.
8074 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8075 (_initialize_dcache): Use add_basic_prefix_cmd,
8076 add_show_prefix_cmd.
8077 * cp-support.c (maint_cplus_command): Remove.
8078 (_initialize_cp_support): Use add_basic_prefix_cmd.
8079 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8080 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8081 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8082 add_basic_prefix_cmd, add_show_prefix_cmd.
8083 * breakpoint.c (save_command): Remove.
8084 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8085 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8086 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8087 add_show_prefix_cmd.
8088 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8089 (set_ada_command, show_ada_command): Remove.
8090 (_initialize_ada_language): Use add_basic_prefix_cmd,
8091 add_show_prefix_cmd.
8092 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8093
3557f442
KR
80942020-04-16 Kamil Rytarowski <n54@gmx.com>
8095
8096 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8097 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8098
16197208
SM
80992020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8100
8101 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8102 warning messages.
8103
00ac85d3
SM
81042020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8105
8106 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8107 import table is not at beginning of .idata section.
8108
381ce63f
PA
81092020-04-16 Pedro Alves <palves@redhat.com>
8110
8111 * inferior.c (delete_inferior): Use delete operator directly
8112 instead of delete_program_space.
8113 * progspace.c (add_program_space): New, factored out from
8114 program_space::program_space.
8115 (remove_program_space): New, factored out from
8116 delete_program_space.
8117 (program_space::program_space): Remove intro comment. Rewrite.
8118 (program_space::~program_space): Remove intro comment. Call
8119 remove_program_space.
8120 (delete_program_space): Delete.
8121 * progspace.h (program_space::program_space): Make explicit. Move
8122 intro comment here, adjusted.
8123 (program_space::~program_space): Move intro comment here,
8124 adjusted.
8125 (delete_program_space): Remove.
8126
a010605f
TT
81272020-04-16 Tom Tromey <tromey@adacore.com>
8128
8129 * windows-nat.c (windows_nat::handle_access_violation): New
8130 function.
8131 * nat/windows-nat.h (handle_access_violation): Declare.
8132 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8133 windows-nat.c. Call handle_access_violation.
8134
efba5c23
TV
81352020-04-16 Tom de Vries <tdevries@suse.de>
8136
8137 PR symtab/25791
8138 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8139 CUs without psymtab.
8140
97ed802d
KB
81412020-04-16 Kevin Buettner <kevinb@redhat.com>
8142
8143 * python/python.c (do_start_initialization): Don't call
8144 PyEval_InitThreads for Python 3.9 and beyond.
8145
c7d64809
KR
81462020-04-15 Kamil Rytarowski <n54@gmx.com>
8147
8148 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8149 thread functions.
8150 (obsd_nat_target::wait): Likewise.
8151
ce127a96
TT
81522020-04-15 Tom Tromey <tromey@adacore.com>
8153
8154 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8155 (DEBUG_EXCEPT): Use debug_printf.
8156
99f1bc6a
AB
81572020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8158
8159 * completer.c (class completion_tracker::completion_hash_entry)
8160 <hash_name>: New member function.
8161 (completion_tracker::discard_completions): New callback to hash a
8162 completion_hash_entry, pass this to htab_create_alloc.
8163
a0e9b532
JT
81642016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8165
8166 * windows-nat.c (windows_make_so): Warn rather than stopping with
8167 an error if realpath() fails.
8168
06ca5dd4
KR
81692020-04-14 Kamil Rytarowski <n54@gmx.com>
8170
8171 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8172 (nbsd_nat_target::info_proc): Add do_status.
8173
194d088f
TV
81742020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8175 Tom de Vries <tdevries@suse.de>
8176
8177 PR symtab/25718
8178 * psympriv.h (struct partial_symtab::read_symtab)
8179 (struct partial_symtab::expand_psymtab)
8180 (struct partial_symtab::read_dependencies): Update comments.
8181 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8182 read_symtab for includer.
8183 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8184 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8185 (struct dwarf2_include_psymtab::m_readin): Remove.
8186 (struct dwarf2_include_psymtab::includer): New member function.
8187 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8188
c1a66c06
TV
81892020-04-14 Tom de Vries <tdevries@suse.de>
8190
8191 PR symtab/25720
8192 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8193 with NULL symbol_matcher and lookup_name.
8194 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8195 and lookup_name.
8196 * dwarf2/read.c (dw2_expand_symtabs_matching)
8197 (dw2_debug_names_expand_symtabs_matching): Same.
8198 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8199 Make lookup_name a pointer. Update comment.
8200 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8201 lookup_name being a pointer.
8202 * symfile.c (expand_symtabs_matching): Same.
8203 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8204 * linespec.c (iterate_over_all_matching_symtabs): Same.
8205
400b5eca
TT
82062020-04-13 Tom Tromey <tom@tromey.com>
8207
8208 * run-on-main-thread.c: Update include.
8209 * unittests/main-thread-selftests.c: Update include.
8210 * tui/tui-win.c: Update include.
8211 * tui/tui-io.c: Update include.
8212 * tui/tui-interp.c: Update include.
8213 * tui/tui-hooks.c: Update include.
8214 * top.h: Update include.
8215 * top.c: Update include.
8216 * ser-base.c: Update include.
8217 * remote.c: Update include.
8218 * remote-notif.c: Update include.
8219 * remote-fileio.c: Update include.
8220 * record-full.c: Update include.
8221 * record-btrace.c: Update include.
8222 * python/python.c: Update include.
8223 * posix-hdep.c: Update include.
8224 * mingw-hdep.c: Update include.
8225 * mi/mi-main.c: Update include.
8226 * mi/mi-interp.c: Update include.
8227 * main.c: Update include.
8228 * linux-nat.c: Update include.
8229 * interps.c: Update include.
8230 * infrun.c: Update include.
8231 * inf-loop.c: Update include.
8232 * event-top.c: Update include.
8233 * event-loop.c: Move to ../gdbsupport/.
8234 * event-loop.h: Move to ../gdbsupport/.
8235 * async-event.h: Update include.
8236 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8237
93b54c8e
TT
82382020-04-13 Tom Tromey <tom@tromey.com>
8239
8240 * tui/tui-win.c: Include async-event.h.
8241 * remote.c: Include async-event.h.
8242 * remote-notif.c: Include async-event.h.
8243 * record-full.c: Include async-event.h.
8244 * record-btrace.c: Include async-event.h.
8245 * infrun.c: Include async-event.h.
8246 * event-top.c: Include async-event.h.
8247 * event-loop.h: Move some declarations to async-event.h.
8248 * event-loop.c: Don't include ser-event.h or top.h. Move some
8249 code to async-event.c.
8250 * async-event.h: New file.
8251 * async-event.c: New file.
8252 * Makefile.in (COMMON_SFILES): Add async-event.c.
8253 (HFILES_NO_SRCDIR): Add async-event.h.
8254
c1cd3163
TT
82552020-04-13 Tom Tromey <tom@tromey.com>
8256
8257 * utils.c (flush_streams): New function.
8258 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8259
29f2bf4f
TT
82602020-04-13 Tom Tromey <tom@tromey.com>
8261
8262 * event-loop.c (handle_file_event): Use warning, not
8263 printf_unfiltered.
8264
98029d02
TT
82652020-04-13 Tom Tromey <tom@tromey.com>
8266
8267 * event-loop.c: Include <chrono>.
8268
06cc9596
TT
82692020-04-13 Tom Tromey <tom@tromey.com>
8270
8271 * gdb_select.h: Move to ../gdbsupport/.
8272 * event-loop.c: Update include path.
8273 * top.c: Update include path.
8274 * ser-base.c: Update include path.
8275 * ui-file.c: Update include path.
8276 * ser-tcp.c: Update include path.
8277 * guile/scm-ports.c: Update include path.
8278 * posix-hdep.c: Update include path.
8279 * ser-unix.c: Update include path.
8280 * gdb_usleep.c: Update include path.
8281 * mingw-hdep.c: Update include path.
8282 * inflow.c: Update include path.
8283 * infrun.c: Update include path.
8284 * event-top.c: Update include path.
8285
8ae8e197
TT
82862020-04-13 Tom Tromey <tom@tromey.com>
8287
8288 * configure: Rebuild.
8289 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8290
58cf28e8
TT
82912020-04-13 Tom Tromey <tom@tromey.com>
8292
8293 * event-loop.h (start_event_loop): Don't declare.
8294 * event-loop.c (start_event_loop): Move...
8295 * main.c (start_event_loop): ...here. Now static.
8296
b7f999ae
SDJ
82972020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8298
8299 * MAINTAINERS: Update my email address.
8300
1085dfd4
KR
83012020-04-12 Kamil Rytarowski <n54@gmx.com>
8302
8303 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8304 IP_ALL.
8305
49d1d1f5
KR
83062020-04-12 Kamil Rytarowski <n54@gmx.com>
8307
8308 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8309 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8310
b4848d2a
KR
83112020-04-12 Kamil Rytarowski <n54@gmx.com>
8312
8313 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8314 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8315
51c133d5
KR
83162020-04-12 Kamil Rytarowski <n54@gmx.com>
8317
8318 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8319
54b8cbd0
KR
83202020-04-11 Kamil Rytarowski <n54@gmx.com>
8321
8322 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8323 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8324 (nbsd_nat_target::info_proc): New functions.
8325 * nbsd-nat.c (kinfo_get_vmmap): New function.
8326 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8327 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8328 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8329 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8330 functions.
8331 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8332 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8333 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8334 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8335 (KINFO_VME_FLAG_GROWS_DOWN): New.
8336
cf83625d
AS
83372020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8338
8339 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8340 bit shift.
8341
0c4311ab
TT
83422020-04-10 Tom Tromey <tromey@adacore.com>
8343
8344 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8345
3e65b3e9
TT
83462020-04-10 Tom Tromey <tromey@adacore.com>
8347
8348 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8349 separate debug files.
8350
13302e95
HD
83512020-04-10 Hannes Domani <ssbssa@yahoo.de>
8352
8353 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8354 Move to...
8355 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8356 ... here.
8357 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8358 Check for STATUS_WX86_BREAKPOINT.
8359 (windows_nat_target::wait): Same.
8360
bdfc1e8a
TV
83612020-04-10 Tom de Vries <tdevries@suse.de>
8362
8363 PR cli/25808
8364 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8365
f4460aec
SM
83662020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8367
8368 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8369 (Write After Approval): Remove Tom de Vries.
8370
a25198bb
BE
83712020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8372
8373 revert partially:
8374 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8375
aac66a4c
SM
8376 * buildsym.c (record_line): Fix undefined behavior and preserve
8377 lines at eof.
a25198bb 8378
206c98a6
KR
83792020-04-09 Kamil Rytarowski <n54@gmx.com>
8380
8381 * auxv.h (svr4_auxv_parse): New.
8382 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8383 and generic_auxv_parse.
8384 (svr4_auxv_parse): Add.
8385 * obsd-tdep.c: Include "auxv.h".
8386 (obsd_auxv_parse): Remove.
8387 (obsd_init_abi): Remove comment.
8388 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8389 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8390 * nbsd-tdep.c: Include "auxv.h".
8391 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8392
71fbdbaf
TT
83932020-04-08 Tom Tromey <tromey@adacore.com>
8394
8395 * nat/windows-nat.h (last_wait_event): Don't declare.
8396 (wait_for_debug_event): Update comment.
8397 * nat/windows-nat.c (last_wait_event): Now static.
8398
2c1d95e8
TT
83992020-04-08 Tom Tromey <tromey@adacore.com>
8400
8401 * windows-nat.c (wait_for_debug_event): Move to
8402 nat/windows-nat.c.
8403 * nat/windows-nat.h (wait_for_debug_event): Declare.
8404 * nat/windows-nat.c (wait_for_debug_event): Move from
8405 windows-nat.c. No longer static.
8406
d2977bc4
TT
84072020-04-08 Tom Tromey <tromey@adacore.com>
8408
8409 * windows-nat.c (get_windows_debug_event): Use
8410 fetch_pending_stop.
8411 * nat/windows-nat.h (fetch_pending_stop): Declare.
8412 * nat/windows-nat.c (fetch_pending_stop): New function.
8413
e758e19c
TT
84142020-04-08 Tom Tromey <tromey@adacore.com>
8415
8416 * windows-nat.c (windows_continue): Use matching_pending_stop and
8417 continue_last_debug_event.
8418 * nat/windows-nat.h (matching_pending_stop)
8419 (continue_last_debug_event): Declare.
8420 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8421 (matching_pending_stop, continue_last_debug_event): New
8422 functions.
8423
8d30e395
TT
84242020-04-08 Tom Tromey <tromey@adacore.com>
8425
8426 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8427 (handle_exception_result): Move to nat/windows-nat.h.
8428 (DEBUG_EXCEPTION_SIMPLE): Remove.
8429 (windows_nat::handle_ms_vc_exception): New function.
8430 (handle_exception): Move to nat/windows-nat.c.
8431 (get_windows_debug_event): Update.
8432 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8433 nat/windows-nat.c.
8434 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8435 (handle_exception_result): Move from windows-nat.c.
8436 (handle_exception): Declare.
8437 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8438 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8439 windows-nat.c.
8440
29de418d
TT
84412020-04-08 Tom Tromey <tromey@adacore.com>
8442
8443 * windows-nat.c (exception_count, event_count): Remove.
8444 (handle_exception, get_windows_debug_event)
8445 (do_initial_windows_stuff): Update.
8446
a816ba18
TT
84472020-04-08 Tom Tromey <tromey@adacore.com>
8448
8449 * windows-nat.c (windows_nat::handle_load_dll)
8450 (windows_nat::handle_unload_dll): Rename. No longer static.
8451 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8452 Declare.
8453
a00caa12
TT
84542020-04-08 Tom Tromey <tromey@adacore.com>
8455
8456 * complaints.h (stop_whining): Declare at top-level.
8457 (complaint): Don't declare stop_whining.
8458
d41b524f
TT
84592020-04-08 Tom Tromey <tromey@adacore.com>
8460
8461 * windows-nat.c (windows_nat::handle_output_debug_string):
8462 Rename. No longer static.
8463 * nat/windows-nat.h (handle_output_debug_string): Declare.
8464
3c76026d
TT
84652020-04-08 Tom Tromey <tromey@adacore.com>
8466
8467 * windows-nat.c (current_process_handle, current_process_id)
8468 (main_thread_id, last_sig, current_event, last_wait_event)
8469 (current_windows_thread, desired_stop_thread_id, pending_stops)
8470 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8471 (display_selectors, fake_create_process)
8472 (get_windows_debug_event): Update.
8473 * nat/windows-nat.h (current_process_handle, current_process_id)
8474 (main_thread_id, last_sig, current_event, last_wait_event)
8475 (current_windows_thread, desired_stop_thread_id, pending_stops)
8476 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8477 * nat/windows-nat.c (current_process_handle, current_process_id)
8478 (main_thread_id, last_sig, current_event, last_wait_event)
8479 (current_windows_thread, desired_stop_thread_id, pending_stops)
8480 (siginfo_er): New globals. Move from windows-nat.c.
8481
9d8679cc
TT
84822020-04-08 Tom Tromey <tromey@adacore.com>
8483
8484 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8485 (handle_load_dll): Update.
8486 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8487
28688adf
TT
84882020-04-08 Tom Tromey <tromey@adacore.com>
8489
8490 * windows-nat.c (enum thread_disposition_type): Move to
8491 nat/windows-nat.h.
8492 (windows_nat::thread_rec): Rename from thread_rec. No longer
8493 static.
8494 (windows_add_thread, windows_nat_target::fetch_registers)
8495 (windows_nat_target::store_registers, handle_exception)
8496 (windows_nat_target::resume, get_windows_debug_event)
8497 (windows_nat_target::get_tib_address)
8498 (windows_nat_target::thread_name)
8499 (windows_nat_target::thread_alive): Update.
8500 * nat/windows-nat.h (enum thread_disposition_type): Move from
8501 windows-nat.c.
8502 (thread_rec): Declare.
8503
4834dad0
TT
85042020-04-08 Tom Tromey <tromey@adacore.com>
8505
8506 * windows-nat.c: Add "using namespace".
8507 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8508 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8509
65bafd5b
TT
85102020-04-08 Tom Tromey <tromey@adacore.com>
8511
8512 * nat/windows-nat.h (struct windows_thread_info): Declare
8513 destructor.
8514 * nat/windows-nat.c (~windows_thread_info): New.
8515
0a4afda3
TT
85162020-04-08 Tom Tromey <tromey@adacore.com>
8517
8518 PR gdb/22992
8519 * windows-nat.c (current_event): Update comment.
8520 (last_wait_event, desired_stop_thread_id): New globals.
8521 (struct pending_stop): New.
8522 (pending_stops): New global.
8523 (windows_nat_target) <stopped_by_sw_breakpoint>
8524 <supports_stopped_by_sw_breakpoint>: New methods.
8525 (windows_fetch_one_register): Add assertions. Adjust PC.
8526 (windows_continue): Handle pending stops. Suspend other threads
8527 when stepping. Use last_wait_event
8528 (wait_for_debug_event): New function.
8529 (get_windows_debug_event): Use wait_for_debug_event. Handle
8530 pending stops. Queue spurious stops.
8531 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8532 (windows_nat_target::kill): Use wait_for_debug_event.
8533 * nat/windows-nat.h (struct windows_thread_info)
8534 <stopped_at_software_breakpoint>: New field.
8535 * nat/windows-nat.c (windows_thread_info::resume): Clear
8536 stopped_at_software_breakpoint.
8537
8e61ebec
TT
85382020-04-08 Tom Tromey <tromey@adacore.com>
8539
8540 * windows-nat.c (enum thread_disposition_type): New.
8541 (thread_rec): Replace "get_context" parameter with "disposition";
8542 change type.
8543 (windows_add_thread, windows_nat_target::fetch_registers)
8544 (windows_nat_target::store_registers, handle_exception)
8545 (windows_nat_target::resume, get_windows_debug_event)
8546 (windows_nat_target::get_tib_address)
8547 (windows_nat_target::thread_name)
8548 (windows_nat_target::thread_alive): Update.
8549
98a03287
TT
85502020-04-08 Tom Tromey <tromey@adacore.com>
8551
8552 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8553 (windows_continue): Use windows_continue::resume.
8554 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8555 resume>: Declare new methods.
8556 * nat/windows-nat.c: New file.
8557 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8558
7c7411bc
TT
85592020-04-08 Tom Tromey <tromey@adacore.com>
8560
8561 * windows-nat.c (windows_add_thread, windows_delete_thread)
8562 (windows_nat_target::fetch_registers)
8563 (windows_nat_target::store_registers, fake_create_process)
8564 (windows_nat_target::resume, windows_nat_target::resume)
8565 (get_windows_debug_event, windows_nat_target::wait)
8566 (windows_nat_target::pid_to_str)
8567 (windows_nat_target::get_tib_address)
8568 (windows_nat_target::get_ada_task_ptid)
8569 (windows_nat_target::thread_name)
8570 (windows_nat_target::thread_alive): Use lwp, not tid.
8571
2950fdf7
TT
85722020-04-08 Tom Tromey <tromey@adacore.com>
8573
8574 * windows-nat.c (handle_exception)
8575 (windows_nat_target::thread_name): Update.
8576 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8577 <name>: Now unique_xmalloc_ptr.
8578
62fe396b
TT
85792020-04-08 Tom Tromey <tromey@adacore.com>
8580
8581 * windows-nat.c (thread_rec)
8582 (windows_nat_target::fetch_registers): Update.
8583 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8584 Update comment.
8585 <debug_registers_changed, reload_context>: Now bool.
8586
e9534bd2
TT
85872020-04-08 Tom Tromey <tromey@adacore.com>
8588
8589 * windows-nat.c (windows_add_thread): Use new.
8590 (windows_init_thread_list, windows_delete_thread): Use delete.
8591 (get_windows_debug_event): Update.
8592 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8593 destructor, and initializers.
8594
ae1f8880
TT
85952020-04-08 Tom Tromey <tromey@adacore.com>
8596
8597 * windows-nat.c (struct windows_thread_info): Remove.
8598 * nat/windows-nat.h: New file.
8599
55a1e039
TT
86002020-04-08 Tom Tromey <tromey@adacore.com>
8601
8602 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8603 (thread_rec, windows_add_thread, windows_delete_thread)
8604 (windows_continue): Update.
8605
93366324
TT
86062020-04-08 Tom Tromey <tromey@adacore.com>
8607
8608 * windows-nat.c (struct windows_thread_info): Remove typedef.
8609 (thread_head): Remove.
8610 (thread_list): New global.
8611 (thread_rec, windows_add_thread, windows_init_thread_list)
8612 (windows_delete_thread, windows_continue): Update.
8613
0f2265e2
SM
86142020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8615
8616 * windows-tdep.h (windows_init_abi): Add comment.
8617 (cygwin_init_abi): New declaration.
8618 * windows-tdep.c: Split signal enumeration in two, one for
8619 Windows and one for Cygwin.
8620 (windows_gdb_signal_to_target): Only deal with signal of the
8621 Windows OS ABI.
8622 (cygwin_gdb_signal_to_target): New function.
8623 (windows_init_abi): Rename to windows_init_abi_common, don't set
8624 gdb_signal_to_target gdbarch method. Add new new function with
8625 this name.
8626 (cygwin_init_abi): New function.
8627 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8628 comment. Don't call windows_init_abi.
8629 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8630 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8631 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8632 i386_windows_init_abi_common, don't call windows_init_abi. Add
8633 a new function of this name.
8634 (i386_cygwin_init_abi): New function.
8635 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8636 OS ABI Cygwin.
8637
3810f182
SM
86382020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8639
8640 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8641 parameter.c.
8642 (dwarf2_read_gdb_index): Update.
8643
063f8e80
KR
86442020-04-07 Kamil Rytarowski <n54@gmx.com>
8645
8646 * nbsd-tdep.c: Include "objfiles.h".
8647 (nbsd_skip_solib_resolver): New.
8648 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8649
85a9510c 86502020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8651
8652 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8653 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8654 with DW_LLE_base_addressx are being emitted in DWARFv5.
8655 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8656 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8657 unsigned integer.
8658
9fc3eaae 86592020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8660
8661 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8662 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8663 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8664 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8665 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8666 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8667 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8668
8669
41144253 86702020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8671
8672 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8673 (read_loclist_index): New function definition.
8674 (lookup_loclist_base): New function definition.
8675 (read_loclist_header): New function definition.
8676 (dwarf2_cu): Add loclist_base and loclist_header field.
8677 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8678 (read_full_die_1): Read the value of DW_AT_loclists_base.
8679 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8680 (read_attribute_value): Handle DW_FORM_loclistx.
8681 (skip_one_die): Handle DW_FORM_loclistx.
8682 (loclist_header): New structure declaration.
8683 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8684
9f4e76a4
SM
86852020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8686
8687 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8688 constructor. Remove `addr` parameter from other constructor and
8689 add `per_cu` parameter.
8690 * dwarf2/read.c (create_partial_symtab): Update.
8691
25c11aca
TV
86922020-04-07 Tom de Vries <tdevries@suse.de>
8693
8694 PR symtab/25796
8695 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8696 (partial_die_info::fixup): Inherit has_const_value.
8697
5707e24b
TV
86982020-04-07 Tom de Vries <tdevries@suse.de>
8699
8700 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8701 symbols without address.
8702
05f00e22
KR
87032020-04-06 Kamil Rytarowski <n54@gmx.com>
8704
8705 * nbsd-nat.h (struct thread_info): Add forward declaration.
8706 (nbsd_nat_target::thread_alive): Add.
8707 (nbsd_nat_target::thread_name): Likewise.
8708 (nbsd_nat_target::update_thread_list): Likewise.
8709 (update_thread_list::post_attach): Likewise.
8710 (post_attach::pid_to_str): Likewise.
8711 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8712 (nbsd_thread_lister): Add.
8713 (nbsd_nat_target::thread_alive): Likewise.
8714 (nbsd_nat_target::thread_name): Likewise.
8715 (nbsd_add_threads): Likewise.
8716 (update_thread_list::post_attach): Likewise.
8717 (nbsd_nat_target::update_thread_list): Likewise.
8718 (post_attach::pid_to_str): Likewise.
8719
6ee448cc
TT
87202020-04-06 Tom Tromey <tromey@adacore.com>
8721
8722 * ada-valprint.c (print_variant_part): Extract the variant field.
8723 (print_field_values): Use the field as the outer value when
8724 recursing.
8725
dea34e8c
TT
87262020-04-06 Tom Tromey <tromey@adacore.com>
8727
8728 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8729 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8730 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8731 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8732 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8733
93689ce9
TT
87342020-04-06 Tom Tromey <tromey@adacore.com>
8735
8736 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8737 TYPE_CODE_ERROR.
8738
79743962
KR
87392020-04-06 Kamil Rytarowski <n54@gmx.com>
8740
8741 * nbsd-tdep.c: Include "gdbarch.h".
8742 Define enum with NetBSD signal numbers.
8743 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8744 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8745 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8746 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8747 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8748 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8749 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8750 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8751 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8752 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8753 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8754 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8755
9e7c9a03
HD
87562020-04-03 Hannes Domani <ssbssa@yahoo.de>
8757
8758 PR gdb/25325
8759 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8760
d9e49b61
TT
87612020-04-03 Tom Tromey <tromey@adacore.com>
8762
8763 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8764 Read constant block.
8765
e0fc5c3f
SM
87662020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8767
8768 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8769 (gdb_bfd_get_full_section_contents): New declaration.
8770 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8771 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8772 gdb_bfd_get_full_section_contents.
8773
e2ff18a0
SM
87742020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8775
8776 * exec.c (build_section_table): Replace internal_error with
8777 gdb_assert.
8778 (section_table_xfer_memory_partial): Likewise.
8779 * mdebugread.c (parse_partial_symbols): Likewise.
8780 * psymtab.c (lookup_partial_symbol): Likewise.
8781 * utils.c (wrap_here): Likewise.
8782
0830d301
TT
87832020-04-02 Tom Tromey <tromey@adacore.com>
8784
8785 * f-lang.c (build_fortran_types): Use arch_type to initialize
8786 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8787
e7da7f8f
TT
87882020-04-02 Tom Tromey <tromey@adacore.com>
8789
8790 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8791 of attributes.
8792
c90d28ac
AB
87932020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8794 Bernd Edlinger <bernd.edlinger@hotmail.de>
8795 Tom Tromey <tromey@adacore.com>
8796
8797 * buildsym.c (buildsym_compunit::record_line): Remove
8798 deduplication code.
8799
1aa98955
TV
88002020-04-02 Tom de Vries <tdevries@suse.de>
8801
8802 PR ada/24671
8803 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8804
d3214198
TV
88052020-04-02 Tom de Vries <tdevries@suse.de>
8806
8807 * dwarf2/read.c (dwarf2_gdb_index_functions,
8808 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8809 NULL.
8810 * psymtab.c (psym_lookup_global_symbol_language): New function.
8811 (psym_functions): Init psym_lookup_global_symbol_language with
8812 psym_lookup_global_symbol_language.
8813 * symfile-debug.c (debug_sym_quick_functions): Init
8814 lookup_global_symbol_language with NULL.
8815 * symfile.c (set_initial_language): Remove fixme comment.
8816 * symfile.h (struct quick_symbol_functions): Add
8817 lookup_global_symbol_language.
8818 * symtab.c (find_quick_global_symbol_language): New function.
8819 (find_main_name): Use find_quick_global_symbol_language.
8820
2836752f
SM
88212020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8822
8823 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8824
64dc2d4b
BE
88252020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8826
8827 * buildsym.c (record_line): Fix undefined behavior and preserve
8828 lines at eof.
8829
bbe3dc41
BE
88302020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8831
8832 * buildsym.c (record_line): Fix the resizing condition.
8833
6b4a335b
TT
88342020-04-01 Tom Tromey <tom@tromey.com>
8835
8836 * value.h (value_literal_complex): Add comment.
8837 * valops.c (value_literal_complex): Refer to value.h.
8838
3638a098
TT
88392020-04-01 Tom Tromey <tom@tromey.com>
8840
8841 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8842 (scalar_type): New rule, from typebase.
8843 (typebase): Use scalar_type. Recognize complex types.
8844 (field_name): Handle FLOAT_KEYWORD.
8845 (ident_tokens): Add _Complex and __complex__.
8846
c34e8714
TT
88472020-04-01 Tom Tromey <tom@tromey.com>
8848
8849 PR exp/25299:
8850 * valarith.c (promotion_type, complex_binop): New functions.
8851 (scalar_binop): Handle complex numbers. Use promotion_type.
8852 (value_pos, value_neg, value_complement): Handle complex numbers.
8853
fa649bb7
TT
88542020-04-01 Tom Tromey <tom@tromey.com>
8855
8856 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8857 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8858 (parse_number): Handle complex numbers.
8859
981c08ce
TT
88602020-04-01 Tom Tromey <tom@tromey.com>
8861
8862 * c-valprint.c (c_decorations): Change complex suffix to "i".
8863
4c99290d
TT
88642020-04-01 Tom Tromey <tom@tromey.com>
8865
8866 * valprint.c (generic_value_print_complex): Use accessors.
8867 * value.h (value_real_part, value_imaginary_part): Declare.
8868 * valops.c (value_real_part, value_imaginary_part): New
8869 functions.
8870 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8871
5b930b45
TT
88722020-04-01 Tom Tromey <tom@tromey.com>
8873
8874 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8875 (read_range_type): Update.
8876 * mdebugread.c (basic_type): Update.
8877 * go-lang.c (build_go_types): Use init_complex_type.
8878 * gdbtypes.h (struct main_type) <complex_type>: New member.
8879 (init_complex_type): Update.
8880 (arch_complex_type): Don't declare.
8881 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8882 Make name if none given. Use alloc_type_copy. Look for cached
8883 complex type.
8884 (arch_complex_type): Remove.
8885 (gdbtypes_post_init): Use init_complex_type.
8886 * f-lang.c (build_fortran_types): Use init_complex_type.
8887 * dwarf2/read.c (read_base_type): Update.
8888 * d-lang.c (build_d_types): Use init_complex_type.
8889 * ctfread.c (read_base_type): Update.
8890
53cccef1
TBA
88912020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8892
8893 * infrun.c (stop_all_threads): Update assertion, plus when
8894 stopping threads, take into account that we might be trying
8895 to stop an all-stop target.
8896 (stop_waiting): Call 'stop_all_threads' if there exists a
8897 non-stop target.
8898
a0714d30
TBA
88992020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8900
8901 * target.h (exists_non_stop_target): New function declaration.
8902 * target.c (exists_non_stop_target): New function.
8903
60e22c1e
HD
89042020-04-01 Hannes Domani <ssbssa@yahoo.de>
8905
8906 PR gdb/24789
8907 * eval.c (is_integral_or_integral_reference): New function.
8908 (evaluate_subexp_standard): Allow integer references in
8909 pointer arithmetic.
8910
e139a727
TBA
89112020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8912
8913 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8914 check for no ptid in the stop reply when the target is non-stop.
8915
e0802d59
TT
89162020-04-01 Tom Tromey <tromey@adacore.com>
8917
8918 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8919 "name" parameter to rvalue reference. Initialize m_name_holder.
8920 <lookup_name_info>: New overloads.
8921 <name>: Return gdb::string_view.
8922 <c_str>: New method.
8923 <make_ignore_params>: Update.
8924 <search_name_hash>: Update.
8925 <language_lookup_name>: Return const char *.
8926 <m_name>: Change type.
8927 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8928 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8929 (lookup_name_info::match_any): Update.
8930 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8931 Update.
8932 * minsyms.c (linkage_name_str): Update.
8933 * language.c (default_symbol_name_matcher): Update.
8934 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8935 Update.
8936 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8937 (ada_lookup_name_info::ada_lookup_name_info): Update.
8938 (literal_symbol_name_matcher): Update.
8939
8c072cb6
TT
89402020-04-01 Tom Tromey <tromey@adacore.com>
8941
8942 * psymtab.c (psymtab_search_name): Remove function.
8943 (psym_lookup_symbol): Create search name and lookup name here.
8944 (lookup_partial_symbol): Remove "name" parameter; add
8945 lookup_name.
8946 (psym_expand_symtabs_for_function): Update.
8947
6f29a534
TT
89482020-03-31 Joel Jones <joelkevinjones@gmail.com>
8949
8950 PR tui/25597:
8951 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8952
af62665e
TT
89532020-03-31 Tom Tromey <tromey@adacore.com>
8954
8955 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8956 memcpy.
8957
d1a89da5
NC
89582020-03-30 Nelson Chu <nelson.chu@sifive.com>
8959
8960 * features/riscv/32bit-csr.xml: Regenerated.
8961 * features/riscv/64bit-csr.xml: Regenerated.
8962
d8af9068
TT
89632020-03-30 Tom Tromey <tromey@adacore.com>
8964
8965 * ada-valprint.c (print_variant_part): Update.
8966 * ada-lang.h (ada_which_variant_applies): Update.
8967 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8968 outer_valaddr parameters; replace with "outer" value parameter.
8969 (to_fixed_variant_branch_type): Update.
8970
227c0bf4
PFC
89712020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8972
8973 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8974 <list>. Remove inclusion of observable.h.
8975 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8976 (struct arch_lwp_info): New struct.
8977 (class ppc_linux_dreg_interface): New class.
8978 (struct ppc_linux_process_info): New struct.
8979 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8980 <low_new_clone, low_forget_process, low_prepare_to_resume>
8981 <copy_thread_dreg_state, mark_thread_stale>
8982 <mark_debug_registers_changed, register_hw_breakpoint>
8983 <clear_hw_breakpoint, register_wp, clear_wp>
8984 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8985 <num_memory_accesses, get_trigger_type>
8986 <create_watchpoint_request, hwdebug_point_cmp>
8987 <init_arch_lwp_info, get_arch_lwp_info>
8988 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8989 methods.
8990 <struct ptid_hash>: New inner struct.
8991 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8992 members.
8993 (saved_dabr_value, hwdebug_info, max_slots_number)
8994 (struct hw_break_tuple, struct thread_points, ppc_threads)
8995 (have_ptrace_hwdebug_interface)
8996 (hwdebug_find_thread_points_by_tid)
8997 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8998 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8999 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9000 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9001 use m_dreg_interface.
9002 (hwdebug_point_cmp): Change to...
9003 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9004 reference arguments instead of pointers.
9005 (ppc_linux_nat_target::ranged_break_num_registers): Use
9006 m_dreg_interface.
9007 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9008 m_dreg_interface. Call register_hw_breakpoint.
9009 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9010 m_dreg_interface. Call clear_hw_breakpoint.
9011 (get_trigger_type): Change to...
9012 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9013 comment.
9014 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9015 use m_dreg_interface. Call register_hw_breakpoint.
9016 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9017 use m_dreg_interface. Call clear_hw_breakpoint.
9018 (can_use_watchpoint_cond_accel): Change to...
9019 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9020 method. Update comment, use m_dreg_interface and
9021 m_process_info.
9022 (calculate_dvc): Change to...
9023 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9024 m_dreg_interface.
9025 (num_memory_accesses): Change to...
9026 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9027 (check_condition): Change to...
9028 (ppc_linux_nat_target::check_condition): ...this method.
9029 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9030 comment, use m_dreg_interface.
9031 (create_watchpoint_request): Change to...
9032 (ppc_linux_nat_target::create_watchpoint_request): ...this
9033 method. Use m_dreg_interface.
9034 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9035 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9036 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9037 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9038 (ppc_linux_nat_target::low_forget_process)
9039 (ppc_linux_nat_target::low_new_fork)
9040 (ppc_linux_nat_target::low_new_clone)
9041 (ppc_linux_nat_target::low_delete_thread)
9042 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9043 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9044 only call mark_thread_stale.
9045 (ppc_linux_thread_exit): Remove.
9046 (ppc_linux_nat_target::stopped_data_address): Change to...
9047 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9048 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9049 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9050 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9051 comment. Call low_stopped_data_address.
9052 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9053 m_dreg_interface.
9054 (ppc_linux_nat_target::masked_watch_num_registers): Use
9055 m_dreg_interface.
9056 (ppc_linux_nat_target::copy_thread_dreg_state)
9057 (ppc_linux_nat_target::mark_thread_stale)
9058 (ppc_linux_nat_target::mark_debug_registers_changed)
9059 (ppc_linux_nat_target::register_hw_breakpoint)
9060 (ppc_linux_nat_target::clear_hw_breakpoint)
9061 (ppc_linux_nat_target::register_wp)
9062 (ppc_linux_nat_target::clear_wp)
9063 (ppc_linux_nat_target::init_arch_lwp_info)
9064 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9065 (_initialize_ppc_linux_nat): Remove observer callback.
9066
4db10d8f
PFC
90672020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9068
9069 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9070 (ppc_linux_nat_target::auxv_parse)
9071 (ppc_linux_nat_target::read_description)
9072 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9073 Move up.
9074
1310c1b0
PFC
90752020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9076
9077 * linux-nat.h (low_new_clone): New method.
9078 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9079
69b037c3
SM
90802020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9081
9082 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9083 (dbx_expand_psymtab): ... this.
9084 (start_psymtab): Update.
9085 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9086 (mdebug_expand_psymtab): ... this.
9087 (parse_partial_symbols): Update.
9088 (new_psymtab): Update.
9089 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9090 (xcoff_expand_psymtab): ... this.
9091 (xcoff_start_psymtab): Update.
9092
48993951
SM
90932020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9094
9095 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9096 <expand_dependencies>: ... this.
9097 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9098 (partial_symtab::expand_dependencies): ... this.
9099 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9100 Update.
9101 (dwarf2_psymtab::expand_psymtab): Update.
9102 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9103 * mdebugread.c (psymtab_to_symtab_1): Update.
9104 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9105
3ad83046
SM
91062020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9107
9108 * psympriv.h (discard_psymtab): Remove.
9109 * dbxread.c (dbx_end_psymtab): Update.
9110 * xcoffread.c (xcoff_end_psymtab): Update.
9111
4d1b9ab6
TT
91122020-03-28 Tom Tromey <tom@tromey.com>
9113
9114 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9115 comment.
9116
f1749218
TT
91172020-03-28 Tom Tromey <tom@tromey.com>
9118
9119 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9120
ebea7626
HD
91212020-03-27 Hannes Domani <ssbssa@yahoo.de>
9122
9123 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9124
a879b4d5
JB
91252020-03-26 John Baldwin <jhb@FreeBSD.org>
9126
9127 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9128
0826b30a
TT
91292020-03-26 Tom Tromey <tom@tromey.com>
9130
9131 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9132 (mark_common_block_symbol_computed, read_tag_string_type)
9133 (attr_to_dynamic_prop, read_subrange_type): Update.
9134 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9135 to be methods on struct attribute.
9136 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9137 (read_call_site_scope, partial_die_info::read)
9138 (partial_die_info::read, lookup_die_type, follow_die_ref):
9139 Update.
9140 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9141 from dwarf2_get_ref_die_offset.
9142 (attribute::constant_value): New method, from
9143 dwarf2_get_attr_constant_value.
9144 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9145 Declare method.
9146 <constant_value>: New method.
9147
2b2558bf
TT
91482020-03-26 Tom Tromey <tom@tromey.com>
9149
9150 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9151 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9152 (dwarf_type_encoding_name): Move to stringify.c.
9153 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9154 * dwarf2/stringify.c: New file.
9155 * dwarf2/stringify.h: New file.
9156
eeb64781
TT
91572020-03-26 Tom Tromey <tom@tromey.com>
9158
9159 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9160 Rewrite.
9161
a39fdb41
TT
91622020-03-26 Tom Tromey <tom@tromey.com>
9163
9164 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9165 methods.
9166 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9167 (lookup_ranges_base): Likewise.
9168 (read_cutu_die_from_dwo, read_full_die_1): Update.
9169
436c571c
TT
91702020-03-26 Tom Tromey <tom@tromey.com>
9171
9172 * dwarf2/read.c (read_import_statement, read_file_scope)
9173 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9174 (read_lexical_block_scope, read_call_site_scope)
9175 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9176 (handle_struct_member_die, process_structure_scope)
9177 (update_enumeration_type_from_children)
9178 (process_enumeration_scope, read_array_type, read_common_block)
9179 (read_namespace, read_module, read_subroutine_type): Update.
9180 (sibling_die): Remove.
9181
052c8bb8
TT
91822020-03-26 Tom Tromey <tom@tromey.com>
9183
9184 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9185 (build_type_psymtabs_reader, read_structure_type)
9186 (read_enumeration_type, read_full_die_1): Update.
9187 (dwarf2_attr_no_follow): Move to die.h.
9188 * dwarf2/die.h (struct die_info) <attr>: New method.
9189
2b24b6e4
TT
91902020-03-26 Tom Tromey <tom@tromey.com>
9191
9192 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9193 <base_address>: Now an optional.
9194 (dwarf2_find_base_address, dwarf2_rnglists_process)
9195 (dwarf2_ranges_process, fill_in_loclist_baton)
9196 (dwarf2_symbol_mark_computed): Update.
9197
c2d50fd0
TT
91982020-03-26 Tom Tromey <tom@tromey.com>
9199
9200 * dwarf2/read.c (struct die_info): Move to die.h.
9201 * dwarf2/die.h: New file.
9202
0df7ad3a
TT
92032020-03-26 Tom Tromey <tom@tromey.com>
9204
9205 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9206 * dwarf2/read.c
9207 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9208 Move to line-header.c.
9209 (read_checked_initial_length_and_offset, read_formatted_entries):
9210 Likewise.
9211 (dwarf_decode_line_header): Split into two.
9212 * dwarf2/line-header.c
9213 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9214 Move from read.c.
9215 (read_checked_initial_length_and_offset, read_formatted_entries):
9216 Likewise.
9217 (dwarf_decode_line_header): New function, split from read.c.
9218
86c0bb4c
TT
92192020-03-26 Tom Tromey <tom@tromey.com>
9220
9221 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9222 Declare method.
9223 * dwarf2/read.c (read_attribute_value): Update.
9224 (dwarf2_per_objfile::read_line_string): Rename from
9225 read_indirect_line_string.
9226 (read_formatted_entries): Update.
9227
2ef46c2f
TT
92282020-03-26 Tom Tromey <tom@tromey.com>
9229
9230 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9231 variable.
9232
4f9c1eda
TT
92332020-03-26 Tom Tromey <tom@tromey.com>
9234
9235 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9236 const.
9237 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9238 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9239 parameter const.
9240
5a0e026f
TT
92412020-03-26 Tom Tromey <tom@tromey.com>
9242
9243 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9244 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9245 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9246 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9247
8844c11b
TT
92482020-03-26 Tom Tromey <tom@tromey.com>
9249
9250 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9251 file_names_size, file_full_name, file_file_name>: Use const.
9252 <file_name_at, file_names>: Add const overload.
9253 * dwarf2/line-header.c (line_header::file_file_name)
9254 (line_header::file_full_name): Update.
9255
c90ec28a
TT
92562020-03-26 Tom Tromey <tom@tromey.com>
9257
9258 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9259 (macro_start_file, consume_improper_spaces)
9260 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9261 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9262 (dwarf_decode_macros): Move to macro.c.
9263 * dwarf2/macro.c: New file.
9264 * dwarf2/macro.h: New file.
9265 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9266
4f44ae6c
TT
92672020-03-26 Tom Tromey <tom@tromey.com>
9268
9269 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9270 method.
9271 * dwarf2/section.c: New method. From
9272 read_indirect_string_at_offset_from.
9273 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9274 (read_indirect_string_at_offset_from): Move to section.c.
9275 (read_indirect_string_at_offset): Rewrite.
9276 (read_indirect_line_string_at_offset): Remove.
9277 (read_indirect_string, read_indirect_line_string)
9278 (dwarf_decode_macro_bytes): Update.
9279
a0194fa8
TT
92802020-03-26 Tom Tromey <tom@tromey.com>
9281
9282 * dwarf2/section.h (struct dwarf2_section_info)
9283 <overload_complaint>: Declare.
9284 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9285 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9286 Rename from dwarf2_section_buffer_overflow_complaint.
9287 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9288 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9289
3d27bbdb
TT
92902020-03-26 Tom Tromey <tom@tromey.com>
9291
9292 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9293 Declare.
9294 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9295 Move from read.c.
9296 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9297 to section.c.
9298
9eac9650
TT
92992020-03-26 Tom Tromey <tom@tromey.com>
9300
9301 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9302
bf80d710
TT
93032020-03-26 Tom Tromey <tom@tromey.com>
9304
9305 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9306 "builder".
9307 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9308 parameter.
9309 (dwarf_decode_macros): Update.
9310
0314b390
TT
93112020-03-26 Tom Tromey <tom@tromey.com>
9312
9313 * dwarf2/read.c (read_attribute_value): Update.
9314 (read_indirect_string_from_dwz): Move to dwz.c; change into
9315 method.
9316 (dwarf_decode_macro_bytes): Update.
9317 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9318 * dwarf2/dwz.c: New file.
9319 * Makefile.in (COMMON_SFILES): Add dwz.c.
9320
9fda78b6
TT
93212020-03-26 Tom Tromey <tom@tromey.com>
9322
9323 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9324 * dwarf2/read.c: Add include.
9325 * dwarf2/index-write.c: Add include.
9326 * dwarf2/index-cache.c: Add include.
9327 * dwarf2/dwz.h: New file.
9328
33aa3c10
TT
93292020-03-25 Tom Tromey <tom@tromey.com>
9330
9331 * compile/compile-object-load.c (get_out_value_type): Mention
9332 correct symbol name in error message.
9333
d503b685
HD
93342020-03-25 Hannes Domani <ssbssa@yahoo.de>
9335
9336 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9337
7b1eff95
TV
93382020-03-25 Tom de Vries <tdevries@suse.de>
9339
9340 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9341 * symmisc.c (dump_symtab_1): Print user and includes fields.
9342 (maintenance_info_symtabs): Same.
9343
dd895392
AB
93442020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9345
9346 PR gdb/25534
9347 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9348 (riscv_regcache_cooked_write): New function.
9349 (riscv_push_dummy_call): Use new function.
9350 (riscv_return_value): Likewise.
9351
5ab2fbf1
SM
93522020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9353
9354 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9355 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9356 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9357 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9358 * infrun.c (follow_fork): Likewise.
9359 (follow_fork_inferior): Likewise.
9360 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9361 * linux-nat.h (class linux_nat_target): Likewise.
9362 * remote.c (class remote_target) <follow_fork>: Likewise.
9363 (remote_target::follow_fork): Likewise.
9364 * target-delegates.c: Re-generate.
9365 * target.c (default_follow_fork): Likewise.
9366 (target_follow_fork): Likewise.
9367 * target.h (struct target_ops) <follow_fork>: Likewise.
9368 (target_follow_fork): Likewise.
9369
a64fafb5
TV
93702020-03-24 Tom de Vries <tdevries@suse.de>
9371
9372 * psymtab.c (maintenance_info_psymtabs): Print user field.
9373
fe26d3a3
TT
93742020-03-20 Tom Tromey <tromey@adacore.com>
9375
9376 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9377 const.
9378 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9379 const.
9380
c884cc46
SM
93812020-03-20 Simon Marchi <simon.marchi@efficios.com>
9382
9383 * ptrace.m4: Don't check for ptrace declaration.
9384 * config.in: Re-generate.
9385 * configure: Re-generate.
9386 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9387 not defined.
9388
1ff700c2
KR
93892020-03-20 Kamil Rytarowski <n54@gmx.com>
9390
9391 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9392 `PTRACE_TYPE_RET'.
9393 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9394 * sparc-nat.c (gdb_ptrace): Likewise.
9395 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9396
f7d4f0b1
TT
93972020-03-20 Tom Tromey <tromey@adacore.com>
9398
9399 * c-exp.y (lex_one_token): Fix assert.
9400
f67210ff
TT
94012020-03-20 Tom Tromey <tromey@adacore.com>
9402
9403 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9404 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9405 strncpy call.
9406
1773be9e
TT
94072020-03-20 Tom Tromey <tromey@adacore.com>
9408
9409 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9410
70304be9
TT
94112020-03-20 Tom Tromey <tromey@adacore.com>
9412
9413 * ada-valprint.c (print_variant_part): Remove parameters; switch
9414 to value-based API.
9415 (print_field_values): Likewise.
9416 (ada_val_print_struct_union): Likewise.
9417 (ada_value_print_1): Update.
9418
9faa006d
KR
94192020-03-20 Kamil Rytarowski <n54@gmx.com>
9420
9421 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9422 nbsd_nat_target instead of inf_ptrace_target.
9423 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9424 nbsd_nat_target.
9425
4a90f062
KR
94262020-03-20 Kamil Rytarowski <n54@gmx.com>
9427
9428 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9429 it to the ptrace call.
9430 * (store_registers): Likewise.
9431
94322020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9433
9434 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9435 it to the ptrace call.
9436 * (store_registers): Likewise.
9437
2d07da27
LM
94382020-03-19 Luis Machado <luis.machado@linaro.org>
9439
9440 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9441 valid, fetch vg value from ptrace.
9442
f09db380
KR
94432020-03-19 Kamil Rytarowski <n54@gmx.com>
9444 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9445 * inf-ptrace.c: Likewise.
9446 * (gdb_ptrace): Add.
9447 * (inf_ptrace_target::resume): Update.
9448 * (inf_ptrace_target::xfer_partial): Likewise.
9449 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9450 * (inf_ptrace_peek_poke): Update.
9451
fcc7376e
KR
94522020-03-19 Kamil Rytarowski <n54@gmx.com>
9453
9454 * x86-bsd-nat.c (gdb_ptrace): New.
9455 * (x86bsd_dr_set): Add new argument `ptid'.
9456 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9457 x86bsd_dr_set_addr): Update.
9458
cada5fc9
AB
94592020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9460
9461 * remote.c (remote_target::process_stop_reply): Handle events for
9462 all threads differently.
9463
19a2740f
AB
94642020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9465
9466 * completer.c (completion_tracker::remove_completion): Define new
9467 function.
9468 * completer.h (completion_tracker::remove_completion): Declare new
9469 function.
9470 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9471 when adding a C++ function symbol.
9472
724fd9ba
AB
94732020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9474
9475 * completer.c (completion_tracker::completion_hash_entry): Define
9476 new class.
9477 (advance_to_filename_complete_word_point): Call
9478 recompute_lowest_common_denominator.
9479 (completion_tracker::completion_tracker): Call discard_completions
9480 to setup the hash table.
9481 (completion_tracker::discard_completions): Allow for being called
9482 from the constructor, pass new equal function, and element deleter
9483 when constructing the hash table. Initialise new class member
9484 variables.
9485 (completion_tracker::maybe_add_completion): Remove use of
9486 m_entries_vec, and store more information into m_entries_hash.
9487 (completion_tracker::recompute_lcd_visitor): New function, most
9488 content taken from...
9489 (completion_tracker::recompute_lowest_common_denominator):
9490 ...here, this now just visits each item in the hash calling the
9491 above visitor.
9492 (completion_tracker::build_completion_result): Remove use of
9493 m_entries_vec, call recompute_lowest_common_denominator.
9494 * completer.h (completion_tracker::have_completions): Remove use
9495 of m_entries_vec.
9496 (completion_tracker::completion_hash_entry): Declare new class.
9497 (completion_tracker::recompute_lowest_common_denominator): Change
9498 function signature.
9499 (completion_tracker::recompute_lcd_visitor): Declare new function.
9500 (completion_tracker::m_entries_vec): Delete.
9501 (completion_tracker::m_entries_hash): Initialize to NULL.
9502 (completion_tracker::m_lowest_common_denominator_valid): New
9503 member variable.
9504 (completion_tracker::m_lowest_common_denominator_max_length): New
9505 member variable.
9506
5a82b8a1
KR
95072020-03-17 Kamil Rytarowski <n54@gmx.com>
9508
9509 * regformats/regdef.h: Put reg in gdb namespace.
9510
fb516a69
KR
95112020-03-17 Kamil Rytarowski <n54@gmx.com>
9512
9513 * i386-bsd-nat.c (gdb_ptrace): New.
9514 * (i386bsd_fetch_inferior_registers,
9515 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9516 * (i386bsd_fetch_inferior_registers,
9517 i386bsd_store_inferior_registers) Use gdb_ptrace.
9518
1c0aa1fb
KR
95192020-03-17 Kamil Rytarowski <n54@gmx.com>
9520
9521 * amd64-bsd-nat.c (gdb_ptrace): New.
9522 * (amd64bsd_fetch_inferior_registers,
9523 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9524 * (amd64bsd_fetch_inferior_registers,
9525 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9526
5ccd2fb7
KR
95272020-03-17 Kamil Rytarowski <n54@gmx.com>
9528
9529 * user-regs.c (user_reg::read): Rename to...
9530 (user_reg::xread): ...this.
9531 * (append_user_reg): Rename argument `read' to `xread'.
9532 * (user_reg_add_builtin): Likewise.
9533 * (user_reg_add): Likewise.
9534 * (value_of_user_reg): Likewise.
9535
2108a63a
KR
95362020-03-17 Kamil Rytarowski <n54@gmx.com>
9537
9538 * sparc-nat.c (gdb_ptrace): New.
9539 * sparc-nat.c (sparc_fetch_inferior_registers)
9540 (sparc_store_inferior_registers) Remove obsolete comment.
9541 * sparc-nat.c (sparc_fetch_inferior_registers)
9542 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9543 * sparc-nat.c (sparc_fetch_inferior_registers)
9544 (sparc_store_inferior_registers) Use gdb_ptrace.
9545
a225c9a8
KR
95462020-03-17 Kamil Rytarowski <n54@gmx.com>
9547
9548 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9549 it to the ptrace call.
9550 * sh-nbsd-nat.c (store_registers): Likewise.
9551
98097623
KR
95522020-03-17 Kamil Rytarowski <n54@gmx.com>
9553
9554 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9555 nbsd_nat_target instead of inf_ptrace_target.
9556 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9557 nbsd_nat_target.
9558
9e38d619
KR
95592020-03-17 Kamil Rytarowski <n54@gmx.com>
9560
9561 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9562
a2ecbe9f
KR
95632020-03-17 Kamil Rytarowski <n54@gmx.com>
9564
9565 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9566 <sys/sysctl.h>.
9567 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9568
58990295
TV
95692020-03-17 Tom de Vries <tdevries@suse.de>
9570
9571 PR gdb/23710
9572 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9573 fields.
9574 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9575 fields.
9576 (process_imported_unit_die): Skip import of c++ CUs.
9577
771dd3a8
TT
95782020-03-16 Tom Tromey <tom@tromey.com>
9579
9580 * p-valprint.c (pascal_object_print_value): Initialize
9581 base_value.
9582
817a7585
AK
95832020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9584 Shahab Vahedi <shahab@synopsys.com>
9585
9586 * Makefile.in: Add arch/arc.o
9587 * configure.tgt: Likewise.
9588 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9589 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9590 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9591 * arc-tdep.h (arc_read_description): Add proto type.
9592 * arch/arc.c: New file.
9593 * arch/arc.h: Likewise.
9594 * features/Makefile: Replace old target descriptions with new.
9595 * features/arc-arcompact.c: Remove.
9596 * features/arc-arcompact.xml: Likewise.
9597 * features/arc-v2.c: Likewise
9598 * features/arc-v2.xml: Likewise
9599 * features/arc/aux-arcompact.xml: New file.
9600 * features/arc/aux-v2.xml: Likewise.
9601 * features/arc/core-arcompact.xml: Likewise.
9602 * features/arc/core-v2.xml: Likewise.
9603 * features/arc/aux-arcompact.c: Generate.
9604 * features/arc/aux-v2.c: Likewise.
9605 * features/arc/core-arcompact.c: Likewise.
9606 * features/arc/core-v2.c: Likewise.
9607 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9608
67430cd0
TT
96092020-03-16 Tom Tromey <tromey@adacore.com>
9610
9611 PR gdb/25663:
9612 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9613 putting value into bcache.
9614
30efb6c7
SM
96152020-03-16 Simon Marchi <simon.marchi@efficios.com>
9616
9617 PR gdb/21500
9618 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9619 to...
9620 (amd64_windows_init_abi_common): ... this. Don't set size of
9621 long type.
9622 (amd64_windows_init_abi): New function.
9623 (amd64_cygwin_init_abi): New function.
9624 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9625 the Cygwin OS ABI.
9626 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9627 comment.
9628
8db52437
SM
96292020-03-16 Simon Marchi <simon.marchi@efficios.com>
9630
9631 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9632 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9633 (pe_import_directory_entry): New struct type.
9634 (is_linked_with_cygwin_dll): New function.
9635 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9636 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9637 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9638
5982a56a
SM
96392020-03-16 Simon Marchi <simon.marchi@efficios.com>
9640
9641 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9642 i386_cygwin_core_osabi_sniffer.
9643
7a1998df
SM
96442020-03-16 Simon Marchi <simon.marchi@efficios.com>
9645
9646 * i386-cygwin-tdep.c: Rename to...
9647 * i386-windows-tdep.c: ... this.
9648 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9649 i386-windows-tdep.c.
9650 * configure.tgt: Likewise.
9651
053205cc
SM
96522020-03-16 Simon Marchi <simon.marchi@efficios.com>
9653
9654 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9655 * osabi.c (gdb_osabi_names): Add "Windows".
9656 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9657 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9658 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9659 i386_cygwin_osabi_sniffer.
9660 (_initialize_i386_cygwin_tdep): Register OS ABI
9661 GDB_OSABI_WINDOWS for i386.
9662 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9663 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9664 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9665 for x86-64.
9666 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9667 when the target matches '*-*-mingw*'.
9668
fe4b2ee6
SM
96692020-03-16 Simon Marchi <simon.marchi@efficios.com>
9670
9671 * defs.h (enum gdb_osabi): Move to...
9672 * osabi.h (enum gdb_osabi): ... here.
9673 * gdbarch.sh: Include osabi.h in gdbarch.h.
9674 * gdbarch.h: Re-generate.
9675
cb9b645d
SM
96762020-03-16 Simon Marchi <simon.marchi@efficios.com>
9677
9678 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9679 function.
9680 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9681
3293bbaf
TT
96822020-03-14 Tom Tromey <tom@tromey.com>
9683
9684 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9685 for C++.
9686 (c_type_print_modifier): Likewise. Add "language" parameter.
9687 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9688 (c_type_print_base_1): Update.
9689 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9690 constants.
9691 * type-stack.c (type_stack::insert): Handle tp_atomic and
9692 tp_restrict.
9693 (type_stack::follow_type_instance_flags): Likewise.
9694 (type_stack::follow_types): Likewise. Merge type-following code.
9695 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9696 (space_identifier, cv_with_space_id)
9697 (const_or_volatile_or_space_identifier_noopt)
9698 (const_or_volatile_or_space_identifier): Remove.
9699 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9700 rules.
9701 (ptr_operator, typebase): Update.
9702 (enum token_flag) <FLAG_C>: New constant.
9703 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9704 "_Atomic".
9705 (lex_one_token): Handle FLAG_C.
9706
154151a6
KR
97072020-03-14 Kamil Rytarowski <n54@gmx.com>
9708
9709 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9710 it to the ptrace call.
9711 * m68k-bsd-nat.c (store_registers): Likewise.
9712
bc107784
KR
97132020-03-14 Kamil Rytarowski <n54@gmx.com>
9714
9715 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9716 gdb_byte *.
9717 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9718 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9719 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9720
01a80117
KR
97212020-03-14 Kamil Rytarowski <n54@gmx.com>
9722
9723 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9724 nbsd_nat_target instead of inf_ptrace_target.
9725 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9726 nbsd_nat_target.
9727
f90280ca
KR
97282020-03-14 Kamil Rytarowski <n54@gmx.com>
9729
9730 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9731 register_t.
9732
6def66f1
KR
97332020-03-14 Kamil Rytarowski <n54@gmx.com>
9734
9735 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9736 it to the ptrace call.
9737 * alpha-bsd-nat.c (store_registers): Likewise.
9738
66eaca97
KR
97392020-03-14 Kamil Rytarowski <n54@gmx.com>
9740
9741 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9742 includes.
9743 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9744 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9745 fill_fpregset): Likewise.
9746
4fed520b
KR
97472020-03-14 Kamil Rytarowski <n54@gmx.com>
9748
9749 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9750 nbsd_nat_target instead of inf_ptrace_target.
9751 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9752 nbsd_nat_target.
9753
2190cf06
KR
97542020-03-14 Kamil Rytarowski <n54@gmx.com>
9755
9756 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9757 register_t.
9758
75c56d3d
KR
97592020-03-14 Kamil Rytarowski <n54@gmx.com>
9760
9761 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9762 it to the ptrace call.
9763 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9764 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9765 * arm-nbsd-nat.c (store_register): Likewise.
9766 * arm-nbsd-nat.c (store_regs): Likewise.
9767 * arm-nbsd-nat.c (store_fp_register): Likewise.
9768 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9769
6018d381
KR
97702020-03-14 Kamil Rytarowski <n54@gmx.com>
9771
9772 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9773 nbsd_nat_target instead of inf_ptrace_target.
9774 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9775 nbsd_nat_target.
9776
013f99f0
KR
97772020-03-14 Kamil Rytarowski <n54@gmx.com>
9778
9779 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9780 it to the ptrace call.
9781 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9782
12753073
KR
97832020-03-14 Kamil Rytarowski <n54@gmx.com>
9784
6227b330
KR
9785 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9786 it to the ptrace call.
9787 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9788
97892020-03-14 Kamil Rytarowski <n54@gmx.com>
9790
9791 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9792 gdb_byte *.
12753073
KR
9793 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9794
d5be5fa4
KR
97952020-03-14 Kamil Rytarowski <n54@gmx.com>
9796
9797 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9798 instead of inf_ptrace_target.
9799 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9800 nbsd_nat_target.
9801
8110f842
KR
98022020-03-14 Kamil Rytarowski <n54@gmx.com>
9803
9804 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9805 register_t.
9806
52feded7
KR
98072020-03-14 Kamil Rytarowski <n54@gmx.com>
9808
9809 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9810 register_t.
9811
25567eee
KR
98122020-03-14 Kamil Rytarowski <n54@gmx.com>
9813
9814 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9815 register_t.
9816
426a9c18
TT
98172020-03-13 Tom Tromey <tom@tromey.com>
9818
9819 * value.h (val_print): Don't declare.
9820 * valprint.h (val_print_array_elements)
9821 (val_print_scalar_formatted, generic_val_print): Don't declare.
9822 * valprint.c (generic_val_print_array): Take a struct value.
9823 (generic_val_print_ptr, generic_val_print_memberptr)
9824 (generic_val_print_bool, generic_val_print_int)
9825 (generic_val_print_char, generic_val_print_complex)
9826 (generic_val_print): Remove.
9827 (generic_value_print): Update.
9828 (do_val_print): Remove unused parameters. Don't call
9829 la_val_print.
9830 (val_print): Remove.
9831 (common_val_print): Update. Don't call value_check_printable.
9832 (val_print_scalar_formatted, val_print_array_elements): Remove.
9833 * rust-lang.c (rust_val_print): Remove.
9834 (rust_language_defn): Update.
9835 * p-valprint.c (pascal_val_print): Remove.
9836 (pascal_value_print_inner): Update.
9837 (pascal_object_print_val_fields, pascal_object_print_val):
9838 Remove.
9839 (pascal_object_print_static_field): Update.
9840 * p-lang.h (pascal_val_print): Don't declare.
9841 * p-lang.c (pascal_language_defn): Update.
9842 * opencl-lang.c (opencl_language_defn): Update.
9843 * objc-lang.c (objc_language_defn): Update.
9844 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9845 * m2-lang.h (m2_val_print): Don't declare.
9846 * m2-lang.c (m2_language_defn): Update.
9847 * language.h (struct language_defn) <la_val_print>: Remove.
9848 * language.c (unk_lang_value_print_inner): Rename. Change
9849 argument types.
9850 (unknown_language_defn, auto_language_defn): Update.
9851 * go-valprint.c (go_val_print): Remove.
9852 * go-lang.h (go_val_print): Don't declare.
9853 * go-lang.c (go_language_defn): Update.
9854 * f-valprint.c (f_val_print): Remove.
9855 * f-lang.h (f_value_print): Don't declare.
9856 * f-lang.c (f_language_defn): Update.
9857 * d-valprint.c (d_val_print): Remove.
9858 * d-lang.h (d_value_print): Don't declare.
9859 * d-lang.c (d_language_defn): Update.
9860 * cp-valprint.c (cp_print_value_fields)
9861 (cp_print_value_fields_rtti, cp_print_value): Remove.
9862 (cp_print_static_field): Update.
9863 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9864 (c_val_print_struct, c_val_print_union, c_val_print_int)
9865 (c_val_print_memberptr, c_val_print): Remove.
9866 * c-lang.h (c_val_print_array, cp_print_value_fields)
9867 (cp_print_value_fields_rtti): Don't declare.
9868 * c-lang.c (c_language_defn, cplus_language_defn)
9869 (asm_language_defn, minimal_language_defn): Update.
9870 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9871 (ada_val_print_enum): Take a struct value.
9872 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9873 (ada_val_print): Remove.
9874 (ada_value_print_1): Update.
9875 (printable_val_type): Remove.
9876 * ada-lang.h (ada_val_print): Don't declare.
9877 * ada-lang.c (ada_language_defn): Update.
9878
42331a1e
TT
98792020-03-13 Tom Tromey <tom@tromey.com>
9880
9881 * valprint.c (do_val_print): Update.
9882 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9883 a struct value.
9884 (value_to_value_object_no_release): Declare.
9885 * python/py-value.c (value_to_value_object_no_release): New
9886 function.
9887 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9888 struct value.
9889 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9890 function.
9891 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9892 a struct value.
9893 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9894 Declare.
9895 (gdbscm_apply_val_pretty_printer): Take a struct value.
9896 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9897 value.
9898 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9899 value.
9900 * extension-priv.h (struct extension_language_ops)
9901 <apply_val_pretty_printer>: Take a struct value.
9902 * cp-valprint.c (cp_print_value): Create a struct value.
9903 (cp_print_value): Update.
9904
3a916a97
TT
99052020-03-13 Tom Tromey <tom@tromey.com>
9906
9907 * ada-valprint.c (print_field_values): Call common_val_print.
9908
b59eac37
TT
99092020-03-13 Tom Tromey <tom@tromey.com>
9910
9911 * ada-valprint.c (val_print_packed_array_elements): Remove
9912 bitoffset and val parameters. Call common_val_print.
9913 (ada_val_print_string): Remove offset, address, and original_value
9914 parameters.
9915 (ada_val_print_array): Update.
9916 (ada_value_print_array): New function.
9917 (ada_value_print_1): Call it.
9918
03371129
TT
99192020-03-13 Tom Tromey <tom@tromey.com>
9920
9921 * ada-valprint.c (ada_value_print): Use common_val_print.
9922
2e088f8b
TT
99232020-03-13 Tom Tromey <tom@tromey.com>
9924
9925 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9926
39ef85a8
TT
99272020-03-13 Tom Tromey <tom@tromey.com>
9928
9929 * ada-valprint.c (ada_value_print_num): New function.
9930 (ada_value_print_1): Use it.
9931
b9fa6e07
TT
99322020-03-13 Tom Tromey <tom@tromey.com>
9933
9934 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9935
416595d6
TT
99362020-03-13 Tom Tromey <tom@tromey.com>
9937
9938 * ada-valprint.c (ada_value_print_ptr): New function.
9939 (ada_value_print_1): Use it.
9940
5b5e15ec
TT
99412020-03-13 Tom Tromey <tom@tromey.com>
9942
9943 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9944 call common_val_print.
9945 (ada_val_print_1): Update.
9946 (ada_value_print_1): New function.
9947 (ada_value_print_inner): Rewrite.
9948
fbf54e75
TT
99492020-03-13 Tom Tromey <tom@tromey.com>
9950
9951 * cp-valprint.c (cp_print_value_fields): Update.
9952 (cp_print_value): New function.
9953
64b653ca
TT
99542020-03-13 Tom Tromey <tom@tromey.com>
9955
9956 * m2-valprint.c (m2_value_print_inner): Use
9957 cp_print_value_fields.
9958 * cp-valprint.c (cp_print_value_fields): New function.
9959 * c-valprint.c (c_value_print_struct): New function.
9960 (c_value_print_inner): Use c_value_print_struct.
9961 * c-lang.h (cp_print_value_fields): Declare.
9962
6999f067
TT
99632020-03-13 Tom Tromey <tom@tromey.com>
9964
9965 * c-valprint.c (c_value_print_array): New function.
9966 (c_value_print_inner): Use it.
9967
ce80b8bd
TT
99682020-03-13 Tom Tromey <tom@tromey.com>
9969
9970 * c-valprint.c (c_value_print_memberptr): New function.
9971 (c_value_print_inner): Use it.
9972
2faac269
TT
99732020-03-13 Tom Tromey <tom@tromey.com>
9974
9975 * c-valprint.c (c_value_print_int): New function.
9976 (c_value_print_inner): Use it.
9977
da3e2c29
TT
99782020-03-13 Tom Tromey <tom@tromey.com>
9979
9980 * c-valprint.c (c_value_print_ptr): New function.
9981 (c_value_print_inner): Use it.
9982
50836231
TT
99832020-03-13 Tom Tromey <tom@tromey.com>
9984
9985 * c-valprint.c (c_value_print_inner): Rewrite.
9986
4f412b6e
TT
99872020-03-13 Tom Tromey <tom@tromey.com>
9988
9989 * valprint.c (generic_value_print_complex): New function.
9990 (generic_value_print): Use it.
9991
f5354008
TT
99922020-03-13 Tom Tromey <tom@tromey.com>
9993
9994 * valprint.c (generic_val_print_float): Don't call
9995 val_print_scalar_formatted.
9996 (generic_val_print, generic_value_print): Update.
9997
3eec3b05
TT
99982020-03-13 Tom Tromey <tom@tromey.com>
9999
10000 * valprint.c (generic_value_print_char): New function
10001 (generic_value_print): Use it.
10002
fdddfccb
TT
100032020-03-13 Tom Tromey <tom@tromey.com>
10004
10005 * valprint.c (generic_value_print_int): New function.
10006 (generic_value_print): Use it.
10007
6dde7521
TT
100082020-03-13 Tom Tromey <tom@tromey.com>
10009
10010 * valprint.c (generic_value_print_bool): New function.
10011 (generic_value_print): Use it.
10012
4112d2e6
TT
100132020-03-13 Tom Tromey <tom@tromey.com>
10014
10015 * valprint.c (generic_val_print_func): Simplify.
10016 (generic_val_print, generic_value_print): Update.
10017
65786af6
TT
100182020-03-13 Tom Tromey <tom@tromey.com>
10019
10020 * valprint.c (generic_val_print_flags): Remove.
10021 (generic_val_print, generic_value_print): Update.
10022 (val_print_type_code_flags): Add original_value parameter.
10023
40f3ce18
TT
100242020-03-13 Tom Tromey <tom@tromey.com>
10025
10026 * valprint.c (generic_val_print): Update.
10027 (generic_value_print): Update.
10028 * valprint.c (generic_val_print_enum): Don't call
10029 val_print_scalar_formatted.
10030
2a5b130b
TT
100312020-03-13 Tom Tromey <tom@tromey.com>
10032
10033 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10034 * valprint.c (generic_value_print_ptr): New function.
10035
abc66ce9
TT
100362020-03-13 Tom Tromey <tom@tromey.com>
10037
10038 * valprint.c (generic_value_print): Rewrite.
10039
07a32858
TT
100402020-03-13 Tom Tromey <tom@tromey.com>
10041
10042 * p-valprint.c (pascal_object_print_value_fields)
10043 (pascal_object_print_value): New functions.
10044
64d64d3a
TT
100452020-03-13 Tom Tromey <tom@tromey.com>
10046
10047 * p-valprint.c (pascal_value_print_inner): Rewrite.
10048
6a95a1f5
TT
100492020-03-13 Tom Tromey <tom@tromey.com>
10050
10051 * f-valprint.c (f_value_print_innner): Rewrite.
10052
59fcdac6
TT
100532020-03-13 Tom Tromey <tom@tromey.com>
10054
10055 * m2-valprint.c (m2_print_unbounded_array): New overload.
10056 (m2_print_unbounded_array): Update.
10057 (m2_print_array_contents): Take a struct value.
10058 (m2_value_print_inner): Rewrite.
10059
d133c3e1
TT
100602020-03-13 Tom Tromey <tom@tromey.com>
10061
10062 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10063 (d_value_print_inner): New function.
10064 * d-lang.h (d_value_print_inner): Declare.
10065 * d-lang.c (d_language_defn): Use d_value_print_inner.
10066
23b0f06b
TT
100672020-03-13 Tom Tromey <tom@tromey.com>
10068
10069 * go-valprint.c (go_value_print_inner): New function.
10070 * go-lang.h (go_value_print_inner): Declare.
10071 * go-lang.c (go_language_defn): Use go_value_print_inner.
10072
5f56f7cb
TT
100732020-03-13 Tom Tromey <tom@tromey.com>
10074
10075 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10076 API.
10077 (rust_val_print): Rewrite.
10078 (rust_value_print_inner): New function, from rust_val_print.
10079 (rust_language_defn): Use rust_value_print_inner.
10080
26792ee0
TT
100812020-03-13 Tom Tromey <tom@tromey.com>
10082
10083 * ada-valprint.c (ada_value_print_inner): New function.
10084 * ada-lang.h (ada_value_print_inner): Declare.
10085 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10086
24051bbe
TT
100872020-03-13 Tom Tromey <tom@tromey.com>
10088
10089 * f-valprint.c (f_value_print_innner): New function.
10090 * f-lang.h (f_value_print_innner): Declare.
10091 * f-lang.c (f_language_defn): Use f_value_print_innner.
10092
c0941be6
TT
100932020-03-13 Tom Tromey <tom@tromey.com>
10094
10095 * p-valprint.c (pascal_value_print_inner): New function.
10096 * p-lang.h (pascal_value_print_inner): Declare.
10097 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10098
62c4663d
TT
100992020-03-13 Tom Tromey <tom@tromey.com>
10100
10101 * m2-valprint.c (m2_value_print_inner): New function.
10102 * m2-lang.h (m2_value_print_inner): Declare.
10103 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10104
62182190
TT
101052020-03-13 Tom Tromey <tom@tromey.com>
10106
10107 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10108 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10109 * c-valprint.c (c_value_print_inner): New function.
10110 * c-lang.h (c_value_print_inner): Declare.
10111 * c-lang.c (c_language_defn, cplus_language_defn)
10112 (asm_language_defn, minimal_language_defn): Use
10113 c_value_print_inner.
10114
1e592a8a
TT
101152020-03-13 Tom Tromey <tom@tromey.com>
10116
10117 * p-valprint.c (pascal_object_print_value_fields): Now static.
10118 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10119
7fe471e9
TT
101202020-03-13 Tom Tromey <tom@tromey.com>
10121
10122 * c-valprint.c (c_val_print_array): Simplify.
10123
d121c6ce
TT
101242020-03-13 Tom Tromey <tom@tromey.com>
10125
10126 * valprint.c (value_print_array_elements): New function.
10127 * valprint.h (value_print_array_elements): Declare.
10128
4dba70ee
TT
101292020-03-13 Tom Tromey <tom@tromey.com>
10130
10131 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10132 * mips-tdep.c (mips_print_register): Use
10133 value_print_scalar_formatted.
10134
4f9ae810
TT
101352020-03-13 Tom Tromey <tom@tromey.com>
10136
10137 * valprint.h (value_print_scalar_formatted): Declare.
10138 * valprint.c (value_print_scalar_formatted): New function.
10139
156bfec9
TT
101402020-03-13 Tom Tromey <tom@tromey.com>
10141
10142 * valprint.h (generic_value_print): Declare.
10143 * valprint.c (generic_value_print): New function.
10144
2b4e573d
TT
101452020-03-13 Tom Tromey <tom@tromey.com>
10146
10147 * valprint.c (do_val_print): Call la_value_print_inner, if
10148 available.
10149 * rust-lang.c (rust_language_defn): Update.
10150 * p-lang.c (pascal_language_defn): Update.
10151 * opencl-lang.c (opencl_language_defn): Update.
10152 * objc-lang.c (objc_language_defn): Update.
10153 * m2-lang.c (m2_language_defn): Update.
10154 * language.h (struct language_defn) <la_value_print_inner>: New
10155 member.
10156 * language.c (unknown_language_defn, auto_language_defn): Update.
10157 * go-lang.c (go_language_defn): Update.
10158 * f-lang.c (f_language_defn): Update.
10159 * d-lang.c (d_language_defn): Update.
10160 * c-lang.c (c_language_defn, cplus_language_defn)
10161 (asm_language_defn, minimal_language_defn): Update.
10162 * ada-lang.c (ada_language_defn): Update.
10163
a1f6a07c
TT
101642020-03-13 Tom Tromey <tom@tromey.com>
10165
10166 * c-valprint.c (c_value_print): Use common_val_print.
10167
410cf315
TT
101682020-03-13 Tom Tromey <tom@tromey.com>
10169
10170 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10171
72a45c93
TT
101722020-03-13 Tom Tromey <tom@tromey.com>
10173
10174 * f-valprint.c (f77_print_array_1, f_val_print): Use
10175 common_val_print.
10176
040f66bd
TT
101772020-03-13 Tom Tromey <tom@tromey.com>
10178
10179 * riscv-tdep.c (riscv_print_one_register_info): Use
10180 common_val_print.
10181
a6e05a6c
TT
101822020-03-13 Tom Tromey <tom@tromey.com>
10183
10184 * mi/mi-main.c (output_register): Use common_val_print.
10185
3444c526
TT
101862020-03-13 Tom Tromey <tom@tromey.com>
10187
10188 * infcmd.c (default_print_one_register_info): Use
10189 common_val_print.
10190
c2a44efe
TT
101912020-03-13 Tom Tromey <tom@tromey.com>
10192
10193 * valprint.h (common_val_print_checked): Declare.
10194 * valprint.c (common_val_print_checked): New function.
10195 * stack.c (print_frame_arg): Use common_val_print_checked.
10196
b0c26e99
TT
101972020-03-13 Tom Tromey <tom@tromey.com>
10198
10199 * valprint.c (do_val_print): New function, from val_print.
10200 (val_print): Use do_val_print.
10201 (common_val_print): Use do_val_print.
10202
ce3acbe9
TT
102032020-03-13 Tom Tromey <tom@tromey.com>
10204
10205 * valprint.c (value_print): Use scoped_value_mark.
10206
96c7f873
TV
102072020-03-13 Tom de Vries <tdevries@suse.de>
10208
10209 PR symtab/25646
10210 * psymtab.c (partial_symtab::partial_symtab): Don't set
10211 globals_offset and statics_offset. Push element onto
10212 current_global_psymbols and current_static_psymbols stacks.
10213 (concat): New function.
10214 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10215 element from current_global_psymbols and current_static_psymbols
10216 stacks. Concat popped elements to global_psymbols and
10217 static_symbols.
10218 (add_psymbol_to_list): Use current_global_psymbols and
10219 current_static_psymbols stacks.
10220 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10221 current_static_psymbols fields.
10222
6ba0a321
CB
102232020-03-12 Christian Biesinger <cbiesinger@google.com>
10224
10225 * corelow.c (sniff_core_bfd): Remove.
10226 (class core_target) <m_core_vec>: Remove.
10227 (core_target::core_target): Update.
10228 (core_file_fns): Remove.
10229 (deprecated_add_core_fns): Remove.
10230 (default_core_sniffer): Remove.
10231 (sniff_core_bfd): Remove.
10232 (default_check_format): Remove.
10233 (gdb_check_format): Remove.
10234 (core_target_open): Update.
10235 (core_target::get_core_register_section): Update.
10236 (get_core_registers_cb): Update.
10237 (core_target::fetch_registers): Update.
10238 * gdbcore.h (struct core_fns): Remove.
10239 (deprecated_add_core_fns): Remove.
10240 (default_core_sniffer): Remove.
10241 (default_check_format): Remove.
10242
227031b2
TT
102432020-03-12 Tom Tromey <tom@tromey.com>
10244
10245 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10246 CORE_ADDR.
10247 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10248
53807e9f
TT
102492020-03-12 Tom Tromey <tom@tromey.com>
10250
10251 * remote.c (remote_target::download_tracepoint)
10252 (remote_target::enable_tracepoint)
10253 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10254 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10255 sprintf_vma.
10256
64f25102
TT
102572020-03-12 Tom Tromey <tom@tromey.com>
10258
10259 * symfile-mem.c: Update CORE_ADDR size assert.
10260
272cd5a3
SM
102612020-03-12 Simon Marchi <simon.marchi@efficios.com>
10262
10263 * selftest.m4: Move to gdbsupport/.
10264 * acinclude.m4: Update path to selftest.m4.
10265
74cd3f9d
SM
102662020-03-12 Simon Marchi <simon.marchi@efficios.com>
10267
10268 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10269 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10270 gdbarch-selfselftests.c and selftest-arch.c.
10271 (SUBDIR_UNITTESTS_OBS): Rename to...
10272 (SELFTESTS_OBS): ... this.
10273 (COMMON_SFILES): Remove disasm-selftests.c and
10274 gdbarch-selftests.c.
10275 * configure.ac: Don't add selftest-arch.{c,o} to
10276 CONFIG_{SRCS,OBS}.
10277 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10278 preprocessor conditions.
10279
db6878ac
SM
102802020-03-12 Simon Marchi <simon.marchi@efficios.com>
10281
10282 * configure.ac: Don't source bfd/development.sh.
10283 * selftest.m4: Modify comment.
10284 * configure: Re-generate.
10285
4d696a5c
SM
102862020-03-12 Simon Marchi <simon.marchi@efficios.com>
10287
10288 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10289 not "true" or "false".
10290 * configure: Re-generate.
10291
8dd8e1c7
CB
102922020-03-12 Christian Biesinger <cbiesinger@google.com>
10293
10294 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10295 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10296 renamed to arm_nbsd_supply_gregset.
10297 (fetch_register): Update to call arm_nbsd_supply_gregset.
10298 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10299 (arm_netbsd_nat_target::fetch_registers): Update.
10300 (fetch_elfcore_registers): Removed.
10301 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10302 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10303 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10304 not require NetBSD system headers.
10305 (arm_nbsd_regset): New struct.
10306 (arm_nbsd_iterate_over_regset_sections): New function.
10307 (arm_netbsd_init_abi_common): Updated to call
10308 set_gdbarch_iterate_over_regset_sections.
10309 * arm-nbsd-tdep.h: New file.
10310
dd69bf7a
KB
103112020-03-11 Kevin Buettner <kevinb@redhat.com>
10312
10313 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10314 recursion.
10315
a0761e34
SM
103162020-03-11 Simon Marchi <simon.marchi@efficios.com>
10317
10318 * configure: Re-generate.
10319
e7a82140
TT
103202020-03-11 Tom Tromey <tromey@adacore.com>
10321
10322 * ada-typeprint.c (print_choices): Fix comment.
10323
dcc050c8
AB
103242020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10325
10326 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10327 previous item in the list, when the list has no items.
10328
1c33af77
TV
103292020-03-11 Tom de Vries <tdevries@suse.de>
10330
10331 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10332 PROP_LOCLIST handling code.
10333
8c95582d
AB
103342020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10335
10336 * buildsym-legacy.c (record_line): Pass extra parameter to
10337 record_line.
10338 * buildsym.c (buildsym_compunit::record_line): Take an extra
10339 parameter, reduce duplication in the line table, and record the
10340 is_stmt flag in the line table.
10341 * buildsym.h (buildsym_compunit::record_line): Add extra
10342 parameter.
10343 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10344 non-statement lines.
10345 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10346 this to the symtab builder.
10347 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10348 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10349 through to dwarf_record_line_1.
10350 * infrun.c (process_event_stop_test): When stepping, don't stop at
10351 a non-statement instruction, and only refresh the step info when
10352 we land in the middle of a line's range. Also add an extra
10353 comment.
10354 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10355 field.
10356 * record-btrace.c (btrace_find_line_range): Only record lines
10357 marked as is-statement.
10358 * stack.c (frame_show_address): Show the frame address if we are
10359 in a non-statement sal.
10360 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10361 (maintenance_print_one_line_table): Print a header for the is_stmt
10362 column, and include is_stmt information in the output.
10363 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10364 preference to non-statements.
10365 (find_pcs_for_symtab_line): Prefer is-statement entries.
10366 (find_line_common): Likewise.
10367 * symtab.h (struct linetable_entry): Add is_stmt field.
10368 (struct symtab_and_line): Likewise.
10369 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10370 arranging the line table.
10371
e4003a34
TV
103722020-03-07 Tom de Vries <tdevries@suse.de>
10373
10374 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10375 DIE.
10376
e8932576
TT
103772020-03-07 Tom Tromey <tom@tromey.com>
10378
10379 * valops.c (value_literal_complex): Remove obsolete comment.
10380 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10381 comment.
10382
29734269
SM
103832020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10384
10385 * infrun.h: Forward-declare thread_info.
10386 (set_step_info): Add thread_info parameter, add doc.
10387 * infrun.c (set_step_info): Add thread_info parameter, move doc
10388 to header.
10389 * infrun.c (process_event_stop_test): Pass thread to
10390 set_step_info call.
10391 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10392 set_step_info.
10393 (prepare_one_step): Add thread_info parameter, pass it to
10394 set_step_frame and prepare_one_step (recursive) call.
10395 (step_1): Pass thread to prepare_one_step call.
10396 (step_command_fsm::should_stop): Pass thread to
10397 prepare_one_step.
10398 (until_next_fsm): Pass thread to set_step_frame call.
10399 (finish_command): Pass thread to set_step_info call.
10400
b7d64b29
HD
104012020-03-06 Hannes Domani <ssbssa@yahoo.de>
10402
10403 * windows-tdep.c (windows_solib_create_inferior_hook):
10404 Check if inferior is running.
10405
09f2921c
TV
104062020-03-06 Tom de Vries <tdevries@suse.de>
10407
10408 * NEWS: Fix "the the".
10409 * ctfread.c: Same.
10410
fd760e79
TV
104112020-03-06 Tom de Vries <tdevries@suse.de>
10412
10413 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10414
20ea4a60
AB
104152020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10416
10417 * .dir-locals.el: Add a comment referencing the other copies of
10418 this file.
10419
0afbabf0
JB
104202020-03-05 John Baldwin <jhb@FreeBSD.org>
10421
10422 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10423 psargs.
10424
842806cb
TBA
104252020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10426
10427 * .gitattributes: New file.
10428
be1e3d3e
TT
104292020-03-04 Tom Tromey <tom@tromey.com>
10430
10431 * symmisc.c (print_symbol_bcache_statistics)
10432 (print_objfile_statistics): Update.
10433 * symfile.c (allocate_symtab): Use intern.
10434 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10435 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10436 macro_cache>: Remove.
10437 <string_cache>: New member.
10438 (struct objfile) <intern>: New methods.
10439 * elfread.c (elf_symtab_read): Use intern.
10440 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10441 (dwarf2_compute_name, dwarf2_physname)
10442 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10443 names.
10444 (guess_partial_die_structure_name): Update.
10445 (partial_die_info::fixup): Intern name.
10446 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10447 name.
10448 (dwarf2_name): Intern name. Update.
10449 * buildsym.c (buildsym_compunit::get_macro_table): Use
10450 string_cache.
10451
4e7625fd
TT
104522020-03-04 Tom Tromey <tom@tromey.com>
10453
10454 * jit.c (bfd_open_from_target_memory): Make "target" const.
10455 * corefile.c (gnutarget): Now const.
10456 * gdbcore.h (gnutarget): Now const.
10457
46f9f931
HD
104582020-03-04 Hannes Domani <ssbssa@yahoo.de>
10459
10460 * NEWS: Mention support for WOW64 processes.
10461 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10462 (amd64_windows_segment_register_p): Remove static.
10463 (_initialize_amd64_windows_nat): Update.
10464 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10465 * i386-windows-nat.c (context_offset): Update.
10466 (i386_mappings): Rename and remove static.
10467 (i386_windows_segment_register_p): Remove static.
10468 (_initialize_i386_windows_nat): Update.
10469 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10470 (STATUS_WX86_SINGLE_STEP): New macro.
10471 (EnumProcessModulesEx): New macro.
10472 (Wow64SuspendThread): New macro.
10473 (Wow64GetThreadContext): New macro.
10474 (Wow64SetThreadContext): New macro.
10475 (Wow64GetThreadSelectorEntry): New macro.
10476 (windows_set_context_register_offsets): Add static.
10477 (windows_set_segment_register_p): Likewise.
10478 (windows_add_thread): Adapt for WOW64 processes.
10479 (windows_fetch_one_register): Likewise.
10480 (windows_nat_target::fetch_registers): Likewise.
10481 (windows_store_one_register): Likewise.
10482 (display_selector): Likewise.
10483 (display_selectors): Likewise.
10484 (handle_exception): Likewise.
10485 (windows_continue): Likewise.
10486 (windows_nat_target::resume): Likewise.
10487 (windows_add_all_dlls): Likewise.
10488 (do_initial_windows_stuff): Likewise.
10489 (windows_nat_target::attach): Likewise.
10490 (windows_get_exec_module_filename): Likewise.
10491 (windows_nat_target::create_inferior): Likewise.
10492 (windows_xfer_siginfo): Likewise.
10493 (_initialize_loadable): Initialize Wow64SuspendThread,
10494 Wow64GetThreadContext, Wow64SetThreadContext,
10495 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10496 * windows-nat.h (windows_set_context_register_offsets):
10497 Remove declaration.
10498 (windows_set_segment_register_p): Likewise.
10499 (i386_windows_segment_register_p): Add declaration.
10500 (amd64_windows_segment_register_p): Likewise.
10501
440cf44e
LM
105022020-03-04 Luis Machado <luis.machado@linaro.org>
10503
10504 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10505 in "info registers" for AArch64/ARM.
10506
10507 The change caused "info registers" to not print GPR's.
10508
10509 gdb/ChangeLog:
10510
10511 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10512
10513 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10514 when reg->group is empty and reggroup is not.
10515
1009d92f
TT
105162020-03-03 Tom Tromey <tromey@adacore.com>
10517
10518 * dwarf2/frame.c (struct dwarf2_frame_cache)
10519 <checked_tailcall_bottom, entry_cfa_sp_offset,
10520 entry_cfa_sp_offset_p>: Remove members.
10521 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10522 (dwarf2_frame_prev_register): Don't call
10523 dwarf2_tailcall_sniffer_first.
10524 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10525 * frame-unwind.c (add_unwinder): New fuction.
10526 (frame_unwind_init): Use it. Add tailcall unwinder.
10527
5e5d66b6
AB
105282020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10529 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10530
10531 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10532 value should be printed as true.
10533
584cf46d
HD
105342020-03-03 Hannes Domani <ssbssa@yahoo.de>
10535
10536 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10537 (windows_init_abi): Set and use windows_so_ops.
10538
7b973adc
SDJ
105392020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10540
10541 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10542 when verifying if dealing with a convenience variable.
10543
bb7b70ab
LM
105442020-03-03 Luis Machado <luis.machado@linaro.org>
10545
10546 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10547
9822cb57
SM
105482020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10549
10550 * infrun.c (gdbarch_supports_displaced_stepping): New.
10551 (use_displaced_stepping): Break up conditions in smaller pieces.
10552 Use gdbarch_supports_displaced_stepping.
10553 (displaced_step_prepare_throw): Use
10554 gdbarch_supports_displaced_stepping.
10555
63e163f2
AB
105562020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10557
10558 * NEWS: Mention new behaviour of the history filename.
10559 * top.c (write_history_p): Add comment.
10560 (show_write_history_p): Add header comment, give a different
10561 message when history writing is on, but the history filename is
10562 empty.
10563 (history_filename): Add comment.
10564 (history_filename_empty): New function.
10565 (show_history_filename): Add header comment, give a different
10566 message when the filename is empty.
10567 (init_history): Compare history_filename against nullptr, and only
10568 read history if the filename is not empty.
10569 (set_history_filename): Add header comment, and only make
10570 non-empty filenames absolute.
10571 (init_main): Make the filename argument to 'set history filename'
10572 optional.
10573
81b86b97
CB
105742020-03-02 Christian Biesinger <cbiesinger@google.com>
10575
10576 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10577 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10578 (fetch_fp_register): Update.
10579 (fetch_fp_regs): Update.
10580 (store_fp_register): Update.
10581 (store_fp_regs): Update.
10582 (arm_netbsd_nat_target::read_description): New function.
10583 (fetch_elfcore_registers): Update.
10584
24ed6739
AB
105852020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10586
10587 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10588 general_thread if the stop reply is missing a thread-id.
10589 (remote_target::process_stop_reply): Use the first non-exited
10590 thread if the target didn't pass a thread-id.
10591 * infrun.c (do_target_wait): Move call to
10592 switch_to_inferior_no_thread to ....
10593 (do_target_wait_1): ... here.
10594
a84bb2a0
JT
105952020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10596
10597 * debuginfod-support.c: Include defs.h first.
10598
658dadf0
TV
105992020-02-28 Tom de Vries <tdevries@suse.de>
10600
10601 * symfile.c (set_initial_language): Use default language for lookup.
10602
4ebe4877
SM
106032020-02-28 Simon Marchi <simon.marchi@efficios.com>
10604
10605 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10606 reader variable, pass `this` to read_cutu_die_from_dwo.
10607
e5da1139
AM
106082020-02-27 Aaron Merey <amerey@redhat.com>
10609
10610 * source.c (open_source_file): Check for nullptr when computing
10611 srcpath.
10612
317f7127
TT
106132020-02-27 Tom Tromey <tromey@adacore.com>
10614
10615 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10616 member.
10617 (dwarf2_add_field): Don't update nfields.
10618 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10619
3104d9ee
AB
106202020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10621
10622 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10623 abs.
10624
b83470bf
TT
106252020-02-26 Tom Tromey <tom@tromey.com>
10626
10627 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10628 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10629 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10630 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10631 per_cu_data.
10632
edfe0a0c
TT
106332020-02-26 Tom Tromey <tom@tromey.com>
10634
10635 * dwarf2/index-write.c (psym_index_map): Change type.
10636 (add_address_entry_worker, write_one_signatured_type)
10637 (recursively_count_psymbols, recursively_write_psymbols)
10638 (class debug_names, psyms_seen_size, write_gdbindex)
10639 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10640
0d79cdc4
AM
106412020-02-26 Aaron Merey <amerey@redhat.com>
10642
10643 * Makefile.in: Handle optional debuginfod support.
10644 * NEWS: Update.
10645 * README: Add --with-debuginfod summary.
10646 * config.in: Regenerate.
10647 * configure: Regenerate.
10648 * configure.ac: Handle optional debuginfod support.
10649 * debuginfod-support.c: debuginfod helper functions.
10650 * debuginfod-support.h: Ditto.
10651 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10652 summary.
10653 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10654 when a dwz file cannot be found.
10655 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10656 debuginfo file cannot be found.
10657 * source.c (open_source_file): Query debuginfod servers when a
10658 source file cannot be found.
10659 * top.c (print_gdb_configuration): Include
10660 --{with,without}-debuginfod in the output.
10661
b65ce565
JG
106622020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10663
10664 * thread.c (thr_try_catch_cmd): Print thread name.
10665
d4c9a4f8
SM
106662020-02-26 Simon Marchi <simon.marchi@efficios.com>
10667
10668 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10669 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10670 dwarf2_fetch_die_type_sect_off): Move to...
10671 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10672 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10673 dwarf2_fetch_die_type_sect_off): ... here.
10674 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10675 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10676 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10677
0dce4280
TV
106782020-02-26 Tom de Vries <tdevries@suse.de>
10679
10680 PR gdb/25603
10681 * symfile.c (set_initial_language): Exit-early if
10682 language_mode == language_mode_manual.
10683
450a1bfc
SM
106842020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10685
10686 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10687 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10688 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10689
9e80cfa1
AB
106902020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10691
10692 * gdbtypes.c (create_array_type_with_stride): Handle negative
10693 array strides.
10694 * valarith.c (value_subscripted_rvalue): Likewise.
10695
09624f1f
LM
106962020-02-25 Luis Machado <luis.machado@linaro.org>
10697
10698 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10699
8cb5117c
SM
107002020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10701
10702 * loc.h (dwarf2_get_die_type): Move to...
10703 * read.h (dwarf2_get_die_type): ... here.
10704 * read.c (dwarf2_get_die_type): Move doc to header.
10705
c325c44e
JB
107062020-02-25 Joel Brobecker <brobecker@adacore.com>
10707
10708 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10709 'gnulib/Makefile.in' to the list.
10710
4ac93832
TT
107112020-02-24 Tom Tromey <tom@tromey.com>
10712
10713 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10714 Remove.
10715 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10716 XOBNEWVEC.
10717
197400e8
TT
107182020-02-24 Tom Tromey <tom@tromey.com>
10719
10720 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10721 New method.
10722 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10723 (dw2_do_instantiate_symtab, dw2_get_file_names)
10724 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10725
76935768
TT
107262020-02-24 Tom Tromey <tom@tromey.com>
10727
10728 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10729 make_scoped_restore.
10730 (dwarf2_psymtab::read_symtab): Don't clear
10731 reading_partial_symbols.
10732
a88ef40d
TV
107332020-02-24 Tom de Vries <tdevries@suse.de>
10734
10735 PR gdb/25592
10736 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10737
c9af6521
TV
107382020-02-24 Tom de Vries <tdevries@suse.de>
10739
10740 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10741 commands layout next/prev/regs.
10742
5707a07a
TT
107432020-02-22 Tom Tromey <tom@tromey.com>
10744
10745 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10746 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10747
3b0fb49e
TT
107482020-02-22 Tom Tromey <tom@tromey.com>
10749
10750 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10751
283be8bf
TT
107522020-02-22 Tom Tromey <tom@tromey.com>
10753
10754 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10755 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10756 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10757 * tui/tui.c (_initialize_tui): Add usage text.
10758
ca793b96
TT
107592020-02-22 Tom Tromey <tom@tromey.com>
10760
10761 * tui/tui-win.c (tui_set_focus_command)
10762 (tui_set_win_height_command): Use error_no_arg.
10763 (_initialize_tui_win): Update help text.
10764 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10765
432b5c40
TT
107662020-02-22 Tom Tromey <tom@tromey.com>
10767
10768 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10769 * tui/tui-disasm.h (struct tui_disasm_window)
10770 <display_start_addr>: Declare.
10771 * tui/tui-source.h (struct tui_source_window)
10772 <display_start_addr>: Declare.
10773 * tui/tui-winsource.h (struct tui_source_window_base)
10774 <show_source_line, display_start_addr>: New methods.
10775 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10776 Rename and move to protected section.
10777 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10778 (tui_source_window_base::do_erase_source_content): Update.
10779 (tui_source_window_base::show_source_line): Now a method.
10780 (tui_source_window_base::show_source_content)
10781 (tui_source_window_base::tui_source_window_base)
10782 (tui_source_window_base::rerender)
10783 (tui_source_window_base::refill)
10784 (tui_source_window_base::do_scroll_horizontal)
10785 (tui_source_window_base::set_is_exec_point_at)
10786 (tui_source_window_base::update_breakpoint_info)
10787 (tui_source_window_base::update_exec_info): Update.
10788 * tui/tui-source.c (tui_source_window::set_contents)
10789 (tui_source_window::showing_source_p)
10790 (tui_source_window::do_scroll_vertical)
10791 (tui_source_window::location_matches_p)
10792 (tui_source_window::line_is_displayed): Update.
10793 (tui_source_window::display_start_addr): New method.
10794 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10795 (tui_disasm_window::do_scroll_vertical)
10796 (tui_disasm_window::location_matches_p): Update.
10797 (tui_disasm_window::display_start_addr): New method.
10798
01b1af32
TT
107992020-02-22 Tom Tromey <tom@tromey.com>
10800
10801 * NEWS: Add entry for gdb.register_window_type.
10802 * tui/tui-layout.h (window_factory): New typedef.
10803 (tui_register_window): Declare.
10804 * tui/tui-layout.c (saved_tui_windows): New global.
10805 (tui_apply_current_layout): Use it.
10806 (tui_register_window): New function.
10807 * python/python.c (do_start_initialization): Call
10808 gdbpy_initialize_tui.
10809 (python_GdbMethods): Add "register_window_type" function.
10810 * python/python-internal.h (gdbpy_register_tui_window)
10811 (gdbpy_initialize_tui): Declare.
10812 * python/py-tui.c: New file.
10813 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10814
fc96d20b
TT
108152020-02-22 Tom Tromey <tom@tromey.com>
10816
10817 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10818
935c78c0
TT
108192020-02-22 Tom Tromey <tom@tromey.com>
10820
10821 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10822 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10823 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10824 (tui_set_win_focus_to): Move from tui-win.c.
10825
0240c8f1
TT
108262020-02-22 Tom Tromey <tom@tromey.com>
10827
10828 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10829 functions.
10830 (known_window_types): New global.
10831 (tui_get_window_by_name): Reimplement.
10832 (initialize_known_windows): New function.
10833 (validate_window_name): Rewrite.
10834 (_initialize_tui_layout): Call initialize_known_windows.
10835
fdb01f0c
TT
108362020-02-22 Tom Tromey <tom@tromey.com>
10837
10838 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10839 Remove constants.
10840 * tui/tui-winsource.h (struct tui_source_window_base)
10841 <tui_source_window_base>: Remove parameter.
10842 * tui/tui-winsource.c
10843 (tui_source_window_base::tui_source_window_base): Remove
10844 parameter.
10845 (tui_source_window_base::refill): Update.
10846 * tui/tui-stack.h (struct tui_locator_window)
10847 <tui_locator_window>: Update.
10848 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10849 Default the constructor.
10850 * tui/tui-regs.h (struct tui_data_item_window)
10851 <tui_data_item_window>: Default the constructor.
10852 (struct tui_data_window) <tui_data_window>: Likewise.
10853 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10854 Default the constructor.
10855 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10856 Default the constructor.
10857 <type>: Remove.
10858 (struct tui_win_info) <tui_win_info>: Default the constructor.
10859 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10860 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10861 Default the constructor.
10862
865a5aec
TT
108632020-02-22 Tom Tromey <tom@tromey.com>
10864
10865 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10866 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10867 * tui/tui-win.c (tui_resize_all): Don't call
10868 tui_delete_invisible_windows.
10869 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10870 done.
10871 (tui_set_layout): Update.
10872 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10873 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10874 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10875
e098d18c
TT
108762020-02-22 Tom Tromey <tom@tromey.com>
10877
10878 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10879 correctly.
10880
eb9c8874
TT
108812020-02-22 Tom Tromey <tom@tromey.com>
10882
10883 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10884
7eed1a8e
TT
108852020-02-22 Tom Tromey <tom@tromey.com>
10886
10887 * tui/tui-winsource.h (struct tui_source_window_iterator)
10888 <inner_iterator>: New etytypedef.
10889 <tui_source_window_iterator>: Take "end" parameter.
10890 <tui_source_window_iterator>: Take iterator.
10891 <operator*, advance>: Update.
10892 <m_iter>: Change type.
10893 <m_end>: New field.
10894 (struct tui_source_windows) <begin, end>: Update.
10895 * tui/tui-layout.c (tui_windows): New global.
10896 (tui_apply_current_layout): Clear tui_windows.
10897 (tui_layout_window::apply): Update tui_windows.
10898 * tui/tui-data.h (tui_windows): Declare.
10899 (all_tui_windows): Now inline function.
10900 (class tui_window_iterator, struct all_tui_windows): Remove.
10901
7c043ba6
TT
109022020-02-22 Tom Tromey <tom@tromey.com>
10903
10904 PR tui/17850:
10905 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10906 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10907 "height" argument.
10908 (class tui_layout_window) <get_sizes>: Likewise.
10909 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10910 argument.
10911 <get_sizes>: Add "height" argument.
10912 <m_vertical>: New field.
10913 * tui/tui-layout.c (tui_layout_split::clone): Update.
10914 (tui_layout_split::get_sizes): Add "height" argument.
10915 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10916 (tui_new_layout_command): Parse "-horizontal".
10917 (_initialize_tui_layout): Update help string.
10918 (tui_layout_split::specification): Add "-horizontal" when needed.
10919 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10920 argument.
10921 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10922 New methods.
10923
6bc56648
TT
109242020-02-22 Tom Tromey <tom@tromey.com>
10925
10926 * tui/tui-layout.h (enum tui_adjust_result): New.
10927 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10928 (class tui_layout_window) <adjust_size>: Return
10929 tui_adjust_result. Rewrite.
10930 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10931 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10932
c22fef7e
TT
109332020-02-22 Tom Tromey <tom@tromey.com>
10934
10935 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10936 parameter and return types.
10937 (class tui_layout_base) <specification>: Add "depth".
10938 (class tui_layout_window) <specification>: Add "depth".
10939 (class tui_layout_split) <specification>: Add "depth".
10940 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10941 and return types.
10942 (tui_new_layout_command): Parse sub-layouts.
10943 (_initialize_tui_layout): Update help string.
10944 (tui_layout_window::specification): Add "depth".
10945 (add_layout_command): Update.
10946
ee325b61
TT
109472020-02-22 Tom Tromey <tom@tromey.com>
10948
10949 * NEWS: Add "tui new-layout" item.
10950 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10951 Add new-layout command to help text.
10952 (validate_window_name): New function.
10953 (tui_new_layout_command): New function.
10954 (_initialize_tui_layout): Register "new-layout".
10955 (tui_layout_window::specification): New method.
10956 (tui_layout_window::specification): New method.
10957 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10958 method.
10959 (class tui_layout_window) <specification>: New method.
10960 (class tui_layout_split) <specification>: New method.
10961
416eb92d
TT
109622020-02-22 Tom Tromey <tom@tromey.com>
10963
10964 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10965 * tui/tui-win.c (window_name_completer): Update comment.
10966 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10967 Declare method.
10968 (class tui_layout_window) <replace_window>: Likewise.
10969 (class tui_layout_split) <replace_window>: Likewise.
10970 (tui_set_layout): Don't declare.
10971 (tui_set_initial_layout): Declare function.
10972 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10973 (asm_regs_layout): New globals.
10974 (tui_current_layout, show_layout): Remove.
10975 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10976 (find_layout, tui_apply_layout): New function.
10977 (layout_completer): Remove.
10978 (tui_next_layout): Reimplement.
10979 (tui_next_layout_command): New function.
10980 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10981 (tui_regs_layout): Reimplement.
10982 (tui_regs_layout_command): New function.
10983 (extract_display_start_addr): Rewrite.
10984 (next_layout, prev_layout): Remove.
10985 (tui_layout_window::replace_window): New method.
10986 (tui_layout_split::replace_window): New method.
10987 (destroy_layout): New function.
10988 (layout_list): New global.
10989 (add_layout_command): New function.
10990 (initialize_layouts): Update.
10991 (tui_layout_command): New function.
10992 (_initialize_tui_layout): Install "layout" commands.
10993 * tui/tui-data.h (enum tui_layout_type): Remove.
10994 (tui_current_layout): Don't declare.
10995
0dbc2fc7
TT
109962020-02-22 Tom Tromey <tom@tromey.com>
10997
10998 * tui/tui-regs.c (tui_reg_layout): Remove.
10999 (tui_reg_command): Use tui_regs_layout.
11000 * tui/tui-layout.h (tui_reg_command): Declare.
11001 * tui/tui-layout.c (tui_reg_command): New function.
11002
5afe342e
TT
110032020-02-22 Tom Tromey <tom@tromey.com>
11004
11005 * tui/tui.c (tui_rl_delete_other_windows): Call
11006 tui_remove_some_windows.
11007 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11008 Declare method.
11009 (class tui_layout_window) <remove_windows>: New method.
11010 (class tui_layout_split) <remove_windows>: Declare.
11011 (tui_remove_some_windows): Declare.
11012 * tui/tui-layout.c (tui_remove_some_windows): New function.
11013 (tui_layout_split::remove_windows): New method.
11014
427326a8
TT
110152020-02-22 Tom Tromey <tom@tromey.com>
11016
11017 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11018 * tui/tui-layout.h (tui_next_layout): Declare.
11019 * tui/tui-layout.c (tui_next_layout): New function.
11020
3fe12b6d
TT
110212020-02-22 Tom Tromey <tom@tromey.com>
11022
11023 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11024 correct coordinates.
11025
59b8b5d2
TT
110262020-02-22 Tom Tromey <tom@tromey.com>
11027
11028 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11029 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11030 DATA_WIN case.
11031
2a3d458b
TT
110322020-02-22 Tom Tromey <tom@tromey.com>
11033
11034 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11035 TUI_DISASM_WIN, not tui_win_list.
11036
3f0cbb04
TT
110372020-02-22 Tom Tromey <tom@tromey.com>
11038
11039 * valprint.c (generic_val_print_enum_1)
11040 (val_print_type_code_flags): Style member names.
11041 * rust-lang.c (val_print_struct, rust_print_enum)
11042 (rust_print_struct_def, rust_internal_print_type): Style member
11043 names.
11044 * p-valprint.c (pascal_object_print_value_fields): Style member
11045 names. Only call fprintf_symbol_filtered for static members.
11046 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11047 * f-valprint.c (f_val_print): Style member names.
11048 * f-typeprint.c (f_type_print_base): Style member names.
11049 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11050 call fprintf_symbol_filtered for static members.
11051 (cp_print_class_member): Style member names.
11052 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11053 member names.
11054 * ada-valprint.c (ada_print_scalar): Style enum names.
11055 (ada_val_print_enum): Likewise.
11056 * ada-typeprint.c (print_enum_type): Style enum names.
11057
d4d947ae
TT
110582020-02-21 Tom Tromey <tom@tromey.com>
11059
11060 * psympriv.h (struct partial_symtab): Update comment.
11061
e94e944b
TT
110622020-02-21 Tom Tromey <tromey@adacore.com>
11063
11064 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11065 type is CORE_ADDR.
11066
1eb73179
TV
110672020-02-21 Tom de Vries <tdevries@suse.de>
11068
11069 PR gdb/25534
11070 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11071 if dependencies[i]->user != NULL.
11072
4f180d53
AT
110732020-02-21 Ali Tamur <tamur@google.com>
11074
11075 * dwarf2/read.c (dwarf2_name): Add null check.
11076
22b6cd70
TT
110772020-02-20 Tom Tromey <tom@tromey.com>
11078
11079 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11080 ">=", in binary search.
11081 (dwarf2_find_containing_comp_unit): New overload.
11082 (run_test): New self-test.
11083 (_initialize_dwarf2_read): Register new test.
11084
bd0cf5a6
NC
110852020-02-20 Nelson Chu <nelson.chu@sifive.com>
11086
11087 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11088 * riscv-tdep.h: Likewise.
11089 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11090 rv32-only CSR.
11091 * features/riscv/64bit-csr.xml: Regenerated.
11092
3f702acd
SDJ
110932020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11094 Tom Tromey <tom@tromey.com>
11095
11096 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11097 of 'fputc_unfiltered'.
11098 (putchar_unfiltered): Call 'fputc_unfiltered'.
11099 (fputc_unfiltered): Call 'fputs_unfiltered'.
11100
d13c7322
AB
111012020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11102
11103 * config.in: Regenerate.
11104 * configure: Regenerate.
11105 * configure.ac: Add --with-python-libdir option.
11106 * main.c: Use WITH_PYTHON_LIBDIR.
11107
869d8950
TT
111082020-02-19 Tom Tromey <tom@tromey.com>
11109
11110 * symtab.c (general_symbol_info::compute_and_set_names): Use
11111 obstack_strndup. Simplify call to symbol_set_demangled_name.
11112
298e9637
SM
111132020-02-19 Simon Marchi <simon.marchi@efficios.com>
11114
11115 * dwarf2/read.c (allocate_signatured_type_table,
11116 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11117 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11118 Remove objfile parameter, update all callers.
11119
08410482
DE
111202020-02-19 Doug Evans <dje@google.com>
11121
11122 PR rust/25535
11123 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11124 rust_enum_variant calculation.
11125
dfdeeca1
TT
111262020-02-19 Tom Tromey <tromey@adacore.com>
11127
11128 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11129
2ef5453b
TT
111302020-02-19 Tom Tromey <tromey@adacore.com>
11131
11132 * ada-lang.c (cache_symbol): Use obstack_strdup.
11133
9f1528a1
AB
111342020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11135
11136 * configure: Regenerate.
11137
d3c22fa8
TT
111382020-02-19 Tom Tromey <tromey@adacore.com>
11139
11140 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11141 NULL check.
11142
bf84f706
MR
111432020-02-19 Maciej W. Rozycki <macro@wdc.com>
11144
11145 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11146
d1c9b20f
AB
111472020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11148
11149 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11150 if GDBSERVER is not defined.
11151 (riscv_tdesc_cache): Likewise, also store const target_desc.
11152 (STATIC_IN_GDB): Define.
11153 (riscv_create_target_description): Update declaration with
11154 STATIC_IN_GDB.
11155 (riscv_lookup_target_description): New function, only define if
11156 GDBSERVER is not defined.
11157 * arch/riscv.h (riscv_create_target_description): Declare only
11158 when GDBSERVER is defined.
11159 (riscv_lookup_target_description): New declaration when GDBSERVER
11160 is not defined.
11161 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11162 (riscv_linux_read_features): ...this, and return
11163 riscv_gdbarch_features instead of target_desc.
11164 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11165 (riscv_linux_read_description): Rename to...
11166 (riscv_linux_read_features): ...this.
11167 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11168 Update to use riscv_gdbarch_features and
11169 riscv_lookup_target_description.
11170 * riscv-tdep.c (riscv_find_default_target_description): Use
11171 riscv_lookup_target_description instead of
11172 riscv_create_target_description.
11173
373d7ac0
SM
111742020-02-18 Simon Marchi <simon.marchi@efficios.com>
11175
11176 * valprint.c (generic_val_print_enum_1): When printing a flag
11177 enum with value 0 and there is no enumerator with value 0, print
11178 just "0" instead of "(unknown: 0x0)".
11179
b29a2df0
SM
111802020-02-18 Simon Marchi <simon.marchi@efficios.com>
11181
11182 * valprint.c (generic_val_print_enum_1): Print unknown part of
11183 flag enum in hex.
11184
6740f0cc
SM
111852020-02-18 Simon Marchi <simon.marchi@efficios.com>
11186
11187 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11188 flag enums to contain duplicate enumerators.
11189 * valprint.c (generic_val_print_enum_1): Update comment.
11190
edd45eb0
SM
111912020-02-18 Simon Marchi <simon.marchi@efficios.com>
11192
11193 * dwarf2/read.c: Include "count-one-bits.h".
11194 (update_enumeration_type_from_children): If an enumerator has
11195 multiple bits set, don't treat the enumeration as a "flag enum".
11196 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11197 of flag enums have 0 or 1 bit set.
11198
6d0cf446
BE
111992020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11200
11201 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11202 conversion.
11203 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11204 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11205 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11206 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11207 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11208
7001c1b7
SM
112092020-02-18 Simon Marchi <simon.marchi@efficios.com>
11210
11211 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11212
fdb61c6c
SM
112132020-02-14 Simon Marchi <simon.marchi@efficios.com>
11214
11215 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11216 displaced_step_closure_up.
11217 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11218 (struct displaced_step_closure_up):
11219 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11220 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11221 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11222 Likewise.
11223 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11224 * gdbarch.c, gdbarch.h: Re-generate.
11225 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11226 displaced_step_closure_up.
11227 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11228 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11229 * infrun.h (displaced_step_closure_up): New type alias.
11230 (struct displaced_step_inferior_state) <step_closure>: Change
11231 type to displaced_step_closure_up.
11232 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11233 displaced_step_closure_up.
11234 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11235
a4a38eb4
TT
112362020-02-14 Tom Tromey <tom@tromey.com>
11237
11238 * minidebug.c (gnu_debug_key): New global.
11239 (find_separate_debug_file_in_section): Use it.
11240
e8217e61
SM
112412020-02-14 Simon Marchi <simon.marchi@efficios.com>
11242
11243 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11244 std::unique_ptr.
11245 * gdbarch.c: Re-generate.
11246 * gdbarch.h: Re-generate.
11247 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11248 change.
11249 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11250 type to std::unique_ptr.
11251 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11252 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11253 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11254 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11255 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11256 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11257 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11258 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11259 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11260
d8d83535
SM
112612020-02-14 Simon Marchi <simon.marchi@efficios.com>
11262
11263 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11264 std::unique_ptr.
11265 (displaced_step_clear): Rename to...
11266 (displaced_step_reset): ... this. Just call displaced->reset ().
11267 (displaced_step_clear_cleanup): Rename to...
11268 (displaced_step_reset_cleanup): ... this.
11269 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11270 (displaced_step_fixup): Likewise.
11271 (resume_1): Likewise.
11272 (handle_inferior_event): Restore child's memory before calling
11273 displaced_step_fixup on the parent.
11274 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11275 to std::unique_ptr.
11276 <step_closure>: Change type to std::unique_ptr.
11277
5f661e03
SM
112782020-02-14 Simon Marchi <simon.marchi@efficios.com>
11279
11280 * arm-tdep.c: Include count-one-bits.h.
11281 (cleanup_block_store_pc): Use count_one_bits.
11282 (cleanup_block_load_pc): Use count_one_bits.
11283 (arm_copy_block_xfer): Use count_one_bits.
11284 (thumb2_copy_block_xfer): Use count_one_bits.
11285 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11286 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11287 (thumb_get_next_pcs_raw): Use count_one_bits.
11288 (arm_get_next_pcs_raw): Use count_one_bits_l.
11289 * arch/arm.c (bitcount): Remove.
11290 * arch/arm.h (bitcount): Remove.
11291
8084e579
TT
112922020-02-14 Tom Tromey <tromey@adacore.com>
11293
11294 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11295 Update.
11296 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11297 * dwarf2/loc.c (call_site_find_chain_1): Return
11298 unique_xmalloc_ptr.
11299 (call_site_find_chain): Likewise.
11300
258bf0ee
RB
113012020-02-14 Richard Biener <rguenther@suse.de>
11302
11303 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11304 on expression with division operators.
11305
f98a8458
AKS
113062020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11307
11308 * MAINTAINERS (Write After Approval): Adding myself.
11309
d1437c0e
TT
113102020-02-12 Tom Tromey <tom@tromey.com>
11311
11312 * event-loop.c (event_data, gdb_event, event_handler_func):
11313 Remove.
11314
3d4560f7
TT
113152020-02-12 Tom Tromey <tom@tromey.com>
11316
11317 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11318 (dwarf2_frame_objfile_data): Add comment.
11319 (find_comp_unit, set_comp_unit): New functions.
11320 (dwarf2_frame_find_fde): Use find_comp_unit.
11321 (dwarf2_build_frame_info): Use set_comp_unit.
11322
21982304
TT
113232020-02-12 Tom Tromey <tom@tromey.com>
11324
11325 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11326 (comp_unit): Don't initialize objfile.
11327 (execute_cfa_program): Add text_offset parameter.
11328 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11329 (dwarf2_frame_cache): Update.
11330 (dwarf2_build_frame_info): Don't set "objfile" member.
11331
4debb237
TT
113322020-02-12 Tom Tromey <tom@tromey.com>
11333
11334 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11335 (decode_frame_entry): Likewise.
11336 (dwarf2_build_frame_info): Update.
11337
0d404d44
TT
113382020-02-12 Tom Tromey <tom@tromey.com>
11339
11340 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11341 (decode_frame_entry_1): Use the comp_unit obstack.
11342
a7a3ae5c
TT
113432020-02-12 Tom Tromey <tom@tromey.com>
11344
11345 * dwarf2/frame.c (struct comp_unit): Add initializers and
11346 constructor.
11347 (dwarf2_frame_objfile_data): Store a comp_unit.
11348 (dwarf2_frame_find_fde): Update.
11349 (dwarf2_build_frame_info): Use "new".
11350
a9d65418
TT
113512020-02-12 Tom Tromey <tom@tromey.com>
11352
11353 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11354 (dwarf2_fde_table): Typedef for std::vector.
11355 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11356 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11357 (decode_frame_entry): Update.
11358 (dwarf2_build_frame_info): Use "new".
11359
7559c217
CB
113602020-02-12 Christian Biesinger <cbiesinger@google.com>
11361
11362 * arm-tdep.c (arm_gdbarch_init): Update.
11363 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11364 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11365 have_neon, is_m>: Change to bool.
11366
aeefc73c
CB
113672020-02-12 Christian Biesinger <cbiesinger@google.com>
11368
11369 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11370
d27b8e5f
TT
113712020-02-12 Tom Tromey <tom@tromey.com>
11372
11373 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11374
cd5900f3
HD
113752020-02-12 Hannes Domani <ssbssa@yahoo.de>
11376
11377 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11378 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11379
f056b22b
TT
113802020-02-11 Tom Tromey <tom@tromey.com>
11381
11382 * psymtab.h: Update comment.
11383
f92ff6b5
TT
113842020-02-11 Tom Tromey <tom@tromey.com>
11385
11386 * gdb_obstack.h (struct auto_obstack): Use
11387 DISABLE_COPY_AND_ASSIGN.
11388
3fd6912b
TT
113892020-02-11 Tom Tromey <tom@tromey.com>
11390
11391 * dwarf2/frame.h (struct objfile): Don't forward declare.
11392
69ed9b74
CB
113932020-02-11 Christian Biesinger <cbiesinger@google.com>
11394
11395 * cris-tdep.c (cris_supply_gregset): Change signature to match
11396 what struct regset expects.
11397 (cris_regset): New struct.
11398 (fetch_core_registers): Remove.
11399 (cris_iterate_over_regset_sections): New function.
11400 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11401 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11402
bda874f6
CB
114032020-02-11 Christian Biesinger <cbiesinger@google.com>
11404
11405 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11406 registers.
11407
754e1564
CB
114082020-02-11 Christian Biesinger <cbiesinger@google.com>
11409
11410 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11411
8ddd8e0e
SM
114122020-02-11 Simon Marchi <simon.marchi@efficios.com>
11413
11414 * configure: Re-generate.
11415
898e7f60
SM
114162020-02-11 Simon Marchi <simon.marchi@efficios.com>
11417
11418 * configure: Re-generate.
11419
58df732b
SM
114202020-02-11 Simon Marchi <simon.marchi@efficios.com>
11421
11422 * acinclude: Update warning.m4 path.
11423 * warning.m4: Move to gdbsupport.
11424
da5bd37e
TT
114252020-02-11 Tom Tromey <tromey@adacore.com>
11426
11427 * remote.c (remote_console_output): Update.
11428 * printcmd.c (printf_command): Update.
11429 * event-loop.c (gdb_wait_for_event): Update.
11430 * linux-nat.c (sigchld_handler): Update.
11431 * remote-sim.c (gdb_os_write_stdout): Update.
11432 (gdb_os_flush_stdout): Update.
11433 (gdb_os_flush_stderr): Update.
11434 (gdb_os_write_stderr): Update.
11435 * exceptions.c (print_exception): Update.
11436 * remote-fileio.c (remote_fileio_func_read): Update.
11437 (remote_fileio_func_write): Update.
11438 * tui/tui.c (tui_enable): Update.
11439 * tui/tui-interp.c (tui_interp::init): Update.
11440 * utils.c (init_page_info): Update.
11441 (putchar_unfiltered, fputc_unfiltered): Update.
11442 (gdb_flush): Update.
11443 (emit_style_escape): Update.
11444 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11445 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11446 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11447 (stderr_file::write): Update.
11448 (stderr_file::puts): Update.
11449 * ui-file.h (ui_file_isatty, ui_file_write)
11450 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11451 (ui_file_puts): Don't declare.
11452
85f0dd3c
TV
114532020-02-10 Tom de Vries <tdevries@suse.de>
11454
11455 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11456 sentinel to char *.
11457
2e927613
TV
114582020-02-09 Tom de Vries <tdevries@suse.de>
11459
11460 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11461 filename if it matches "<artificial>".
11462
6bafc845
HD
114632020-02-09 Hannes Domani <ssbssa@yahoo.de>
11464
11465 * windows-tdep.c (struct enum_value_name): New struct.
11466 (create_enum): New function.
11467 (windows_get_siginfo_type): Create and use enum types.
11468
7928d571
HD
114692020-02-09 Hannes Domani <ssbssa@yahoo.de>
11470
11471 * NEWS: Mention $_siginfo support for Windows.
11472 * windows-nat.c (handle_exception): Set siginfo_er.
11473 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11474 (windows_xfer_siginfo): New function.
11475 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11476 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11477 (init_windows_gdbarch_data): New function.
11478 (get_windows_gdbarch_data): New function.
11479 (windows_get_siginfo_type): New function.
11480 (windows_init_abi): Register windows_get_siginfo_type.
11481 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11482
6751ebae
TT
114832020-02-08 Tom Tromey <tom@tromey.com>
11484
11485 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11486 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11487 <keep>: Declare method.
11488 <m_keep>: Remove member.
11489 <~cutu_reader>: Remove.
11490 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11491 (cutu_reader::cutu_reader): Update.
11492 (cutu_reader::keep): Rename from ~cutu_reader.
11493 (process_psymtab_comp_unit, build_type_psymtabs_1)
11494 (process_skeletonless_type_unit, load_partial_comp_unit)
11495 (load_full_comp_unit, dwarf2_read_addr_index)
11496 (read_signatured_type): Update.
11497
135f5437
TT
114982020-02-08 Tom Tromey <tom@tromey.com>
11499
11500 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11501 "want_partial_unit" parameter.
11502 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11503 Inline check for DW_TAG_partial_unit.
11504 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11505
9f66ff1c
TT
115062020-02-08 Tom Tromey <tom@tromey.com>
11507
11508 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11509 read.c.
11510 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11511 read.c.
11512
c8a7a66f
TT
115132020-02-08 Tom Tromey <tom@tromey.com>
11514
11515 * dwarf2/read.c (read_address): Move to comp-unit.c.
11516 (dwarf2_rnglists_process, dwarf2_ranges_process)
11517 (read_attribute_value, dwarf_decode_lines_1)
11518 (var_decode_location, decode_locdesc): Update.
11519 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11520 read.c. Remove "cu" parameter.
11521 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11522 method.
11523
8266302d
TT
115242020-02-08 Tom Tromey <tom@tromey.com>
11525
11526 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11527 (read_indirect_line_string): Update.
11528 * dwarf2/comp-unit.c (read_offset): Remove.
11529 (read_comp_unit_head): Update.
11530 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11531 method.
11532 (read_offset): Don't declare.
11533
4057dfde
TT
115342020-02-08 Tom Tromey <tom@tromey.com>
11535
11536 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11537 * dwarf2/read.c (struct comp_unit_head): Move to
11538 dwarf2/comp-unit.h.
11539 (enum class rcuh_kind): Move to comp-unit.h.
11540 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11541 (read_comp_unit_head, error_check_comp_unit_head)
11542 (read_and_check_comp_unit_head): Move to comp-unit.c.
11543 (read_offset, dwarf_unit_type_name): Likewise.
11544 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11545 (cutu_reader::cutu_reader, read_call_site_scope)
11546 (find_partial_die, follow_die_offset): Update.
11547 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11548
24aa364d
TT
115492020-02-08 Tom Tromey <tom@tromey.com>
11550
11551 * dwarf2/read.c (read_offset_1): Move to leb.c.
11552 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11553 (dwarf_decode_macro_bytes): Update.
11554 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11555 * dwarf2/leb.h (read_offset): Declare.
11556
2c7d5afc
TT
115572020-02-08 Tom Tromey <tom@tromey.com>
11558
11559 * dwarf2/read.c (dwarf2_section_size): Remove.
11560 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11561 Update.
11562 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11563
4075cb26
TT
115642020-02-08 Tom Tromey <tom@tromey.com>
11565
11566 * dwarf2/read.c (read_initial_length): Move to leb.c.
11567 * dwarf2/leb.h (read_initial_length): Declare.
11568 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11569 handle_nonstd parameter.
11570 * dwarf2/frame.c (read_initial_length): Remove.
11571 (decode_frame_entry_1): Update.
11572
09ba997f
TT
115732020-02-08 Tom Tromey <tom@tromey.com>
11574
11575 * dwarf2/loc.c (dwarf2_find_location_expression)
11576 (dwarf_evaluate_loc_desc::get_tls_address)
11577 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11578 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11579 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11580 (dwarf2_compile_property_to_c)
11581 (dwarf2_loc_desc_get_symbol_read_needs)
11582 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11583 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11584 (loclist_describe_location, loclist_tracepoint_var_ref)
11585 (loclist_generate_c_location): Update.
11586 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11587 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11588 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11589 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11590 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11591 (dwarf2_per_cu_data::addr_size)
11592 (dwarf2_per_cu_data::ref_addr_size)
11593 (dwarf2_per_cu_data::text_offset)
11594 (dwarf2_per_cu_data::addr_type): Now methods.
11595 (per_cu_header_read_in): Make per_cu "const".
11596 (dwarf2_version): Remove.
11597 (dwarf2_per_cu_data::int_type): Now a method.
11598 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11599 (set_die_type, read_array_type, read_subrange_index_type)
11600 (read_tag_string_type, read_subrange_type): Update.
11601 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11602 offset_size, ref_addr_size, text_offset, addr_type, version,
11603 objfile, int_type, addr_sized_int_type>: Declare methods.
11604
96c738c0
TT
116052020-02-08 Tom Tromey <tom@tromey.com>
11606
11607 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11608 Move earlier.
11609
8fdd972c
TT
116102020-02-08 Tom Tromey <tom@tromey.com>
11611
11612 * dwarf2/read.h (dwarf_line_debug): Declare.
11613 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11614 * dwarf2/read.c: Move line_header code to new files.
11615 (dwarf_line_debug): No longer static.
11616 * dwarf2/line-header.c: New file.
11617 * dwarf2/line-header.h: New file.
11618
03075812
TT
116192020-02-08 Tom Tromey <tom@tromey.com>
11620
11621 * dwarf2/read.c (struct line_header) <file_full_name,
11622 file_file_name>: Return unique_xmalloc_ptr.
11623 (line_header::file_file_name): Update.
11624 (line_header::file_full_name): Update.
11625 (dw2_get_file_names_reader): Update.
11626 (macro_start_file): Update.
11627
bb822404
TT
116282020-02-08 Tom Tromey <tom@tromey.com>
11629
11630 * dwarf2/read.c (struct line_header) <file_full_name,
11631 file_file_name>: Declare methods.
11632 (dw2_get_file_names_reader): Update.
11633 (file_file_name): Now a method.
11634 (file_full_name): Likewise.
11635 (macro_start_file): Update.
11636
009b64fc
TT
116372020-02-08 Tom Tromey <tom@tromey.com>
11638
11639 * dwarf2/read.c (dwarf_always_disassemble)
11640 (show_dwarf_always_disassemble): Move to loc.c.
11641 (_initialize_dwarf2_read): Move "always-disassemble" registration
11642 to loc.c.
11643 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11644 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11645 static.
11646 (show_dwarf_always_disassemble): Move from read.c.
11647 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11648
5895093f
TT
116492020-02-08 Tom Tromey <tom@tromey.com>
11650
11651 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11652 (create_quick_file_names_table): Return htab_up.
11653 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11654 Update.
11655 * dwarf2/read.h (struct dwarf2_per_objfile)
11656 <quick_file_names_table>: Now htab_up.
11657
b3b32279
TT
116582020-02-08 Tom Tromey <tom@tromey.com>
11659
11660 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11661
1d33d811
TT
116622020-02-08 Tom Tromey <tom@tromey.com>
11663
11664 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11665 Rewrite.
11666 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11667 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11668 (abbrev_table::abbrev_table): No longer inline.
11669 (ABBREV_HASH_SIZE): Remove.
11670 (abbrev_table::m_abbrevs): Now an htab_up.
11671
86de1d91
TT
116722020-02-08 Tom Tromey <tom@tromey.com>
11673
11674 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11675 (cutu_reader): Update.
11676 (build_type_psymtabs_1): Update.
11677 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11678 (abbrev_table::alloc_abbrev): Update.
11679 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11680 (abbrev_table::read): New static method, renamed from
11681 abbrev_table_read_table.
11682 (abbrev_table::alloc_abbrev)
11683 (abbrev_table::add_abbrev): Now private.
11684 (abbrev_table::abbrev_table): Now private.
11685 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11686
0335378b
TT
116872020-02-08 Tom Tromey <tom@tromey.com>
11688
11689 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11690 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11691 htab_up.
11692
48b490f2
TT
116932020-02-08 Tom Tromey <tom@tromey.com>
11694
11695 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11696 htab_up.
11697 (lookup_dwo_unit_in_dwp): Update.
11698 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11699 on obstack.
11700
bc68fb19
TT
117012020-02-08 Tom Tromey <tom@tromey.com>
11702
11703 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11704 obstack.
11705
d15acc42
TT
117062020-02-08 Tom Tromey <tom@tromey.com>
11707
11708 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11709 line_header_hash.
11710 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11711 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11712 Change type to htab_up.
11713
eaa5fa8b
TT
117142020-02-08 Tom Tromey <tom@tromey.com>
11715
11716 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11717 htab_up. Don't allocate on obstack.
11718 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11719 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11720 Change type to htab_up.
11721
b0b6a987
TT
117222020-02-08 Tom Tromey <tom@tromey.com>
11723
11724 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11725 Change type to htab_up.
11726 * dwarf2/read.c (create_signatured_type_table_from_index)
11727 (create_signatured_type_table_from_debug_names)
11728 (create_all_type_units, add_type_unit)
11729 (lookup_dwo_signatured_type, lookup_signatured_type)
11730 (process_skeletonless_type_unit): Update.
11731 (create_debug_type_hash_table, create_debug_types_hash_table):
11732 Change type of types_htab.
11733 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11734 htab_up. Don't allocate on obstack.
11735 (create_cus_hash_table): Change type of cus_htab parameter.
11736 (struct dwo_file) <cus, tus>: Now htab_up.
11737 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11738 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11739 (queue_and_load_all_dwo_tus): Update.
11740 * dwarf2/index-write.c (write_gdbindex): Update.
11741 (write_debug_names): Update.
11742
39856def
TT
117432020-02-08 Tom Tromey <tom@tromey.com>
11744
11745 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11746 dwarf2/read.c. Remove "next" member. Add constructor ntad
11747 destructor.
11748 (struct dwarf2_per_objfile) <queue>: New member.
11749 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11750 dwarf2/read.h.
11751 (dwarf2_queue, dwarf2_queue_tail): Remove.
11752 (class dwarf2_queue_guard): Add parameter to constructor. Use
11753 DISABLE_COPY_AND_ASSIGN.
11754 <m_per_objfile>: New member.
11755 <~dwarf2_queue_guard>: Rewrite.
11756 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11757 Update.
11758 (~dwarf2_queue_item): New.
11759
3e225074
TT
117602020-02-08 Tom Tromey <tom@tromey.com>
11761
11762 * dwarf2/read.c (struct die_info) <has_children>: New member.
11763 (dw2_get_file_names_reader): Remove has_children.
11764 (dw2_get_file_names): Update.
11765 (read_cutu_die_from_dwo): Remove has_children.
11766 (cutu_reader::init_tu_and_read_dwo_dies)
11767 (cutu_reader::cutu_reader): Update.
11768 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11769 Remove has_children.
11770 (build_type_psymtabs_1, process_skeletonless_type_unit)
11771 (load_partial_comp_unit, load_full_comp_unit): Update.
11772 (create_dwo_cu_reader): Remove has_children.
11773 (create_cus_hash_table, read_die_and_children): Update.
11774 (read_full_die_1,read_full_die): Remove has_children.
11775 (read_signatured_type): Update.
11776 (class cutu_reader) <has_children>: Remove.
11777
82ca8957
TT
117782020-02-08 Tom Tromey <tom@tromey.com>
11779
11780 * dwarf2/expr.c: Rename from dwarf2expr.c.
11781 * dwarf2/expr.h: Rename from dwarf2expr.h.
11782 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11783 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11784 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11785 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11786 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11787 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11788 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11789 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11790 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11791 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11792 * dwarf2/loc.c: Rename from dwarf2loc.c.
11793 * dwarf2/loc.h: Rename from dwarf2loc.h.
11794 * dwarf2/read.c: Rename from dwarf2read.c.
11795 * dwarf2/read.h: Rename from dwarf2read.h.
11796 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11797 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11798 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11799 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11800 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11801 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11802 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11803 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11804 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11805 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11806 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11807 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11808 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11809 Update.
11810 * Makefile.in (COMMON_SFILES): Update.
11811 (HFILES_NO_SRCDIR): Update.
11812
9e35d499
TT
118132020-02-08 Tom Tromey <tom@tromey.com>
11814
11815 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11816 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11817
1eba2311
TT
118182020-02-08 Tom Tromey <tom@tromey.com>
11819
11820 * dwarf2read.h (struct die_info): Don't declare.
11821
e41c2da2
TT
118222020-02-08 Tom Tromey <tom@tromey.com>
11823
11824 * dwarf2read.h (die_info_ptr): Remove typedef.
11825
4fc6c0d5
TT
118262020-02-08 Tom Tromey <tom@tromey.com>
11827
11828 * dwarf2read.c (read_call_site_scope)
11829 (handle_data_member_location, dwarf2_add_member_fn)
11830 (mark_common_block_symbol_computed, read_common_block)
11831 (attr_to_dynamic_prop, partial_die_info::read)
11832 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11833 (dwarf2_symbol_mark_computed, set_die_type): Update.
11834 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11835 method.
11836 (attr_form_is_block): Don't declare.
11837 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11838
cd6c91b4
TT
118392020-02-08 Tom Tromey <tom@tromey.com>
11840
11841 * dwarf2read.c (dwarf2_find_base_address, )
11842 (read_call_site_scope, rust_containing_type)
11843 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11844 (handle_data_member_location, dwarf2_add_member_fn)
11845 (get_alignment, read_structure_type, process_structure_scope)
11846 (mark_common_block_symbol_computed, read_common_block)
11847 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11848 (partial_die_info::read, read_attribute_value, new_symbol)
11849 (lookup_die_type, dwarf2_get_ref_die_offset)
11850 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11851 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11852 (dwarf2_symbol_mark_computed): Update.
11853 * dwarf2/attribute.h (struct attribute) <value_as_address,
11854 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11855 methods.
11856 (value_as_address, attr_form_is_section_offset)
11857 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11858 * dwarf2/attribute.c (attribute::value_as_address)
11859 (attribute::form_is_section_offset, attribute::form_is_constant)
11860 (attribute::form_is_ref): Now methods.
11861
162dce55
TT
118622020-02-08 Tom Tromey <tom@tromey.com>
11863
11864 * dwarf2read.c (struct attribute, DW_STRING)
11865 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11866 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11867 (attr_form_is_block, attr_form_is_section_offset)
11868 (attr_form_is_constant, attr_form_is_ref): Move.
11869 * dwarf2/attribute.h: New file.
11870 * dwarf2/attribute.c: New file, from dwarf2read.c.
11871 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11872
3054dd54
TT
118732020-02-08 Tom Tromey <tom@tromey.com>
11874
11875 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11876 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11877 Move.
11878 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11879 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11880 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11881 abbrev.c.
11882 * dwarf2/abbrev.h: New file.
11883 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11884 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11885
96b79293
TT
118862020-02-08 Tom Tromey <tom@tromey.com>
11887
11888 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11889 (dwarf2_section_size, dwarf2_get_section_info)
11890 (create_signatured_type_table_from_debug_names)
11891 (create_addrmap_from_aranges, read_debug_names_from_section)
11892 (get_gdb_index_contents_from_section, read_comp_unit_head)
11893 (error_check_comp_unit_head, read_abbrev_offset)
11894 (create_debug_type_hash_table, init_cu_die_reader)
11895 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11896 (read_comp_units_from_section, create_cus_hash_table)
11897 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11898 (create_dwp_v2_section, dwarf2_rnglists_process)
11899 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11900 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11901 (read_indirect_string_from_dwz, read_addr_index_1)
11902 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11903 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11904 (fill_in_loclist_baton): Update.
11905 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11906 get_containing_section, get_bfd_owner, get_bfd_section,
11907 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11908 (dwarf2_read_section, get_section_name, get_section_file_name)
11909 (get_containing_section, get_section_bfd_owner)
11910 (get_section_bfd_section, get_section_name, get_section_file_name)
11911 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11912 declare.
11913 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11914 (dwarf2_section_info::get_bfd_owner)
11915 (dwarf2_section_info::get_bfd_section)
11916 (dwarf2_section_info::get_name)
11917 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11918 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11919 (dwarf2_section_info::read): Now methods.
11920 * dwarf-index-write.c (class debug_names): Update.
11921
2c86cff9
TT
119222020-02-08 Tom Tromey <tom@tromey.com>
11923
11924 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11925 Move to dwarf2/section.h.
11926 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11927 (get_section_bfd_section, get_section_name)
11928 (get_section_file_name, get_section_id, get_section_flags)
11929 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11930 dwarf2/section.c.
11931 * dwarf2/section.h: New file.
11932 * dwarf2/section.c: New file, from dwarf2read.c.
11933 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11934
f4382c45
TT
119352020-02-08 Tom Tromey <tom@tromey.com>
11936
11937 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11938 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11939 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11940 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11941 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11942 * dwarf2/leb.h: New file, from dwarf2read.c.
11943 * dwarf2/leb.c: New file, from dwarf2read.c.
11944 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11945 Remove.
11946 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11947 (COMMON_SFILES): Add dwarf2/leb.c.
11948
01840b7a
JB
119492020-02-08 Joel Brobecker <brobecker@adacore.com>
11950
11951 GDB 9.1 released.
11952
dfcb27e4
IB
119532020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11954
11955 PR gdb/25190:
aac66a4c
SM
11956 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11957 * gdb/remote.c (remote_console_output): Update.
11958 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11959 (ui_file_puts): ...this.
11960 * gdb/ui-file.h (ui_file_puts): Add declaration.
11961 * gdb/utils.c (emit_style_escape): Update.
11962 (flush_wrap_buffer): Update.
11963 (fputs_maybe_filtered): Update.
11964 (fputs_unfiltered): Add function.
dfcb27e4 11965
faa17681
IB
119662020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11967
aac66a4c
SM
11968 * gdb/event-loop.c (gdb_wait_for_event): Update.
11969 * gdb/printcmd.c (printf_command): Update.
11970 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11971 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11972 (gdb_os_flush_stderr): Update.
11973 * gdb/remote.c (remote_console_output): Update.
11974 * gdb/ui-file.c (gdb_flush): Rename to...
11975 (ui_file_flush): ...this.
11976 (stderr_file::write): Update.
11977 (stderr_file::puts): Update.
11978 * gdb/ui-file.h (gdb_flush): Rename to...
11979 (ui_file_flush): ...this.
11980 * gdb/utils.c (gdb_flush): Add function.
11981 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 11982
5abbbe1d
TT
119832020-02-07 Tom Tromey <tromey@adacore.com>
11984
11985 PR breakpoints/24915:
11986 * source.c (find_and_open_source): Do not check basenames_may_differ.
11987
919adfe8
TT
119882020-02-07 Tom Tromey <tom@tromey.com>
11989
11990 * README: Update gdbserver documentation.
11991 * gdbserver: Move to top level.
11992 * configure.tgt (build_gdbserver): Remove.
11993 * configure.ac: Remove --enable-gdbserver.
11994 * configure: Rebuild.
11995 * Makefile.in (distclean): Don't mention gdbserver.
11996
1d5d29e7
SV
119972020-02-06 Shahab Vahedi <shahab@synopsys.com>
11998
11999 * source-cache.c (source_cache::ensure): Surround
12000 get_plain_source_lines with a try/catch.
12001 (source_cache::get_line_charpos): Get rid of try/catch
12002 and only check for the return value of "ensure".
12003 * tui/tui-source.c (tui_source_window::set_contents):
12004 Simplify "nlines" calculation.
12005
6eb1129c
SV
120062020-02-06 Shahab Vahedi <shahab@synopsys.com>
12007
12008 * MAINTAINERS (Write After Approval): Add myself.
12009
c6a42d11
CB
120102020-02-05 Christian Biesinger <cbiesinger@google.com>
12011
12012 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12013 function call.
12014
c8ecdda6
CB
120152020-02-05 Christian Biesinger <cbiesinger@google.com>
12016
12017 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12018
f6480e70
MR
120192020-02-05 Maciej W. Rozycki <macro@wdc.com>
12020
12021 * nat/riscv-linux-tdesc.h: New file.
12022 * nat/riscv-linux-tdesc.c: New file, taking code from...
12023 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12024 ... here.
12025 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12026 NATDEPFILES.
12027
dcc9fbc6
AB
120282020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12029
12030 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12031 we don't set the fake simulator ptid to the null_ptid.
12032
719546c4
SM
120332020-02-03 Simon Marchi <simon.marchi@efficios.com>
12034
12035 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12036 * gdbthread.h (class thread_info) <resumed>: Likewise.
12037 * infrun.c (resume_1): Likewise.
12038 (proceed): Likewise.
12039 (infrun_thread_stop_requested): Likewise.
12040 (stop_all_threads): Likewise.
12041 (handle_inferior_event): Likewise.
12042 (restart_threads): Likewise.
12043 (finish_step_over): Likewise.
12044 (keep_going_stepped_thread): Likewise.
12045 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12046 (linux_handle_extended_wait): Likewise.
12047 * record-btrace.c (get_thread_current_frame_id): Likewise.
12048 * record-full.c (record_full_wait_1): Likewise.
12049 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12050 * target.c (target_resume): Likewise.
12051 * thread.c (set_running_thread): Likewise.
12052
e409c542
AKS
120532020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12054
12055 * f-valprint.c (f77_print_array_1): Changed datatype of index
12056 variable to LONGEST from int to enable it to contain bound
12057 values correctly.
12058
ee98c0da
MR
120592020-02-03 Maciej W. Rozycki <macro@wdc.com>
12060
12061 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12062 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12063 offsets according to FLEN determined.
12064 (riscv_linux_nat_target::read_description): Determine FLEN
12065 dynamically.
12066 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12067 according to FLEN determined.
12068 (riscv_linux_nat_target::store_registers): Likewise.
12069
aa66aac4
SV
120702020-02-01 Shahab Vahedi <shahab@synopsys.com>
12071
12072 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12073 when reg->group is empty and reggroup is not.
12074
fd9faca8
TT
120752020-01-31 Tom Tromey <tromey@adacore.com>
12076
12077 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12078 Call beneath target's mourn_inferior after unpushing.
12079
42330a68
AB
120802020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12081
12082 PR tui/9765
12083 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12084 have enough lines to fill the screen, still return the lowest
12085 address we found.
12086
7a27a45b
AB
120872020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12088
12089 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12090 '-', '<', and '>' commands.
12091
c47f70e2
PA
120922020-01-29 Pedro Alves <palves@redhat.com>
12093 Sergio Durigan Junior <sergiodj@redhat.com>
12094
12095 * infcmd.c (construct_inferior_arguments): Assert that
12096 'argc' is greater than 0.
12097
5133a315
LM
120982020-01-29 Luis Machado <luis.machado@linaro.org>
12099
12100 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12101 (BRK_INSN_MASK): Define to 0xd4200000.
12102 (aarch64_program_breakpoint_here_p): New function.
12103 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12104 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12105 breakpoint.c.
12106 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12107 breakpoint.h
12108 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12109 call gdbarch_program_breakpoint_here_p.
12110 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12111 default_program_breakpoint_here_p, changed return type to bool and
12112 simplified.
12113 * breakpoint.h (program_breakpoint_here): Moved prototype to
12114 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12115 return type to bool.
12116 * gdbarch.c: Regenerate.
12117 * gdbarch.h: Regenerate.
12118 * gdbarch.sh (program_breakpoint_here_p): New method.
12119 * infrun.c (handle_signal_stop): Call
12120 gdbarch_program_breakpoint_here_p.
12121
168f8c6b
TT
121222020-01-26 Tom Tromey <tom@tromey.com>
12123
12124 * ctfread.c (struct ctf_fp_info): Reindent.
12125 (_initialize_ctfread): Remove.
12126
128a391f
TT
121272020-01-26 Tom Tromey <tom@tromey.com>
12128
12129 * psymtab.c (partial_map_expand_apply)
12130 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12131 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12132 (psym_print_stats, psym_expand_symtabs_for_function)
12133 (psym_map_symbol_filenames, psym_map_matching_symbols)
12134 (psym_expand_symtabs_matching)
12135 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12136 (maintenance_check_psymtabs): Use new methods.
12137 * psympriv.h (struct partial_symtab) <readin_p,
12138 get_compunit_symtab>: New methods.
12139 <readin, compunit_symtab>: Remove members.
12140 (struct standard_psymtab): New.
12141 (struct legacy_psymtab): Derive from standard_psymtab.
12142 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12143 standard_psymtab.
12144 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12145
0494dbec
TT
121462020-01-26 Tom Tromey <tom@tromey.com>
12147
12148 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12149 read_dependencies. Add assert.
12150 * psymtab.c (partial_symtab::read_dependencies): New method.
12151 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12152 method.
12153 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12154 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12155 read_dependencies.
12156 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12157 Add assert.
12158
8566b89b
TT
121592020-01-26 Tom Tromey <tom@tromey.com>
12160
12161 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12162 Call expand_psymtab.
12163 (xcoff_read_symtab): Call expand_psymtab.
12164 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12165 legacy_expand_psymtab.
12166 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12167 method.
12168 (struct legacy_psymtab) <expand_psymtab>: Implement.
12169 <legacy_expand_psymtab>: New member.
12170 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12171 (parse_partial_symbols): Set legacy_expand_psymtab.
12172 (psymtab_to_symtab_1): Change argument order. Call
12173 expand_psymtab.
12174 (new_psymtab): Set legacy_expand_psymtab.
12175 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12176 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12177 expand_psymtab.
12178 (dwarf2_psymtab::expand_psymtab): Rename from
12179 psymtab_to_symtab_1. Call expand_psymtab.
12180 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12181 (dbx_end_psymtab): Likewise.
12182 (dbx_psymtab_to_symtab_1): Change argument order. Call
12183 expand_psymtab.
12184 (dbx_read_symtab): Call expand_psymtab.
12185 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12186 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12187 (ctf_psymtab::read_symtab): Call expand_psymtab.
12188
077cbab2
TT
121892020-01-26 Tom Tromey <tom@tromey.com>
12190
12191 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12192 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12193 messages.
12194 * mdebugread.c (mdebug_read_symtab): Remove prints.
12195 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12196 assert.
12197 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12198
891813be
TT
121992020-01-26 Tom Tromey <tom@tromey.com>
12200
12201 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12202 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12203 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12204 legacy_symtab.
12205 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12206 * psymtab.c (psymtab_to_symtab): Call method.
12207 (dump_psymtab): Update.
12208 * psympriv.h (struct partial_symtab): Add virtual destructor.
12209 <read_symtab>: New method.
12210 (struct legacy_symtab): New.
12211 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12212 (struct pst_map) <pst>: Now a legacy_psymtab.
12213 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12214 (new_psymtab): Use legacy_psymtab.
12215 * dwarf2read.h (struct dwarf2_psymtab): New.
12216 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12217 * dwarf2read.c (dwarf2_create_include_psymtab)
12218 (dwarf2_build_include_psymtabs, create_type_unit_group)
12219 (create_partial_symtab, process_psymtab_comp_unit_reader)
12220 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12221 (set_partial_user): Use dwarf2_psymtab.
12222 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12223 (psymtab_to_symtab_1, process_full_comp_unit)
12224 (process_full_type_unit, dwarf2_ranges_read)
12225 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12226 (dwarf_decode_lines): Use dwarf2_psymtab.
12227 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12228 (add_address_entry_worker, write_one_signatured_type)
12229 (recursively_count_psymbols, recursively_write_psymbols)
12230 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12231 (write_debug_names): Likewise.
12232 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12233 <pst>: Now a legacy_psymtab.
12234 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12235 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12236 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12237 * ctfread.c (struct ctf_psymtab): New.
12238 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12239 ctf_psymtab.
12240 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12241 (create_partial_symtab): Return a ctf_psymtab.
12242 (scan_partial_symbols): Update.
12243
c3693a1d
TT
122442020-01-26 Tom Tromey <tom@tromey.com>
12245
12246 * xcoffread.c (xcoff_start_psymtab): Use new.
12247 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12248 renamed from start_psymtab_common.
12249 * psympriv.h (struct partial_symtab): Add new constructor.
12250 (start_psymtab_common): Don't declare.
12251 * mdebugread.c (parse_partial_symbols): Use new.
12252 * dwarf2read.c (create_partial_symtab): Use new.
12253 * dbxread.c (start_psymtab): Use new.
12254 * ctfread.c (create_partial_symtab): Use new.
12255
32caafd0
TT
122562020-01-26 Tom Tromey <tom@tromey.com>
12257
12258 * xcoffread.c (xcoff_end_psymtab): Use new.
12259 * psymtab.c (start_psymtab_common): Use new.
12260 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12261 Update.
12262 * psympriv.h (struct partial_symtab): Add parameters to
12263 constructor. Don't inline.
12264 (allocate_psymtab): Don't declare.
12265 * mdebugread.c (new_psymtab): Use new.
12266 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12267 * dbxread.c (dbx_end_psymtab): Use new.
12268
abaa2f23
TT
122692020-01-26 Tom Tromey <tom@tromey.com>
12270
12271 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12272 allocate_psymtab. Update documentation.
12273 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12274 allocate_psymtab. Do not use new.
12275 (allocate_psymtab): Use new. Update.
12276
6d94535f
TT
122772020-01-26 Tom Tromey <tom@tromey.com>
12278
12279 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12280 * psymtab.c (psym_print_stats): Update.
12281 * psympriv.h (struct partial_symtab) <readin,
12282 psymtabs_addrmap_supported, anonymous>: Now bool.
12283 * mdebugread.c (psymtab_to_symtab_1): Update.
12284 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12285 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12286 (process_full_comp_unit, process_full_type_unit): Update.
12287 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12288 * ctfread.c (psymtab_to_symtab): Update.
12289
6f17252b
TT
122902020-01-26 Tom Tromey <tom@tromey.com>
12291
12292 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12293 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12294 * psymtab.c (psymtab_storage): Delete psymtabs.
12295 (psymtab_storage::allocate_psymtab): Use new.
12296 (psymtab_storage::discard_psymtab): Use delete.
12297 * psympriv.h (struct partial_symtab): Add constructor and
12298 initializers.
12299
f6f1cebc
TT
123002020-01-26 Tom Tromey <tom@tromey.com>
12301
12302 * machoread.c: Do not include psympriv.h.
12303
e47e48f6
PW
123042020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12305
12306 * NEWS: Mention the new option and the set/show commands.
12307
a2fedca9
PW
123082020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12309
12310 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12311 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12312 (validate_exec_file): New variables, enums, functions.
12313 (exec_file_locate_attach, print_section_info): Style the filenames.
12314 (_initialize_exec): Install show_exec_file_mismatch_command and
12315 set_exec_file_mismatch_command.
12316 * gdbcore.h (validate_exec_file): Declare.
12317 * infcmd.c (attach_command): Call validate_exec_file.
12318 * remote.c ( remote_target::remote_add_inferior): Likewise.
12319
7ffa82e1
AB
123202020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12321
12322 * frame.c (find_frame_sal): Move call to get_next_frame into more
12323 inner scope.
12324 * inline-frame.c (inilne_state) <inline_state>: Update argument
12325 types.
12326 (inilne_state) <skipped_symbol>: Rename to...
12327 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12328 (skip_inline_frames): Build vector of skipped symbols and use this
12329 to reate the inline_state.
12330 (inline_skipped_symbol): Add a comment and some assertions, fetch
12331 skipped symbol from the list.
12332
3d92a3e3
AB
123332020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12334
12335 * buildsym.c (lte_is_less_than): Delete.
12336 (buildsym_compunit::end_symtab_with_blockvector): Create local
12337 lambda function to sort line table entries, and use
12338 std::stable_sort instead of std::sort.
12339 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12340 markers when looking for a previous line.
12341
94a72be7
AB
123422020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12343
12344 * dwarf2read.c (lnp_state_machine::record_line): Include
12345 end_sequence parameter in debug print out. Record the line if we
12346 are at an end_sequence marker even if it's not the start of a
12347 statement.
12348 * symmisc.c (maintenance_print_one_line_table): Print end of
12349 sequence markers with 'END' not '0'.
12350
53af73bf
PA
123512020-01-24 Pedro Alves <palves@redhat.com>
12352
12353 PR gdb/25410
12354 * thread.c (scoped_restore_current_thread::restore): Use
12355 switch_to_inferior_no_thread.
12356 * exec.c: Include "progspace-and-thread.h".
12357 (add_target_sections, remove_target_sections):
12358 scoped_restore_current_pspace_and_thread instead of
12359 scoped_restore_current_thread.
12360 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12361 and aspace to the inferior before calling clone_program_space.
12362 Remove stale comment.
12363
3050c6f4
CB
123642020-01-24 Christian Biesinger <cbiesinger@google.com>
12365
12366 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12367 (arm_netbsd_nat_target::fetch_registers): ...this.
12368 (arm_nbsd_nat_target::store_registers): Rename to...
12369 (arm_netbsd_nat_target::store_registers): ...this.
12370
73685c7e
CB
123712020-01-24 Christian Biesinger <cbiesinger@google.com>
12372
12373 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12374 register_t.
12375
89203d40
CB
123762020-01-24 Christian Biesinger <cbiesinger@google.com>
12377
12378 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12379 Update comment.
12380 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12381 Likewise.
12382 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12383 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12384 the correct replacement (iterate_over_regset_sections).
12385 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12386 Update comment.
12387
1ba1ac88
AB
123882020-01-24 Graham Markall <graham.markall@embecosm.com>
12389
12390 PR gdb/23718
12391 * gdb/python/python.c (execute_gdb_command): Call
12392 async_enable_stdin in catch block.
12393
f3364a6d
AB
123942020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12395
12396 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12397 SWITCH_THRU_ALL_UIS.
12398
733d0a67
AB
123992020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12400
12401 PR tui/9765
12402 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12403 comment, add extra parameter, and update to store previous symbol
12404 when appropriate.
12405 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12406 add extra parameter.
12407 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12408 remove unneeded parameter, add try/catch around gdb_print_insn,
12409 rewrite to add items to asm_lines vector.
12410 (tui_find_backward_disassembly_start_address): New function.
12411 (tui_find_disassembly_address): Updated throughout.
12412 (tui_disasm_window::set_contents): Update for changes to
12413 tui_disassemble.
12414 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12415 number of lines to scroll.
12416
b3b3bada
SM
124172020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12418
12419 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12420 (SECT_OFF_DATA): Likewise.
12421 (SECT_OFF_RODATA): Likewise.
12422 (SECT_OFF_TEXT): Likewise.
12423 (SECT_OFF_BSS): Likewise.
12424 (struct objfile) <text_section_offset, data_section_offset>: New
12425 methods.
12426 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12427 objfile::text_section_offset.
12428 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12429 * coffread.c (coff_symtab_read): Likewise.
12430 (enter_linenos): Likewise.
12431 (process_coff_symbol): Likewise.
12432 * ctfread.c (get_objfile_text_range): Likewise.
12433 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12434 Use objfile::data_section_offset.
12435 * dwarf2-frame.c (execute_cfa_program): Use
12436 objfile::text_section_offset.
12437 (dwarf2_frame_find_fde): Likewise.
12438 * dwarf2read.c (create_addrmap_from_index): Likewise.
12439 (create_addrmap_from_aranges): Likewise.
12440 (dw2_find_pc_sect_compunit_symtab): Likewise.
12441 (process_psymtab_comp_unit_reader): Likewise.
12442 (add_partial_symbol): Likewise.
12443 (add_partial_subprogram): Likewise.
12444 (process_full_comp_unit): Likewise.
12445 (read_file_scope): Likewise.
12446 (read_func_scope): Likewise.
12447 (read_lexical_block_scope): Likewise.
12448 (read_call_site_scope): Likewise.
12449 (dwarf2_rnglists_process): Likewise.
12450 (dwarf2_ranges_process): Likewise.
12451 (dwarf2_ranges_read): Likewise.
12452 (dwarf_decode_lines_1): Likewise.
12453 (new_symbol): Likewise.
12454 (dwarf2_fetch_die_loc_sect_off): Likewise.
12455 (dwarf2_per_cu_text_offset): Likewise.
12456 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12457 * hppa-tdep.c (read_unwind_info): Likewise.
12458 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12459 * psympriv.h (struct partial_symtab): Likewise.
12460 * psymtab.c (find_pc_sect_psymtab): Likewise.
12461 * solib-svr4.c (enable_break): Likewise.
12462 * stap-probe.c (relocate_address): Use
12463 objfile::data_section_offset.
12464 * xcoffread.c (enter_line_range): Use
12465 objfile::text_section_offset.
12466 (read_xcoff_symtab): Likewise.
12467
ab53f382
SM
124682020-01-23 Simon Marchi <simon.marchi@efficios.com>
12469
12470 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12471 declaration to narrower scopes.
12472
e7eee665
SM
124732020-01-23 Simon Marchi <simon.marchi@efficios.com>
12474
12475 * darwin-nat.h (struct darwin_exception_msg, enum
12476 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12477 Move up.
12478 (class darwin_nat_target) <wait_1, check_new_threads,
12479 decode_exception_message, decode_message, stop_inferior,
12480 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12481 * darwin-nat.c (darwin_check_new_threads): Rename to...
12482 (darwin_nat_target::check_new_threads): ... this.
12483 (darwin_suspend_inferior_it): Remove.
12484 (darwin_decode_exception_message): Rename to...
12485 (darwin_nat_target::decode_exception_message): ... this.
12486 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12487 (darwin_decode_message): Rename to...
12488 (darwin_nat_target::decode_message): ... this.
12489 (cancel_breakpoint): Rename to...
12490 (darwin_nat_target::cancel_breakpoint): ... this.
12491 (darwin_wait): Rename to...
12492 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12493 instead of iterate_over_inferiors.
12494 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12495 (darwin_stop_inferior): Rename to...
12496 (darwin_nat_target::stop_inferior): ... this.
12497 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12498 (darwin_init_thread_list): Rename to...
12499 (darwin_nat_target::init_thread_list): ... this.
12500 (darwin_ptrace_him): Rename to...
12501 (darwin_nat_target::ptrace_him): ... this.
12502 (darwin_nat_target::create_inferior): Pass lambda function to
12503 fork_inferior.
12504 (darwin_nat_target::detach): Call stop_inferior instead of
12505 darwin_stop_inferior.
12506 * fork-inferior.h (fork_inferior): Change init_trace_fun
12507 parameter to gdb::function_view.
12508 * fork-inferior.c (fork_inferior): Likewise.
12509
c162ed3e
HD
125102020-01-23 Hannes Domani <ssbssa@yahoo.de>
12511
12512 * i386-cygwin-tdep.c (core_process_module_section): Update.
12513 * windows-nat.c (struct lm_info_windows): Add text_offset.
12514 (windows_xfer_shared_libraries): Update.
12515 * windows-tdep.c (windows_xfer_shared_library):
12516 Add text_offset_cached argument.
12517 * windows-tdep.h (windows_xfer_shared_library): Update.
12518
a1237872
SM
125192020-01-21 Simon Marchi <simon.marchi@efficios.com>
12520
12521 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12522
b3ee6dd9
SM
125232020-01-21 Simon Marchi <simon.marchi@efficios.com>
12524
12525 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12526 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12527 replace with range-based for.
12528 (gdbsim_interrupt_inferior): Remove.
12529 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12530 with a range-based for. Inline code from
12531 gdbsim_interrupt_inferior.
12532
f9fac3c8
SM
125332020-01-21 Simon Marchi <simon.marchi@efficios.com>
12534
12535 * infrun.c (proceed): Fix indentation.
12536
f6474de9
TT
125372020-01-21 Tom Tromey <tromey@adacore.com>
12538
12539 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12540 * python/python.c (python_extension_ops): Update.
12541 (gdbpy_colorize): New function.
12542 * python/lib/gdb/__init__.py (colorize): New function.
12543 * extension.h (ext_lang_colorize): Declare.
12544 * extension.c (ext_lang_colorize): New function.
12545 * extension-priv.h (struct extension_language_ops) <colorize>: New
12546 member.
12547 * cli/cli-style.c (_initialize_cli_style): Update help text.
12548
f0c702d4
LM
125492020-01-21 Luis Machado <luis.machado@linaro.org>
12550
12551 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12552 <cond>: Change type to bool.
12553 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12554 (aarch64_displaced_step_cb): Likewise.
12555 (aarch64_displaced_step_tb): Likewise.
12556
1ab139e5
LM
125572020-01-21 Luis Machado <luis.machado@linaro.org>
12558
12559 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12560 output.
12561
0c271889
LM
125622020-01-21 Luis Machado <luis.machado@linaro.org>
12563
12564 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12565 <pc_adjust>: Adjust the documentation.
12566 (aarch64_displaced_step_fixup): Check if PC really moved before
12567 adjusting it.
12568
4d89c1c7
TT
125692020-01-19 Tom Tromey <tom@tromey.com>
12570
12571 * disasm.c (~gdb_disassembler): New destructor.
12572 (gdb_buffered_insn_length): Call disassemble_free_target.
12573 * disasm.h (class gdb_disassembler): Declare destructor. Use
12574 DISABLE_COPY_AND_ASSIGN.
12575
c0ab21c2
TT
125762020-01-19 Tom Tromey <tom@tromey.com>
12577
12578 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12579 (die_reader_func_ftype): Remove.
12580 (cutu_reader): New class.
12581 (dw2_get_file_names_reader): Remove "data" parameter.
12582 (dw2_get_file_names): Use cutu_reader.
12583 (create_debug_type_hash_table): Update.
12584 (read_cutu_die_from_dwo): Update comment.
12585 (lookup_dwo_unit): Add dwo_name parameter.
12586 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12587 die_reader_func_ftype and data parameters.
12588 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12589 Remove die_reader_func_ftype and data parameters.
12590 (~cutu_reader): New; from init_cutu_and_read_dies.
12591 (cutu_reader::cutu_reader): Rename from
12592 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12593 and data parameters.
12594 (init_cutu_and_read_dies_simple): Remove.
12595 (struct process_psymtab_comp_unit_data): Remove.
12596 (process_psymtab_comp_unit_reader): Remove data parameter; add
12597 want_partial_unit and pretend_language parameters.
12598 (process_psymtab_comp_unit): Use cutu_reader.
12599 (build_type_psymtabs_reader): Remove data parameter.
12600 (build_type_psymtabs_1): Use cutu_reader.
12601 (process_skeletonless_type_unit): Likewise.
12602 (load_partial_comp_unit_reader): Remove.
12603 (load_partial_comp_unit): Use cutu_reader.
12604 (load_full_comp_unit_reader): Remove.
12605 (load_full_comp_unit): Use cutu_reader.
12606 (struct create_dwo_cu_data): Remove.
12607 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12608 dwo_unit parameters.
12609 (create_cus_hash_table): Use cutu_reader.
12610 (struct dwarf2_read_addr_index_data): Remove.
12611 (dwarf2_read_addr_index_reader): Remove.
12612 (dwarf2_read_addr_index): Use cutu_reader.
12613 (read_signatured_type_reader): Remove.
12614 (read_signatured_type): Use cutu_reader.
12615
45bbae5c
TT
126162020-01-19 Tom Tromey <tom@tromey.com>
12617
12618 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12619 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12620 (tui_wrefresh): Declare.
12621 * tui/tui-wingeneral.c (suppress_output): New global.
12622 (tui_suppress_output, ~tui_suppress_output): New constructor and
12623 destructor.
12624 (tui_wrefresh): New function.
12625 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12626 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12627 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12628 method.
12629 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12630 tui_wrefresh.
12631 (tui_data_window::no_refresh): New method.
12632 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12633 (tui_reg_command): Use tui_suppress_output
12634 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12635 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12636 method.
12637 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12638
4f13c1c0
TT
126392020-01-19 Tom Tromey <tom@tromey.com>
12640
12641 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12642 Handle case where symtab is null.
12643
fa47e446
SM
126442020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12645
12646 * linux-fork.c (one_fork_p): Simplify.
12647
26f42329
SM
126482020-01-17 Simon Marchi <simon.marchi@efficios.com>
12649
12650 * top.c (struct qt_args): Remove.
12651 (kill_or_detach): Change return type to void, replace `void *`
12652 parameter with a proper one.
12653 (print_inferior_quit_action): Likewise.
12654 (quit_confirm): Use range-based for loop to iterate over inferiors.
12655 (quit_force): Likewise.
12656
a9ac81b1
SM
126572020-01-17 Simon Marchi <simon.marchi@efficios.com>
12658
12659 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12660 `void *` parameter with proper parameters.
12661 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12662 (print_one_inferior): Change return type to void, replace `void *`
12663 parameter with proper parameters.
12664 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12665 inferiors.
12666 (get_other_inferior): Remove.
12667 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12668 inferiors.
12669
788eca49
SM
126702020-01-17 Simon Marchi <simon.marchi@efficios.com>
12671
12672 * mi/mi-interp.c (report_initial_inferior): Remove.
12673 (mi_interp::init): Use range-based for to iterate over inferiors.
12674
d9bc85b6
SM
126752020-01-17 Simon Marchi <simon.marchi@efficios.com>
12676
12677 * python/py-inferior.c (build_inferior_list): Remove.
12678 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12679
40c94099
CB
126802020-01-16 Christian Biesinger <cbiesinger@google.com>
12681
12682 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12683 (btrace_stitch_trace): Likewise.
12684 * charset.c (intermediate_encoding): Likewise (vaild).
12685 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12686 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12687 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12688
e0cdfe3c
HD
126892020-01-16 Hannes Domani <ssbssa@yahoo.de>
12690
12691 * windows-tdep.c (windows_get_tlb_type):
12692 Add rtl_user_process_parameters type.
12693
790f1718 126942020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12695 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12696
12697 PR build/24805
12698 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12699 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12700 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12701 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12702 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12703 (ps_plog): Redeclare exported functions with default visibility.
12704
3112ed97
NA
127052020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12706
12707 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12708 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12709
8dc3273e
SM
127102020-01-15 Simon Marchi <simon.marchi@efficios.com>
12711
12712 * infcmd.c (post_create_inferior): Use get_thread_regcache
12713 instead of get_current_regcache.
12714
ff47f4f0
TT
127152020-01-14 Tom Tromey <tom@tromey.com>
12716
12717 PR symtab/12535:
12718 * python/python.c (gdbpy_decode_line): Treat empty string the same
12719 as no argument.
12720
975f45b7
TT
127212020-01-14 Tom Tromey <tom@tromey.com>
12722
12723 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12724
25e57356
TT
127252020-01-14 Tom Tromey <tom@tromey.com>
12726
12727 * nat/linux-btrace.c: Don't include <config.h>.
12728 * nat/linux-ptrace.c: Don't include <config.h>.
12729 * nat/x86-linux-dregs.c: Don't include <config.h>.
12730
05ea2a05
TT
127312020-01-14 Tom Tromey <tom@tromey.com>
12732
12733 * configure: Rebuild.
12734 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12735
01027315
TT
127362020-01-14 Tom Tromey <tom@tromey.com>
12737
12738 * nat/x86-linux-dregs.c: Include configh.h.
12739 * nat/linux-ptrace.c: Include configh.h.
12740 * nat/linux-btrace.c: Include configh.h.
12741 * defs.h: Include config.h, bfd.h.
12742 * configure.ac: Don't source common.host.
12743 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12744 * configure: Rebuild.
12745 * acinclude.m4: Update path.
12746 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12747 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12748 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12749 (CLIBS): Add LIBSUPPORT.
12750 (CDEPS): Likewise.
12751 (COMMON_SFILES): Remove gdbsupport files.
12752 (HFILES_NO_SRCDIR): Likewise.
12753 (stamp-version): Update path to create-version.sh.
12754 (ALLDEPFILES): Remove gdbsupport files.
12755
b2ceabe8
TT
127562020-01-14 Tom Tromey <tom@tromey.com>
12757
12758 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12759 USE_WIN32API when needed.
12760 * configure.ac (USE_WIN32API): Don't define.
12761 (WIN32LIBS): Use WIN32APILIBS.
12762 * configure: Rebuild.
12763
25c51f71
TT
127642020-01-14 Tom Tromey <tom@tromey.com>
12765
12766 * configure: Rebuild.
12767 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12768
717c684d
BE
127692020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12770
12771 * skip.c (skip_function_command): Make skip w/o arguments use the
12772 name of the inlined function if pc is inside any inlined function.
12773
7da6a5b9
LM
127742020-01-14 Luis Machado <luis.machado@linaro.org>
12775
12776 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12777 * infrun.c (resume_1): Likewise.
12778 (handle_inferior_event): Remove stale comment.
12779 * linux-nat.c (linux_nat_target::resume): Update comments.
12780 (save_stop_reason): Likewise.
12781 (linux_nat_filter_event): Likewise.
12782 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12783
44e4c775
AB
127842020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12785
12786 * elfread.c (record_minimal_symbol): Set section index to 0 for
12787 non-allocatable sections.
12788
18a8505e
AT
12789
127902020-01-13 Ali Tamur <tamur@google.com>
12791
12792 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12793 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12794 to gdb::optional. Update comments.
12795 (dwo_file): Update comments.
12796 (read_attribute): Update API to take an additional out parameter,
12797 need_reprocess. This is used to mark attributes that need other
12798 attributes (e.g. str_offsets_base) for correct computation which may not
12799 have been read yet.
12800 (read_attribute_reprocess): New function declaration.
12801 (read_addr_index): Likewise.
12802 (read_dwo_str_index): Likewise.
12803 (read_stub_str_index): Likewise.
12804 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12805 (lookup_addr_base): New function definition.
12806 (lookup_ranges_base): Likewise.
12807 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12808 lookup_ranges_base.
12809 (init_cutu_and_read_dies): Update comments.
12810 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12811 unit. This is used to inherit parent's str_offsets_base and addr_base.
12812 Update comments.
12813 (init_cutu_and_read_dies_simple): Reflect API changes.
12814 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12815 (create_cus_hash_table): Change API to take parent compile unit.
12816 Reflect API changes.
12817 (open_and_init_dwo_file): Reflect API changes.
12818 (dwarf2_get_pc_bounds): Update comments.
12819 (dwarf2_record_block_ranges): Likewise.
12820 (read_full_die_1): Change implementation to reprocess attributes that
12821 need str_offsets_base and addr_base.
12822 (partial_die_info::read): Likewise.
12823 (read_attribute_reprocess): New function definition.
12824 (read_attribute_value): Change API to take an additional out parameter,
12825 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12826 when a non-dwo compile unit has index based attributes.
12827 (read_attribute): Reflect API changes.
12828 (read_addr_index_1): Reflect API changes. Update comments.
12829 (dwarf2_read_addr_index_data): Reflect API changes.
12830 (dwarf2_read_addr_index): Likewise.
12831 (read_str_index): Change API and implementation. This becomes a helper
12832 to be used by the new string index related methods. Update error
12833 message and comments.
12834 (read_dwo_str_index): New function definition.
12835 (read_stub_str_index): Likewise.
12836 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12837 * symfile.h (dwarf2_debug_sections): Likewise.
12838 * xcoffread.c (dwarf2_debug_sections): Likewise.
12839
0cac9354
SM
128402020-01-13 Simon Marchi <simon.marchi@efficios.com>
12841
12842 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12843 core_reg_sect type to gdb_byte *.
12844 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12845 * cris-tdep.c (fetch_core_registers): Likewise.
12846 * corelow.c (core_target::get_core_register_section): Change
12847 type of `contents` to gdb::byte_vector.
12848
9a6d629c
AB
128492020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12850
12851 * tui/tui-wingeneral.c (box_win): Position the title in the center
12852 of the border.
12853
d8b2f9e3
SM
128542020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12855
12856 * corelow.c (core_target::get_core_register_section): Use
12857 std::vector instead of alloca.
12858
bb564c58
SM
128592020-01-13 Simon Marchi <simon.marchi@efficios.com>
12860
12861 * warning.m4: Add -Wmissing-declarations to build_warnings.
12862 * configure: Re-generate.
12863
6b366111
SM
128642020-01-13 Simon Marchi <simon.marchi@efficios.com>
12865
12866 * python/python.c (init__gdb_module): Add declaration.
12867
6c265988
SM
128682020-01-13 Simon Marchi <simon.marchi@efficios.com>
12869
12870 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12871 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12872 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12873 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12874 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12875 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12876 * ada-exp.y (_initialize_ada_exp): Add declaration.
12877 * ada-lang.c (_initialize_ada_language): Add declaration.
12878 * ada-tasks.c (_initialize_tasks): Add declaration.
12879 * agent.c (_initialize_agent): Add declaration.
12880 * aix-thread.c (_initialize_aix_thread): Add declaration.
12881 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12882 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12883 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12884 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12885 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12886 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12887 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12888 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12889 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12890 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12891 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12892 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12893 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12894 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12895 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12896 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12897 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12898 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12899 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12900 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12901 * annotate.c (_initialize_annotate): Add declaration.
12902 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12903 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12904 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12905 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12906 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12907 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12908 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12909 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12910 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12911 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12912 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12913 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12914 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12915 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12916 * auto-load.c (_initialize_auto_load): Add declaration.
12917 * auxv.c (_initialize_auxv): Add declaration.
12918 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12919 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12920 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12921 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12922 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12923 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12924 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12925 * breakpoint.c (_initialize_breakpoint): Add declaration.
12926 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12927 * btrace.c (_initialize_btrace): Add declaration.
12928 * charset.c (_initialize_charset): Add declaration.
12929 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12930 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12931 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12932 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12933 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12934 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12935 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12936 * coffread.c (_initialize_coffread): Add declaration.
12937 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12938 * compile/compile.c (_initialize_compile): Add declaration.
12939 * complaints.c (_initialize_complaints): Add declaration.
12940 * completer.c (_initialize_completer): Add declaration.
12941 * copying.c (_initialize_copying): Add declaration.
12942 * corefile.c (_initialize_core): Add declaration.
12943 * corelow.c (_initialize_corelow): Add declaration.
12944 * cp-abi.c (_initialize_cp_abi): Add declaration.
12945 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12946 * cp-support.c (_initialize_cp_support): Add declaration.
12947 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12948 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12949 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12950 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12951 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12952 * ctfread.c (_initialize_ctfread): Add declaration.
12953 * d-lang.c (_initialize_d_language): Add declaration.
12954 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12955 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12956 * dbxread.c (_initialize_dbxread): Add declaration.
12957 * dcache.c (_initialize_dcache): Add declaration.
12958 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12959 * disasm.c (_initialize_disasm): Add declaration.
12960 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12961 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12962 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12963 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12964 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12965 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12966 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12967 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12968 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12969 * elfread.c (_initialize_elfread): Add declaration.
12970 * exec.c (_initialize_exec): Add declaration.
12971 * extension.c (_initialize_extension): Add declaration.
12972 * f-lang.c (_initialize_f_language): Add declaration.
12973 * f-valprint.c (_initialize_f_valprint): Add declaration.
12974 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12975 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12976 * filesystem.c (_initialize_filesystem): Add declaration.
12977 * findcmd.c (_initialize_mem_search): Add declaration.
12978 * findvar.c (_initialize_findvar): Add declaration.
12979 * fork-child.c (_initialize_fork_child): Add declaration.
12980 * frame-base.c (_initialize_frame_base): Add declaration.
12981 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12982 * frame.c (_initialize_frame): Add declaration.
12983 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12984 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12985 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12986 * gcore.c (_initialize_gcore): Add declaration.
12987 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12988 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12989 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12990 * gdbarch.c (_initialize_gdbarch): Add declaration.
12991 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12992 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12993 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12994 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12995 * go-lang.c (_initialize_go_language): Add declaration.
12996 * go32-nat.c (_initialize_go32_nat): Add declaration.
12997 * guile/guile.c (_initialize_guile): Add declaration.
12998 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12999 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13000 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13001 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13002 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13003 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13004 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13005 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13006 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13007 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13008 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13009 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13010 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13011 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13012 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13013 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13014 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13015 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13016 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13017 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13018 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13019 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13020 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13021 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13022 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13023 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13024 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13025 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13026 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13027 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13028 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13029 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13030 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13031 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13032 * infcall.c (_initialize_infcall): Add declaration.
13033 * infcmd.c (_initialize_infcmd): Add declaration.
13034 * inflow.c (_initialize_inflow): Add declaration.
13035 * infrun.c (_initialize_infrun): Add declaration.
13036 * interps.c (_initialize_interpreter): Add declaration.
13037 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13038 * jit.c (_initialize_jit): Add declaration.
13039 * language.c (_initialize_language): Add declaration.
13040 * linux-fork.c (_initialize_linux_fork): Add declaration.
13041 * linux-nat.c (_initialize_linux_nat): Add declaration.
13042 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13043 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13044 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13045 * m2-lang.c (_initialize_m2_language): Add declaration.
13046 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13047 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13048 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13049 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13050 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13051 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13052 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13053 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13054 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13055 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13056 * machoread.c (_initialize_machoread): Add declaration.
13057 * macrocmd.c (_initialize_macrocmd): Add declaration.
13058 * macroscope.c (_initialize_macroscope): Add declaration.
13059 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13060 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13061 * maint.c (_initialize_maint_cmds): Add declaration.
13062 * mdebugread.c (_initialize_mdebugread): Add declaration.
13063 * memattr.c (_initialize_mem): Add declaration.
13064 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13065 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13066 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13067 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13068 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13069 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13070 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13071 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13072 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13073 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13074 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13075 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13076 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13077 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13078 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13079 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13080 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13081 * mipsread.c (_initialize_mipsread): Add declaration.
13082 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13083 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13084 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13085 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13086 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13087 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13088 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13089 * nto-procfs.c (_initialize_procfs): Add declaration.
13090 * objc-lang.c (_initialize_objc_language): Add declaration.
13091 * observable.c (_initialize_observer): Add declaration.
13092 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13093 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13094 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13095 * osabi.c (_initialize_gdb_osabi): Add declaration.
13096 * osdata.c (_initialize_osdata): Add declaration.
13097 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13098 * parse.c (_initialize_parse): Add declaration.
13099 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13100 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13101 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13102 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13103 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13104 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13105 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13106 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13107 * printcmd.c (_initialize_printcmd): Add declaration.
13108 * probe.c (_initialize_probe): Add declaration.
13109 * proc-api.c (_initialize_proc_api): Add declaration.
13110 * proc-events.c (_initialize_proc_events): Add declaration.
13111 * proc-service.c (_initialize_proc_service): Add declaration.
13112 * procfs.c (_initialize_procfs): Add declaration.
13113 * producer.c (_initialize_producer): Add declaration.
13114 * psymtab.c (_initialize_psymtab): Add declaration.
13115 * python/python.c (_initialize_python): Add declaration.
13116 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13117 * record-btrace.c (_initialize_record_btrace): Add declaration.
13118 * record-full.c (_initialize_record_full): Add declaration.
13119 * record.c (_initialize_record): Add declaration.
13120 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13121 * regcache.c (_initialize_regcache): Add declaration.
13122 * reggroups.c (_initialize_reggroup): Add declaration.
13123 * remote-notif.c (_initialize_notif): Add declaration.
13124 * remote-sim.c (_initialize_remote_sim): Add declaration.
13125 * remote.c (_initialize_remote): Add declaration.
13126 * reverse.c (_initialize_reverse): Add declaration.
13127 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13128 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13129 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13130 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13131 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13132 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13133 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13134 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13135 Add declaration.
13136 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13137 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13138 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13139 * rust-exp.y (_initialize_rust_exp): Add declaration.
13140 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13141 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13142 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13143 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13144 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13145 * score-tdep.c (_initialize_score_tdep): Add declaration.
13146 * ser-go32.c (_initialize_ser_dos): Add declaration.
13147 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13148 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13149 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13150 * ser-uds.c (_initialize_ser_socket): Add declaration.
13151 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13152 * serial.c (_initialize_serial): Add declaration.
13153 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13154 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13155 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13156 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13157 * skip.c (_initialize_step_skip): Add declaration.
13158 * sol-thread.c (_initialize_sol_thread): Add declaration.
13159 * solib-aix.c (_initialize_solib_aix): Add declaration.
13160 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13161 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13162 * solib-frv.c (_initialize_frv_solib): Add declaration.
13163 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13164 * solib-target.c (_initialize_solib_target): Add declaration.
13165 * solib.c (_initialize_solib): Add declaration.
13166 * source-cache.c (_initialize_source_cache): Add declaration.
13167 * source.c (_initialize_source): Add declaration.
13168 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13169 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13170 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13171 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13172 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13173 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13174 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13175 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13176 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13177 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13178 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13179 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13180 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13181 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13182 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13183 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13184 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13185 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13186 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13187 * stabsread.c (_initialize_stabsread): Add declaration.
13188 * stack.c (_initialize_stack): Add declaration.
13189 * stap-probe.c (_initialize_stap_probe): Add declaration.
13190 * std-regs.c (_initialize_frame_reg): Add declaration.
13191 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13192 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13193 * symfile.c (_initialize_symfile): Add declaration.
13194 * symmisc.c (_initialize_symmisc): Add declaration.
13195 * symtab.c (_initialize_symtab): Add declaration.
13196 * target.c (_initialize_target): Add declaration.
13197 * target-connection.c (_initialize_target_connection): Add
13198 declaration.
13199 * target-dcache.c (_initialize_target_dcache): Add declaration.
13200 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13201 * thread.c (_initialize_thread): Add declaration.
13202 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13203 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13204 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13205 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13206 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13207 * tracectf.c (_initialize_ctf): Add declaration.
13208 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13209 * tracefile.c (_initialize_tracefile): Add declaration.
13210 * tracepoint.c (_initialize_tracepoint): Add declaration.
13211 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13212 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13213 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13214 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13215 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13216 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13217 * tui/tui.c (_initialize_tui): Add declaration.
13218 * typeprint.c (_initialize_typeprint): Add declaration.
13219 * ui-style.c (_initialize_ui_style): Add declaration.
13220 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13221 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13222 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13223 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13224 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13225 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13226 * unittests/filtered_iterator-selftests.c
13227 (_initialize_filtered_iterator_selftests): Add declaration.
13228 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13229 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13230 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13231 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13232 * unittests/main-thread-selftests.c
13233 (_initialize_main_thread_selftests): Add declaration.
13234 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13235 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13236 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13237 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13238 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13239 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13240 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13241 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13242 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13243 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13244 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13245 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13246 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13247 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13248 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13249 declaration.
13250 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13251 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13252 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13253 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13254 * user-regs.c (_initialize_user_regs): Add declaration.
13255 * utils.c (_initialize_utils): Add declaration.
13256 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13257 * valops.c (_initialize_valops): Add declaration.
13258 * valprint.c (_initialize_valprint): Add declaration.
13259 * value.c (_initialize_values): Add declaration.
13260 * varobj.c (_initialize_varobj): Add declaration.
13261 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13262 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13263 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13264 * windows-nat.c (_initialize_windows_nat): Add declaration.
13265 (_initialize_check_for_gdb_ini): Add declaration.
13266 (_initialize_loadable): Add declaration.
13267 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13268 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13269 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13270 * xcoffread.c (_initialize_xcoffread): Add declaration.
13271 * xml-support.c (_initialize_xml_support): Add declaration.
13272 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13273 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13274 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13275 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13276
e2de1eec
SM
132772020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13278
13279 * regformats/regdat.sh: Generate declaration for init function.
13280
e0037b4c
SM
132812020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13282
13283 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13284 up.
13285 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13286 close_one_inferior>: New methods.
13287 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13288 pass down target to find_inferior_pid.
13289 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13290 Pass down target to find_inferior_ptid.
13291 (gdbsim_target::create_inferior): Pass down target to
13292 add_thread_silent.
13293 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13294 target down to find_inferior_ptid and switch_to_thread.
13295 (gdbsim_target::close): Update to call close_one_inferior.
13296 (struct resume_data): Remove.
13297 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13298 directly, rather than through a void pointer.
13299 (gdbsim_target::resume): Update to call resume_one_inferior.
13300
58920b5b
SM
133012020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13302
13303 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13304
4ec89149
PA
133052020-01-12 Pedro Alves <palves@redhat.com>
13306
13307 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13308 directly for the current inferior instead of
13309 discard_all_inferiors.
13310 (discard_all_inferiors): Delete.
13311
7c392d1d
TT
133122020-01-11 Tom Tromey <tom@tromey.com>
13313
13314 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13315 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13316 deprecated_safe_get_selected_frame.
13317
d9ebdab7
TBA
133182020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13319
13320 * inferior.c (print_inferior): Switch inferior before printing it.
13321
f3c469b9
PA
133222020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13323 Pedro Alves <palves@redhat.com>
13324
13325 * progspace-and-thread.c (switch_to_program_space_and_thread):
13326 Assert there's an inferior for PSPACE. Use
13327 switch_to_inferior_no_thread to switch the inferior too.
13328 * progspace.c (program_space::~program_space): Call
13329 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13330 (program_space::free_all_objfiles): Don't call clear_symtab_users
13331 here.
13332 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13333
65c574f6
PA
133342020-01-10 Pedro Alves <palves@redhat.com>
13335
13336 * NEWS: Mention multi-target debugging, "info connections", and
13337 "add-inferior -no-connection".
13338
2f4fcf00
PA
133392020-01-10 Pedro Alves <palves@redhat.com>
13340
13341 * infrun.c: Include "target-connection.h".
13342 (check_multi_target_resumption): New.
13343 (proceed): Call it.
13344 * target-connection.c (make_target_connection_string): Make
13345 extern.
13346 * target-connection.h (make_target_connection_string): Declare.
13347
121b3efd
PA
133482020-01-10 Pedro Alves <palves@redhat.com>
13349
13350 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13351 * inferior.c (uiout_field_connection): New function.
13352 (print_inferior): Add new "connection-id" column.
13353 (add_inferior_command): Show connection number/string of added
13354 inferior.
13355 * process-stratum-target.h
13356 (process_stratum_target::connection_string): New virtual method.
13357 (process_stratum_target::connection_number): New field.
13358 * remote.c (remote_target::connection_string): New override.
13359 * target-connection.c: New file.
13360 * target-connection.h: New file.
13361 * target.c (decref_target): Remove process_stratum targets from
13362 the connection list.
13363 (target_stack::push): Add process_stratum targets to the
13364 connection list.
13365
4f837581
PA
133662020-01-10 Pedro Alves <palves@redhat.com>
13367
13368 Revert:
13369 2016-04-12 Pedro Alves <palves@redhat.com>
13370 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13371 Remove references to name.
13372 * serial.h (struct serial) <name>: Delete.
13373
f4ec508e
PA
133742020-01-10 Pedro Alves <palves@redhat.com>
13375
13376 * gdbarch-selftests.c (register_to_value_test): Remove "target
13377 already pushed" check.
13378
5b6d1e4f
PA
133792020-01-10 Pedro Alves <palves@redhat.com>
13380 John Baldwin <jhb@FreeBSD.org>
13381
13382 * aarch64-linux-nat.c
13383 (aarch64_linux_nat_target::thread_architecture): Adjust.
13384 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13385 (task_command_1): Likewise.
13386 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13387 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13388 (aix_thread_target::store_registers)
13389 (aix_thread_target::thread_alive): Adjust.
13390 * amd64-fbsd-tdep.c: Include "inferior.h".
13391 (amd64fbsd_get_thread_local_address): Pass down target.
13392 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13393 thread's gdbarch instead of target_gdbarch.
13394 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13395 get_last_target_status.
13396 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13397 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13398 inferiors.
13399 (update_inserted_breakpoint_locations): Skip if inferiors with no
13400 execution.
13401 (update_global_location_list): When handling moribund locations,
13402 find representative inferior for location's pspace, and use thread
13403 count of its process_stratum target.
13404 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13405 * bsd-uthread.c (bsd_uthread_target::wait): Use
13406 as_process_stratum_target and adjust thread_change_ptid and
13407 add_thread calls.
13408 (bsd_uthread_target::update_thread_list): Use
13409 as_process_stratum_target and adjust find_thread_ptid,
13410 thread_change_ptid and add_thread calls.
13411 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13412 find_thread_ptid call.
13413 * corelow.c (add_to_thread_list): Adjust add_thread call.
13414 (core_target_open): Adjust add_thread_silent and thread_count
13415 calls.
13416 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13417 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13418 * event-top.c (async_disconnect): Pop targets from all inferiors.
13419 * exec.c (add_target_sections): Push exec target on all inferiors
13420 sharing the program space.
13421 (remove_target_sections): Remove the exec target from all
13422 inferiors sharing the program space.
13423 (exec_on_vfork): New.
13424 * exec.h (exec_on_vfork): Declare.
13425 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13426 Pass it down.
13427 (fbsd_nat_target::update_thread_list): Adjust.
13428 (fbsd_nat_target::resume): Adjust.
13429 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13430 down.
13431 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13432 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13433 get_thread_arch_regcache call.
13434 * fork-child.c (gdb_startup_inferior): Pass target down to
13435 startup_inferior and set_executing.
13436 * gdbthread.h (struct process_stratum_target): Forward declare.
13437 (add_thread, add_thread_silent, add_thread_with_info)
13438 (in_thread_list): Add process_stratum_target parameter.
13439 (find_thread_ptid(inferior*, ptid_t)): New overload.
13440 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13441 parameter.
13442 (all_threads()): Delete overload.
13443 (all_threads, all_non_exited_threads): Add process_stratum_target
13444 parameter.
13445 (all_threads_safe): Use brace initialization.
13446 (thread_count): Add process_stratum_target parameter.
13447 (set_resumed, set_running, set_stop_requested, set_executing)
13448 (threads_are_executing, finish_thread_state): Add
13449 process_stratum_target parameter.
13450 (switch_to_thread): Use is_current_thread.
13451 * i386-fbsd-tdep.c: Include "inferior.h".
13452 (i386fbsd_get_thread_local_address): Pass down target.
13453 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13454 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13455 have_inferiors check.
13456 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13457 (inf_ptrace_target::attach): Adjust.
13458 * infcall.c (run_inferior_call): Adjust.
13459 * infcmd.c (run_command_1): Pass target to
13460 scoped_finish_thread_state.
13461 (proceed_thread_callback): Skip inferiors with no execution.
13462 (continue_command): Rename 'all_threads' local to avoid hiding
13463 'all_threads' function. Adjust get_last_target_status call.
13464 (prepare_one_step): Adjust set_running call.
13465 (signal_command): Use user_visible_resume_target. Compare thread
13466 pointers instead of inferior_ptid.
13467 (info_program_command): Adjust to pass down target.
13468 (attach_command): Mark target's 'thread_executing' flag.
13469 (stop_current_target_threads_ns): New, factored out from ...
13470 (interrupt_target_1): ... this. Switch inferior before making
13471 target calls.
13472 * inferior-iter.h
13473 (struct all_inferiors_iterator, struct all_inferiors_range)
13474 (struct all_inferiors_safe_range)
13475 (struct all_non_exited_inferiors_range): Filter on
13476 process_stratum_target too. Remove explicit.
13477 * inferior.c (inferior::inferior): Push dummy target on target
13478 stack.
13479 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13480 Add process_stratum_target parameter, and pass it down.
13481 (have_live_inferiors): Adjust.
13482 (switch_to_inferior_and_push_target): New.
13483 (add_inferior_command, clone_inferior_command): Handle
13484 "-no-connection" parameter. Use
13485 switch_to_inferior_and_push_target.
13486 (_initialize_inferior): Mention "-no-connection" option in
13487 the help of "add-inferior" and "clone-inferior" commands.
13488 * inferior.h: Include "process-stratum-target.h".
13489 (interrupt_target_1): Use bool.
13490 (struct inferior) <push_target, unpush_target, target_is_pushed,
13491 find_target_beneath, top_target, process_target, target_at,
13492 m_stack>: New.
13493 (discard_all_inferiors): Delete.
13494 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13495 (all_inferiors, all_non_exited_inferiors): Add
13496 process_stratum_target parameter.
13497 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13498 (target_last_proc_target): New global.
13499 (follow_fork_inferior): Push target on new inferior. Pass target
13500 to add_thread_silent. Call exec_on_vfork. Handle target's
13501 reference count.
13502 (follow_fork): Adjust get_last_target_status call. Also consider
13503 target.
13504 (follow_exec): Push target on new inferior.
13505 (struct execution_control_state) <target>: New field.
13506 (user_visible_resume_target): New.
13507 (do_target_resume): Call target_async.
13508 (resume_1): Set target's threads_executing flag. Consider resume
13509 target.
13510 (commit_resume_all_targets): New.
13511 (proceed): Also consider resume target. Skip threads of inferiors
13512 with no execution. Commit resumtion in all targets.
13513 (start_remote): Pass current inferior to wait_for_inferior.
13514 (infrun_thread_stop_requested): Consider target as well. Pass
13515 thread_info pointer to clear_inline_frame_state instead of ptid.
13516 (infrun_thread_thread_exit): Consider target as well.
13517 (random_pending_event_thread): New inferior parameter. Use it.
13518 (do_target_wait): Rename to ...
13519 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13520 down.
13521 (threads_are_resumed_pending_p, do_target_wait): New.
13522 (prepare_for_detach): Adjust calls.
13523 (wait_for_inferior): New inferior parameter. Handle it. Use
13524 do_target_wait_1 instead of do_target_wait.
13525 (fetch_inferior_event): Adjust. Switch to representative
13526 inferior. Pass target down.
13527 (set_last_target_status): Add process_stratum_target parameter.
13528 Save target in global.
13529 (get_last_target_status): Add process_stratum_target parameter and
13530 handle it.
13531 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13532 (context_switch): Check inferior_ptid == null_ptid before calling
13533 inferior_thread().
13534 (get_inferior_stop_soon): Pass down target.
13535 (wait_one): Rename to ...
13536 (poll_one_curr_target): ... this.
13537 (struct wait_one_event): New.
13538 (wait_one): New.
13539 (stop_all_threads): Adjust.
13540 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13541 event's target.
13542 (switch_back_to_stepped_thread): Also consider target.
13543 (print_stop_event): Update.
13544 (normal_stop): Update. Also consider the resume target.
13545 * infrun.h (wait_for_inferior): Remove declaration.
13546 (user_visible_resume_target): New declaration.
13547 (get_last_target_status, set_last_target_status): New
13548 process_stratum_target parameter.
13549 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13550 process_stratum_target parameter, and use it.
13551 (clear_inline_frame_state (thread_info*)): New.
13552 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13553 process_stratum_target parameter.
13554 (clear_inline_frame_state (thread_info*)): Declare.
13555 * linux-fork.c (delete_checkpoint_command): Pass target down to
13556 find_thread_ptid.
13557 (checkpoint_command): Adjust.
13558 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13559 instead of just tweaking inferior_ptid.
13560 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13561 (exit_lwp): Pass target down to find_thread_ptid.
13562 (attach_proc_task_lwp_callback): Pass target down to
13563 add_thread/set_running/set_executing.
13564 (linux_nat_target::attach): Pass target down to
13565 thread_change_ptid.
13566 (get_detach_signal): Pass target down to find_thread_ptid.
13567 Consider last target status's target.
13568 (linux_resume_one_lwp_throw, resume_lwp)
13569 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13570 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13571 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13572 (linux_nat_target::async_wait_fd): New.
13573 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13574 target down.
13575 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13576 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13577 * linux-thread-db.c (struct thread_db_info::process_target): New
13578 field.
13579 (add_thread_db_info): Save target.
13580 (get_thread_db_info): New process_stratum_target parameter. Also
13581 match target.
13582 (delete_thread_db_info): New process_stratum_target parameter.
13583 Also match target.
13584 (thread_from_lwp): Adjust to pass down target.
13585 (thread_db_notice_clone): Pass down target.
13586 (check_thread_db_callback): Pass down target.
13587 (try_thread_db_load_1): Always push the thread_db target.
13588 (try_thread_db_load, record_thread): Pass target down.
13589 (thread_db_target::detach): Pass target down. Always unpush the
13590 thread_db target.
13591 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13592 target down. Always unpush the thread_db target.
13593 (find_new_threads_callback, thread_db_find_new_threads_2)
13594 (thread_db_target::update_thread_list): Pass target down.
13595 (thread_db_target::pid_to_str): Pass current inferior down.
13596 (thread_db_target::get_thread_local_address): Pass target down.
13597 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13598 target down.
13599 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13600 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13601 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13602 (procfs_init_inferior): Rename to ...
13603 (procfs_target::procfs_init_inferior): ... this and adjust.
13604 (procfs_target::create_inferior, procfs_notice_thread)
13605 (procfs_do_thread_registers): Adjust.
13606 * ppc-fbsd-tdep.c: Include "inferior.h".
13607 (ppcfbsd_get_thread_local_address): Pass down target.
13608 * proc-service.c (ps_xfer_memory): Switch current inferior and
13609 program space as well.
13610 (get_ps_regcache): Pass target down.
13611 * process-stratum-target.c
13612 (process_stratum_target::thread_address_space)
13613 (process_stratum_target::thread_architecture): Pass target down.
13614 * process-stratum-target.h
13615 (process_stratum_target::threads_executing): New field.
13616 (as_process_stratum_target): New.
13617 * ravenscar-thread.c
13618 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13619 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13620 down.
13621 * record-btrace.c (record_btrace_target::info_record): Adjust.
13622 (record_btrace_target::record_method)
13623 (record_btrace_target::record_is_replaying)
13624 (record_btrace_target::fetch_registers)
13625 (get_thread_current_frame_id, record_btrace_target::resume)
13626 (record_btrace_target::wait, record_btrace_target::stop): Pass
13627 target down.
13628 * record-full.c (record_full_wait_1): Switch to event thread.
13629 Pass target down.
13630 * regcache.c (regcache::regcache)
13631 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13632 process_stratum_target parameter and handle it.
13633 (current_thread_target): New global.
13634 (get_thread_regcache): Add process_stratum_target parameter and
13635 handle it. Switch inferior before calling target method.
13636 (get_thread_regcache): Pass target down.
13637 (get_thread_regcache_for_ptid): Pass target down.
13638 (registers_changed_ptid): Add process_stratum_target parameter and
13639 handle it.
13640 (registers_changed_thread, registers_changed): Pass target down.
13641 (test_get_thread_arch_aspace_regcache): New.
13642 (current_regcache_test): Define a couple local test_target_ops
13643 instances and use them for testing.
13644 (readwrite_regcache): Pass process_stratum_target parameter.
13645 (cooked_read_test, cooked_write_test): Pass mock_target down.
13646 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13647 (get_thread_arch_aspace_regcache): Add process_stratum_target
13648 parameter.
13649 (regcache::target): New method.
13650 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13651 (regcache::registers_changed_ptid): Add process_stratum_target
13652 parameter.
13653 (regcache::m_target): New field.
13654 (registers_changed_ptid): Add process_stratum_target parameter.
13655 * remote.c (remote_state::supports_vCont_probed): New field.
13656 (remote_target::async_wait_fd): New method.
13657 (remote_unpush_and_throw): Add remote_target parameter.
13658 (get_current_remote_target): Adjust.
13659 (remote_target::remote_add_inferior): Push target.
13660 (remote_target::remote_add_thread)
13661 (remote_target::remote_notice_new_inferior)
13662 (get_remote_thread_info): Pass target down.
13663 (remote_target::update_thread_list): Skip threads of inferiors
13664 bound to other targets. (remote_target::close): Don't discard
13665 inferiors. (remote_target::add_current_inferior_and_thread)
13666 (remote_target::process_initial_stop_replies)
13667 (remote_target::start_remote)
13668 (remote_target::remote_serial_quit_handler): Pass down target.
13669 (remote_target::remote_unpush_target): New remote_target
13670 parameter. Unpush the target from all inferiors.
13671 (remote_target::remote_unpush_and_throw): New remote_target
13672 parameter. Pass it down.
13673 (remote_target::open_1): Check whether the current inferior has
13674 execution instead of checking whether any inferior is live. Pass
13675 target down.
13676 (remote_target::remote_detach_1): Pass down target. Use
13677 remote_unpush_target.
13678 (extended_remote_target::attach): Pass down target.
13679 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13680 (remote_target::append_resumption): Pass down target.
13681 (remote_target::append_pending_thread_resumptions)
13682 (remote_target::remote_resume_with_hc, remote_target::resume)
13683 (remote_target::commit_resume): Pass down target.
13684 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13685 (remote_target::interrupt_query)
13686 (remote_target::remove_new_fork_children)
13687 (remote_target::check_pending_events_prevent_wildcard_vcont)
13688 (remote_target::remote_parse_stop_reply)
13689 (remote_target::process_stop_reply): Pass down target.
13690 (first_remote_resumed_thread): New remote_target parameter. Pass
13691 it down.
13692 (remote_target::wait_as): Pass down target.
13693 (unpush_and_perror): New remote_target parameter. Pass it down.
13694 (remote_target::readchar, remote_target::remote_serial_write)
13695 (remote_target::getpkt_or_notif_sane_1)
13696 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13697 down target.
13698 (remote_target::mourn_inferior): Pass down target. Use
13699 remote_unpush_target.
13700 (remote_target::core_of_thread)
13701 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13702 (remote_target::pid_to_exec_file)
13703 (remote_target::thread_handle_to_thread_info): Pass down target.
13704 (remote_target::async_wait_fd): New.
13705 * riscv-fbsd-tdep.c: Include "inferior.h".
13706 (riscv_fbsd_get_thread_local_address): Pass down target.
13707 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13708 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13709 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13710 Adjust.
13711 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13712 * solib-svr4.c (enable_break): Pass down target.
13713 * spu-multiarch.c (parse_spufs_run): Pass down target.
13714 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13715 * target-delegates.c: Regenerate.
13716 * target.c (g_target_stack): Delete.
13717 (current_top_target): Return the current inferior's top target.
13718 (target_has_execution_1): Refer to the passed-in inferior's top
13719 target.
13720 (target_supports_terminal_ours): Check whether the initial
13721 inferior was already created.
13722 (decref_target): New.
13723 (target_stack::push): Incref/decref the target.
13724 (push_target, push_target, unpush_target): Adjust.
13725 (target_stack::unpush): Defref target.
13726 (target_is_pushed): Return bool. Adjust to refer to the current
13727 inferior's target stack.
13728 (dispose_inferior): Delete, and inline parts ...
13729 (target_preopen): ... here. Only dispose of the current inferior.
13730 (target_detach): Hold strong target reference while detaching.
13731 Pass target down.
13732 (target_thread_name): Add assertion.
13733 (target_resume): Pass down target.
13734 (target_ops::beneath, find_target_at): Adjust to refer to the
13735 current inferior's target stack.
13736 (get_dummy_target): New.
13737 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13738 has a thread running.
13739 (initialize_targets): Rename to ...
13740 (_initialize_target): ... this.
13741 * target.h: Include "gdbsupport/refcounted-object.h".
13742 (struct target_ops): Inherit refcounted_object.
13743 (target_ops::shortname, target_ops::longname): Make const.
13744 (target_ops::async_wait_fd): New method.
13745 (decref_target): Declare.
13746 (struct target_ops_ref_policy): New.
13747 (target_ops_ref): New typedef.
13748 (get_dummy_target): Declare function.
13749 (target_is_pushed): Return bool.
13750 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13751 (all_matching_threads_iterator::all_matching_threads_iterator):
13752 Handle filter target.
13753 * thread-iter.h (struct all_matching_threads_iterator, struct
13754 all_matching_threads_range, class all_non_exited_threads_range):
13755 Filter by target too. Remove explicit.
13756 * thread.c (threads_executing): Delete.
13757 (inferior_thread): Pass down current inferior.
13758 (clear_thread_inferior_resources): Pass down thread pointer
13759 instead of ptid_t.
13760 (add_thread_silent, add_thread_with_info, add_thread): Add
13761 process_stratum_target parameter. Use it for thread and inferior
13762 searches.
13763 (is_current_thread): New.
13764 (thread_info::deletable): Use it.
13765 (find_thread_ptid, thread_count, in_thread_list)
13766 (thread_change_ptid, set_resumed, set_running): New
13767 process_stratum_target parameter. Pass it down.
13768 (set_executing): New process_stratum_target parameter. Pass it
13769 down. Adjust reference to 'threads_executing'.
13770 (threads_are_executing): New process_stratum_target parameter.
13771 Adjust reference to 'threads_executing'.
13772 (set_stop_requested, finish_thread_state): New
13773 process_stratum_target parameter. Pass it down.
13774 (switch_to_thread): Also match inferior.
13775 (switch_to_thread): New process_stratum_target parameter. Pass it
13776 down.
13777 (update_threads_executing): Reimplement.
13778 * top.c (quit_force): Pop targets from all inferior.
13779 (gdb_init): Don't call initialize_targets.
13780 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13781 Declare.
13782 (windows_add_thread, windows_delete_thread): Adjust.
13783 (get_windows_debug_event): Rename to ...
13784 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13785 * tracefile-tfile.c (tfile_target_open): Pass down target.
13786 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13787 Forward declare.
13788 (switch_to_thread): Add process_stratum_target parameter.
13789 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13790 parameter. Use it.
13791 (mi_on_resume): Pass target down.
13792 * nat/fork-inferior.c (startup_inferior): Add
13793 process_stratum_target parameter. Pass it down.
13794 * nat/fork-inferior.h (startup_inferior): Add
13795 process_stratum_target parameter.
13796 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13797
75c6c844
PA
137982020-01-10 Pedro Alves <palves@redhat.com>
13799
13800 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13801 directly. Instead find the first thread in the thread list and
13802 use switch_to_thread.
13803
78f2c40a
PA
138042020-01-10 Pedro Alves <palves@redhat.com>
13805
13806 * remote.c (remote_target::remote_add_inferior): Don't bind a
13807 process to the current inferior if the current inferior is already
13808 bound to a process.
13809
e7af6c70
TBA
138102020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13811 Pedro Alves <palves@redhat.com>
13812
13813 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13814 If no process is specified, return null_ptid instead of
13815 inferior_ptid.
13816 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13817 TARGET_WAITKIND_SIGNALLED with no pid.
13818
31ba933e
PA
138192020-01-10 Pedro Alves <palves@redhat.com>
13820
13821 * remote.c (first_remote_resumed_thread): New.
13822 (remote_target::wait_as): Use it as default event_ptid instead of
13823 inferior_ptid.
13824
735fc2ca
PA
138252020-01-10 Pedro Alves <palves@redhat.com>
13826
13827 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13828
c17e02e1
PA
138292020-01-10 Pedro Alves <palves@redhat.com>
13830
13831 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13832 not -1.
13833
ab1ddbcf
PA
138342020-01-10 Pedro Alves <palves@redhat.com>
13835
13836 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13837 ptid to get_last_target_status.
13838 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13839 ptid to get_last_target_status.
13840 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13841 get_last_target_status.
13842 (info_program_command): Don't pass a target_waitstatus to
13843 get_last_target_status.
13844 * infrun.c (init_wait_for_inferior): Use
13845 nullify_last_target_wait_ptid.
13846 (get_last_target_status): Handle nullptr arguments.
13847 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13848 (print_stop_event): Don't pass a ptid to get_last_target_status.
13849 (normal_stop): Don't pass a ptid to get_last_target_status.
13850 * infrun.h (get_last_target_status, set_last_target_status): Move
13851 comments here and update.
13852 (nullify_last_target_wait_ptid): Declare.
13853 * linux-fork.c (fork_load_infrun_state): Remove local extern
13854 declaration of nullify_last_target_wait_ptid.
13855 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13856 to get_last_target_status.
13857
f3f8ece4
PA
138582020-01-10 Pedro Alves <palves@redhat.com>
13859
13860 * gdbthread.h (scoped_restore_current_thread)
13861 <dont_restore, restore, m_dont_restore>: Declare.
13862 * thread.c (thread_alive): Add assertion. Return bool.
13863 (switch_to_thread_if_alive): New.
13864 (prune_threads): Switch inferior/thread.
13865 (print_thread_info_1): Switch thread before calling target methods.
13866 (scoped_restore_current_thread::restore): New, factored out from
13867 ...
13868 (scoped_restore_current_thread::~scoped_restore_current_thread):
13869 ... this.
13870 (scoped_restore_current_thread::scoped_restore_current_thread):
13871 Add assertion.
13872 (thread_apply_all_command, thread_select): Use
13873 switch_to_thread_if_alive.
13874 * infrun.c (proceed, restart_threads, handle_signal_stop)
13875 (switch_back_to_stepped_thread): Switch current thread before
13876 calling target methods.
13877
db2d40f7
PA
138782020-01-10 Pedro Alves <palves@redhat.com>
13879
13880 * inferior.c (switch_to_inferior_no_thread): New function,
13881 factored out from ...
13882 (inferior_command): ... here.
13883 * inferior.h (switch_to_inferior_no_thread): Declare.
13884 * mi/mi-main.c (run_one_inferior): Use
13885 switch_to_inferior_no_thread.
13886
bd420a2d
PA
138872020-01-10 Pedro Alves <palves@redhat.com>
13888
13889 * infcmd.c (kill_command): Remove dead code.
13890
ddf5db90
PA
138912020-01-10 Pedro Alves <palves@redhat.com>
13892
13893 * remote.c (remote_target::mourn_inferior): No longer check
13894 whether the target is running.
13895
5018ce90
PA
138962020-01-10 Pedro Alves <palves@redhat.com>
13897
13898 * corelow.c (core_target::has_execution): Change parameter type to
13899 inferior pointer.
13900 * inferior.c (number_of_live_inferiors): Use
13901 inferior::has_execution instead of target_has_execution_1.
13902 * inferior.h (inferior::has_execution): New.
13903 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13904 inferior::has_execution instead of target_has_execution_1.
13905 * process-stratum-target.c
13906 (process_stratum_target::has_execution): Change parameter type to
13907 inferior pointer. Check the inferior's PID instead of
13908 inferior_ptid.
13909 * process-stratum-target.h
13910 (process_stratum_target::has_execution): Change parameter type to
13911 inferior pointer.
13912 * record-full.c (record_full_core_target::has_execution): Change
13913 parameter type to inferior pointer.
13914 * target.c (target_has_execution_1): Change parameter type to
13915 inferior pointer.
13916 (target_has_execution_current): Adjust.
13917 * target.h (target_ops::has_execution): Change parameter type to
13918 inferior pointer.
13919 (target_has_execution_1): Change parameter type to inferior
13920 pointer. Change return type to bool.
13921 * tracefile.h (tracefile_target::has_execution): Change parameter
13922 type to inferior pointer.
13923
74375d18
PA
139242020-01-10 Pedro Alves <palves@redhat.com>
13925
13926 * exceptions.c (print_flush): Remove current_top_target() check.
13927
acdf84a6
PA
139282020-01-10 Pedro Alves <palves@redhat.com>
13929
13930 * remote.c (show_remote_exec_file): Show the current inferior's
13931 exec-file instead of the command variable's value.
13932
ec506636
PA
139332020-01-10 Pedro Alves <palves@redhat.com>
13934
13935 * record-full.c (record_full_resume_ptid): New global.
13936 (record_full_target::resume): Set it.
13937 (record_full_wait_1): Use record_full_resume_ptid instead of
13938 inferior_ptid.
13939
873657b9
PA
139402020-01-10 Pedro Alves <palves@redhat.com>
13941
13942 * gdbthread.h (scoped_restore_current_thread)
13943 <dont_restore, restore, m_dont_restore>: Declare.
13944 * thread.c (thread_alive): Add assertion. Return bool.
13945 (switch_to_thread_if_alive): New.
13946 (prune_threads): Switch inferior/thread.
13947 (print_thread_info_1): Switch thread before calling target methods.
13948 (scoped_restore_current_thread::restore): New, factored out from
13949 ...
13950 (scoped_restore_current_thread::~scoped_restore_current_thread):
13951 ... this.
13952 (scoped_restore_current_thread::scoped_restore_current_thread):
13953 Add assertion.
13954 (thread_apply_all_command, thread_select): Use
13955 switch_to_thread_if_alive.
13956
7f0ae84c
GB
139572020-01-10 George Barrett <bob@bob131.so>
13958
13959 * stap-probe.c (stap_modify_semaphore): Don't check for null
13960 semaphores.
13961 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13962 for null semaphores.
13963
f5a7c406
AB
139642020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13965
13966 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13967 all source windows, and maintain horizontal scroll status while
13968 doing so.
13969
9ae6bf64
TT
139702020-01-09 Tom Tromey <tom@tromey.com>
13971
13972 PR tui/18932:
13973 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13974 update_source_window, not print_source_lines.
13975
b2efe70c
AB
139762020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13977
13978 * tui/tui.c (tui_enable): Register tui hooks after calling
13979 tui_display_main.
13980
5f23a082
CB
139812020-01-09 Christian Biesinger <cbiesinger@google.com>
13982
13983 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13984
3061113b
SM
139852020-01-08 Simon Marchi <simon.marchi@efficios.com>
13986
13987 * thread.c (print_thread_info_1): Fix indentation.
13988
57d75002
CB
139892020-01-09 Christian Biesinger <cbiesinger@google.com>
13990
13991 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13992 unique_xmalloc_ptr outside the if to always free the demangled name.
13993
6a053cb1
TT
139942020-01-08 Tom Tromey <tromey@adacore.com>
13995
13996 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13997 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13998 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13999 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14000 Remove.
14001 (section_offsets): New typedef.
14002 * symtab.c (fixup_section, get_msymbol_address): Update.
14003 * symmisc.c (dump_msymbols): Update.
14004 * symfile.h (relative_addr_info_to_section_offsets)
14005 (symfile_map_offsets_to_segments): Update.
14006 * symfile.c (build_section_addr_info_from_objfile)
14007 (init_objfile_sect_indices): Update.
14008 (struct place_section_arg): Change type of "offsets".
14009 (place_section): Update.
14010 (relative_addr_info_to_section_offsets): Change type of
14011 "section_offsets". Remove "num_sections" parameter.
14012 (default_symfile_offsets, syms_from_objfile_1)
14013 (set_objfile_default_section_offset): Update.
14014 (reread_symbols): No need to preserve section offsets by hand.
14015 (symfile_map_offsets_to_segments): Change type of "offsets".
14016 * stap-probe.c (relocate_address): Update.
14017 * stabsread.h (process_one_symbol): Update.
14018 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14019 (solib_target_relocate_section_addresses): Update.
14020 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14021 Update.
14022 * solib-frv.c (frv_relocate_main_executable): Update.
14023 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14024 * solib-aix.c (solib_aix_get_section_offsets): Change return
14025 type.
14026 (solib_aix_solib_create_inferior_hook): Update.
14027 * remote.c (remote_target::get_offsets): Update.
14028 * psymtab.c (find_pc_sect_psymtab): Update.
14029 * psympriv.h (struct partial_symbol) <address, text_low,
14030 text_high>: Update.
14031 * objfiles.h (obj_section_offset): Update.
14032 (struct objfile) <section_offsets>: Change type.
14033 <num_sections>: Remove.
14034 (objfile_relocate): Update.
14035 * objfiles.c (entry_point_address_query): Update
14036 (relocate_one_symbol): Change type of "section_offsets".
14037 (objfile_relocate1, objfile_relocate1): Change type of
14038 "new_offsets".
14039 (objfile_rebase1): Update.
14040 * mipsread.c (mipscoff_symfile_read): Update.
14041 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14042 parameter.
14043 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14044 (parse_external, psymtab_to_symtab_1): Update.
14045 * machoread.c (macho_symfile_offsets): Update.
14046 * ia64-tdep.c (ia64_find_unwind_table): Update.
14047 * hppa-tdep.c (read_unwind_info): Update.
14048 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14049 * dwarf2read.c (create_addrmap_from_index)
14050 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14051 (process_psymtab_comp_unit_reader, add_partial_symbol)
14052 (add_partial_subprogram, process_full_comp_unit)
14053 (read_file_scope, read_func_scope, read_lexical_block_scope)
14054 (read_call_site_scope, dwarf2_rnglists_process)
14055 (dwarf2_ranges_process, dwarf2_ranges_read)
14056 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14057 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14058 Update.
14059 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14060 Update.
14061 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14062 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14063 (process_one_symbol): Change type of "section_offsets".
14064 * ctfread.c (get_objfile_text_range): Update.
14065 * coffread.c (coff_symtab_read, enter_linenos)
14066 (process_coff_symbol): Update.
14067 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14068 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14069
456e800a
TT
140702020-01-08 Tom Tromey <tromey@adacore.com>
14071
14072 * dwarf2read.c (parse_macro_definition): Use std::string.
14073 (parse_macro_definition): Likewise.
14074
6dfa2fc2
TT
140752020-01-08 Tom Tromey <tromey@adacore.com>
14076
14077 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14078 (ATTR_ALLOC_CHUNK): Remove.
14079
421d1616
TT
140802020-01-08 Tom Tromey <tromey@adacore.com>
14081
14082 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14083
43816ebc
TT
140842020-01-08 Tom Tromey <tromey@adacore.com>
14085
14086 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14087 (dwarf2_compute_name, open_dwo_file): Likewise.
14088 (process_enumeration_scope): Use std::vector.
14089 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14090 (partial_die_info::fixup, dwarf2_start_subfile)
14091 (guess_full_die_structure_name, dwarf2_name): Likewise.
14092 (determine_prefix): Update.
14093 (guess_full_die_structure_name): Make return type const.
14094 (partial_die_full_name): Return unique_xmalloc_ptr.
14095 (DW_FIELD_ALLOC_CHUNK): Remove.
14096
4212d509
TT
140972020-01-07 Tom Tromey <tromey@adacore.com>
14098
14099 PR build/24937:
14100 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14101
06a6207a
JT
141022020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14103
14104 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14105
153d79c4
AB
141062020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14107
14108 * stack.c (print_frame_info): Move disassemble_next_line code
14109 inside source_print block.
14110
66182876
EZ
141112020-01-06 Eli Zaretskii <eliz@gnu.org>
14112
14113 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14114 gdb/signals.h, as we are now using native signal symbols.
14115
cbfa8581
SV
141162020-01-06 Shahab Vahedi <shahab@synopsys.com>
14117
14118 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14119 overflow by an early check of content vs threshold.
aac66a4c 14120 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14121 Likewise.
14122
3f602821
EZ
141232020-01-06 Eli Zaretskii <eliz@gnu.org>
14124
14125 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14126
a08c904d
JT
141272020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14128
14129 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14130 export table if no section contains it's RVA.
14131
89a65580
EZ
141322020-01-06 Eli Zaretskii <eliz@gnu.org>
14133
14134 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14135
8b7fcda2
HD
141362020-01-06 Hannes Domani <ssbssa@yahoo.de>
14137
14138 * source.c (print_source_lines_base): Set last_line_listed.
14139
a61b4f69
SV
141402020-01-06 Shahab Vahedi <shahab@synopsys.com>
14141
14142 * tui/tui-disasm.c: Remove trailing spaces.
14143
559e7e50
EZ
141442020-01-06 Eli Zaretskii <eliz@gnu.org>
14145 Pedro Alves <palves@redhat.com>
14146
14147 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14148 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14149 (windows_gdb_signal_to_target): New function, uses the above
14150 enumeration to convert GDB internal signal codes to equivalent
14151 Windows codes.
14152 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14153 * windows-nat.c: Include "gdb_wait.h".
14154 (get_windows_debug_event): Extract the fatal exception from the
14155 exit status and convert to the equivalent Posix signal number.
14156 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14157 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14158 * gdbsupport/gdb_wait.c: New file, implements
14159 windows_status_to_termsig.
14160 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14161 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14162
f2302a34
AB
141632020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14164
14165 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14166 show_layout.
14167
6a5206eb
LM
141682020-01-05 Luis Machado <luis.machado@linaro.org>
14169
14170 * aarch64-linux-nat.c
14171 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14172 and bfd_mach_aarch64.
14173
6ec1d75e
PW
141742020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14175
14176 * ui-file.c (stdio_file::can_emit_style_escape)
14177 (tee_file::can_emit_style_escape): Ensure style is used also on
14178 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14179 to gdb_stdout.
14180 * main.c (set_gdb_data_directory): Use file style to output the
14181 warning that the given pathname is not a directory.
14182 * top.c (show_history_filename, gdb_safe_append_history)
14183 (show_gdb_datadir): Use file style.
14184
44f81a76
HD
141852020-01-03 Hannes Domani <ssbssa@yahoo.de>
14186
14187 * solib-target.c (struct lm_info_target):
14188 Change offsets to be a unique_xmalloc_ptr.
14189 (solib_target_relocate_section_addresses): Update.
14190
25057eb0
HD
141912020-01-03 Hannes Domani <ssbssa@yahoo.de>
14192
14193 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14194
6e2118f5
BE
141952020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14196
14197 * MAINTAINERS (Write After Approval): Add myself.
14198
8133c7dc
LM
141992020-01-02 Luis Machado <luis.machado@linaro.org>
14200
14201 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14202 Cell BE architecture.
14203 * target.h (struct target_ops) <thread_architecture>: Likewise.
14204
48189bec
HD
142052020-01-01 Hannes Domani <ssbssa@yahoo.de>
14206
14207 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14208
ead1063b
HD
142092020-01-01 Hannes Domani <ssbssa@yahoo.de>
14210
14211 * MAINTAINERS (Write After Approval): Add myself.
14212
e5d78223
JB
142132020-01-01 Joel Brobecker <brobecker@adacore.com>
14214
14215 * gdbarch.sh: Update copyright year range of generated files.
14216
b811d2c2
JB
142172020-01-01 Joel Brobecker <brobecker@adacore.com>
14218
14219 Update copyright year range in all GDB files.
14220
5f4def5c
JB
142212020-01-01 Joel Brobecker <brobecker@adacore.com>
14222
14223 * copyright.py: Convert to Python 3.
14224
51fd4002
JB
142252020-01-01 Joel Brobecker <brobecker@adacore.com>
14226
14227 * copyright.py: Adapt after move of gnulib directory from gdb
14228 directory to toplevel directory.
14229
5fb651f2
JB
142302020-01-01 Joel Brobecker <brobecker@adacore.com>
14231
14232 * copyright.py (main): Exit if run from the wrong directory.
14233
5dd8bf88
JB
142342020-01-01 Joel Brobecker <brobecker@adacore.com>
14235
14236 * top.c (print_gdb_version): Change copyright year to 2020.
14237
9f71dacb 142382020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14239
9f71dacb 14240 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14241
9f71dacb 14242For older changes see ChangeLog-2019.
c906108c
SS
14243\f
14244Local Variables:
14245mode: change-log
14246left-margin: 8
14247fill-column: 74
14248version-control: never
57da7796 14249coding: utf-8
c906108c 14250End: