]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Use new/delete for do_module_cleanup
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0dbf6ee6
TT
12020-09-23 Tom Tromey <tom@tromey.com>
2
3 * compile/compile-object-run.c (struct do_module_cleanup): Add
4 constructor, destructor.
5 <objfile_name_string>: Don't use struct hack.
6 (do_module_cleanup): Use delete.
7 (compile_object_run): Use new.
8
ebe824f5
TT
92020-09-23 Tom Tromey <tom@tromey.com>
10
11 * compile/compile-cplus-types.c
12 (compile_cplus_convert_struct_or_union): Use std::vector.
13 (compile_cplus_convert_func): Likewise.
14 * compile/compile-c-types.c (convert_func): Use std::vector.
15
5dd918d9
TT
162020-09-21 Tom Tromey <tromey@adacore.com>
17
18 * sparc-tdep.c (sparc32_skip_prologue): Use
19 skip_prologue_using_sal.
20
5486c517
TT
212020-09-19 Tom Tromey <tom@tromey.com>
22
23 * symfile.c (add_section_size_callback): Remove.
24 (load_one_section): Rename from load_section_callback. Change
25 parameters.
26 (generic_load): Use foreach.
27
8a6bb1d1
TT
282020-09-19 Tom Tromey <tom@tromey.com>
29
30 * exec.c (add_to_section_table): Remove.
31 (build_section_table): Use foreach.
32
08f93a1a
TT
332020-09-19 Tom Tromey <tom@tromey.com>
34
35 * elfread.c (elf_locate_sections): Change parameters.
36 (elf_symfile_read): Use foreach.
37
03cd72b8
TT
382020-09-19 Tom Tromey <tom@tromey.com>
39
40 * cli/cli-dump.c (struct callback_data): Remove.
41 (restore_one_section): Rename from restore_section_callback.
42 Change parameters.
43 (restore_binary_file): Change parameters.
44 (restore_command): Use foreach.
45
f4f2b85f
TT
462020-09-19 Tom Tromey <tom@tromey.com>
47
48 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
49 (gcore_copy_callback): Likewise.
50 (gcore_memory_sections): Use foreach.
51
b35c1d1c
TT
522020-09-19 Tom Tromey <tom@tromey.com>
53
54 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
55 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
56 parameters.
57 (generic_elf_osabi_sniffer): Use foreach.
58 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
59 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
60
5bb6e9dd
TT
612020-09-19 Tom Tromey <tom@tromey.com>
62
63 * dwarf2/read.c (locate_dwz_sections): Change parameters.
64 (dwarf2_get_dwz_file): Use foreach.
65 (dwarf2_locate_dwo_sections): Change parameters.
66 (open_and_init_dwo_file): Use foreach.
67 (dwarf2_locate_common_dwp_sections): Change parameters.
68 (open_and_init_dwp_file): Use foreach.
69
ad7277da
TT
702020-09-19 Tom Tromey <tom@tromey.com>
71
72 * symfile.h: (find_lowest_section): Don't declare.
73 * symfile.c (find_lowest_section): Now static. Change
74 parameters.
75 (struct place_section_arg): Remove.
76 (place_section): Change parameters.
77 (addr_info_make_relative): Use foreach.
78 (symfile_dummy_outputs): Remove.
79 (default_symfile_relocate): Use foreach.
80
cb814f2e
TT
812020-09-19 Tom Tromey <tom@tromey.com>
82
83 * objfiles.c (add_to_objfile_sections): Rename from
84 add_to_objfile_sections_full.
85 (add_to_objfile_sections): Remove.
86 (build_objfile_section_table): Use foreach.
87
3cabfd26
TT
882020-09-19 Tom Tromey <tom@tromey.com>
89
90 * stap-probe.c (get_stap_base_address_1): Remove.
91 (get_stap_base_address): Use foreach.
92
1ce51eb5
TT
932020-09-19 Tom Tromey <tom@tromey.com>
94
95 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
96 parameters.
97 (gdb_bfd_close_or_warn): Use foreach.
98
a190fabb
TT
992020-09-19 Tom Tromey <tom@tromey.com>
100
101 * corelow.c (add_to_thread_list): Change parameters.
102 (core_target_open): Use foreach.
103
cafb0d81
TT
1042020-09-19 Tom Tromey <tom@tromey.com>
105
106 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
107 existing function.
108
c8d5abea
AB
1092020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
110
111 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
112 for arrays.
113
6d816919
AB
1142020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
115
116 * eval.c: Remove 'f-lang.h' include.
117 (value_f90_subarray): Moved to f-lang.c.
118 (eval_call): Renamed to...
119 (evaluate_subexp_do_call): ...this, is no longer static, header
120 comment moved into header file.
121 (evaluate_funcall): Update call to eval_call.
122 (skip_undetermined_arglist): Moved to f-lang.c.
123 (fortran_value_subarray): Likewise.
124 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
125 moved to evaluate_subexp_f.
126 (calc_f77_array_dims): Moved to f-lang.c
127 * expprint.c (print_subexp_funcall): New function.
128 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
129 moved to print_subexp_f, OP_FUNCALL uses new function.
130 (dump_subexp_body_funcall): New function.
131 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
132 moved to dump_subexp_f, OP_FUNCALL uses new function.
133 * expression.h (evaluate_subexp_do_call): Declare.
134 * f-lang.c (value_f90_subarray): Moved from eval.c.
135 (skip_undetermined_arglist): Likewise.
136 (calc_f77_array_dims): Likewise.
137 (fortran_value_subarray): Likewise.
138 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
139 (operator_length_f): Likewise.
140 (print_subexp_f): Likewise.
141 (dump_subexp_body_f): Likewise.
142 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
143 declaration of this operation to here.
144 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
145 support moved to operator_length_f.
146 * parser-defs.h (dump_subexp_body_funcall): Declare.
147 (print_subexp_funcall): Declare.
148 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
149 fortran-operator.def.
150
8c37706a
AB
1512020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
152
153 * eval.c (fortran_value_subarray): New function, content is taken
154 from...
155 (evaluate_subexp_standard): ...here, in two places. Now arrays
156 and strings both call the new function.
157 (calc_f77_array_dims): Add header comment, handle strings.
158
14f9473c
VC
1592020-09-18 Victor Collod <vcollod@nvidia.com>
160
161 PR gdb/26635
162 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
163 (i386_analyze_prologue): Call i386_skip_endbr.
164
b60cea74
TT
1652020-09-18 Tom Tromey <tromey@adacore.com>
166
167 * windows-nat.c (struct windows_nat_target) <wait>: Update.
168 (windows_nat_target::wait): Update.
169 * target/wait.h (enum target_wait_flag): New. Use
170 DEF_ENUM_FLAGS_TYPE.
171 * target/target.h (target_wait): Change type of options.
172 * target.h (target_options_to_string, default_target_wait):
173 Update.
174 (struct target_ops) <wait>: Change type of options.
175 * target.c (target_wait, default_target_wait, do_option): Change
176 type of "options".
177 (target_options_to_string): Likewise.
178 * target-delegates.c: Rebuild.
179 * target-debug.h (target_debug_print_target_wait_flags): Rename
180 from target_debug_print_options.
181 * sol-thread.c (class sol_thread_target) <wait>: Update.
182 (sol_thread_target::wait): Update.
183 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
184 (rs6000_nat_target::wait): Update.
185 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
186 Update.
187 (remote_target::wait_ns, remote_target::wait_as): Change type of
188 "options".
189 (remote_target::wait): Update.
190 * remote-sim.c (struct gdbsim_target) <wait>: Update.
191 (gdbsim_target::wait): Update.
192 * record-full.c (class record_full_base_target) <wait>: Update.
193 (record_full_wait_1): Change type of "options".
194 (record_full_base_target::wait): Update.
195 * record-btrace.c (class record_btrace_target) <wait>: Update.
196 (record_btrace_target::wait): Update.
197 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
198 Update.
199 (ravenscar_thread_target::wait): Update.
200 * procfs.c (class procfs_target) <wait>: Update.
201 (procfs_target::wait): Update.
202 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
203 * obsd-nat.c (obsd_nat_target::wait): Update.
204 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
205 (nto_procfs_target::wait): Update.
206 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
207 * nbsd-nat.c (nbsd_wait): Change type of "options".
208 (nbsd_nat_target::wait): Update.
209 * linux-thread-db.c (class thread_db_target) <wait>: Update.
210 (thread_db_target::wait): Update.
211 * linux-nat.h (class linux_nat_target) <wait>: Update.
212 * linux-nat.c (linux_nat_target::wait): Update.
213 (linux_nat_wait_1): Update.
214 * infrun.c (do_target_wait_1, do_target_wait): Change type of
215 "options".
216 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
217 * inf-ptrace.c (inf_ptrace_target::wait): Update.
218 * go32-nat.c (struct go32_nat_target) <wait>: Update.
219 (go32_nat_target::wait): Update.
220 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
221 * gnu-nat.c (gnu_nat_target::wait): Update.
222 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
223 * fbsd-nat.c (fbsd_nat_target::wait): Update.
224 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
225 * darwin-nat.c (darwin_nat_target::wait): Update.
226 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
227 (bsd_uthread_target::wait): Update.
228 * aix-thread.c (class aix_thread_target) <wait>: Update.
229 (aix_thread_target::wait): Update.
230
0295dde6
AB
2312020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
232
233 * compile/compile-object-run.c (create_copied_type_recursive): New
234 function.
235 (compile_object_run): Use new function.
236
d3483b43
JT
2372020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
238
239 * NEWS: Mention x86_64 Cygwin core file support.
240
e7d612ad
JT
2412020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
242
243 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
244 (core_process_module_section): Handle NOTE_INFO_MODULE64.
245
aff9d387
JT
2462020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
247
62a5151b
JT
248 * windows-tdep.h: Add prototypes.
249 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
250 (i386_windows_core_pid_to_str): Move and rename ...
251 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
252 (windows_core_pid_to_str): ... and here.
253 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
254
2552020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
256 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
257 (amd64_windows_init_abi_common): ... and register.
258
7d155da3
JT
2592020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
260
261 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
262 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
263
e8ef12b9
PA
2642020-09-18 Pedro Alves <pedro@palves.net>
265
266 PR gdb/26631
267 * thread.c (thread_find_command): Switch inferior before calling
268 target methods.
269
c1e1314d
TT
2702020-09-17 Tom Tromey <tromey@adacore.com>
271
272 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
273 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
274 (tdesc_arch_data_up): New typedef.
275 (tdesc_use_registers, tdesc_data_alloc): Update.
276 (tdesc_data_cleanup): Don't declare.
277 * target-descriptions.c (tdesc_data_alloc): Return a
278 tdesc_arch_data_up.
279 (tdesc_arch_data_deleter::operator()): Rename from
280 tdesc_data_cleanup. Change argument type.
281 (tdesc_use_registers): Change early_data to an rvalue reference.
282 (tdesc_use_registers): Don't use delete.
283 * sparc-tdep.c (sparc32_gdbarch_init): Update.
284 * s390-tdep.c (s390_gdbarch_init): Update.
285 * rx-tdep.c (rx_gdbarch_init): Update.
286 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
287 * riscv-tdep.c (riscv_gdbarch_init): Update.
288 * or1k-tdep.c (or1k_gdbarch_init): Update.
289 * nios2-tdep.c (nios2_gdbarch_init): Update.
290 * nds32-tdep.c (nds32_gdbarch_init): Update.
291 * mips-tdep.c (mips_gdbarch_init): Update.
292 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
293 * m68k-tdep.c (m68k_gdbarch_init): Update.
294 * i386-tdep.c (i386_gdbarch_init): Update.
295 * arm-tdep.c (arm_gdbarch_init): Update.
296 * arc-tdep.c (arc_tdesc_init): Update.
297 (arc_gdbarch_init): Update.
298 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
299
0363df3d
HD
3002020-09-17 Hannes Domani <ssbssa@yahoo.de>
301
302 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
303 for WOW64 processes.
304
280a9412
TT
3052020-09-17 Tom Tromey <tom@tromey.com>
306
307 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
308
6108fd18
TT
3092020-09-17 Tom Tromey <tom@tromey.com>
310
311 * value.c (preserve_values): Update.
312 * python/py-type.c (save_objfile_types): Update.
313 * guile/scm-type.c (save_objfile_types): Update.
314 * gdbtypes.h (create_copied_types_hash): Return htab_up.
315 * gdbtypes.c (create_copied_types_hash): Return htab_up.
316 * compile/compile-object-run.c (compile_object_run): Update.
317
fa9b1164
TT
3182020-09-17 Tom Tromey <tom@tromey.com>
319
320 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
321 Remove.
322 <m_table>: Now htab_up.
323 * typeprint.c (typedef_hash_table::recursively_update)
324 (typedef_hash_table::add_template_parameters)
325 (typedef_hash_table::typedef_hash_table): Update.
326 (typedef_hash_table::~typedef_hash_table): Remove.
327 (typedef_hash_table::typedef_hash_table)
328 (typedef_hash_table::find_global_typedef)
329 (typedef_hash_table::find_typedef): Update.
330
eb53f105
TT
3312020-09-17 Tom Tromey <tom@tromey.com>
332
333 * target-descriptions.c (tdesc_use_registers): Use htab_up.
334
7a8a5d47
TT
3352020-09-17 Tom Tromey <tom@tromey.com>
336
337 * linespec.c (class decode_compound_collector)
338 <~decode_compound_collector>: Remove.
339 <m_unique_syms>: Now htab_up.
340 (decode_compound_collector::operator ()): Update.
341 (class symtab_collector) <~symtab_collector>: Remove.
342 <m_symtab_table>: Now htab_up.
343 (symtab_collector::operator ()): Update.
344
99032cfc
TT
3452020-09-17 Tom Tromey <tom@tromey.com>
346
347 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
348 (filename_seen_cache::clear): Update.
349 (~filename_seen_cache): Remove.
350 (filename_seen_cache::seen): Update.
351 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
352 htab_up.
353 <~filename_seen_cache>: Remove.
354 <traverse>: Update.
355
32580f6d
TT
3562020-09-17 Tom Tromey <tom@tromey.com>
357
358 * completer.c (completion_tracker::discard_completions)
359 (completion_tracker::~completion_tracker)
360 (completion_tracker::maybe_add_completion)
361 (completion_tracker::remove_completion)
362 (completion_tracker::recompute_lowest_common_denominator)
363 (completion_tracker::build_completion_result): Update.
364 * completer.h (class completion_tracker) <have_completions>:
365 Update.
366 <m_entries_hash>: Now htab_up.
367
c1fb9836
TT
3682020-09-17 Tom Tromey <tom@tromey.com>
369
370 * breakpoint.c (ambiguous_names_p): Use htab_up.
371
88f07206
TT
3722020-09-17 Tom Tromey <tom@tromey.com>
373
374 * auto-load.c (struct auto_load_pspace_info)
375 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
376 <loaded_script_files, loaded_script_texts>: Change type to
377 htab_up.
378 (~auto_load_pspace_info) Remove.
379 (init_loaded_scripts_info, maybe_add_script_file)
380 (maybe_add_script_text, auto_load_info_scripts): Update.
381
9519b2ee
TT
3822020-09-17 Tom Tromey <tromey@adacore.com>
383
384 * c-exp.y (name_obstack): Now static.
385
d2cd4113
CC
3862020-09-17 Chungyi Chi <demonic@csie.io>
387
388 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
389
b650a282
SM
3902020-09-16 Simon Marchi <simon.marchi@efficios.com>
391
392 * breakpoint.h (init_catchpoint): Change int parameter to bool.
393 (add_solib_catchpoint): Likewise.
394 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
395 to bool.
396 (add_solib_catchpoint): Change int parameter/variable to bool.
397 (catch_load_or_unload): Likewise.
398 (init_catchpoint): Likewise.
399 (create_fork_vfork_event_catchpoint): Likewise.
400 (catch_fork_command_1): Likewise.
401 (catch_exec_command_1): Likewise.
402
4d0bcfcf
SM
4032020-09-16 Simon Marchi <simon.marchi@efficios.com>
404
405 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
406 Change instance_flags to m_instance_flags.
407
fe830662
TT
4082020-09-16 Tom Tromey <tromey@adacore.com>
409
410 PR gdb/26598:
411 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
412
fe5ddfc3
JB
4132020-09-16 John Baldwin <jhb@FreeBSD.org>
414
415 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
416 PL_FLAG_EXEC.
417 (fbsd_nat_target::insert_exec_catchpoint)
418 (fbsd_nat_target::remove_exec_catchpoint): Always define.
419 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
420 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
421
e911c666
JB
4222020-09-16 John Baldwin <jhb@FreeBSD.org>
423
424 * configure.ac: Remove check for kinfo_getvmmap().
425 * configure, config.in: Regenerate.
426 * fbsd-nat.c (fbsd_read_mapping): Remove
427 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
428 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
429 kinfo_get_vmmap() are always present.
430
1f17d372
JB
4312020-09-16 John Baldwin <jhb@FreeBSD.org>
432
433 * fbsd-nat.c: Always include support for
434 TARGET_OBJECT_SIGNAL_INFO.
435
bcb1da7f
JB
4362020-09-16 John Baldwin <jhb@FreeBSD.org>
437
438 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
439 sysctl and remove procfs fallback.
440
5515f729
JB
4412020-09-16 John Baldwin <jhb@FreeBSD.org>
442
443 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
444 * fbsd-nat.h: Likewise.
445
da1df1db
TBA
4462020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
447
448 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
449 argument.
450
0e25e767
AB
4512020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
452
453 * ada-lang.c (ada_language_data): Delete.
454 (ada_language): Remove references to ada_language_data.
455 * c-lang.c (c_language_data): Delete.
456 (c_language): Remove references to c_language_data.
457 (cplus_language_data): Delete.
458 (cplus_language): Remove references to cplus_language_data.
459 (asm_language_data): Delete.
460 (asm_language): Remove references to asm_language_data.
461 (minimal_language_data): Delete.
462 (minimal_language): Remove references to minimal_language_data.
463 * d-lang.c (d_language_data): Delete.
464 (d_language): Remove references to d_language_data.
465 * f-lang.c (f_language_data): Delete.
466 (f_language): Remove references to f_language_data.
467 * go-lang.c (go_language_data): Delete.
468 (go_language): Remove references to go_language_data.
469 * language.c (unknown_language_data): Delete.
470 (unknown_language): Remove references to unknown_language_data.
471 (auto_language_data): Delete.
472 (auto_language): Remove references to auto_language_data.
473 * language.h (language_data): Delete struct.
474 (language_defn): No longer inherit from language_data.
475 * m2-lang.c (m2_language_data): Delete.
476 (m2_language): Remove references to m2_language_data.
477 * objc-lang.c (objc_language_data): Delete.
478 (objc_language): Remove references to objc_language_data.
479 * opencl-lang.c (opencl_language_data): Delete.
480 (opencl_language): Remove references to opencl_language_data.
481 * p-lang.c (pascal_language_data): Delete.
482 (pascal_language): Remove references to pascal_language_data.
483 * rust-lang.c (rust_language_data): Delete.
484 (rust_language): Remove references to rust_language_data.
485
b7c6e27d
AB
4862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
487
488 * ada-lang.c (ada_language_data): Remove la_op_print_tab
489 initializer.
490 (ada_language::opcode_print_table): New member function.
491 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
492 (c_language::opcode_print_table): New member function.
493 (cplus_language_data): Remove la_op_print_tab initializer.
494 (cplus_language::opcode_print_table): New member function.
495 (asm_language_data): Remove la_op_print_tab initializer.
496 (asm_language::opcode_print_table): New member function.
497 (minimal_language_data): Remove la_op_print_tab initializer.
498 (minimal_language::opcode_print_table): New member function.
499 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
500 (d_language::opcode_print_table): New member function.
501 * expprint.c (print_subexp_standard): Update call to
502 opcode_print_table.
503 (op_string): Likewise.
504 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
505 (f_language::opcode_print_table): New member function.
506 * go-lang.c (go_language_data): Remove la_op_print_tab
507 initializer.
508 (go_language::opcode_print_table): New member function.
509 * language.c (unknown_language_data): Remove la_op_print_tab
510 initializer.
511 (unknown_language::opcode_print_table): New member function.
512 (auto_language_data): Remove la_op_print_tab initializer.
513 (auto_language::opcode_print_table): New member function.
514 * language.h (language_data): Remove la_op_print_tab field.
515 (language_defn::opcode_print_table): Declare new member function.
516 * m2-lang.c (m2_language_data): Remove la_op_print_tab
517 initializer.
518 (m2_language::opcode_print_table): New member function.
519 * objc-lang.c (objc_language_data): Remove la_op_print_tab
520 initializer.
521 (objc_language::opcode_print_table): New member function.
522 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
523 initializer.
524 (opencl_language::opcode_print_table): New member function.
525 * p-lang.c (pascal_language_data): Remove la_op_print_tab
526 initializer.
527 (pascal_language::opcode_print_table): New member function.
528 * rust-lang.c (rust_language_data): Remove la_op_print_tab
529 initializer.
530 (rust_language::opcode_print_table): New member function.
531
5aba6ebe
AB
5322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
533
534 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
535 (ada_language::expression_ops): New member function.
536 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
537 (c_language::expression_ops): New member function.
538 (cplus_language_data): Remove la_exp_desc initializer.
539 (cplus_language::expression_ops): New member function.
540 (asm_language_data): Remove la_exp_desc initializer.
541 (asm_language::expression_ops): New member function.
542 (minimal_language_data): Remove la_exp_desc initializer.
543 (minimal_language::expression_ops): New member function.
544 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
545 (d_language::expression_ops): New member function.
546 * eval.c (evaluate_subexp): Update call to expression_ops.
547 * expprint.c (print_subexp): Likewise.
548 (op_name): Likewise.
549 (dump_subexp_body): Likewise.
550 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
551 (f_language::expression_ops): New member function.
552 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
553 (go_language::expression_ops): New member function.
554 * language.c (language_defn::expression_ops): New function.
555 (unknown_language_data): Remove la_exp_desc initializer.
556 (auto_language_data): Likewise.
557 * language.h (language_data): Remove la_exp_desc field.
558 (language_defn::expression_ops): Declare new member function.
559 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
560 (m2_language::expression_ops): New member function.
561 * objc-lang.c (objc_language_data): Remove la_exp_desc
562 initializer.
563 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
564 initializer.
565 (opencl_language::expression_ops): New member function.
566 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
567 * parse.c (operator_length): Update call to expression_ops.
568 (exp_iterate): Likewise.
569 * rust-lang.c (rust_language_data): Remove la_exp_desc
570 initializer.
571 (ruse_language::expression_ops): New member function.
572
b63a3f3f
AB
5732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
574
575 * ada-lang.c (ada_language_data): Remove la_varobj_ops
576 initializer.
577 (ada_language::varobj_ops): New member function.
578 * c-lang.c (c_language_data): Remove la_varobj_ops
579 initializer.
580 (cplus_language_data): Likewise.
581 (cplus_language::varobj_ops): New member function.
582 (asm_language_data): Remove la_varobj_ops initializer.
583 (minimal_language_data): Likewise.
584 * d-lang.c (d_language_data): Likewise.
585 * f-lang.c (f_language_data): Likewise.
586 * go-lang.c (go_language_data): Likewise.
587 * language.c (language_defn::varobj_ops): New function.
588 (unknown_language_data): Remove la_varobj_ops
589 initializer.
590 (auto_language_data): Likewise.
591 * language.h (language_data): Remove la_varobj_ops field.
592 (language_defn::varobj_ops): Declare new member function.
593 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
594 * objc-lang.c (objc_language_data): Likewise.
595 * opencl-lang.c (opencl_language_data): Likewise.
596 * p-lang.c (pascal_language_data): Likewise.
597 * rust-lang.c (rust_language_data): Likewise.
598 * varobj.c (varobj_create): Update call to varobj_ops.
599 * varobj.h (default_varobj_ops): Delete define.
600
1ac14a04
AB
6012020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
602
603 * ada-lang.c (ada_language_data): Remove la_macro_expansion
604 initializer.
605 * c-lang.c (c_language_data): Likewise.
606 (c_language::macro_expansion): New member function.
607 (cplus_language_data): Likewise.
608 (cplus_language::macro_expansion): New member function.
609 (asm_language_data): Likewise.
610 (asm_language::macro_expansion): New member function.
611 (minimal_language_data): Likewise.
612 (minimal_language::macro_expansion): New member function.
613 * d-lang.c (d_language_data): Remove la_macro_expansion
614 initializer.
615 * f-lang.c (f_language_data): Likewise.
616 * go-lang.c (go_language_data): Likewise.
617 * language.c (unknown_language_data): Likewise.
618 (auto_language_data): Likewise.
619 * language.h (language_data): Remove la_macro_expansion field.
620 (language_defn::macro_expansion): New member function.
621 * m2-lang.c (m2_language_data): Remove la_macro_expansion
622 initializer.
623 * objc-lang.c (objc_language_data): Likewise.
624 (objc_language::macro_expansion): New member function.
625 * opencl-lang.c (opencl_language_data): Likewise.
626 (opencl_language::macro_expansion): New member function.
627 * p-lang.c (pascal_language_data): Remove la_macro_expansion
628 initializer.
629 * rust-lang.c (rust_language_data): Likewise.
630 * symtab.c (default_collect_symbol_completion_matches_break_on):
631 Update call to macro_expansion.
632
3a3440fb
AB
6332020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
634
635 * ada-lang.c (ada_language_data): Remove la_array_ordering
636 initializer.
637 * c-lang.c (c_language_data): Likewise.
638 (cplus_language_data): Likewise.
639 (asm_language_data): Likewise.
640 (minimal_language_data): Likewise.
641 * d-lang.c (d_language_data): Likewise.
642 * dwarf2/read.c (read_array_order): Update for call to
643 array_ordering.
644 * f-lang.c (f_language_data): Remove la_array_ordering
645 initializer.
646 (f_language::array_ordering): New member function.
647 * go-lang.c (go_language_data): Remove la_array_ordering
648 initializer.
649 * language.c (unknown_language_data): Likewise.
650 (auto_language_data): Likewise.
651 * language.h (language_data): Delete la_array_ordering field.
652 (language_defn::array_ordering): New member function.
653 * m2-lang.c (m2_language_data): Remove la_array_ordering
654 initializer.
655 * objc-lang.c (objc_language_data): Likewise.
656 * opencl-lang.c (opencl_language_data): Likewise.
657 * p-lang.c (pascal_language_data): Likewise.
658 * rust-lang.c (rust_language_data): Likewise.
659
0d201fa4
AB
6602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
661
662 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
663 initializer.
664 * c-lang.c (c_language_data): Likewise.
665 (cplus_language_data): Likewise.
666 (asm_language_data): Likewise.
667 (minimal_language_data): Likewise.
668 * d-lang.c (d_language_data): Likewise.
669 * f-lang.c (f_language_data): Likewise.
670 (f_language::case_sensitivity): New member function.
671 * go-lang.c (go_language_data): Remove la_case_sensitivity
672 initializer.
673 * language.c (enum case_mode): Moved here from language.h.
674 (case_mode): Make static.
675 (show_case_command): Update for case_sensitivity being a method.
676 (set_case_command): Likewise.
677 (set_range_case): Likewise.
678 (unknown_language_data): Remove la_case_sensitivity initializer.
679 (auto_language_data): Likewise.
680 * language.h (case_mode): Delete, move enum declaration to
681 language.c.
682 (language_data): Delete la_case_sensitivity field.
683 (language_defn::case_sensitivity): New member function.
684 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
685 initializer.
686 * objc-lang.c (objc_language_data): Likewise.
687 * opencl-lang.c (opencl_language_data): Likewise.
688 * p-lang.c (pascal_language_data): Likewise.
689 * rust-lang.c (rust_language_data): Likewise.
690
efdf6a73
AB
6912020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
692
693 * ada-lang.c (ada_language_data): Remove la_range_check
694 initializer.
695 * c-lang.c (c_language_data): Likewise.
696 (cplus_language_data): Likewise.
697 (asm_language_data): Likewise.
698 (minimal_language_data): Likewise.
699 * d-lang.c (d_language_data): Likewise.
700 * f-lang.c (f_language_data): Likewise.
701 (f_language::range_checking_on_by_default): New member function.
702 * go-lang.c (go_language_data): Remove la_range_check initializer.
703 * language.c (enum range_mode): Moved here from language.h.
704 (range_mode): Made static.
705 (show_range_command): Update to use
706 range_checking_on_by_default.
707 (set_range_command): Likewise.
708 (set_range_case): Likewise.
709 (unknown_language_data): Remove la_range_check initializer.
710 (auto_language_data): Likewise.
711 * language.h (range_mode): Delete. Enum definition moved to
712 language.c.
713 (language_data): Remove la_range_check field.
714 (language_defn::range_checking_on_by_default): New member
715 function.
716 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
717 (m2_language::range_checking_on_by_default): New member function.
718 * objc-lang.c (objc_language_data): Remove la_range_check
719 initializer.
720 * opencl-lang.c (opencl_language_data): Likewise.
721 * p-lang.c (pascal_language_data): Likewise.
722 (pascal_language::range_checking_on_by_default): New member
723 function.
724 * rust-lang.c (rust_language_data): Remove la_range_check
725 initializer.
726 (rust_language::range_checking_on_by_default): New member
727 function.
728
bf92aec5
AB
7292020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
730
731 * dwarf2/read.c (dwarf2_physname): Remove special case for
732 language_go.
733 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
734 member function.
735
d3355e4d
AB
7362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
737
738 * ada-lang.c (ada_language_data): Remove
739 la_store_sym_names_in_linkage_form_p initializer.
740 (ada_language::store_sym_names_in_linkage_form_p): New member
741 function.
742 * c-lang.c (c_language_data): Remove
743 la_store_sym_names_in_linkage_form_p initializer.
744 (c_language::store_sym_names_in_linkage_form_p): New member
745 function.
746 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
747 initializer.
748 (asm_language_data): Likewise.
749 (asm_language::store_sym_names_in_linkage_form_p): New member
750 function.
751 (minimal_language_data): Remove
752 la_store_sym_names_in_linkage_form_p initializer.
753 (minimal_language::store_sym_names_in_linkage_form_p): New member
754 function.
755 * d-lang.c (d_language_data): Remove
756 la_store_sym_names_in_linkage_form_p initializer.
757 * dwarf2/read.c (dwarf2_physname): Update call to
758 store_sym_names_in_linkage_form_p.
759 * f-lang.c (f_language_data): Remove
760 la_store_sym_names_in_linkage_form_p initializer.
761 * go-lang.c (go_language_data): Remove
762 la_store_sym_names_in_linkage_form_p initializer.
763 * language.c (unknown_language_data): Remove
764 la_store_sym_names_in_linkage_form_p initializer.
765 (unknown_language::store_sym_names_in_linkage_form_p): New member
766 function.
767 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
768 initializer.
769 (auto_language::store_sym_names_in_linkage_form_p): New member
770 function.
771 * language.h (language_data): Remove
772 la_store_sym_names_in_linkage_form_p member variable.
773 (language_defn::store_sym_names_in_linkage_form_p): New member
774 function.
775 * m2-lang.c (m2_language_data): Remove
776 la_store_sym_names_in_linkage_form_p initializer.
777 * objc-lang.c (objc_language_data): Likewise.
778 * opencl-lang.c (opencl_language_data): Likewise.
779 * p-lang.c (pascal_language_data): Likewise.
780 * rust-lang.c (rust_language_data): Likewise.
781
22c12a6c
AB
7822020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
783
784 * ada-lang.c (ada_language_data): Remove string_lower_bound
785 initializer.
786 * c-lang.c (c_language_data): Likewise.
787 (cplus_language_data): Likewise.
788 (asm_language_data): Likewise.
789 (minimal_language_data): Likewise.
790 * d-lang.c (d_language_data): Likewise.
791 * f-lang.c (f_language_data): Likewise.
792 * go-lang.c (go_language_data): Likewise.
793 * language.c (unknown_language_data): Likewise.
794 (auto_language_data): Likewise.
795 * language.h (language_data): Remove string_lower_bound field.
796 (language_defn::string_lower_bound): New member function.
797 * m2-lang.c (m2_language_data): Remove string_lower_bound
798 initializer.
799 (m2_language::string_lower_bound): New member function.
800 * objc-lang.c (objc_language_data): Remove string_lower_bound
801 initializer.
802 * opencl-lang.c (opencl_language_data): Likewise.
803 * p-lang.c (pascal_language_data): Likewise.
804 * rust-lang.c (rust_language_data): Likewise.
805 * valops.c (value_cstring): Update call to string_lower_bound.
806 (value_string): Likewise.
807 * value.c (allocate_repeated_value): Likewise.
808
1c236ddd
AB
8092020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
810
811 * valops.c (value_repeat): Fix incorrect argument name in comment.
812
67bd3fd5
AB
8132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
814
815 * ada-lang.c (ada_language_data): Remove c_style_arrays
816 initializer.
817 (ada_language::c_style_arrays_p): New member fuction.
818 * c-lang.c (c_language_data): Remove c_style_arrays
819 initializer.
820 (cplus_language_data): Likewise.
821 (asm_language_data): Likewise.
822 (minimal_language_data): Likewise.
823 * d-lang.c (d_language_data): Likewise.
824 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
825 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
826 (f_language::c_style_arrays_p): New member function.
827 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
828 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
829 * language.c (unknown_language_data): Remove c_style_arrays
830 initializer.
831 (auto_language_data): Likewise.
832 * language.h (language_data): Remove c_style_arrays field.
833 (language_defn::c_style_arrays_p): New member function.
834 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
835 (m2_language::c_style_arrays_p): New member function.
836 * objc-lang.c (objc_language_data): Remove c_style_arrays
837 initializer.
838 * opencl-lang.c (opencl_language_data): Likewise.
839 * p-lang.c (pascal_language_data): Likewise.
840 * rust-lang.c (rust_language_data): Likewise.
841 * valarith.c (value_subscript): Update call to c_style_arrays_p,
842 and update local variable to a bool.
843 * valops.c (value_cast): Update call to c_style_arrays_p.
844 (value_array): Likewise.
845 * value.c (coerce_array): Likewise.
846
85967615
AB
8472020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
848
849 * ada-lang.c (ada_language_data): Remove la_language initializer.
850 * c-lang.c (c_language_data): Likewise.
851 (cplus_language_data): Likewise.
852 (asm_language_data): Likewise.
853 (minimal_language_data): Likewise.
854 * d-lang.c (d_language_data): Likewise.
855 * f-lang.c (f_language_data): Likewise.
856 * go-lang.c (go_language_data): Likewise.
857 * language.c (unknown_language_data): Likewise.
858 (auto_language_data): Likewise.
859 * language.h (language_data): Remove la_language field.
860 (language_defn::language_defn): Initialise la_language field.
861 (language_defn::la_language): New member variable.
862 * m2-lang.c (m2_language_data): Remove la_language field.
863 * objc-lang.c (objc_language_data): Likewise.
864 * opencl-lang.c (opencl_language_data): Likewise.
865 * p-lang.c (pascal_language_data): Likewise.
866 * rust-lang.c (rust_language_data): Likewise.
867
e171d6f1
AB
8682020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
869
870 * ada-lang.c (ada_extensions): Delete, moved into
871 ada_language::filename_extensions.
872 (ada_language_data): Remove la_filename_extensions initializer.
873 (ada_language::filename_extensions): New member function.
874 * c-lang.c (c_extensions): Delete, moved into
875 c_language::filename_extensions.
876 (c_language_data): Remove la_filename_extensions initializer.
877 (c_language::filename_extensions): New member function.
878 (cplus_extensions): Delete, moved into
879 cplus_language::filename_extensions.
880 (cplus_language_data): Remove la_filename_extensions initializer.
881 (cplus_language::filename_extensions): New member function.
882 (asm_extensions): Delete, moved into
883 asm_language::filename_extensions.
884 (asm_language_data): Remove la_filename_extensions initializer.
885 (asm_language::filename_extensions): New member function.
886 (minimal_language_data): Remove la_filename_extensions
887 initializer.
888 * d-lang.c (d_extensions): Delete, moved into
889 d_language::filename_extensions.
890 (d_language_data): Remove la_filename_extensions initializer.
891 (d_language::filename_extensions): New member function.
892 * f-lang.c (f_extensions): Delete, moved into
893 f_language::filename_extensions.
894 (f_language_data): Remove la_filename_extensions initializer.
895 (f_language::filename_extensions): New member function.
896 * go-lang.c (go_language_data): Remove la_filename_extensions
897 initializer.
898 * language.c (add_set_language_command): Update now that
899 filename_extensions returns a vector.
900 (unknown_language_data): Remove la_filename_extensions
901 initializer.
902 (auto_language_data): Likewise.
903 * language.h (language_data): Remove la_filename_extensions field.
904 (language_defn::filename_extensions): New member function.
905 * m2-lang.c (m2_language_data): Remove la_filename_extensions
906 initializer.
907 * objc-lang.c (objc_extensions): Delete, moved into
908 objc_language::filename_extensions.
909 (objc_language_data): Remove la_filename_extensions initializer.
910 (objc_language::filename_extensions): New member function.
911 * opencl-lang.c (opencl_language_data): Remove
912 la_filename_extensions initializer.
913 * p-lang.c (pascal_extensions): Delete, moved into
914 pascal_language::filename_extensions.
915 (pascal_language_data): Remove la_filename_extensions initializer.
916 (pascal_language::filename_extensions): New member function.
917 * rust-lang.c (rust_extensions): Delete, moved into
918 rust_language::filename_extensions.
919 (rust_language_data): Remove la_filename_extensions initializer.
920 (rust_language::filename_extensions): New member function.
921 * symfile.c (add_filename_language): Add new assert.
922
6f7664a9
AB
9232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
924
925 * ada-lang.c (ada_language_data): Remove la_name and
926 la_natural_name initializers.
927 (ada_language::name): New member function.
928 (ada_language::natural_name): New member function.
929 * c-lang.c (c_language_data): Remove la_name and
930 la_natural_name initializers.
931 (c_language::name): New member function.
932 (c_language::natural_name): New member function.
933 (cplus_language_data): Remove la_name and
934 la_natural_name initializers.
935 (cplus_language::name): New member function.
936 (cplus_language::natural_name): New member function.
937 (asm_language_data): Remove la_name and
938 la_natural_name initializers.
939 (asm_language::name): New member function.
940 (asm_language::natural_name): New member function.
941 (minimal_language_data): Remove la_name and
942 la_natural_name initializers.
943 (minimal_language::name): New member function.
944 (minimal_language::natural_name): New member function.
945 * compile/compile.c (compile_to_object): Update call to
946 lanugage_defn::name.
947 * d-lang.c (d_language_data): Remove la_name and
948 la_natural_name initializers.
949 (d_language::name): New member function.
950 (d_language::natural_name): New member function.
951 * expprint.c (print_subexp_standard): Update call to
952 language_defn::name.
953 (dump_raw_expression): Likewise
954 (dump_prefix_expression): Likewise.
955 * f-lang.c (f_language_data): Remove la_name and
956 la_natural_name initializers.
957 (f_language::name): New member function.
958 (f_language::natural_name): New member function.
959 * go-lang.c (go_language_data): Remove la_name and
960 la_natural_name initializers.
961 (go_language::name): New member function.
962 (go_language::natural_name): New member function.
963 * language.c (show_language_command): Update call to
964 language_defn::name.
965 (set_language_command): Likewise.
966 (language_enum): Likewise.
967 (language_str): Likewise.
968 (add_set_language_command): Likewise, use
969 language_defn::natural_name in the doc string.
970 (unknown_language_data): Remove la_name and
971 la_natural_name initializers.
972 (unknown_language::name): New member function.
973 (unknown_language::natural_name): New member function.
974 (auto_language_data): Remove la_name and
975 la_natural_name initializers.
976 (auto_language::name): New member function.
977 (auto_language::natural_name): New member function.
978 (language_lookup_primitive_type_as_symbol): Update call to
979 language_defn::name.
980 * language.h (language_data): Remove la_name and la_natural_name
981 member variables.
982 (language_defn::name): New member function.
983 (language_defn::natural_name): New member function.
984 * m2-lang.c (m2_language_data): Remove la_name and
985 la_natural_name initializers.
986 (m2_language::name): New member function.
987 (m2_language::natural_name): New member function.
988 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
989 language_defn::natural_name.
990 * objc-lang.c (objc_language_data): Remove la_name and
991 la_natural_name initializers.
992 (objc_language::name): New member function.
993 (objc_language::natural_name): New member function.
994 * opencl-lang.c (opencl_language_data): Remove la_name and
995 la_natural_name initializers.
996 (opencl_language::name): New member function.
997 (opencl_language::natural_name): New member function.
998 * p-lang.c (pascal_language_data): Remove la_name and
999 la_natural_name initializers.
1000 (pascal_language::name): New member function.
1001 (pascal_language::natural_name): New member function.
1002 * rust-lang.c (rust_language_data): Remove la_name and
1003 la_natural_name initializers.
1004 (rust_language::name): New member function.
1005 (rust_language::natural_name): New member function.
1006 * symtab.c (lookup_language_this): Update call to
1007 language_defn::name.
1008
5bae7c4e
AB
10092020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1010
1011 * ada-lang.c (ada_language_data): Remove la_name_of_this
1012 initializer.
1013 * ax-gdb.c (gen_expr): Update call to name_of_this.
1014 * c-exp.y (classify_name): Likewise.
1015 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1016 (cplus_language_data): Likewise.
1017 (cplus_language::name_of_this): New member function.
1018 (asm_language_data): Remove la_name_of_this initializer.
1019 (minimal_language_data): Likewise.
1020 * d-lang.c (d_language_data): Likewise.
1021 (d_language::name_of_this): New member function.
1022 * expprint.c (print_subexp_standard): Update call to name_of_this.
1023 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1024 * go-lang.c (go_language_data): Likewise.
1025 * language.c (unknown_language_data): Likewise.
1026 (unknown_language::name_of_this): New member function.
1027 (auto_language_data): Remove la_name_of_this initializer.
1028 (auto_language::name_of_this): New member function.
1029 * language.h (language_data): Delete la_name_of_this member
1030 variable.
1031 (language_defn::name_of_this): New member function.
1032 * m2-lang.c (m2_language_data): Remove la_name_of_this
1033 initializer.
1034 * objc-lang.c (objc_language_data): Likewise.
1035 (objc_language::name_of_this): New member function.
1036 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1037 initializer.
1038 * p-lang.c (pascal_language_data): Likewise.
1039 (pascal_language::name_of_this): New member function.
1040 * rust-lang.c (rust_language_data): Remove la_name_of_this
1041 initializer.
1042 * symtab.c (lookup_language_this): Update call to name_of_this.
1043 (lookup_symbol_aux): Likewise.
1044 * valops.c (value_of_this): Likewise.
1045
22e3f3ed
AB
10462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1047
1048 * ada-lang.c (ada_language_data): Remove
1049 la_struct_too_deep_ellipsis initializer.
1050 (ada_language::struct_too_deep_ellipsis): New member function.
1051 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1052 initializer.
1053 (cplus_language_data): Likewise.
1054 (asm_language_data): Likewise.
1055 (minimal_language_data): Likewise.
1056 * cp-valprint.c (cp_print_value): Update call to
1057 struct_too_deep_ellipsis.
1058 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1059 initializer.
1060 * f-lang.c (f_language_data): Likewise.
1061 (f_language::struct_too_deep_ellipsis): New member function.
1062 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1063 initializer.
1064 * language.c (unknown_language_data): Likewise.
1065 (auto_language_data): Likewise.
1066 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1067 member variable.
1068 (language_defn::struct_too_deep_ellipsis): New member function.
1069 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1070 initializer.Q
1071 * objc-lang.c (objc_language_data): Likewise.
1072 * opencl-lang.c (opencl_language_data): Likewise.
1073 * p-lang.c (pascal_language_data): Likewise.
1074 * rust-lang.c (rust_language_data): Likewise.
1075 * valprint.c (val_print_check_max_depth): Update call to
1076 struct_too_deep_ellipsis.
1077
ed29e1c7
FW
10782020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1079
1080 * MAINTAINERS (Write After Approval): Add myself.
1081
12d8f940
TT
10822020-09-15 Tom Tromey <tom@tromey.com>
1083
1084 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1085 Remove.
1086
6b5a7bc7
TT
10872020-09-15 Tom Tromey <tom@tromey.com>
1088
1089 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1090 and TYPE_CODE_METHODPTR cases.
1091 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1092 (c_value_print_inner): Update.
1093 * valprint.c (generic_value_print_memberptr): New function, from
1094 c_value_print_memberptr.
1095 (generic_value_print): Use it. Call cplus_print_method_ptr.
1096
47f0e2ff
TT
10972020-09-15 Tom Tromey <tromey@adacore.com>
1098
1099 * python/python-internal.h (PyInt_FromLong): Remove define.
1100 * python/py-value.c (convert_value_from_python): Use
1101 gdb_py_object_from_longest.
1102 * python/py-type.c (typy_get_code): Use
1103 gdb_py_object_from_longest.
1104 * python/py-symtab.c (salpy_get_line): Use
1105 gdb_py_object_from_longest.
1106 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1107 gdb_py_object_from_longest.
1108 * python/py-record.c (recpy_gap_reason_code): Use
1109 gdb_py_object_from_longest.
1110 * python/py-record-btrace.c (recpy_bt_insn_size)
1111 (recpy_bt_func_level, btpy_list_count): Use
1112 gdb_py_object_from_longest.
1113 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1114 gdb_py_object_from_longest. Fix error handling.
1115 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1116 gdb_py_object_from_longest.
1117 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1118 gdb_py_object_from_longest.
1119 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1120 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1121 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1122
512116ce
TT
11232020-09-15 Tom Tromey <tromey@adacore.com>
1124
1125 * python/python.c (gdbpy_parameter_value): Use
1126 gdb_py_object_from_ulongest.
1127
4ab1029c
TT
11282020-09-15 Tom Tromey <tromey@adacore.com>
1129
1130 * python/py-infevents.c (create_register_changed_event_object):
1131 Use gdb_py_object_from_longest.
1132 * python/py-exitedevent.c (create_exited_event_object): Use
1133 gdb_py_object_from_longest.
1134
062534d4
TT
11352020-09-15 Tom Tromey <tromey@adacore.com>
1136
1137 * python/python.c (gdbpy_parameter_value): Use
1138 gdb_py_object_from_longest.
1139 * python/py-type.c (convert_field, typy_range): Use
1140 gdb_py_object_from_longest.
1141 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1142 gdb_py_object_from_longest.
1143 * python/py-lazy-string.c (stpy_get_length): Use
1144 gdb_py_object_from_longest.
1145 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1146 gdb_py_object_from_longest.
1147 * python/py-infevents.c (create_memory_changed_event_object): Use
1148 gdb_py_object_from_longest.
1149 * python/py-inferior.c (infpy_get_num): Use
1150 gdb_py_object_from_longest.
1151 (infpy_get_pid): Likewise.
1152
d1cab987
TT
11532020-09-15 Tom Tromey <tromey@adacore.com>
1154
1155 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1156 defines.
1157 * python/py-value.c (valpy_long): Use
1158 gdb_py_object_from_ulongest.
1159 * python/py-symtab.c (salpy_get_pc): Use
1160 gdb_py_object_from_ulongest.
1161 (salpy_get_last): Likewise.
1162 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1163 gdb_py_object_from_ulongest.
1164 * python/py-lazy-string.c (stpy_get_address): Use
1165 gdb_py_object_from_ulongest.
1166 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1167 * python/py-arch.c (archpy_disassemble): Use
1168 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1169 error handling.
1170
4bde49dc
TT
11712020-09-15 Tom Tromey <tromey@adacore.com>
1172
1173 * python/python-internal.h (gdb_py_long_from_longest): Remove
1174 defines.
1175 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1176 * python/py-type.c (convert_field, typy_get_sizeof): Use
1177 gdb_py_object_from_longest.
1178 * python/py-record-btrace.c (btpy_list_index): Use
1179 gdb_py_object_from_longest.
1180
37431074
TT
11812020-09-15 Tom Tromey <tromey@adacore.com>
1182
1183 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1184 * python/py-record.c (recpy_element_number): Use
1185 gdb_py_object_from_longest.
1186 (recpy_gap_number): Likewise.
1187
cbe25684
TT
11882020-09-15 Tom Tromey <tromey@adacore.com>
1189
1190 * top.c (ui::ui): Update.
1191 (highest_ui_num): Remove.
1192 * top.h (struct ui) <num>: Remove.
1193
db92ac45
TT
11942020-09-15 Tom Tromey <tromey@adacore.com>
1195
1196 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1197 * ui-style.c (ansi_regex_text): Now array.
1198 * rust-exp.y (number_regex_text): Now array.
1199 * linespec.c (linespec_quote_characters): Now array.
1200 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1201 Now arrays.
1202
d2b31b67
SM
12032020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1204
1205 * debuginfod-support.c (debuginfod_client_deleter): New.
1206 (debuginfod_client_up): New.
1207 (debuginfod_init): Return debuginfod_client_up.
1208 (debuginfod_source_query): Adjust.
1209 (debuginfod_debuginfo_query): Adjust.
1210
3246bd8e
SM
12112020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1212
1213 * debuginfod-support.c (debuginfod_source_query): Use
1214 make_unique_xstrdup.
1215
10242f36
SM
12162020-09-14 Simon Marchi <simon.marchi@efficios.com>
1217
1218 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1219 with `type::instance_flags`.
1220
e1044e6a
MM
12212020-09-14 Michael Mullin <masmullin@gmail.com>
1222
1223 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1224 Remove baton parameter.
1225
04902b09
PA
12262020-09-14 Pedro Alves <pedro@palves.net>
1227
1228 * Makefile.in (SELFTESTS_SRCS): Add
1229 unittests/enum-flags-selftests.c.
1230 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1231 btrace_function_flags instead of enum btrace_function_flag.
1232 * compile/compile-c-types.c (convert_qualified): Use
1233 enum_flags::raw.
1234 * compile/compile-cplus-symbols.c (convert_one_symbol)
1235 (convert_symbol_bmsym):
1236 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1237 (compile_cplus_convert_struct_or_union_methods)
1238 (compile_cplus_instance::convert_qualified_base):
1239 * go-exp.y (parse_string_or_char): Add cast to int.
1240 * unittests/enum-flags-selftests.c: New file.
1241 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1242 type to btrace_thread_flags from btrace_thread_flag.
1243 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1244 local's type to btrace_thread_flags from btrace_thread_flag. Add
1245 cast in DEBUG call.
1246
69896a2c
PA
12472020-09-14 Pedro Alves <pedro@palves.net>
1248
1249 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1250 * gdbtypes.c (address_space_name_to_int): Rename to ...
1251 (address_space_name_to_type_instance_flags): ... this.
1252 (address_space_int_to_name): Rename to ...
1253 (address_space_type_instance_flags_to_name): ... this.
1254 * gdbtypes.h (address_space_name_to_int): Rename to ...
1255 (address_space_name_to_type_instance_flags): ... this.
1256 (address_space_int_to_name): Rename to ...
1257 (address_space_type_instance_flags_to_name): ... this.
1258 * type-stack.c (type_stack::insert): Adjust to rename.
1259 * type-stack.h (type_stack::insert): Likewise.
1260
314ad88d
PA
12612020-09-14 Pedro Alves <pedro@palves.net>
1262 Andrew Burgess <andrew.burgess@embecosm.com>
1263
1264 * avr-tdep.c (avr_address_class_type_flags): Return
1265 type_instance_flags.
1266 (avr_address_class_type_flags_to_name): Take a
1267 type_instance_flags.
1268 (avr_address_class_name_to_type_flags): Return bool and take a
1269 type_instance_flags.
1270 * d-lang.c (build_d_types): Use type::set_instance_flags.
1271 * ft32-tdep.c (ft32_address_class_type_flags): Return
1272 type_instance_flags.
1273 (ft32_address_class_type_flags_to_name): Take a
1274 type_instance_flags.
1275 (ft32_address_class_name_to_type_flags): Return bool and take a
1276 type_instance_flags.
1277 (ft32_gdbarch_init): Use type::set_instance_flags.
1278 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1279 * gdbarch.h, gdbarch.c: Regenerate.
1280 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1281 (address_class_name_to_type_flags): Use type_instance_flags and
1282 bool.
1283 * gdbtypes.c (address_space_name_to_int)
1284 (address_space_int_to_name, make_qualified_type): Use
1285 type_instance_flags.
1286 (make_qualified_type): Use type_instance_flags and
1287 type::set_instance_flags.
1288 (make_type_with_address_space, make_cv_type, make_vector_type)
1289 (check_typedef): Use type_instance_flags.
1290 (recursive_dump_type): Cast type_instance_flags to unsigned for
1291 printing.
1292 (copy_type_recursive): Use type::set_instance_flags.
1293 (gdbtypes_post_init): Use type::set_instance_flags.
1294 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1295 <m_instance_flags>: ... this.
1296 <instance_flags, set_instance_flags>: New methods.
1297 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1298 (SET_TYPE_INSTANCE_FLAGS): New.
1299 (address_space_name_to_int, address_space_int_to_name)
1300 (make_type_with_address_space): Pass flags using
1301 type_instance_flags instead of int.
1302 * stabsread.c (cleanup_undefined_types_noname): Use
1303 type::set_instance_flags.
1304 * s390-tdep.c (s390_address_class_type_flags): Return
1305 type_instance_flags.
1306 (s390_address_class_type_flags_to_name): Take a
1307 type_instance_flags.
1308 (s390_address_class_name_to_type_flags): Return bool and take a
1309 type_instance_flags.
1310 * type-stack.c (type_stack::follow_types): Use
1311 type_instance_flags.
1312 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1313
27087b7f
TT
13142020-09-14 Tom Tromey <tromey@adacore.com>
1315
1316 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1317 * x86-tdep.c (x86_is_thunk_register_name)
1318 (x86_in_indirect_branch_thunk): Update.
1319 * sparc64-tdep.c (sparc64_fpu_register_names)
1320 (sparc64_cp0_register_names, sparc64_register_names)
1321 (sparc64_pseudo_register_names): Now const.
1322 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1323 cp0_registers_num>: Now const.
1324 * sparc-tdep.c (sparc_core_register_names)
1325 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1326 (sparc32_pseudo_register_names): Now const.
1327 (validate_tdesc_registers): Update.
1328 * rust-lang.c (rust_extensions): Now const.
1329 * p-lang.c (p_extensions): Now const.
1330 * objc-lang.c (objc_extensions): Now const.
1331 * nto-tdep.c (nto_thread_state_str): Now const.
1332 * moxie-tdep.c (moxie_register_names): Now const.
1333 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1334 Now const.
1335 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1336 (mips_linux_reg_names): Now const.
1337 (mips_gdbarch_init): Update.
1338 * microblaze-tdep.c (microblaze_register_names): Now const.
1339 * m68k-tdep.c (m68k_register_names): Now const.
1340 * m32r-tdep.c (m32r_register_names): Now const.
1341 * ia64-tdep.c (ia64_register_names): Now const.
1342 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1343 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1344 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1345 ymm_avx512_register_names, pkeys_register_names>: Now const.
1346 * i386-tdep.c (i386_register_names, i386_zmm_names)
1347 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1348 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1349 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1350 * f-lang.c (f_extensions): Now const.
1351 * d-lang.c (d_extensions): Now const.
1352 * csky-tdep.c (csky_register_names): Now const.
1353 * charset.c (default_charset_names, charset_enum): Now const.
1354 (_initialize_charset): Update.
1355 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1356 const.
1357 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1358 (bsd_uthread_solib_loaded): Update.
1359 (bsd_uthread_state): Now const.
1360 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1361 (amd64_ymm_avx512_names, amd64_ymmh_names)
1362 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1363 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1364 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1365 (amd64_dword_names): Now const.
1366 * agent.c (can_use_agent_enum): Now const.
1367 * ada-tasks.c (task_states, long_task_states): Now const.
1368 * ada-lang.c (known_runtime_file_name_patterns)
1369 (known_auxiliary_function_name_patterns, attribute_names)
1370 (standard_exc, ada_extensions): Now const.
1371
89806626
SM
13722020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1373
1374 * bcache.h (struct bcache) <bcache>: Remove constructor.
1375 <m_hash_function, m_compare_function>: Remove.
1376 <~bcache>: Make virtual.
1377 <compare>: Remove static method, introduce virtual method.
1378 <default_hash>: Remove.
1379 <hash>: New virtual method.
1380 * bcache.c (bcache::expand_hash_table): Update.
1381 (bcache::insert): Update.
1382 (bcache::hash): New.
1383 (bcache::compare): Update comment and parameter names.
1384 * gdbtypes.c (types_deeply_equal): Update.
1385 * psymtab.h (struct psymbol_bcache): New struct.
1386 (class psymtab_storage) <psymtab_storage>: Make default.
1387 <psymbol_cache>: Change type to psymbol_bcache.
1388 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1389 (psymbol_hash): Change to...
1390 (psymbol_bcache::hash): ... this.
1391 (psymbol_compare): Change to...
1392 (psymbol_bcache::compare): ... this.
1393
677c92fe
SM
13942020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1395
1396 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1397 checking for initial lwp.
1398
3eba3a01
TT
13992020-09-14 Tom Tromey <tromey@adacore.com>
1400
1401 * m68k-tdep.c (m68k_extract_return_value): Use
1402 pointer_result_regnum.
1403 (m68k_store_return_value): Likewise.
1404 (m68k_reg_struct_return_p): Handle vectors and arrays.
1405 (m68k_return_value): Handle arrays.
1406 (m68k_svr4_return_value): Fix single-element aggregate handling.
1407 Handle long double. Adjust for embedded ABI.
1408 (m68k_svr4_init_abi): Set pointer_result_regnum.
1409 (m68k_embedded_init_abi): New function.
1410 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1411 (m68k_osabi_sniffer): New function.
1412 (_initialize_m68k_tdep): Register osabi sniffer.
1413 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1414 member.
1415
33f4dd48
SM
14162020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1417
1418 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1419 with gdb::unique_xmalloc_ptr<char>.
1420
8400a90d
SM
14212020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1422
1423 * xml-support.h (xml_fetch_another): Change type to be a
1424 function_view.
1425 (xml_process_xincludes): Remove baton parameter.
1426 (xml_fetch_content_from_file): Change baton parameter to
1427 dirname.
1428 * xml-support.c (struct xinclude_parsing_data)
1429 <xinclude_parsing_data>: Remove baton parameter.
1430 <fetcher_baton>: Remove.
1431 (xinclude_start_include): Adjust.
1432 (xml_process_xincludes): Adjust.
1433 (xml_fetch_content_from_file): Replace baton parameter with
1434 dirname.
1435 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1436 (xml_init_syscalls_info): Use a lambda.
1437 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1438 (file_read_description_xml): Use a lambda.
1439 (fetch_available_features_from_target): Change baton parameter
1440 to target_ops.
1441 (target_read_description_xml): Use a lambda.
1442 (target_fetch_description_xml): Use a lambda.
1443 (string_read_description_xml): Update.
1444
04f5bab2
SM
14452020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1446
1447 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1448 uses with type::endianity_is_not_default.
1449
db558e34
SM
14502020-09-14 Simon Marchi <simon.marchi@efficios.com>
1451
1452 * gdbtypes.h (struct type) <endianity_is_not_default,
1453 set_endianity_is_not_default>: New methods.
1454 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1455 type::endianity_is_not_default, change all write call sites to
1456 use type::set_endianity_is_not_default.
1457
22c4c60c
SM
14582020-09-14 Simon Marchi <simon.marchi@efficios.com>
1459
1460 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1461 uses with type::is_fixed_instance.
1462
9cdd0d12
SM
14632020-09-14 Simon Marchi <simon.marchi@efficios.com>
1464
1465 * gdbtypes.h (struct type) <is_fixed_instance,
1466 set_is_fixed_instance>: New methods.
1467 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1468 write call sites to use type::set_is_fixed_instance.
1469
0becda7a
SM
14702020-09-14 Simon Marchi <simon.marchi@efficios.com>
1471
1472 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1473 uses with type::is_gnu_ifunc.
1474
03cc7249
SM
14752020-09-14 Simon Marchi <simon.marchi@efficios.com>
1476
1477 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1478 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1479 use type::set_is_gnu_ifunc.
1480
3f46044c
SM
14812020-09-14 Simon Marchi <simon.marchi@efficios.com>
1482
1483 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1484 uses with type::stub_is_supported.
1485
9baccff6
SM
14862020-09-14 Simon Marchi <simon.marchi@efficios.com>
1487
1488 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1489 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1490 use type::set_stub_is_supported.
1491
bd63c870
SM
14922020-09-14 Simon Marchi <simon.marchi@efficios.com>
1493
1494 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1495 uses with type::is_vector.
1496
2062087b
SM
14972020-09-14 Simon Marchi <simon.marchi@efficios.com>
1498
1499 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1500 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1501 use type::set_is_vector.
1502
a409645d
SM
15032020-09-14 Simon Marchi <simon.marchi@efficios.com>
1504
1505 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1506 uses with type::has_varargs.
1507
1d6286ed
SM
15082020-09-14 Simon Marchi <simon.marchi@efficios.com>
1509
1510 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1511 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1512 use type::set_has_varargs.
1513
7f9f399b
SM
15142020-09-14 Simon Marchi <simon.marchi@efficios.com>
1515
1516 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1517 uses with type::is_prototyped.
1518
27e69b7a
SM
15192020-09-14 Simon Marchi <simon.marchi@efficios.com>
1520
1521 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1522 New methods.
1523 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1524 call sites to use type::set_is_prototyped.
1525
d2183968
SM
15262020-09-14 Simon Marchi <simon.marchi@efficios.com>
1527
1528 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1529 uses with type::target_is_stub.
1530
8f53807e
SM
15312020-09-14 Simon Marchi <simon.marchi@efficios.com>
1532
1533 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1534 New methods.
1535 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1536 sites to use type::set_target_is_stub.
1537
e46d3488
SM
15382020-09-14 Simon Marchi <simon.marchi@efficios.com>
1539
1540 * gdbtypes.h (TYPE_STUB): Remove, replace all
1541 uses with type::is_stub.
1542
b4b73759
SM
15432020-09-14 Simon Marchi <simon.marchi@efficios.com>
1544
1545 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1546 (TYPE_STUB): Use type::is_stub, change all write call sites to
1547 use type::set_is_stub.
1548
20ce4123
SM
15492020-09-14 Simon Marchi <simon.marchi@efficios.com>
1550
1551 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1552 type::has_no_signedness.
1553
15152a54
SM
15542020-09-14 Simon Marchi <simon.marchi@efficios.com>
1555
1556 * gdbtypes.h (struct type) <has_no_signedness,
1557 set_has_no_signedness>: New methods.
1558 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1559 call sites to use type::set_has_no_signedness.
1560
c6d940a9
SM
15612020-09-14 Simon Marchi <simon.marchi@efficios.com>
1562
1563 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1564 type::is_unsigned.
1565
653223d3
SM
15662020-09-14 Simon Marchi <simon.marchi@efficios.com>
1567
1568 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1569 methods.
1570 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1571 sites to use type::set_is_unsigned.
1572
55ea94da
FH
15732020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1574 Adam Renquinha <arenquinha@cimeq.qc.ca>
1575
1576 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1577 pointer and stack frame offset when unwinding.
1578
6791b117
PA
15792020-09-13 Pedro Alves <pedro@palves.net>
1580
1581 * NEWS: Document "-break-insert --qualified".
1582 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1583
77f2120b
PA
15842020-09-13 Pedro Alves <pedro@palves.net>
1585
1586 * linespec.c (classify_mtype, compare_msyms): Delete.
1587 (search_minsyms_for_name): Remove classification logic. Instead
1588 filter out trampoline symbols if we also found an external
1589 function of the same name.
1590
ed6a896c
JB
15912020-09-13 Joel Brobecker <brobecker@adacore.com>
1592
1593 * NEWS: Create a new section for the next release branch.
1594 Rename the section of the current branch, now that it has
1595 been cut.
1596
32aea73e
JB
15972020-09-13 Joel Brobecker <brobecker@adacore.com>
1598
1599 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1600 * version.in: Bump version to 11.0.50.DATE-git.
1601
8087c3fa
JB
16022020-09-12 Joel Brobecker <brobecker@adacore.com>
1603
1604 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1605
2a67f09d
FW
16062020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1607 Felix Willgerodt <Felix.Willgerodt@intel.com>
1608
1609 * gdbarch.sh: Added bfloat16 type.
1610 * gdbarch.c: Regenerated.
1611 * gdbarch.h: Regenerated.
1612 * gdbtypes.c (floatformats_bfloat16): New struct.
1613 (gdbtypes_post_init): Add builtin_bfloat16.
1614 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1615 (floatformats_bfloat16): New struct.
1616 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1617 (i386_ymm_type): Add field "v16_bfloat16"
1618 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1619 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1620 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1621 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1622 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1623 * features/i386/64bit-avx512.c: Regenerated.
1624 * features/i386/64bit-sse.xml: Add bfloat16 type.
1625 * features/i386/64bit-sse.c: Regenerated.
1626
1347d111
FW
16272020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1628
1629 * i386-tdep.c (i386_zmm_type): Fix field names.
1630 (i386_ymm_type): Fix field names.
1631
7a4e8e7d
TBA
16322020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1633
1634 * breakpoint.c: Fix typo in the help message of the
1635 "set breakpoint condition-evaluation" command.
1636
cf4ac4be
KR
16372020-09-10 Kamil Rytarowski <n54@gmx.com>
1638
1639 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1640 * (nbsd_nat_target::pid_to_exec_file)
1641 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1642 (nbsd_nat_target::post_startup_inferior)
1643 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1644 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1645 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1646 * (nbsd_thread_lister): Remove.
1647
f404573e
KR
16482020-09-10 Kamil Rytarowski <n54@gmx.com>
1649
1650 * fork-inferior.c (startup_inferior): Avoid double free.
1651
1ccb2c17
KR
16522020-09-10 Kamil Rytarowski <n54@gmx.com>
1653
1654 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1655 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1656
feedfcc7
KR
16572020-09-10 Kamil Rytarowski <n54@gmx.com>
1658
1659 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1660 * netbsd-nat.c: Include <sys/ptrace.h>.
1661 * (netbsd_nat::enable_proc_events): Add.
1662
c489f8c6
KR
16632020-09-10 Kamil Rytarowski <n54@gmx.com>
1664
1665 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1666 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1667 (netbsd_nat::for_each_thread): Add.
1668 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1669 "gdbsupport/common-debug.h".
1670 * (netbsd_nat::netbsd_thread_lister)
1671 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1672 (netbsd_nat::for_each_thread): Add.
1673
330662f6
KR
16742020-09-10 Kamil Rytarowski <n54@gmx.com>
1675
1676 * netbsd-nat.h: Include <unistd.h>.
1677 * (netbsd_nat::pid_to_exec_file): Add.
1678 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1679 * (netbsd_nat::pid_to_exec_file) Add.
1680
70b67307
KR
16812020-09-10 Kamil Rytarowski <n54@gmx.com>
1682
1683 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1684
99cf6da6
KR
16852020-09-10 Kamil Rytarowski <n54@gmx.com>
1686
1687 * netbsd-nat.h: New file.
1688 * netbsd-nat.c: Likewise.
1689
1b788fb6
TT
16902020-09-09 Tom Tromey <tromey@adacore.com>
1691
1692 * ada-lang.c (remove_extra_symbols): Do not increment when
1693 removing an element
1694
03b0a45f
TT
16952020-09-08 Tom Tromey <tromey@adacore.com>
1696
1697 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1698
3cae4447
TT
16992020-09-08 Tom Tromey <tromey@adacore.com>
1700
1701 PR win32/25302:
1702 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1703 (gdb_bfd_init_data): New function.
1704 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1705
7f08fd51
TBA
17062020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1707
1708 * infrun.c (fetch_inferior_event): Use
1709 `switch_to_target_no_thread` to switch the target.
1710
3e6ff933
TT
17112020-09-06 Tom Tromey <tom@tromey.com>
1712
1713 * symfile.h (dwarf2_free_objfile): Don't declare.
1714
e56798df
AKS
17152020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1716
1717 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1718 to match 16 byte real/complex type generated by Flang compiler.
1719
8f5c6526
TV
17202020-09-03 Tom de Vries <tdevries@suse.de>
1721
1722 PR breakpoint/26546
1723 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1724 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1725
c5065df0
SM
17262020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1727
1728 * maint.c (index_digits): New function.
1729 (struct maint_print_section_data): Remove.
1730 (print_bfd_section_info): Remove print_data parameter, add arg
1731 and index_digits.
1732 (print_objfile_section_info): Likewise.
1733 (print_bfd_section_info_maybe_relocated): Likewise (plus
1734 objfile).
1735 (maintenance_info_sections): Adjust calls.
1736
02c6f3f1
TT
17372020-09-02 Tom Tromey <tromey@adacore.com>
1738
1739 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1740 for null pointers.
1741 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1742
ef5e5b0b
SM
17432020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1744
1745 * bcache.h (struct bcache) <insert>: Change type of `added` to
1746 pointer to bool.
1747 * bcache.c (bcache::insert): Likewise.
1748 * gdbtypes.c (check_types_worklist): Adjust.
1749 * psymtab.c (add_psymbol_to_bcache): Adjust.
1750
973695d6
KB
17512020-08-31 Kevin Buettner <kevinb@redhat.com>
1752
1753 * corelow.c (unordered_set): Include.
1754 (class core_target): Add field 'm_core_unavailable_mappings'.
1755 (core_target::build_file_mappings): Print only one warning
1756 per inaccessible file. Add unavailable/broken mappings
1757 to m_core_unavailable_mappings.
1758 (core_target::xfer_partial): Call...
1759 (core_target::xfer_memory_via_mappings): New method.
1760
264fc0e2
SM
17612020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1762
1763 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1764 type to bool.
1765
2de01bdb
SM
17662020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1767
1768 * dwarf2/read.c (struct field_info): Fix indentation.
1769
f3bd50f1
SM
17702020-08-31 Simon Marchi <simon.marchi@efficios.com>
1771
1772 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1773 ordering in comment.
1774 * frame.c (frame_id_eq): Fix indentation.
1775
22b9b4b0
SL
17762020-08-31 Scott Linder <scott@scottlinder.com>
1777 Simon Marchi <simon.marchi@efficios.com>
1778
1779 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1780 inline frame ids in outer frame.
1781
84154d16
SM
17822020-08-31 Simon Marchi <simon.marchi@efficios.com>
1783
1784 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1785 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1786 (outer_frame_id): Use FID_STACK_OUTER instead of
1787 FID_STACK_INVALID.
1788 (frame_id_p): Don't check for outer_frame_id.
1789
8efaf6b3
SM
17902020-08-31 Simon Marchi <simon.marchi@efficios.com>
1791
1792 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1793 regnum/frame in value. Call allocate_value_lazy.
1794 * frame.c (frame_unwind_register_value): Use
1795 val_print_not_saved.
1796
fe1fe7ea
SM
17972020-08-31 Simon Marchi <simon.marchi@efficios.com>
1798
1799 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1800
f7c7700d
PA
18012020-08-29 Pedro Alves <pedro@palves.net>
1802
1803 * progspace.c (print_program_space): Use all_inferiors. Switch to
1804 the inferior before calling target_pid_to_str.
1805
e0814aae
TT
18062020-08-28 Tom Tromey <tom@tromey.com>
1807
1808 * xcoffread.c (xcoff_end_psymtab): Update comment.
1809 * dbxread.c (dbx_end_psymtab): Update comment.
1810
626d2320
TV
18112020-08-28 Tom de Vries <tdevries@suse.de>
1812
1813 PR breakpoint/26544
1814 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1815 event_location.
1816 (create_breakpoint): Same.
1817 (base_breakpoint_decode_location): Same.
1818 (bkpt_create_sals_from_location): Same.
1819 (bkpt_decode_location): Same.
1820 (bkpt_probe_create_sals_from_location): Same.
1821 (bkpt_probe_decode_location): Same.
1822 (tracepoint_create_sals_from_location): Same.
1823 (tracepoint_decode_location): Same.
1824 (tracepoint_probe_decode_location): Same.
1825 (strace_marker_create_sals_from_location): Same.
1826 (strace_marker_decode_location): Same.
1827 (create_sals_from_location_default): Same.
1828 (decode_location_default): Same.
1829 * breakpoint.h (struct breakpoint_ops): Same.
1830 (create_breakpoint): Same.
1831 * linespec.h (decode_line_full): Same.
1832 * linespec.c (decode_line_full): Same. Throw error if
1833 result.size () == 0.
1834
df631783
PA
18352020-08-27 Pedro Alves <pedro@palves.net>
1836
1837 PR gdb/26524
1838 * breakpoint.c (until_break_fsm) <location_breakpoint,
1839 caller_breakpoint>: Delete fields.
1840 <breakpoints>: New field.
1841 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1842 two individual breakpoints.
1843 (until_break_fsm::should_stop): Loop over breakpoints in the
1844 breakpoint vector.
1845 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1846 vector.
1847 (until_break_command): Handle location expanding into multiple
1848 sals.
1849
b2b38aa4
PA
18502020-08-27 Pedro Alves <pedro@palves.net>
1851
1852 PR gdb/26523
1853 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1854 bp_until breakpoints user-specified locations. Update intro
1855 comment.
1856
b886559f
SM
18572020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1858
1859 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1860 gdb_bfd_sections): New.
1861 * maint.c (print_bfd_section_info): Change param type to
1862 maint_print_section_data.
1863 (print_objfile_section_info): Likewise.
1864 (print_bfd_section_info_maybe_relocated): Likewise.
1865 (maintenance_info_sections): Use gdb_bfd_sections.
1866
4c6e63bf
SV
18672020-08-25 Shahab Vahedi <shahab@synopsys.com>
1868
1869 * MAINTAINERS: Add ARC target and maintainer.
1870
8d7f0635
AK
18712020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1872
1873 * configure.tgt: ARC support for GNU/Linux.
1874 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1875 * arc-linux-tdep.c: New file.
1876 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1877 * arc-tdep.c (arc_write_pc): Use it.
1878
fdd8731b
SV
18792020-08-25 Shahab Vahedi <shahab@synopsys.com>
1880
1881 * arc-tdep.c (arc_check_for_hardware_loop): New.
1882 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1883
22459524
SV
18842020-08-25 Shahab Vahedi <shahab@synopsys.com>
1885
1886 * arc-tdep.h: Include "gdbarch.h".
1887
995d3a19
SV
18882020-08-25 Shahab Vahedi <shahab@synopsys.com>
1889
1890 * arch/arc.h
1891 (arc_gdbarch_features): New class to stir the selection of target XML.
1892 (arc_create_target_description): Use FEATURES to choose XML target.
1893 (arc_lookup_target_description): Use arc_create_target_description
1894 to create _new_ target descriptions or return the already created
1895 ones if the FEATURES is the same.
1896 * arch/arc.c: Implementation of prototypes described above.
1897 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1898 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1899 * arc-tdep.c (*_feature_name): Make feature names consistent.
1900 (arc_register_feature): A new struct to hold information about
1901 registers of a particular target/feature.
1902 (arc_check_tdesc_feature): Check if XML provides registers in
1903 compliance with ARC_REGISTER_FEATURE structs.
1904 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1905 (determine_*_reg_feature_set): Which feature name to look for.
1906 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1907 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1908 to expected ISA enums to be used in arc_gdbarch_features structs.
1909 * features/Makefile (FEATURE_XMLFILES): Add new files.
1910 * gdb/features/arc/v1-aux.c: New file.
1911 * gdb/features/arc/v1-aux.xml: Likewise.
1912 * gdb/features/arc/v1-core.c: Likewise.
1913 * gdb/features/arc/v1-core.xml: Likewise.
1914 * gdb/features/arc/v2-aux.c: Likewise.
1915 * gdb/features/arc/v2-aux.xml: Likewise.
1916 * gdb/features/arc/v2-core.c: Likewise.
1917 * gdb/features/arc/v2-core.xml: Likewise.
1918 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1919
3945d2d7
GM
19202020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1921 Andrew Burgess <andrew.burgess@embecosm.com>
1922
1923 PR m2/26372
fc5d6901 1924 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
1925 an assert. Remove single element array indexing pattern as the
1926 MULTI_SUBSCRIPT support will handle this case too.
1927
2677f2d3
SM
19282020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1929
1930 * value.h (valprint_check_validity): Move declaration from
1931 here...
1932 * valprint.h (valprint_check_validity): ... to here.
1933
c426fddb
SM
19342020-08-24 Simon Marchi <simon.marchi@efficios.com>
1935
1936 * debug.h: New file.
1937 * debug.c (debug_prefixed_vprintf): New function.
1938 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1939 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1940
1eb8556f
SM
19412020-08-24 Simon Marchi <simon.marchi@efficios.com>
1942
1943 * infrun.h (infrun_debug_printf_1): New function declaration.
1944 (infrun_debug_printf): New macro.
1945 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1946 throughout.
1947 (infrun_debug_printf): New function.
1948 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1949 (handle_jit_event): Likewise.
1950
b8fff44e
MW
19512020-08-21 Mark Wielaard <mark@klomp.org>
1952
1953 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1954
d19c3068
SM
19552020-08-22 Simon Marchi <simon.marchi@efficios.com>
1956
1957 * frame.c (enum class frame_id_status): New.
1958 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1959 (fprintf_frame): Update.
1960 (compute_frame_id): Set frame id status to "computing" on entry.
1961 Set it back to "not_computed" on failure and to "computed" on
1962 success.
1963 (get_frame_id): Assert the frame id is not being computed.
1964 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1965 (create_new_frame): Likewise.
1966 (frame_cleanup_after_sniffer): Update assert.
1967
b70e516e
SM
19682020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1969
1970 * regcache.c (pid_ptid_regcache_map): New type.
1971 (target_ptid_regcache_map): Remove.
1972 (target_pid_ptid_regcache_map): New type.
1973 (regcaches): Change type to target_pid_ptid_regcache_map.
1974 (get_thread_arch_aspace_regcache): Update.
1975 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1976 case.
1977 (regcaches_size): Update.
1978 (regcache_count): Update.
1979 (registers_changed_ptid_target_pid_test): New.
1980 (_initialize_regcache): Register new test.
1981
cdd9148a
SM
19822020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1983
1984 * regcache.c (regcache_count): New.
1985 (struct regcache_test_data): New.
1986 (regcache_test_data_up): New.
1987 (populate_regcaches_for_test): New.
1988 (regcaches_test): Remove.
1989 (get_thread_arch_aspace_regcache_test): New.
1990 (registers_changed_ptid_all_test): New.
1991 (registers_changed_ptid_target_test): New.
1992 (registers_changed_ptid_target_ptid_test): New.
1993 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1994 (_initialize_regcache): Register new tests.
1995
dd125343
SM
19962020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1997
1998 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1999 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2000 gdbarch and aspace parameter. Use current inferior's aspace.
2001 Validate regcache's arch value.
2002 (regcaches_test): Update.
2003
3ee93972
SM
20042020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2005
2006 * regcache.c (regcaches_test): Call registers_changed.
2007
33bf4c5c
TBA
20082020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2009
2010 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2011
c2fd7fae
AKS
20122020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2013
2014 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2015 to find the end of prologue for flang compiled binaries.
2016 * arm-tdep.c (arm_skip_prologue): Likewise.
2017 * i386-tdep.c (i386_skip_prologue): Likewise.
2018 * producer.c (producer_is_llvm): New function.
2019 (producer_parsing_tests): Added new tests for clang/flang.
2020 * producer.h (producer_is_llvm): New declaration.
2021
9327494e
SM
20222020-08-18 Simon Marchi <simon.marchi@efficios.com>
2023
2024 * linux-nat.c (linux_nat_debug_printf): New function.
2025 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2026
d138725a
AM
20272020-08-18 Aaron Merey <amerey@redhat.com>
2028
2029 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2030 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2031 (CLIBS): Add DEBUGINFOD_LIBS.
2032
f9b11e6b
ST
20332020-08-17 Sergei Trofimovich <siarheit@google.com>
2034
2035 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2036 'gdbarch_num_regs'.
2037
3ae7ab99
TT
20382020-08-17 Tom Tromey <tromey@adacore.com>
2039
2040 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2041 ada_get_decoded_value returns NULL.
2042
b017825f
TT
20432020-08-17 Tom Tromey <tromey@adacore.com>
2044
2045 * python/py-inferior.c (infpy_search_memory): Use
2046 gdb_py_object_from_ulongest.
2047 * python/py-infevents.c (create_inferior_call_event_object)
2048 (create_memory_changed_event_object): Use
2049 gdb_py_object_from_ulongest.
2050 * python/py-linetable.c (ltpy_entry_get_pc): Use
2051 gdb_py_object_from_ulongest.
2052
7635cf79
SM
20532020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2054
2055 * loc.c (class symbol_needs_eval_context): Fix indentation.
2056
f54be24b
SM
20572020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2058
2059 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2060 bool.
2061
53d5a2a5
TV
20622020-08-17 Tom de Vries <tdevries@suse.de>
2063
2064 PR gdb/26393
2065 * gdbtypes.c (dump_dynamic_prop): New function.
2066 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2067
547ce8f0
TV
20682020-08-15 Tom de Vries <tdevries@suse.de>
2069
2070 PR backtrace/26390
2071 * stack.c (print_frame_args): Temporarily set the selected
2072 frame to FRAME while printing the frame's arguments.
2073
6ea815e7
PFC
20742020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2075
2076 PR breakpoints/26385
2077 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2078 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2079
6e562fa3
PFC
20802020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2081
2082 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2083 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2084 and >= to check return value instead of == -1 and != -1.
2085
d369b608
SM
20862020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2087
2088 * utils.h (class gdb_argv) <as_array_view>: New method.
2089 * utils.c (gdb_argv_as_array_view_test): New.
2090 (_initialize_utils): Register selftest.
2091 * maint.c (maintenance_selftest): Use the new method.
2092
b31488a3
KR
20932020-08-13 Kamil Rytarowski <n54@gmx.com>
2094
2095 * target.h (supports_dumpcore, dumpcore): New
2096 function declarations.
2097 * target.c (supports_dumpcore, dumpcore): New
2098 functions.
2099 * target-delegates.c: Rebuild.
2100 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2101 and target_dumpcore ().
2102
002a3166
AM
21032020-08-13 Aaron Merey <amerey@redhat.com>
2104
2105 * debuginfod-support.c: Replace global variables with user_data.
2106
ece5bc8a
SM
21072020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2108
2109 * maint.c (maintenance_selftest): Split args and pass array_view
2110 to run_tests.
2111
6d8a0a5e
LM
21122020-08-12 Luis Machado <luis.machado@linaro.org>
2113
2114 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2115 type's length.
2116 Use %s and pulongest to print the length.
2117
7cf663a9
PA
21182020-08-12 Pedro Alves <palves@redhat.com>
2119
2120 * NEWS: Move "Multi-target debugging support" item to the
2121 "Changes since GDB 9" section.
2122
27c7b875
PA
21232020-08-12 Pedro Alves <palves@redhat.com>
2124
2125 PR gdb/26336
2126 * progspace.c (program_space::remove_objfile): Invalidate the
2127 frame cache.
2128
1796a2a1
TV
21292020-08-11 Tom de Vries <tdevries@suse.de>
2130
2131 * MAINTAINERS: Mark ms1 as deleted.
2132
f8e3fe0d
LM
21332020-08-10 Luis Machado <luis.machado@linaro.org>
2134
2135 PR gdb/26310
2136
2137 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2138 act accordingly.
2139 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2140 movz/str/stur/stp skipping behavior.
2141
cc308722
LM
21422020-08-10 Luis Machado <luis.machado@linaro.org>
2143
2144 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2145 struct user_sve_header instead of struct sve_context.
2146
041d9819
SM
21472020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2148
2149 * read.h (dwarf2_fetch_die_loc_sect_off,
2150 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2151 `void *` parameter with function_view.
2152 * read.c (dwarf2_fetch_die_loc_sect_off,
2153 dwarf2_fetch_die_loc_cu_off): Likewise.
2154 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2155 (per_cu_dwarf_call): Adjust.
2156 (get_frame_address_in_block_wrapper): Remove.
2157 (indirect_synthetic_pointer): Adjust.
2158 (get_ax_pc): Remove.
2159 (dwarf2_compile_expr_to_ax): Adjust.
2160
38f8aa06
TV
21612020-08-08 Tom de Vries <tdevries@suse.de>
2162
2163 PR build/26344
2164 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2165 constructor.
2166 * regcache.c (get_thread_arch_aspace_regcache): Same.
2167
a52b3ae2
TT
21682020-08-07 Tom Tromey <tromey@adacore.com>
2169
2170 * ravenscar-thread.c
2171 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2172 New method.
2173 (ravenscar_thread_target::wait): Check
2174 runtime_initialized.
2175 (ravenscar_thread_target::prepare_to_store)
2176 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2177 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2178 (ravenscar_thread_target::stopped_by_watchpoint)
2179 (ravenscar_thread_target::stopped_data_address)
2180 (ravenscar_thread_target::core_of_thread): Use
2181 scoped_restore_current_thread and
2182 set_base_thread_from_ravenscar_task.
2183
0e29517d
TT
21842020-08-07 Tom Tromey <tromey@adacore.com>
2185
2186 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2187
592f9bd7
TT
21882020-08-07 Tom Tromey <tromey@adacore.com>
2189
2190 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2191 update_inferior_ptid before update_thread_list.
2192 (temporarily_change_regcache_ptid): New class.
2193 (ravenscar_thread_target::fetch_registers)
2194 (ravenscar_thread_target::store_registers)
2195 (ravenscar_thread_target::prepare_to_store): Use base thread when
2196 forwarding operation.
2197
39e2018a
TT
21982020-08-07 Tom Tromey <tromey@adacore.com>
2199
2200 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2201 "is_pid" case.
2202
2080266b
TT
22032020-08-07 Tom Tromey <tromey@adacore.com>
2204
2205 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2206 New methods.
2207 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2208 first.
2209 (ravenscar_thread_target::add_thread): Rename from
2210 ravenscar_add_thread.
2211 (ravenscar_thread_target::update_thread_list): Use a lambda.
2212 (ravenscar_thread_target::xfer_partial): New method.
2213
78c02f21
TT
22142020-08-07 Tom Tromey <tromey@adacore.com>
2215
2216 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2217 gdb::function_view.
2218 (iterate_over_live_ada_tasks): Change type of argument.
2219 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2220 of argument.
2221
d5d833af
TT
22222020-08-07 Tom Tromey <tromey@adacore.com>
2223
2224 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2225 Remove.
2226 (ravenscar_thread_target::extra_thread_info): Remove.
2227 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2228 defer to target beneath for non-Ravenscar threads.
2229
a8ac85bb
TT
22302020-08-07 Tom Tromey <tromey@adacore.com>
2231
2232 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2233 get_base_thread_from_ravenscar_task>: Now methods.
2234 <m_cpu_map>: New member.
2235 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2236 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2237 (ravenscar_thread_target::task_is_currently_active): Update.
2238 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2239 Now a method.
2240 (ravenscar_thread_target::add_active_thread): Put initial thread
2241 into the m_cpu_map.
2242
550ab58d
TT
22432020-08-07 Tom Tromey <tromey@adacore.com>
2244
2245 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2246 event_ptid.
2247
e9546579
TT
22482020-08-07 Tom Tromey <tromey@adacore.com>
2249
2250 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2251 runtime_initialized.
2252
3d4470e5
TT
22532020-08-07 Tom Tromey <tromey@adacore.com>
2254
2255 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2256 add_active_thread.
2257 (ravenscar_thread_target::add_active_thread): Now public.
2258 (ravenscar_inferior_created): Call add_active_thread after pushing
2259 the target.
2260
888bdb2b
SM
22612020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2262
2263 * regcache.c (ptid_regcache_map): New type.
2264 (target_ptid_regcache_map): New type.
2265 (regcaches): Change type to target_ptid_regcache_map.
2266 (get_thread_arch_aspace_regcache): Update to regcaches' new
2267 type.
2268 (regcache_thread_ptid_changed): Likewise.
2269 (registers_changed_ptid): Likewise.
2270 (regcaches_size): Likewise.
2271 (regcaches_test): Update.
2272 (regcache_thread_ptid_changed): Update.
2273 * regcache.h (regcache_up): New type.
2274 * gdbsupport/ptid.h (hash_ptid): New struct.
2275
b161a60d
SM
22762020-08-07 Simon Marchi <simon.marchi@efficios.com>
2277
2278 * observable.h (thread_ptid_changed): Add parameter
2279 `process_stratum_target *`.
2280 * infrun.c (infrun_thread_ptid_changed): Add parameter
2281 `process_stratum_target *` and use it.
2282 (selftests): New namespace.
2283 (infrun_thread_ptid_changed): New function.
2284 (_initialize_infrun): Register selftest.
2285 * regcache.c (regcache_thread_ptid_changed): Add parameter
2286 `process_stratum_target *` and use it.
2287 (regcache_thread_ptid_changed): New function.
2288 (_initialize_regcache): Register selftest.
2289 * thread.c (thread_change_ptid): Pass target to
2290 thread_ptid_changed observable.
2291
d2854d8d
CT
22922020-08-06 Caroline Tice <cmtice@google.com>
2293
fe4c3d43
SM
2294 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2295 (struct dwp_sections): Update field comments. Add loclists and
2296 rnglists fields.
2297 (struct virtual_v2_dwo_sections): Rename struct to
2298 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2299 size & offset fields for loclists and rnglists.
2300 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2301 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2302 skipping dummy type units.
2303 (create_dwp_hash_table): Update the large comment above the function to
2304 discuss Version 5 DWP files as well, with references. Update all the
2305 version checks in the function to check for version 5 as well. Add new
2306 section at the end to create dwp hash table for version 5.
2307 (create_dwp_v2_section): Rename function to
2308 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2309 Add V5 to error message text.
2310 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2311 into calls to create_dwp_v2_or_v5_section.
2312 (create_dwo_unit_in_dwp_v5): New function.
2313 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2314 check for version2; add else clause to handle version 5.
2315 (open_and_init_dwo_file): Add code to check dwarf version & only call
2316 create_debug_types_hash_table (with sections.types) if version is not 5;
2317 else call create_debug_type_hash_table, with sections.info.
2318 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2319 version 5.
2320 (dwarf2_locate_v5_dwp_sections): New function.
2321 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2322 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2323
159ed7d9
SM
23242020-08-06 Simon Marchi <simon.marchi@efficios.com>
2325
2326 * regcache.h (class regcache): Remove friend
2327 registers_changed_ptid.
2328 <regcache_thread_ptid_changed>: Remove.
2329 <regcaches>: Remove.
2330 * regcache.c (regcache::regcaches): Rename to...
2331 (regcaches): ... this. Make static.
2332 (get_thread_arch_aspace_regcache): Update.
2333 (regcache::regcache_thread_ptid_changed): Rename to...
2334 (regcache_thread_ptid_changed): ... this. Update.
2335 (class regcache_access): Remove.
2336 (regcaches_test): Update.
2337 (_initialize_regcache): Update.
2338 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2339 <forward_list>.
2340
174981ae
SM
23412020-08-06 Simon Marchi <simon.marchi@efficios.com>
2342
2343 * regcache.h (class regcache) <current_regcache>: Rename to...
2344 <regcaches>: ... this. Move doc here.
2345 * regcache.c (regcache::current_regcache) Rename to...
2346 (regcache::regcaches): ... this. Move doc to header.
2347 (get_thread_arch_aspace_regcache): Update.
2348 (regcache::regcache_thread_ptid_changed): Update.
2349 (registers_changed_ptid): Update.
2350 (class regcache_access) <current_regcache_size>: Rename to...
2351 <regcaches_size>: ... this.
2352 (current_regcache_test): Rename to...
2353 (regcaches_test): ... this.
2354 (_initialize_regcache): Update.
2355
ed908db6
VC
23562020-08-06 Victor Collod <vcollod@nvidia.com>
2357
2358 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2359
b5582ab7
KB
23602020-08-05 Kevin Buettner <kevinb@redhat.com>
2361
2362 * corelow.c (core_target::build_file_mappings): Don't output
2363 null pathname in warning.
2364
ea946b86
SM
23652020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2366
2367 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2368 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2369 gdb.dwarf2/dw2-single-line-discriminators.exp,
2370 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2371
57d02173
TT
23722020-08-05 Tom Tromey <tromey@adacore.com>
2373
2374 PR rust/26197:
2375 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2376 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2377 Fix off-by-one and type size errors in ordinary case.
2378
5555c86d
TV
23792020-08-05 Tom de Vries <tdevries@suse.de>
2380
2381 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2382 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2383
97916bfe
SM
23842020-08-04 Simon Marchi <simon.marchi@efficios.com>
2385
2386 * frame.h (frame_id_p): Return bool.
2387 (frame_id_artificial_p): Return bool.
2388 (frame_id_eq): Return bool.
2389 (has_stack_frames): Return bool.
2390 (get_selected_frame): Fix typo in comment.
2391 (get_frame_pc_if_available): Return bool.
2392 (get_frame_address_in_block_if_available): Return bool.
2393 (get_frame_func_if_available): Return bool.
2394 (read_frame_register_unsigned): Return bool.
2395 (get_frame_register_bytes): Return bool.
2396 (safe_frame_unwind_memory): Return bool.
2397 (deprecated_frame_register_read): Return bool.
2398 (frame_unwinder_is): Return bool.
2399 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2400 bool.
2401 <this_id::p>: Likewise.
2402 <prev_p>: Likewise.
2403 (frame_stash_add): Return bool.
2404 (get_frame_id): Use bool.
2405 (frame_id_build_special) Use bool.
2406 (frame_id_build_unavailable_stack): Use bool.
2407 (frame_id_build): Use bool.
2408 (frame_id_p): Return bool, use true/false instead of 1/0.
2409 (frame_id_artificial_p): Likewise.
2410 (frame_id_eq): Likewise.
2411 (frame_id_inner): Likewise.
2412 (get_frame_func_if_available): Likewise.
2413 (read_frame_register_unsigned): Likewise.
2414 (deprecated_frame_register_read): Likewise.
2415 (get_frame_register_bytes): Likewise.
2416 (has_stack_frames): Likewise.
2417 (inside_main_func): Likewise.
2418 (inside_entry_func): Likewise.
2419 (get_frame_pc_if_available): Likewise.
2420 (get_frame_address_in_block_if_available): Likewise.
2421 (frame_unwinder_is): Likewise.
2422 (safe_frame_unwind_memory): Likewise.
2423 (frame_unwind_arch): Likewise.
2424
fedfee88
SM
24252020-08-04 Simon Marchi <simon.marchi@efficios.com>
2426
2427 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2428 type to cached_copy_status.
2429 (fprintf_frame): Adjust.
2430 (get_frame_func_if_available): Adjust.
2431 (frame_cleanup_after_sniffer): Adjust.
2432
6cfa9b59
MW
24332020-08-04 Mark Wielaard <mark@klomp.org>
2434
2435 * MAINTAINERS (Write After Approval): Update email address.
2436
66d6346b
SM
24372020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2438
2439 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2440 dynamic_prop::const_val.
2441
8a6d5e35
SM
24422020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2443
2444 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2445 dynamic_prop::kind.
2446
51d6067d
SM
24472020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2448
2449 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2450
b26e2ae7
JM
24512020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2452
2453 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2454
39791af2
JM
24552020-08-04 Weimin Pan <weimin.pan@oracle.com>
2456 Jose E. Marchesi <jose.marchesi@oracle.com>
2457
2458 * configure.tgt: Add entry for bpf-*-*.
2459 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2460 (ALLDEPFILES): Add bpf-tdep.c.
2461 * bpf-tdep.c: New file.
2462 * MAINTAINERS: Add bpf target and maintainer.
2463 * NEWS: Mention the support for the new target.
2464
521894aa
TV
24652020-08-04 Tom de Vries <tdevries@suse.de>
2466
2467 PR symtab/23270
2468 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2469 Error.
2470
5d6356e9
JB
24712020-08-03 John Baldwin <jhb@FreeBSD.org>
2472
2473 * syscalls/freebsd.xml: Regenerate.
2474
0cf82b81
JB
24752020-08-03 John Baldwin <jhb@FreeBSD.org>
2476
2477 * syscalls/update-freebsd.sh: Fix usage and year range.
2478
8f34b746
TV
24792020-08-03 Tom de Vries <tdevries@suse.de>
2480
2481 PR symtab/26333
2482 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2483 DW_LNE_lo_user/DW_LNE_hi_user range.
2484
5e500d33
SM
24852020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2486
2487 PR ada/26318
2488 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2489 kind.
2490
78319c15
TBA
24912020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2492
2493 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2494
4c55e970
TBA
24952020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2496
2497 * breakpoint.c (set_breakpoint_condition): Update the condition
2498 expressions after checking that the input condition string parses
2499 successfully and does not contain junk at the end.
2500
1e620590
TBA
25012020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2502
2503 * breakpoint.c (set_breakpoint_condition): Update the
2504 condition string after parsing the new condition successfully.
2505
c8693053
RO
25062020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2507
2508 * proc-api.c (_STRUCTURED_PROC): Don't define.
2509 * proc-events.c: Likewise.
2510 * proc-flags.c: Likewise.
2511 * proc-why.c: Likewise.
2512 * procfs.c: Likewise.
2513
2514 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2515 * configure, config.in: Regenerate.
2516
5a99adb8
TV
25172020-07-30 Tom de Vries <tdevries@suse.de>
2518
2519 PR build/26320
2520 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2521 m_red/m_green/m_blue in a union.
2522
8ba83e91
TV
25232020-07-29 Tom de Vries <tdevries@suse.de>
2524
2525 PR tdep/26280
2526 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2527
f75a0693
AB
25282020-07-28 Tom Tromey <tromey@adacore.com>
2529
2530 PR symtab/26270:
2531 * symtab.h (find_pc_partial_function_sym): Declare.
2532 * cli/cli-cmds.c (disassemble_command): Use
2533 find_pc_partial_function_sym. Check asm_demangle.
2534 * blockframe.c (cache_pc_function_sym): New global.
2535 (cache_pc_function_name): Remove.
2536 (clear_pc_function_cache): Update.
2537 (find_pc_partial_function_sym): New function, from
2538 find_pc_partial_function.
2539 (find_pc_partial_function): Rewrite using
2540 find_pc_partial_function_sym.
2541
16f3242c
TT
25422020-07-28 Tom Tromey <tromey@adacore.com>
2543
2544 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2545 help. Add usage.
2546
4888741a
TT
25472020-07-28 Tom Tromey <tromey@adacore.com>
2548
2549 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2550 <DW_OP_GNU_variable_value>: Cast to address type.
2551
4d46f402
KR
25522020-07-28 Kamil Rytarowski <n54@gmx.com>
2553
2554 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2555 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2556 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2557 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2558 (nbsd_get_siginfo_type): New.
2559 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2560 (_initialize_nbsd_tdep): New.
2561
d70f978b
L
25622020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2563
2564 PR binutils/26301
2565 * configure: Regenerated.
2566
377170fa
L
25672020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2568
2569 PR binutils/26301
2570 * configure: Regenerated.
2571
43d5901d
AB
25722020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2573
2574 * python/py-frame.c: Remove 'user-regs.h' include.
2575 (frapy_read_register): Rewrite to make use of
2576 gdbpy_parse_register_id.
2577 * python/py-registers.c (gdbpy_parse_register_id): New function,
2578 moved here from python/py-unwind.c. Updated the return type, and
2579 also accepts register descriptor objects.
2580 * python/py-unwind.c: Remove 'user-regs.h' include.
2581 (pyuw_parse_register_id): Moved to python/py-registers.c.
2582 (unwind_infopy_add_saved_register): Update to use
2583 gdbpy_parse_register_id.
2584 (pending_framepy_read_register): Likewise.
2585 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2586
14fa8fb3
AB
25872020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2588
2589 * python/py-registers.c: Add 'user-regs.h' include.
2590 (register_descriptor_iter_find): New function.
2591 (register_descriptor_iterator_object_methods): New static global
2592 methods array.
2593 (register_descriptor_iterator_object_type): Add pointer to methods
2594 array.
2595
ddce1758
JB
25962020-07-27 John Baldwin <jhb@FreeBSD.org>
2597
2598 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2599 for all architectures on FreeBSD 11.3 and later.
2600
a4089f52
TT
26012020-07-27 Tom Tromey <tromey@adacore.com>
2602
2603 * gcore.h (load_corefile): Don't declare.
2604
95420d30
TV
26052020-07-27 Tom de Vries <tdevries@suse.de>
2606
2607 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2608 * config.in: Regenerate.
2609 * configure: Regenerate.
2610
05a6b8c2
EZ
26112020-07-26 Eli Zaretskii <eliz@gnu.org>
2612
2613 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2614 ws2tcpip.h. When checking whether socklen_t type is defined, use
2615 ws2tcpip.h if it is available and sys/socket.h isn't.
2616 * configure: Regenerate.
2617 * config.in: Regenerate.
2618
e79eb02f
AB
26192020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2620
2621 PR fortran/23051
2622 PR fortran/26139
2623 * valops.c (value_ind): Pass address to
2624 readjust_indirect_value_type.
2625 * value.c (readjust_indirect_value_type): Make parameter
2626 non-const, and add extra address parameter. Resolve original type
2627 before using it.
2628 * value.h (readjust_indirect_value_type): Update function
2629 signature and comment.
2630
876518dd
TV
26312020-07-25 Tom de Vries <tdevries@suse.de>
2632
2633 PR symtab/26243
2634 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2635 entries.
2636
f6720b1c
AM
26372020-07-24 Aaron Merey <amerey@redhat.com>
2638
2639 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2640 * configure: Rebuild.
2641
513487e1
KB
26422020-07-23 Kevin Buettner <kevinb@redhat.com>
2643
2644 PR corefiles/26294
2645 * corelow.c (_initialize_corelow): Add period to help text
2646 for "maintenance print core-file-backed-mappings".
2647
e7bc9db8
PA
26482020-07-23 Pedro Alves <pedro@palves.net>
2649
2650 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2651 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2652 meanwhile.
2653 * frame.c (frame_cache_generation, get_frame_cache_generation):
2654 New.
2655 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2656 (get_prev_frame_if_no_cycle): On exception, don't touch
2657 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2658 * frame.h (get_frame_cache_generation): Declare.
2659
90fcc466
TV
26602020-07-23 Tom de Vries <tdevries@suse.de>
2661
2662 PR tui/26282
2663 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2664 New default constructor.
2665
78344df7
AB
26662020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2667
2668 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2669 exclude non-statement entries.
2670
b089853a
KB
26712020-07-22 Kevin Buettner <kevinb@redhat.com>
2672
2673 * NEWS (New commands): Mention new command
2674 "maintenance print core-file-backed-mappings".
2675
09c2f5d4
KB
26762020-07-22 Kevin Buettner <kevinb@redhat.com>
2677
2678 * corelow.c (gdbcmd.h): Include.
2679 (core_target::info_proc_mappings): New method.
2680 (get_current_core_target): New function.
2681 (maintenance_print_core_file_backed_mappings): New function.
2682 (_initialize_corelow): Add core-file-backed-mappings to
2683 "maint print" commands.
2684
9c5ec5c2 26852020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 2686
9c5ec5c2
KB
2687 * linux-tdep.c (dump_note_entry_p): New function.
2688 (linux_dump_mapping_p_ftype): New typedef.
2689 (linux_find_memory_regions_full): Add new parameter,
2690 should_dump_mapping_p.
2691 (linux_find_memory_regions): Adjust call to
2692 linux_find_memory_regions_full.
2693 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2694 call to linux_find_memory_regions_full.
2695
db082f59
KB
26962020-07-22 Kevin Buettner <kevinb@redhat.com>
2697
2698 * corelow.c (solist.h, unordered_map): Include.
2699 (class core_target): Add field m_core_file_mappings and
2700 method build_file_mappings.
2701 (core_target::core_target): Call build_file_mappings.
2702 (core_target::~core_target): Free memory associated with
2703 m_core_file_mappings.
2704 (core_target::build_file_mappings): New method.
2705 (core_target::xfer_partial): Use m_core_file_mappings
2706 for memory transfers.
2707 * linux-tdep.c (linux_read_core_file_mappings): New
2708 function.
2709 (linux_core_info_proc_mappings): Rewrite to use
2710 linux_read_core_file_mappings.
2711 (linux_init_abi): Register linux_read_core_file_mappings.
2712
7e183d27
KB
27132020-07-22 Kevin Buettner <kevinb@redhat.com>
2714
2715 * arch-utils.c (default_read_core_file_mappings): New function.
2716 * arch-utils.c (default_read_core_file_mappings): Declare.
2717 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2718 * gdbarch.h, gdbarch.c: Regenerate.
2719
2735d421
KB
27202020-07-22 Kevin Buettner <kevinb@redhat.com>
2721
2722 PR corefiles/25631
2723 * corelow.c (core_target:xfer_partial): Revise
2724 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2725 case after first checking the stratum beneath the core
2726 target.
2727 (has_all_memory): Return true.
2728 * target.c (raw_memory_xfer_partial): Revise comment
2729 regarding use of has_all_memory.
2730
e56cb451
KB
27312020-07-22 Kevin Buettner <kevinb@redhat.com>
2732
2733 * exec.h (section_table_xfer_memory): Revise declaration,
2734 replacing section name parameter with an optional callback
2735 predicate.
2736 * exec.c (section_table_xfer_memory): Likewise.
2737 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2738 of section_table_xfer_memory.
2739
32fa152e
TT
27402020-07-22 Tom Tromey <tromey@adacore.com>
2741
2742 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2743 lookup_symbol_search_name.
2744
a67a1c41
AB
27452020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2746
2747 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2748 redundant local variable.
2749 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2750 reference, not pointer, update code accordingly.
2751
a7b4ff4f
SM
27522020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2753 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2754
2755 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2756 * jit.c (jit_breakpoint_re_set_internal): Use the
2757 `skip_jit_symbol_lookup` field.
2758
2340e834
SM
27592020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2760 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2761
2762 * jit.c (jit_read_descriptor): Define the descriptor address once,
2763 use twice.
2764 (jit_breakpoint_deleted): Move the declaration of the loop variable
2765 `iter` into the loop header.
2766 (jit_breakpoint_re_set_internal): Move the declaration of the local
2767 variable `objf_data` to the first point of definition.
2768 (jit_event_handler): Move the declaration of local variables
2769 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2770 Rename `objf` to `jited`.
2771
c1072906
SM
27722020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2773
2774 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2775 Remove.
2776 * jit.c (get_jiter_objfile_data): Update.
2777
c8474dc3
TBA
27782020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2779 Simon Marchi <simon.marchi@polymtl.ca>
2780
2781 * jit.c (struct jit_program_space_data): Remove.
2782 (jit_program_space_key): Remove.
2783 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2784 stuff.
2785 (get_jit_program_space_data): Remove.
2786 (jit_breakpoint_deleted): Iterate on all of the program space's
2787 objfiles.
2788 (jit_inferior_init): Likewise.
2789 (jit_breakpoint_re_set_internal): Likewise. Also change return
2790 type to void.
2791 (jit_breakpoint_re_set): Pass current_program_space to
2792 jit_breakpoint_re_set_internal.
2793
77208eb7
SM
27942020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2795
2796 * jit.h (struct jiter_objfile_data) <cached_code_address,
2797 jit_breakpoint>: Move to here from ...
2798 * jit.c (jit_program_space_data): ... here.
2799 (jiter_objfile_data::~jiter_objfile_data): Update.
2800 (jit_breakpoint_deleted): Update.
2801 (jit_breakpoint_re_set_internal): Update.
2802
8c1c720f
SM
28032020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2804
2805 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2806 checks.
2807 (jit_read_descriptor): Remove NULL check.
2808 (jit_event_handler): Add an assertion.
2809
0e74a041
SM
28102020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2811
2812 * jit.h (struct jit_objfile_data): Split into...
2813 (struct jiter_objfile_data): ... this ...
2814 (struct jited_objfile_data): ... and this.
2815 * objfiles.h (struct objfile) <jit_data>: Remove.
2816 <jiter_data, jited_data>: New fields.
2817 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2818 (jiter_objfile_data::~jiter_objfile_data): ... this.
2819 (get_jit_objfile_data): Rename to ...
2820 (get_jiter_objfile_data): ... this.
2821 (add_objfile_entry): Update.
2822 (jit_read_descriptor): Use get_jiter_objfile_data.
2823 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2824 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2825 (jit_inferior_exit_hook): Use objfile's jited_data field.
2826
238b5c9f
SM
28272020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2828
2829 * jit.h: Forward-declare `struct minimal_symbol`.
2830 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2831 constructor, destructor, and an objfile* field.
2832 * jit.c (jit_objfile_data): Remove.
2833 (struct jit_objfile_data): Migrate from here to jit.h.
2834 (jit_objfile_data::~jit_objfile_data): New destructor
2835 implementation with code moved from free_objfile_data.
2836 (free_objfile_data): Delete.
2837 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2838 (jit_find_objf_with_entry_addr): Ditto.
2839 (jit_inferior_exit_hook): Ditto.
2840 (_initialize_jit): Remove the call to
2841 register_objfile_data_with_cleanup.
2842 * objfiles.h (struct objfile) <jit_data>: New field.
2843
fe053b9e
TBA
28442020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2845
2846 * jit.h: Forward-declare `struct objfile`.
2847 (jit_event_handler): Add a second parameter, the JITer objfile.
2848 * jit.c (jit_read_descriptor): Change the signature to take the
2849 JITer objfile as an argument instead of the jit_program_space_data.
2850 (jit_inferior_init): Update the call to jit_read_descriptor.
2851 (jit_event_handler): Use the new JITer objfile argument when calling
2852 jit_read_descriptor.
2853 * breakpoint.c (handle_jit_event): Update the call to
2854 jit_event_handler to pass the JITer objfile.
2855
4cec0c66
JB
28562020-07-21 John Baldwin <jhb@FreeBSD.org>
2857
2858 * gdbarch.c: Regenerate.
2859 * gdbarch.h: Regenerate.
2860 * gdbarch.sh (handle_segmentation_fault): Remove method.
2861 * infrun.c (handle_segmentation_fault): Remove.
2862 (print_signal_received_reason): Remove call to
2863 handle_segmentation_fault.
2864
0e42f66a
JB
28652020-07-21 John Baldwin <jhb@FreeBSD.org>
2866
2867 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2868 Rename to sparc64_linux_report_signal_info and add siggnal
2869 argument.
2870 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2871 instead of sparc64_linux_handle_segmentation_fault.
2872
77bdfeb2
JB
28732020-07-21 John Baldwin <jhb@FreeBSD.org>
2874
2875 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2876 i386_linux_report_signal_info instead of
2877 i386_linux_handle_segmentation_fault.
2878 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2879 to i386_linux_report_signal_info and add siggnal argument.
2880 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2881 of i386_linux_handle_segmentation_fault.
2882 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2883 to i386_linux_report_signal_info and add siggnal argument.
2884
ad97bfc5
JB
28852020-07-21 John Baldwin <jhb@FreeBSD.org>
2886
2887 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2888 hook if present.
2889
272bb05c
JB
28902020-07-21 John Baldwin <jhb@FreeBSD.org>
2891
2892 * gdbarch.c: Regenerate.
2893 * gdbarch.h: Regenerate.
2894 * gdbarch.sh (report_signal_info): New method.
2895 * infrun.c (print_signal_received_reason): Invoke gdbarch
2896 report_signal_info hook if present.
2897
baf8791e
AB
28982020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2899
2900 * python/py-registers.c : Add 'unordered_map' include.
2901 (gdbpy_new_reggroup): Renamed to...
2902 (gdbpy_get_reggroup): ...this. Update to only create register
2903 group descriptors when needed.
2904 (gdbpy_reggroup_iter_next): Update.
2905
f7306dac
AB
29062020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2907
2908 * python/py-registers.c (gdbpy_register_object_data): New static
2909 global.
2910 (gdbpy_register_object_data_init): New function.
2911 (gdbpy_new_register_descriptor): Renamed to...
2912 (gdbpy_get_register_descriptor): ...this, and update to reuse
2913 existing register descriptors where possible.
2914 (gdbpy_register_descriptor_iter_next): Update.
2915 (gdbpy_initialize_registers): Register new gdbarch data.
2916
05c309a8
SM
29172020-07-21 Simon Marchi <simon.marchi@efficios.com>
2918
2919 * linux-nat.c (stopped_pids): Make static.
2920
d1fd641e
SM
29212020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2922
2923 PR ada/26235
2924 * gdbtypes.c (ada_discrete_type_low_bound,
2925 ada_discrete_type_high_bound): Handle undefined bounds.
2926
1de14d77
KR
29272020-07-21 Kamil Rytarowski <n54@gmx.com>
2928
2929 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2930 declaration.
2931 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2932 function.
2933
ed810cc7
JB
29342020-07-20 John Baldwin <jhb@FreeBSD.org>
2935
2936 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2937 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2938 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2939 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2940 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2941 method.
2942
ae5369e7
LC
29432020-07-20 Ludovic Courtès <ludo@gnu.org>
2944
2945 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2946 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2947 which are deprecated in Guile 3.0.
2948 * configure.ac (try_guile_versions): Add "guile-3.0".
2949 * configure (try_guile_versions): Regenerate.
2950 * NEWS: Update entry.
2951
68cf161c
LC
29522020-07-20 Ludovic Courtès <ludo@gnu.org>
2953 Doug Evans <dje@google.com>
2954
2955 PR gdb/21104
2956 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2957 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2958 USING_GUILE_BEFORE_2_2.
2959 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2960 Change type to 'scm_t_port_type *'.
2961 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2962 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2963 parameter and honor it. Update callers.
2964 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2965 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2966 functions.
2967 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2968 USING_GUILE_BEFORE_2_2.
2969 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2970 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2971 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2972 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2973 and 'SCM_PORT_TYPE'.
2974 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2975 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2976 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2977 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2978 [!USING_GUILE_BEFORE_2_2]: New functions.
2979 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2980 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2981 'gdbscm_memory_port_read'.
2982 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2983 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2984 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2985 function.
2986 (ioscm_init_memory_port): Remove.
2987 (ioscm_init_memory_port_stream): New function
2988 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2989 function.
2990 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2991 Return scm_from_uint (0).
2992 (gdbscm_set_memory_port_read_buffer_size_x)
2993 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2994 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2995 Return scm_from_uint (0).
2996 (gdbscm_set_memory_port_write_buffer_size_x)
2997 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2998 * configure.ac (try_guile_versions): Add "guile-2.2".
2999 * configure: Regenerate.
3000 * NEWS: Add entry.
3001
aee91db3
TT
30022020-07-18 Tom Tromey <tom@tromey.com>
3003
3004 * linux-nat.c (linux_multi_process): Remove.
3005 (linux_nat_target::supports_multi_process): Return true.
3006
0e267416
AB
30072020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3008
3009 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3010 (riscv_lookup_target_description): Return pointer out of
3011 unique_ptr.
3012 * target-descriptions.c (allocate_target_description): Add
3013 comment.
3014 (target_desc_deleter::operator()): Likewise.
3015 * target-descriptions.h (struct target_desc_deleter): Moved to
3016 gdbsupport/tdesc.h.
3017 (target_desc_up): Likewise.
3018
f80c8ec4
TT
30192020-07-17 Tom Tromey <tromey@adacore.com>
3020
3021 * linux-nat.c (linux_nat_target::supports_non_stop)
3022 (linux_nat_target::always_non_stop_p): Use "true".
3023 (linux_nat_target::supports_disable_randomization): Use "true" and
3024 "false".
3025
d0ce17d8
CT
30262020-07-16 Caroline Tice <cmtice@google.com>
3027
3028 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3029 (RNGLIST_HEADER_SIZE64): New constant definition.
3030 (struct dwop_section_names): Add rnglists_dwo.
3031 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3032 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3033 (struct dwo_sections): Add rnglists field.
3034 (read_attribut_reprocess): Add tag parameter.
3035 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3036 (cu_debug_rnglists_section): New function (decl & definition).
3037 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3038 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3039 die whose range is being checked; get rnglist section from
3040 cu_debug_rnglists_section, to get from either objfile or dwo file as
3041 appropriate. Add cases for DW_RLE_base_addressx,
3042 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3043 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3044 test inside if-condition and updating complaint message.
3045 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3046 dwarf2_rnglists_process.
3047 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3048 dwarf2_ranges_process.
3049 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3050 need_ranges_base and update comment appropriately. Also pass die tag
3051 to dwarf2_ranges_read.
3052 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3053 need_ranges_base and update comment appropriately. Also pass die tag
3054 to dwarf2_ranges_process.
3055 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3056 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3057 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3058 need_ranges_base and update comment appropriately. Also pass die tag
3059 to read_attribute_reprocess and dwarf2_ranges_read.
3060 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3061 and update function comment appropriately.
3062 (read_loclist_index): Call read_loclists_rnglists_header instead of
3063 read_loclist_header.
3064 (read_rnglist_index): New function.
3065 (read_attribute_reprocess): Add tag parameter. Add code for
3066 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3067 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3068
3dcc261c
AB
30692020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3070
3071 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3072 being resolved.
3073
ccb9eba6
AB
30742020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3075
3076 * arch-utils.c (show_architecture): Update formatting of messages.
3077
cf88be68
SM
30782020-07-12 Simon Marchi <simon.marchi@efficios.com>
3079
3080 * gdbtypes.h (struct type) <bounds>: Handle array and string
3081 types.
3082 * ada-lang.c (assign_aggregate): Use type::bounds on
3083 array/string type.
3084 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3085 * c-varobj.c (c_number_of_children): Likewise.
3086 (c_describe_child): Likewise.
3087 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3088 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3089 (f_type_print_base): Likewise.
3090 * f-valprint.c (f77_array_offset_tbl): Likewise.
3091 (f77_get_upperbound): Likewise.
3092 (f77_print_array_1): Likewise.
3093 * guile/scm-type.c (gdbscm_type_range): Likewise.
3094 * m2-typeprint.c (m2_array): Likewise.
3095 (m2_is_long_set_of_type): Likewise.
3096 * m2-valprint.c (get_long_set_bounds): Likewise.
3097 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3098 * python/py-type.c (typy_range): Likewise.
3099 * rust-lang.c (rust_internal_print_type): Likewise.
3100 * type-stack.c (type_stack::follow_types): Likewise.
3101 * valarith.c (value_subscripted_rvalue): Likewise.
3102 * valops.c (value_cast): Likewise.
3103
509971ae
SM
31042020-07-12 Simon Marchi <simon.marchi@efficios.com>
3105
3106 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3107 callers to use the equivalent accessor methods.
3108
107406b7
SM
31092020-07-12 Simon Marchi <simon.marchi@efficios.com>
3110
3111 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3112 (struct type) <bit_stride>: New method.
3113 (TYPE_BIT_STRIDE): Remove.
3114 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3115
bb789949
SM
31162020-07-12 Simon Marchi <simon.marchi@efficios.com>
3117
3118 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3119 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3120 callers to use the equivalent accessor methods instead.
3121
39498edb
SM
31222020-07-12 Simon Marchi <simon.marchi@efficios.com>
3123
3124 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3125 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3126 callers to use the equivalent accessor methods instead.
3127
3b606f38
SM
31282020-07-12 Simon Marchi <simon.marchi@efficios.com>
3129
3130 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3131 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3132 to use dynamic_prop::kind.
3133
064d9cb9
SM
31342020-07-12 Simon Marchi <simon.marchi@efficios.com>
3135
3136 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3137 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3138 to get the bound property's kind and check against
3139 PROP_UNDEFINED.
3140
5537ddd0
SM
31412020-07-12 Simon Marchi <simon.marchi@efficios.com>
3142
3143 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3144 all callers to use type::range_bounds followed by
3145 dynamic_prop::{low,high}.
3146
8c2e4e06
SM
31472020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3148
3149 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3150 const_val, set_const_val, baton, set_locexpr, set_loclist,
3151 set_addr_offset, variant_parts, set_variant_parts,
3152 original_type, set_original_type>: New methods.
3153 <kind>: Rename to...
3154 <m_kind>: ... this. Update all users to use the new methods
3155 instead.
3156 <data>: Rename to...
3157 <m_data>: ... this. Update all users to use the new methods
3158 instead.
3159
7c6f2712
SM
31602020-07-12 Simon Marchi <simon.marchi@efficios.com>
3161
3162 * gdbtypes.c (get_discrete_bounds): Return failure if
3163 the range type's bounds are not both defined and constant
3164 values.
3165 (get_array_bounds): Update comment. Remove undefined bound check.
3166
599088e3
SM
31672020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3168
3169 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3170 the type::bounds method directly.
3171
c4dfcb36
SM
31722020-07-12 Simon Marchi <simon.marchi@efficios.com>
3173
3174 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3175 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3176 are used to set the range type's bounds to use set_bounds.
3177
0a278aa7
PW
31782020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3179
3180 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3181
cce20f10
PA
31822020-07-10 Pedro Alves <pedro@palves.net>
3183
3184 * gdbthread.h (inferior_ref): Define.
3185 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3186 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3187 * thread.c
3188 (scoped_restore_current_thread::restore):
3189 Adjust to gdb::ref_ptr.
3190 (scoped_restore_current_thread::~scoped_restore_current_thread):
3191 Remove manual decref handling.
3192 (scoped_restore_current_thread::scoped_restore_current_thread):
3193 Adjust to use
3194 inferior_ref::new_reference/thread_info_ref::new_reference.
3195 Incref the thread before calling get_frame_id instead of after.
3196 Let TARGET_CLOSE_ERROR propagate.
3197
6d7aa592
PA
31982020-07-10 Pedro Alves <pedro@palves.net>
3199
3200 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3201 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3202 NOT_AVAILABLE_ERROR.
3203 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3204 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3205
b3e3a4c1
SM
32062020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3207 Pedro Alves <pedro@palves.net>
3208
3209 PR gdb/26199
3210 * infrun.c (threads_are_resumed_pending_p): Delete.
3211 (do_target_wait): Remove threads_are_executing and
3212 threads_are_resumed_pending_p checks from the inferior_matches
3213 lambda. Update comments.
3214
d6cc5d98
PA
32152020-07-10 Pedro Alves <pedro@palves.net>
3216
3217 PR gdb/26199
3218 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3219 executing threads.
3220
7d3badc6
PA
32212020-07-10 Pedro Alves <pedro@palves.net>
3222
3223 PR gdb/26199
3224 * infrun.c (handle_no_resumed): Handle multiple targets.
3225
42bd97a6
PA
32262020-07-10 Pedro Alves <pedro@palves.net>
3227
3228 PR gdb/26199
3229 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3230 target_is_async_p.
3231
43667cc6
PA
32322020-07-10 Pedro Alves <pedro@palves.net>
3233
3234 PR gdb/26199
3235 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3236 threads, not all threads.
3237
96118d11
PA
32382020-07-10 Pedro Alves <pedro@palves.net>
3239
3240 PR gdb/26199
3241 * remote.c (remote_target::open_1): Pass remote target pointer as
3242 data to create_async_event_handler.
3243 (remote_async_inferior_event_handler): Mark async event handler
3244 before returning if the remote target still has either pending
3245 events or unacknowledged notifications.
3246
54904d81
JB
32472020-07-10 John Baldwin <jhb@FreeBSD.org>
3248
3249 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3250 declaration.
3251 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3252 function.
3253
f37e5866
JB
32542020-07-09 John Baldwin <jhb@FreeBSD.org>
3255
3256 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3257 inferior_ptid.
3258
fc238d4a
JB
32592020-07-09 John Baldwin <jhb@FreeBSD.org>
3260
3261 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3262 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3263 AT_FREEBSD_PS_STRINGS.
3264
6e2469ff
HD
32652020-07-08 Hannes Domani <ssbssa@yahoo.de>
3266
3267 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3268 of debugfile path on Windows.
3269
d1076c41
JB
32702020-07-08 John Baldwin <jhb@FreeBSD.org>
3271
3272 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3273 argument to 'data'.
3274
15f3b077
TT
32752020-07-08 Tom Tromey <tromey@adacore.com>
3276
3277 * ada-lang.c (ada_exception_message_1): Use read_memory.
3278
9fc501fd
AB
32792020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3280
3281 PR python/22748
3282 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3283 special handling for inline frames.
3284 * findvar.c (value_of_register_lazy): Skip inline frames when
3285 creating lazy register values.
3286 * frame.c (frame_id_computed_p): Delete definition.
3287 * frame.h (frame_id_computed_p): Delete declaration.
3288
64cb3757
AB
32892020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3290
3291 * NEWS: Mention additions to Python API.
3292 * python/py-arch.c (archpy_register_groups): New function.
3293 (arch_object_methods): Add 'register_groups' method.
3294 * python/py-registers.c (reggroup_iterator_object): New struct.
3295 (reggroup_object): New struct.
3296 (gdbpy_new_reggroup): New function.
3297 (gdbpy_reggroup_to_string): New function.
3298 (gdbpy_reggroup_name): New function.
3299 (gdbpy_reggroup_iter): New function.
3300 (gdbpy_reggroup_iter_next): New function.
3301 (gdbpy_new_reggroup_iterator): New function
3302 (gdbpy_initialize_registers): Register new types.
3303 (reggroup_iterator_object_type): Define new Python type.
3304 (gdbpy_reggroup_getset): New static global.
3305 (reggroup_object_type): Define new Python type.
3306 * python/python-internal.h
3307
0f767f94
AB
33082020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3309
3310 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3311 * python/py-arch.c (archpy_registers): New function.
3312 (arch_object_methods): Add 'registers' method.
3313 * python/py-registers.c: New file.
3314 * python/python-internal.h
3315 (gdbpy_new_register_descriptor_iterator): Declare.
3316 (gdbpy_initialize_registers): Declare.
3317 * python/python.c (do_start_initialization): Call
3318 gdbpy_initialize_registers.
3319 * NEWS: Mention additions to the Python API.
3320
87dbc774
AB
33212020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3322
3323 * NEWS: Mention new Python API method.
3324 * python/py-unwind.c (pending_framepy_architecture): New function.
3325 (pending_frame_object_methods): Add architecture method.
3326
3bc98c0c
AB
33272020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3328
3329 * gdbarch.c: Regenerate.
3330 * gdbarch.h: Regenerate.
3331 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3332 (gdbarch_data): Use internal_error for the case where
3333 deprecated_set_gdbarch_data was originally needed.
3334 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3335 and use passed in obstack.
3336 (libunwind_frame_set_descr): Should no longer get back NULL from
3337 gdbarch_data.
3338 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3339 type.
3340 * user-regs.c (user_regs_init): Update parameters, and use passed
3341 in obstack.
3342 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3343 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3344
d8cc8af6
TV
33452020-07-06 Tom de Vries <tdevries@suse.de>
3346
3347 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3348 End-Of-Sequence in lte_is_less_than.
3349 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3350 "gdb: Don't reorder line table entries too much when sorting".
3351
947f7597
TV
33522020-07-06 Tom de Vries <tdevries@suse.de>
3353
3354 PR tui/26205
3355 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3356
1e7c1b22
TV
33572020-07-05 Tom de Vries <tdevries@suse.de>
3358
3359 PR build/26187
3360 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3361 std::uncaught_exceptions instead of deprecated
3362 std::uncaught_exception.
3363
a36158ec
SM
33642020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3365
3366 * macroexp.h (macro_stringify): Return
3367 gdb::unique_xmalloc_ptr<char>.
3368 * macroexp.c (macro_stringify): Likewise.
3369 * macrotab.c (fixup_definition): Update.
3370
14d960c8
SM
33712020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3372
3373 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3374 (lex_one_token): Update.
3375 * macroexp.c (struct macro_buffer) <release>: Return
3376 gdb::unique_xmalloc_ptr<char>.
3377 (macro_stringify): Update.
3378 (macro_expand): Update.
3379 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3380 * macroexp.h (macro_expand_next): Likewise.
3381
211d5b1c
SM
33822020-07-02 Simon Marchi <simon.marchi@efficios.com>
3383
3384 * macroexp.h (macro_lookup_ftype): Remove.
3385 (macro_expand, macro_expand_once, macro_expand_next): Remove
3386 lookup function parameters, add scope parameter.
3387 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3388 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3389 * macroscope.h (standard_macro_lookup): Change parameter type
3390 to macro_scope.
3391 * macroscope.c (standard_macro_lookup): Likewise.
3392 * c-exp.y (lex_one_token): Update.
3393 * macrocmd.c (macro_expand_command): Likewise.
3394 (macro_expand_once_command): Likewise.
3395
b1a35af2
SM
33962020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3397
3398 * inf-loop.c (inferior_event_handler): Remove client_data param.
3399 * inf-loop.h (inferior_event_handler): Likewise.
3400 * infcmd.c (step_1): Adjust.
3401 * infrun.c (proceed): Adjust.
3402 (fetch_inferior_event): Remove client_data param.
3403 (infrun_async_inferior_event_handler): Adjust.
3404 * infrun.h (fetch_inferior_event): Remove `void *` param.
3405 * linux-nat.c (handle_target_event): Adjust.
3406 * record-btrace.c (record_btrace_handle_async_inferior_event):
3407 Adjust.
3408 * record-full.c (record_full_async_inferior_event_handler):
3409 Adjust.
3410 * remote.c (remote_async_inferior_event_handler): Adjust.
3411
1cdf9e33
TT
34122020-07-01 Tom Tromey <tom@tromey.com>
3413
3414 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3415 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3416
32c1e210
TT
34172020-07-01 Tom Tromey <tom@tromey.com>
3418
3419 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3420 tui_gen_win_info.
3421 (tui_win_info::make_window): Merge with
3422 tui_gen_win_info::make_window.
3423 (tui_win_info::make_visible): Move from tui_gen_win_info.
3424 * tui/tui-win.c (tui_win_info::max_width): Move from
3425 tui_gen_win_info.
3426 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3427 type.
3428 <window_factory>: Likewise.
3429 * tui/tui-layout.c (tui_win_info::resize): Move from
3430 tui_gen_win_info.
3431 (make_standard_window): Change return type.
3432 (get_locator_window, tui_get_window_by_name): Likewise.
3433 (tui_layout_window::apply): Remove a cast.
3434 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3435 (struct tui_win_info): Merge with tui_gen_win_info.
3436 (struct tui_gen_win_info): Remove.
3437
a30cb6da
TT
34382020-07-01 Tom Tromey <tom@tromey.com>
3439
3440 * tui/tui-stack.h (struct tui_locator_window): Derive from
3441 tui_win_info.
3442 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3443 <can_box>: New method.
3444
1eb2161f
TT
34452020-07-01 Tom Tromey <tom@tromey.com>
3446
3447 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3448
7134f2eb
TT
34492020-07-01 Tom Tromey <tom@tromey.com>
3450
3451 * tui/tui-regs.c (tui_data_window::display_registers_from)
3452 (tui_data_window::display_registers_from)
3453 (tui_data_window::first_data_item_displayed)
3454 (tui_data_window::delete_data_content_windows): Update.
3455 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3456 Remove.
3457 (tui_data_window::check_register_values): Update.
3458 (tui_data_item_window::rerender): Add parameters. Update.
3459 (tui_data_item_window::refresh_window): Remove.
3460 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3461 virtual.
3462 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3463 tui_gen_win_info.
3464 <refresh_window, max_height, min_height>: Remove.
3465 <rerender>: Add parameters.
3466 <x, y, visible>: New members.
3467 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3468 <m_item_width>: New member.
3469
22b7b041
TT
34702020-07-01 Tom Tromey <tom@tromey.com>
3471
3472 * tui/tui-regs.c (tui_data_window::show_register_group)
3473 (tui_data_window::check_register_values): Update.
3474 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3475 from item_no.
3476
c9753adb
TT
34772020-07-01 Tom Tromey <tom@tromey.com>
3478
3479 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3480 useless "if".
3481
9ab26b4a
TT
34822020-07-01 Tom Tromey <tom@tromey.com>
3483
3484 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3485 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3486
e555083f
TT
34872020-07-01 Tom Tromey <tom@tromey.com>
3488
3489 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3490 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3491 (struct tui_line_or_address): Move from tui-data.h.
3492 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3493 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3494 (tui_cmd_window, tui_source_window_base, tui_source_window)
3495 (tui_disasm_window): Don't declare.
3496 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3497 to tui-winsource.h.
3498 (SINGLE_KEY): Move to tui-stack.c.
3499
7a02bab7
TT
35002020-07-01 Tom Tromey <tom@tromey.com>
3501
3502 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3503 std::string.
3504 * tui/tui-regs.c (class tab_expansion_file): New.
3505 (tab_expansion_file::write): New method.
3506 (tui_register_format): Change return type. Use
3507 tab_expansion_file.
3508 (tui_get_register, tui_data_window::display_registers_from)
3509 (tui_data_item_window::rerender): Update.
3510 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3511 * tui/tui-io.c (tui_expand_tabs): Remove.
3512
ea68593b
TT
35132020-07-01 Tom Tromey <tom@tromey.com>
3514
3515 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3516
a8caed5d
FS
35172020-07-01 Fangrui Song <maskray@google.com>
3518
3519 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3520
9cdf9820
AKS
35212020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3522
3523 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3524 forms for DW_AT_associated and DW_AT_allocated attributes,
3525 which is already checked in function attr_to_dynamic_prop.
3526
a1520ad8
TT
35272020-06-30 Tom Tromey <tromey@adacore.com>
3528
3529 * dwarf2/read.c (quirk_rust_enum): Correctly call
3530 alloc_rust_variant for default-less enum.
3531
5ac58899
TT
35322020-06-30 Tom Tromey <tromey@adacore.com>
3533
3534 PR build/26183:
3535 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3536 gdb::to_string.
3537
19b187a9
SM
35382020-06-29 Simon Marchi <simon.marchi@efficios.com>
3539
3540 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3541 * gdbarch.h: Re-generate.
3542
cd4c4c07
TT
35432020-06-28 Tom Tromey <tom@tromey.com>
3544
3545 * command.h (cmd_types): Remove.
3546 (cmd_type): Don't declare.
3547 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3548 typedef.
3549 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3550 * cli/cli-decode.c (cmd_type): Remove.
3551
05779d57
PA
35522020-06-27 Pedro Alves <palves@redhat.com>
3553
3554 * fork-child.c (prefork_hook): Adjust.
3555 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3556 Delete.
3557 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3558 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3559 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3560 Remove declarations.
3561 (struct inferior) <set_tty, tty>: New methods.
3562 (struct inferior) <terminal>: Rename to ...
3563 (struct inferior) <m_terminal>: ... this and make private.
3564 * main.c (captured_main_1): Adjust.
3565 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3566 (mi_cmd_inferior_tty_show): Adjust.
3567 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3568 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3569
1776e3e5
NA
35702020-06-26 Nick Alcock <nick.alcock@oracle.com>
3571
3572 * configure.ac: Add --enable-libctf: handle --disable-static
3573 properly.
3574 * acinclude.m4: sinclude ../config/enable.m4.
3575 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3576 (LIBCTF): Substitute in.
3577 (CTF_DEPS): New, likewise.
3578 (CLIBS): libctf needs symbols from libbfd: move earlier.
3579 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3580 flags.
3581 * ctfread.c: Surround in ENABLE_LIBCTF.
3582 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3583 * configure: Regenerate.
3584 * config.in: Likewise.
3585
58373b80
SM
35862020-06-25 Simon Marchi <simon.marchi@efficios.com>
3587
3588 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3589
277474ee
SM
35902020-06-25 Simon Marchi <simon.marchi@efficios.com>
3591
3592 * inferior.h (struct inferior) <terminal>: Change type to
3593 gdb::unique_xmalloc_ptr<char>.
3594 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3595 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3596 field, adjust to unique pointer.
3597 (get_inferior_io_terminal): Adjust to unique pointer.
3598
6d74da72
AB
35992020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3600
3601 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3602 registers, not just the known core set of registers.
3603
2e52d038
AB
36042020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3605
3606 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3607 fflags, frm, and fcsr registers.
3608 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3609 restore groups.
3610 (riscv_tdesc_unknown_reg): New function.
3611 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3612 tdesc_use_registers.
3613 * riscv-tdep.h (struct gdbarch_tdep): Add
3614 unknown_csrs_first_regnum, unknown_csrs_count,
3615 duplicate_fflags_regnum, duplicate_frm_regnum, and
3616 duplicate_fcsr_regnum fields.
3617
be64fd07
AB
36182020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3619
3620 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3621 callback, use the callback (when not null) to help number unknown
3622 registers.
3623 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3624 (tdesc_use_registers): Add extra parameter to declaration.
3625
3b9fce96
AB
36262020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3627
3628 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3629 in the file.
3630 (class riscv_pending_register_alias): Likewise.
3631 (riscv_register_feature::register_info): Change 'required_p' field
3632 to 'required', and change its type. Add 'check' member function.
3633 (riscv_register_feature::register_info::check): Define new member
3634 function.
3635 (riscv_xreg_feature): Change initialisation of 'required' field.
3636 (riscv_freg_feature): Likewise.
3637 (riscv_virtual_feature): Likewise.
3638 (riscv_csr_feature): Likewise.
3639 (riscv_check_tdesc_feature): Take extra parameter, the csr
3640 tdesc_feature, rewrite the function to use the new
3641 riscv_register_feature::register_info::check function.
3642 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3643
865bad26
AB
36442020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3645
3646 * features/Makefile: Remove all references to the deleted files
3647 below.
3648 * features/riscv/32bit-csr.c: Deleted.
3649 * features/riscv/32bit-csr.xml: Deleted.
3650 * features/riscv/64bit-csr.c: Deleted.
3651 * features/riscv/64bit-csr.xml: Deleted.
3652 * features/riscv/rebuild-csr-xml.sh: Deleted.
3653
ed69cbc8
AB
36542020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3655
3656 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3657 whitespace error for declaration of names member variable.
3658 (struct riscv_register_feature): Add new prefer_first_name member
3659 variable, and fix whitespace error in declaration of registers.
3660 (riscv_xreg_feature): Initialize prefer_first_name field.
3661 (riscv_freg_feature): Likewise.
3662 (riscv_virtual_feature): Likewise.
3663 (riscv_csr_feature): Likewise.
3664 (riscv_register_name): Expand on comments. Remove register name
3665 modifications for CSR and virtual registers.
3666
4445e8f5
AB
36672020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3668
3669 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3670 errors.
3671
767a879e
AB
36722020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3673
3674 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3675 riscv-opc.h.
3676 (class riscv_pending_register_alias): New class.
3677 (riscv_check_tdesc_feature): Take vector of pending aliases and
3678 populate it as appropriate.
3679 (riscv_setup_register_aliases): Delete.
3680 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3681 to riscv_check_tdesc_feature in all cases. Use the vector to
3682 create the register aliases.
3683
bb6e55f3
RO
36842020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3685
3686 * sol2-tdep.c (sol2_static_transform_name): Remove.
3687 (sol2_init_abi): Don't register it.
3688 * gdbarch.sh (static_transform_name): Remove.
3689 * gdbarch.c, gdbarch.h: Regenerate.
3690
3691 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3692 gdbarch_static_transform_name.
3693 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3694 * stabsread.c (define_symbol) <'X'>: Remove.
3695 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3696 handling.
3697 <'V'>: Likewise.
3698 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3699 <'S'>: Remove call to gdbarch_static_transform_name.
3700
c6d36836
RO
37012020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3702
3703 * procfs.c (procfs_pre_trace): New function.
3704 (procfs_target::create_inferior): Pass it to fork_inferior.
3705
a7e6196b
RO
37062020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3707
3708 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3709 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3710 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3711 sol2-tdep.o, sparc-sol2-tdep.o.
3712 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3713 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3714 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3715 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3716
d412e696
RO
37172020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3718
3719 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3720 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3721 Call sol2_init_abi.
3722 Remove calls to set_gdbarch_skip_solib_resolver,
3723 set_gdbarch_core_pid_to_str.
3724 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3725 (i386_sol2_static_transform_name): Remove.
3726 (i386_sol2_init_abi): Call sol2_init_abi.
3727 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3728 set_gdbarch_static_transform_name,
3729 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3730 Use sol2_sigtramp_p.
3731 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3732 (sol2_sigtramp_p): New function.
3733 (sol2_static_transform_name): New function.
3734 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3735 (sol2_init_abi): New function.
3736 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3737 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3738 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3739 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3740 (sparc_sol2_static_transform_name): Remove.
3741 (sparc32_sol2_init_abi): Call sol2_init_abi.
3742 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3743 set_gdbarch_static_transform_name,
3744 set_gdbarch_skip_solib_resolver,
3745 set_gdbarch_core_pid_to_str.
3746 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3747 (sparc_sol2_static_transform_name): Remove
3748 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3749 call sol2_sigtramp_p.
3750 (sparc64_sol2_init_abi): Call sol2_init_abi.
3751 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3752 set_gdbarch_static_transform_name,
3753 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3754
a8654e7d
PW
37552020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3756
3757 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3758 * exec.c (validate_exec_file): If from_tty, set both
3759 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3760 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3761 and from_tty, unconditionally ask a confirmation.
3762
caa7fd04
AB
37632020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3764
3765 * target-descriptions.c (tdesc_architecture_name): Protect against
3766 NULL pointer dereference.
3767 (maint_print_xml_tdesc_cmd): New function.
3768 (_initialize_target_descriptions): Register new 'maint print
3769 xml-tdesc' command and give it the filename completer.
3770 * NEWS: Mention new 'maint print xml-tdesc' command.
3771
fbf42f4e
AB
37722020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3773
3774 * target-descriptions.c (class tdesc_compatible_info): New class.
3775 (struct target_desc): Change type of compatible vector.
3776 (tdesc_compatible_p): Update for change in type of
3777 target_desc::compatible.
3778 (tdesc_compatible_info_list): New function.
3779 (tdesc_compatible_info_arch_name): New function.
3780 (tdesc_add_compatible): Update for change in type of
3781 target_desc::compatible.
3782 (print_c_tdesc::visit_pre): Likewise.
3783
20821f4e
AB
37842020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3785
3786 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3787 whitespace to underscore.
3788 (maint_print_c_tdesc_cmd): Use fake filename for target
3789 descriptions that came from the target.
3790 (_initialize_target_descriptions): Add filename command completion
3791 for 'maint print c-tdesc'.
3792
1fb5ee62
SM
37932020-06-23 Simon Marchi <simon.marchi@efficios.com>
3794
3795 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3796 lines.
3797
fc3ecb3e
SM
37982020-06-23 Simon Marchi <simon.marchi@efficios.com>
3799
3800 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3801 lines.
3802 (dwarf2_find_location_expression): Likewise.
3803 (call_site_parameter_matches): Likewise.
3804 (dwarf2_compile_expr_to_ax): Likewise.
3805 (disassemble_dwarf_expression): Likewise.
3806 (loclist_describe_location): Likewise.
3807
236ef034
PA
38082020-06-23 Pedro Alves <palves@redhat.com>
3809
3810 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3811 progspace-and-thread.h. Include scoped-mock-context.h instead.
3812 (register_to_value_test): Use scoped_mock_context.
3813 * regcache.c: Include "scoped-mock-context.h".
3814 (cooked_read_test): Don't error out if a target is already pushed.
3815 Use scoped_mock_context. Adjust.
3816 * scoped-mock-context.h: New file.
3817
39e7ecca
AB
38182020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3819
3820 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3821 initializer.
3822 (ada_language::is_string_type_p): New member function.
3823 * c-lang.c (c_language_data): Delete la_is_string_type_p
3824 initializer.
3825 (cplus_language_data): Likewise.
3826 (asm_language_data): Likewise.
3827 (minimal_language_data): Likewise.
3828 * d-lang.c (d_language_data): Likewise.
3829 * f-lang.c (f_is_string_type_p): Delete function, implementation
3830 moved to f_language::is_string_type_p.
3831 (f_language_data): Delete la_is_string_type_p initializer.
3832 (f_language::is_string_type_p): New member function,
3833 implementation from f_is_string_type_p.
3834 * go-lang.c (go_is_string_type_p): Delete function, implementation
3835 moved to go_language::is_string_type_p.
3836 (go_language_data): Delete la_is_string_type_p initializer.
3837 (go_language::is_string_type_p): New member function,
3838 implementation from go_is_string_type_p.
3839 * language.c (language_defn::is_string_type_p): Define new member
3840 function.
3841 (default_is_string_type_p): Make static, add comment copied from
3842 header file.
3843 (unknown_language_data): Delete la_is_string_type_p initializer.
3844 (unknown_language::is_string_type_p): New member function.
3845 (auto_language_data): Delete la_is_string_type_p initializer.
3846 (auto_language::is_string_type_p): New member function.
3847 * language.h (language_data): Delete la_is_string_type_p field.
3848 (language_defn::is_string_type_p): Declare new function.
3849 (default_is_string_type_p): Delete desclaration, move comment to
3850 definition.
3851 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3852 moved to m2_language::is_string_type_p.
3853 (m2_language_data): Delete la_is_string_type_p initializer.
3854 (m2_language::is_string_type_p): New member function,
3855 implementation from m2_is_string_type_p.
3856 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3857 initializer.
3858 * opencl-lang.c (opencl_language_data): Likewise.
3859 * p-lang.c (pascal_is_string_type_p): Delete function,
3860 implementation moved to pascal_language::is_string_type_p.
3861 (pascal_language_data): Delete la_is_string_type_p initializer.
3862 (pascal_language::is_string_type_p): New member function,
3863 implementation from pascal_is_string_type_p.
3864 * rust-lang.c (rust_is_string_type_p): Delete function,
3865 implementation moved to rust_language::is_string_type_p.
3866 (rust_language_data): Delete la_is_string_type_p initializer.
3867 (rust_language::is_string_type_p): New member function,
3868 implementation from rust_is_string_type_p.
3869 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3870 is_string_type_p.
3871
4ffc13fb
AB
38722020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3873
3874 * ada-lang.c (ada_language_data): Delete la_print_typedef
3875 initializer.
3876 (ada_language::print_typedef): New member function.
3877 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3878 (cplus_language_data): Likewise.
3879 (asm_language_data): Likewise.
3880 (minimal_language_data): Likewise.
3881 * d-lang.c (d_language_data): Likewise.
3882 * f-lang.c (f_language_data): Likewise.
3883 (f_language::print_typedef): New member function.
3884 * go-lang.c (go_language_data): Delete la_print_typedef
3885 initializer.
3886 * language.c (language_defn::print_typedef): Define member
3887 function.
3888 (unknown_language_data): Delete la_print_typedef initializer.
3889 (unknown_language::print_typedef): New member function.
3890 (auto_language_data): Delete la_print_typedef initializer.
3891 (auto_language::print_typedef): New member function.
3892 * language.h (language_data): Delete la_print_typedef field.
3893 (language_defn::print_typedef): Declare new member function.
3894 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3895 (default_print_typedef): Delete declaration.
3896 * m2-lang.c (m2_language_data): Delete la_print_typedef
3897 initializer.
3898 (m2_language::print_typedef): New member function.
3899 * objc-lang.c (objc_language_data): Delete la_print_typedef
3900 initializer.
3901 * opencl-lang.c (opencl_language_data): Likewise.
3902 * p-lang.c (pascal_language_data): Likewise.
3903 (pascal_language::print_typedef): New member function.
3904 * rust-lang.c (rust_print_typedef): Delete function,
3905 implementation moved to rust_language::print_typedef.
3906 (rust_language): Delete la_print_typedef initializer.
3907 (rust_language::print_typedef): New member function,
3908 implementation from rust_print_typedef.
3909 * typeprint.c (default_print_typedef): Delete.
3910
d711ee67
AB
39112020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3912
3913 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3914 (ada_language::printstr): New member function.
3915 * c-lang.c (c_language_data): Delete la_printstr initializer.
3916 (cplus_language_data): Likewise.
3917 (asm_language_data): Likewise.
3918 (minimal_language_data): Likewise.
3919 * d-lang.c (d_language_data): Likewise.
3920 * f-lang.c (f_printstr): Rename to f_language::printstr.
3921 (f_language_data): Delete la_printstr initializer.
3922 (f_language::printstr): New member function, implementation from
3923 f_printstr.
3924 * go-lang.c (go_language_data): Delete la_printstr initializer.
3925 * language.c (language_defn::printstr): Define new member
3926 function.
3927 (unk_lang_printstr): Delete.
3928 (unknown_language_data): Delete la_printstr initializer.
3929 (unknown_language::printstr): New member function.
3930 (auto_language_data): Delete la_printstr initializer.
3931 (auto_language::printstr): New member function.
3932 * language.h (language_data): Delete la_printstr field.
3933 (language_defn::printstr): Declare new member function.
3934 (LA_PRINT_STRING): Update call to printstr.
3935 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3936 (m2_language_data): Delete la_printstr initializer.
3937 (m2_language::printstr): New member function, implementation from
3938 m2_printstr.
3939 * objc-lang.c (objc_language_data): Delete la_printstr
3940 initializer.
3941 * opencl-lang.c (opencl_language_data): Likewise.
3942 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3943 (pascal_language_data): Delete la_printstr initializer.
3944 (pascal_language::printstr): New member function, implementation
3945 from pascal_printstr.
3946 * p-lang.h (pascal_printstr): Delete declaration.
3947 * rust-lang.c (rust_printstr): Update header comment.
3948 (rust_language_data): Delete la_printstr initializer.
3949 (rust_language::printstr): New member function.
3950
52b50f2c
AB
39512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3952
3953 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3954 (ada_language::printchar): New member function.
3955 * c-lang.c (c_language_data): Delete la_printchar initializer.
3956 (cplus_language_data): Likewise.
3957 (asm_language_data): Likewise.
3958 (minimal_language_data): Likewise.
3959 * d-lang.c (d_language_data): Likewise.
3960 * f-lang.c (f_printchar): Rename to f_language::printchar.
3961 (f_language_data): Delete la_printchar initializer.
3962 (f_language::printchar): New member function, implementation from
3963 f_printchar.
3964 * go-lang.c (go_language_data): Delete la_printchar initializer.
3965 * language.c (unk_lang_printchar): Delete.
3966 (language_defn::printchar): Define new member function.
3967 (unknown_language_data): Delete la_printchar initializer.
3968 (unknown_language::printchar): New member function.
3969 (auto_language_data): Delete la_printchar initializer.
3970 (auto_language::printchar): New member function.
3971 * language.h (language_data): Delete la_printchar field.
3972 (language_defn::printchar): Declare new member function.
3973 (LA_PRINT_CHAR): Update call to printchar.
3974 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3975 (m2_language::printchar): New member function.
3976 * objc-lang.c (objc_language_data): Delete la_printchar
3977 initializer.
3978 * opencl-lang.c (opencl_language_data): Likewise.
3979 * p-lang.c (pascal_language_data): Delete la_printchar
3980 initializer.
3981 (pascal_language::printchar): New member function.
3982 * rust-lang.c (rust_printchar): Rename to
3983 rust_language::printchar.
3984 (rust_language_data): Delete la_printchar initializer.
3985 (rust_language::printchar): New member function, implementation
3986 from rust_printchar.
3987
ec8cec5b
AB
39882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3989
3990 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3991 (ada_language_data): Delete la_emitchar initializer.
3992 (ada_language::emitchar): New member function, implementation from
3993 emit_char.
3994 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3995 (cplus_language_data): Likewise.
3996 (asm_language_data): Likewise.
3997 (minimal_language_data): Likewise.
3998 * d-lang.c (d_language_data): Likewise.
3999 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4000 (f_language_data): Delete la_emitchar initializer.
4001 (f_language::emitchar): New member function, implementation from
4002 f_emit_char.
4003 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4004 * language.c (unk_lang_emit_char): Delete.
4005 (language_defn::emitchar): New member function definition.
4006 (unknown_language_data): Delete la_emitchar initializer.
4007 (unknown_language::emitchar): New member function.
4008 (auto_language_data): Delete la_emitchar initializer.
4009 (auto_language::emitchar): New member function.
4010 * language.h (language_data): Delete la_emitchar field.
4011 (language_defn::emitchar): New member field declaration.
4012 (LA_EMIT_CHAR): Update call to emitchar.
4013 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4014 (m2_language_data): Delete la_emitchar initializer.
4015 (m2_language::emitchar): New member function, implementation from
4016 m2_emit_char.
4017 * objc-lang.c (objc_language_data): Delete la_emitchar
4018 initializer.
4019 * opencl-lang.c (opencl_language_data): Likewise.
4020 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4021 (pascal_language_data): Delete la_emitchar initializer.
4022 (pascal_language::emitchar): New member function, implementation
4023 from pascal_emit_char.
4024 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4025 (rust_language_data): Delete la_emitchar initializer.
4026 (rust_language::emitchar): New member function, implementation
4027 from rust_emitchar.
4028
1bf9c363
AB
40292020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4030
4031 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4032 (ada_language_data): Delete la_post_parser initializer.
4033 (ada_language::post_parser): New member function.
4034 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4035 (cplus_language_data): Likewise.
4036 (asm_language_data): Likewise.
4037 (minimal_language_data): Likewise.
4038 * d-lang.c (d_language_data): Likewise.
4039 * f-lang.c (f_language_data): Likewise.
4040 * go-lang.c (go_language_data): Likewise.
4041 * language.c (unknown_language_data): Likewise.
4042 (auto_language_data): Likewise.
4043 * language.h (language_data): Delete la_post_parser field.
4044 (language_defn::post_parser): New member function.
4045 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4046 * objc-lang.c (objc_language_data): Likewise.
4047 * opencl-lang.c (opencl_language_data): Likewise.
4048 * p-lang.c (pascal_language_data): Likewise.
4049 * parse.c (parse_exp_in_context): Update call to post_parser.
4050 (null_post_parser): Delete definition.
4051 * parser-defs.h (null_post_parser): Delete declaration.
4052 * rust-lang.c (rust_language_data): Delete la_post_parser
4053 initializer.
4054
87afa652
AB
40552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4056
4057 * ada-lang.c (parse): Rename to ada_language::parser.
4058 (ada_language_data): Delete la_parser initializer.
4059 (ada_language::parser): New member function, implementation from
4060 parse.
4061 * c-lang.c (c_language_data): Delete la_parser initializer.
4062 (cplus_language_data): Likewise.
4063 (asm_language_data): Likewise.
4064 (minimal_language_data): Likewise.
4065 * d-lang.c (d_language_data): Likewise.
4066 (d_language::parser): New member function.
4067 * f-lang.c (f_language_data): Delete la_parser initializer.
4068 (f_language::parser): New member function.
4069 * go-lang.c (go_language_data): Delete la_parser initializer.
4070 (go_language::parser): New member function.
4071 * language.c (unk_lang_parser): Delete.
4072 (language_defn::parser): Define new member function.
4073 (unknown_language_data): Delete la_parser initializer.
4074 (unknown_language::parser): New member function.
4075 (auto_language_data): Delete la_parser initializer.
4076 (auto_language::parser): New member function.
4077 * language.h (language_data): Delete la_parser field.
4078 (language_defn::parser): Declare new member function.
4079 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4080 (m2_language::parser): New member function.
4081 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4082 * opencl-lang.c (opencl_language_data): Likewise.
4083 * p-lang.c (pascal_language_data): Likewise.
4084 (pascal_language::parser): New member function.
4085 * parse.c (parse_exp_in_context): Update call to parser.
4086 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4087 (rust_language::parser): New member function.
4088
37825800
AB
40892020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4090
4091 * top.c (print_gdb_configuration): Print --with-python-libdir
4092 configuration value.
4093
5b860c93
PW
40942020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4095
4096 * NEWS: Mention change to the alias command.
4097
cf00cd6f
PW
40982020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4099
4100 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4101 (alias_command_completer)
4102 (make_alias_options_def_group): New functions.
4103 (alias_opts, alias_option_defs): New struct and array.
4104 (alias_usage_error): Update usage.
4105 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4106 Use option framework.
4107 (_initialize_cli_cmds): Update alias command help.
4108 Update aliases command help.
4109 (show_user):
4110 Add NULL for new default_args lookup_cmd argument.
4111 (valid_command_p): Rename to validate_aliased_command.
4112 Add NULL for new default_args lookup_cmd argument. Verify that the
4113 aliased_command has no default args.
4114 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4115 (lookup_cmd_1, lookup_cmd): New argument default_args.
4116 (add_alias_cmd):
4117 Add NULL for new default_args lookup_cmd argument.
4118 (print_help_for_command): Show default args under the layout
4119 alias some_alias = some_aliased_cmd some_alias_default_arg.
4120 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4121 xfree default_args in destructor.
4122 * cli/cli-script.c (process_next_line, do_define_command):
4123 Add NULL for new default_args lookup_cmd argument.
4124 * command.h: Declare new default_args argument in lookup_cmd
4125 and lookup_cmd_1.
4126 * completer.c (complete_line_internal_1):
4127 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4128 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4129 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4130 Likewise.
4131 * infcmd.c (_initialize_infcmd): Likewise.
4132 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4133 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4134 * python/py-param.c (add_setshow_generic): Likewise.
4135 * remote.c (_initialize_remote): Likewise.
4136 * top.c (execute_command): Prepend default_args if command has some.
4137 (set_verbose):
4138 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4139 * tracepoint.c (validate_actionline, encode_actions_1):
4140 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4141
bd920864
TBA
41422020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4143
4144 * jit.c (jit_read_descriptor): Use bool as the return type.
4145 (jit_breakpoint_re_set_internal): Use bool as the return type.
4146 Invert the return value logic; return true if the jit breakpoint
4147 has been successfully initialized.
4148 (jit_inferior_init): Update the call to
4149 jit_breakpoint_re_set_internal.
4150
f8098322
PA
41512020-06-22 Pedro Alves <palves@redhat.com>
4152
4153 PR gdb/25939
4154 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4155 Use the current inferior instead. Don't return
4156 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4157 wait again.
4158 * sol-thread.c (sol_thread_target::wait): Don't reference
4159 inferior_ptid.
4160 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4161 (sol_update_thread_list_callback): Use the current inferior's pid
4162 instead of inferior_ptid.
4163
196535a6
RO
41642020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4165
4166 * procfs.c: Cleanup many comments.
4167
4168 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4169 (AFTER_WATCHFLAG): Replace by value.
4170
4171 (MAIN_PROC_NAME_FORMAT): Inline ...
4172 (create_procinfo): ... here.
4173
4174 (procfs_debug_inferior): Remove SYS_exec handling.
4175 (syscall_is_exec): Likewise.
4176 (procfs_set_exec_trap): Likewise.
4177
4178 (syscall_is_lwp_exit): Inline in callers.
4179 (syscall_is_exit): Likewise.
4180 (syscall_is_exec): Likewise.
4181 (syscall_is_lwp_create): Likewise.
4182
4183 (invalidate_cache): Remove #if 0 code.
4184
4185 (make_signal_thread_runnable): Remove.
4186 (procfs_target::resume): Remove #if 0 code.
4187
cf6f3e86
RO
41882020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4189
4190 PR gdb/25939
4191 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4192 call ...
4193 (procfs_target::create_inferior): ... here.
4194
48e9cc84
PW
41952020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4196
4197 * exec.c (validate_exec_file): Ensure the build-id is up to
4198 date by calling reopen_exec_file (that checks file timestamp
4199 to decide to re-read the file).
4200
3922b302
PA
42012020-06-18 Pedro Alves <palves@redhat.com>
4202
4203 PR gdb/25412
4204 * gdbthread.h (delete_thread, delete_thread_silent)
4205 (find_thread_ptid): Update comments.
4206 * thread.c (current_thread_): New global.
4207 (is_current_thread): Move higher, and reimplement.
4208 (inferior_thread): Reimplement.
4209 (set_thread_exited): Use bool. Add assertions.
4210 (add_thread_silent): Simplify thread-reuse handling by always
4211 calling delete_thread.
4212 (delete_thread): Remove intro comment.
4213 (find_thread_ptid): Skip exited threads.
4214 (switch_to_thread_no_regs): Write to current_thread_.
4215 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4216 INFERIOR_PTID. Clear current_thread_.
4217
6dbdab44
PA
42182020-06-18 Pedro Alves <palves@redhat.com>
4219
4220 * aix-thread.c (pd_update): Use switch_to_thread.
4221
2da4b788
PA
42222020-06-18 Pedro Alves <palves@redhat.com>
4223
4224 * ravenscar-thread.c (ravenscar_thread_target): Update.
4225 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4226 (ravenscar_thread_target::add_active_thread): ... this. Don't
4227 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4228 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4229
50838d1b
PA
42302020-06-18 Pedro Alves <palves@redhat.com>
4231
4232 * nat/windows-nat.c (current_windows_thread): Remove.
4233 * nat/windows-nat.h (current_windows_thread): Remove.
4234 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4235 Adjust.
4236 (display_selectors): Adjust to fetch the current
4237 windows_thread_info based on inferior_ptid.
4238 (fake_create_process): No longer write to current_windows_thread.
4239 (windows_nat_target::get_windows_debug_event):
4240 Don't set inferior_ptid or current_windows_thread.
4241 (windows_nat_target::wait): Adjust to not rely on
4242 current_windows_thread.
4243 (do_initial_windows_stuff): Now a method of windows_nat_target.
4244 Switch to the last_ptid thread.
4245 (windows_nat_target::attach): Adjust.
4246 (windows_nat_target::detach): Use switch_to_no_thread instead of
4247 writing to inferior_ptid directly.
4248 (windows_nat_target::create_inferior): Adjust.
4249
31ce04e9
PA
42502020-06-18 Pedro Alves <palves@redhat.com>
4251
4252 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4253
1ee1a363
PA
42542020-06-18 Pedro Alves <palves@redhat.com>
4255
4256 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4257 after creating it, instead of writing to inferior_ptid. Don't
4258 write to inferior_ptid.
4259
6d350754
PA
42602020-06-18 Pedro Alves <palves@redhat.com>
4261
4262 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4263
5d971d48
PA
42642020-06-18 Pedro Alves <palves@redhat.com>
4265
4266 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4267 it, instead of writing to inferior_ptid.
4268
86e57d1b
PA
42692020-06-18 Pedro Alves <palves@redhat.com>
4270
4271 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4272 to inferior_ptid.
4273
f2e1c129
PA
42742020-06-18 Pedro Alves <palves@redhat.com>
4275
4276 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4277 instead of writing to inferior_ptid directly.
4278
60db1b85
PA
42792020-06-18 Pedro Alves <palves@redhat.com>
4280
4281 * corelow.c (core_target::close): Use switch_to_no_thread instead
4282 of writing to inferior_ptid directly.
4283 (add_to_thread_list, core_target_open): Use switch_to_thread
4284 instead of writing to inferior_ptid directly.
4285
fe7d6a8d
PA
42862020-06-18 Pedro Alves <palves@redhat.com>
4287
4288 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4289 inferior_ptid.
4290 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4291 inferior_ptid.
4292 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4293 inferior_ptid directly.
4294 (darwin_nat_target::init_thread_list): Switch to thread, instead
4295 of writing to inferior_ptid.
4296 (darwin_nat_target::attach): Don't write to inferior_ptid.
4297 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4298
975f8708
PA
42992020-06-18 Pedro Alves <palves@redhat.com>
4300
4301 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4302 thread.
4303 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4304 Instead use switch_to_thread.
4305 (gnu_nat_target::detach): Use switch_to_no_thread
4306 instead of writing to inferior_ptid directly. Used passed-in
4307 inferior instead of looking up the inferior by pid.
4308
1a204730
PA
43092020-06-18 Pedro Alves <palves@redhat.com>
4310
4311 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4312 inferior_ptid.
4313
ebe84f23
PA
43142020-06-18 Pedro Alves <palves@redhat.com>
4315
4316 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4317 inferior_ptid.
4318 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4319 thread.
4320 (nto_procfs_target::detach): Avoid referencing
4321 inferior_ptid. Use switch_to_no_thread instead of writing to
4322 inferior_ptid directly.
4323 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4324 instead of writing to inferior_ptid directly.
4325 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4326 to thread.
4327
191f02e5
PA
43282020-06-18 Pedro Alves <palves@redhat.com>
4329
4330 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4331 after creating it, instead of writing to inferior_ptid.
4332 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4333 to inferior_ptid directly.
4334 (gdbsim_target::wait): Don't write to inferior_ptid.
4335
0ac55310
PA
43362020-06-18 Pedro Alves <palves@redhat.com>
4337
4338 * remote.c (remote_target::remote_notice_new_inferior): Use
4339 switch_to_thread instead of writing to inferior_ptid directly.
4340 (remote_target::add_current_inferior_and_thread): Use
4341 switch_to_no_thread instead of writing to inferior_ptid directly.
4342 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4343 and switch_to_thread instead of using set_current_inferior or
4344 writing to inferior_ptid directly.
4345
5233f39b
PA
43462020-06-18 Pedro Alves <palves@redhat.com>
4347
4348 * tracectf.c (ctf_target_open): Switch to added thread instead of
4349 writing to inferior_ptid directly.
4350 (ctf_target::close): Use switch_to_no_thread instead of writing to
4351 inferior_ptid directly.
4352
087e161b
PA
43532020-06-18 Pedro Alves <palves@redhat.com>
4354
4355 * tracefile-tfile.c (tfile_target_open): Don't write to
4356 inferior_ptid directly, instead switch to added thread.
4357 (tfile_target::close): Use switch_to_no_thread instead of writing
4358 to inferior_ptid directly.
4359
7fb43e53
PA
43602020-06-18 Pedro Alves <palves@redhat.com>
4361
4362 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4363 (procfs_target::detach): Use switch_to_no_thread
4364 instead of writing to inferior_ptid directly.
4365 (do_attach): Change return type to void. Switch to the added
4366 thread.
4367 (procfs_target::create_inferior): Switch to the added thread.
4368 (procfs_do_thread_registers): Don't write to inferior_ptid.
4369
18493a00
PA
43702020-06-18 Pedro Alves <palves@redhat.com>
4371
4372 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4373 of writing to inferior_ptid.
4374 (scoped_restore_exited_inferior): Delete.
4375 (handle_vfork_child_exec_or_exit): Simplify using
4376 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4377 instead of writing to inferior_ptid.
4378 (THREAD_STOPPED_BY): Delete.
4379 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4380 (thread_stopped_by_hw_breakpoint): Delete.
4381 (save_waitstatus): Use
4382 scoped_restore_current_thread+switch_to_thread, and call
4383 target_stopped_by_watchpoint instead of
4384 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4385 instead of thread_stopped_by_sw_breakpoint, and
4386 target_stopped_by_hw_breakpoint instead of
4387 thread_stopped_by_hw_breakpoint.
4388 (handle_inferior_event)
4389 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4390 inferior_ptid directly, nor
4391 set_current_inferior/set_current_program_space. Use
4392 switch_to_thread / switch_to_inferior_no_thread instead.
4393
a0776b13
PA
43942020-06-18 Pedro Alves <palves@redhat.com>
4395
4396 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4397 instead of writing to inferior_ptid.
4398
6155c136
PA
43992020-06-18 Pedro Alves <palves@redhat.com>
4400
4401 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4402 added thread.
4403 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4404 to the added thread.
4405 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4406 instead of writing to inferior_ptid.
4407
c5316fc6
PA
44082020-06-18 Pedro Alves <palves@redhat.com>
4409
4410 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4411 (register_to_value_test): Mock a program_space too. Heap-allocate
4412 the address space. Don't write to inferior_ptid. Use
4413 switch_to_thread instead.
4414
8df01799
PA
44152020-06-18 Pedro Alves <palves@redhat.com>
4416
4417 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4418 Delete.
4419 (find_signalled_thread()): New, factored out from
4420 linux_make_corefile_notes and adjusted to handle exited threads.
4421 (linux_make_corefile_notes): Adjust to use the new
4422 find_signalled_thread.
4423
41792d68
PA
44242020-06-18 Pedro Alves <palves@redhat.com>
4425
4426 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4427 of saving/restoring inferior_ptid.
4428
612f258a
TT
44292020-06-17 Tom Tromey <tom@tromey.com>
4430
4431 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4432 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4433 declare.
4434 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4435
efb763a5
SM
44362020-06-15 Simon Marchi <simon.marchi@efficios.com>
4437
4438 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4439 of partial symtabs.
4440
2951f6c0
SM
44412020-06-17 Simon Marchi <simon.marchi@efficios.com>
4442
4443 * regformats/reg-arm.dat: Remove.
4444 * regformats/reg-bfin.dat: Remove.
4445 * regformats/reg-cris.dat: Remove.
4446 * regformats/reg-crisv32.dat: Remove.
4447 * regformats/reg-m32r.dat: Remove.
4448 * regformats/reg-tilegx.dat: Remove.
4449 * regformats/reg-tilegx32.dat: Remove.
4450
7d458ea5
SM
44512020-06-17 Simon Marchi <simon.marchi@efficios.com>
4452
4453 * features/Makefile (WHICH): Remove arm files.
4454 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4455 * regformats/arm/arm-with-neon.dat: Remove.
4456 * regformats/arm/arm-with-vfpv2.dat: Remove.
4457 * regformats/arm/arm-with-vfpv3.dat: Remove.
4458
3af96c0d
SM
44592020-06-17 Simon Marchi <simon.marchi@efficios.com>
4460
4461 * features/Makefile (XMLTOC): Remove rx.xml.
4462
b25e22fd
PA
44632020-06-17 Pedro Alves <palves@redhat.com>
4464
4465 * gdbthread.h (thread_control_state) <trap_expected> Update
4466 comments.
4467
a78a19b1
AB
44682020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4469
4470 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4471 ada_language::lookup_symbol_nonlocal.
4472 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4473 (ada_language::lookup_symbol_nonlocal): New member function,
4474 implementation from ada_lookup_symbol_nonlocal.
4475 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4476 initializer.
4477 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4478 initializer.
4479 (cplus_language::lookup_symbol_nonlocal): New member function.
4480 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4481 (minimal_language_data) Likewise.
4482 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4483 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4484 initializer.
4485 (d_language::lookup_symbol_nonlocal): New member function.
4486 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4487 initializer.
4488 (f_language::lookup_symbol_nonlocal): New member function.
4489 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4490 initializer.
4491 * language.c (unknown_language_data): Likewise.
4492 (auto_language_data): Likewise.
4493 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4494 field.
4495 (language_defn::lookup_symbol_nonlocal): New member function.
4496 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4497 initializer.
4498 * objc-lang.c (objc_language_data): Likewise.
4499 * opencl-lang.c (opencl_language_data): Likewise.
4500 * p-lang.c (pascal_language_data): Likewise.
4501 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4502 rust_language::lookup_symbol_nonlocal.
4503 (rust_language_data): Delete la_lookup_symbol_nonlocal
4504 initializer.
4505 (rust_language::lookup_symbol_nonlocal): New member function,
4506 implementation from rust_lookup_symbol_nonlocal.
4507 * symtab.c (lookup_symbol_aux): Update call to
4508 lookup_symbol_nonlocal.
4509 (basic_lookup_symbol_nonlocal): Rename to...
4510 (language_defn::lookup_symbol_nonlocal): ...this, and update
4511 header comment. Remove language_defn parameter, and replace with
4512 uses of `this'.
4513 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4514
ebe2334e
AB
45152020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4516
4517 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4518 initializer.
4519 (ada_language::value_print_inner): New member function.
4520 * c-lang.c (c_language_data): Delete la_value_print_inner
4521 initializer.
4522 (cplus_language_data): Likewise.
4523 (asm_language_data): Likewise.
4524 (minimal_language_data): Likewise.
4525 * d-lang.c (d_language_data): Likewise.
4526 (d_language::value_print_inner): New member function.
4527 * f-lang.c (f_language_data): Delete la_value_print_inner
4528 initializer.
4529 (f_language::value_print_inner): New member function.
4530 * f-lang.h (f_value_print_innner): Rename to...
4531 (f_value_print_inner): ...this (note spelling of 'inner').
4532 * f-valprint.c (f_value_print_innner): Rename to...
4533 (f_value_print_inner): ...this (note spelling of 'inner').
4534 * go-lang.c (go_language_data): Delete la_value_print_inner
4535 initializer.
4536 (go_language::value_print_inner): New member function.
4537 * language.c (language_defn::value_print_inner): Define new member
4538 function.
4539 (unk_lang_value_print_inner): Delete.
4540 (unknown_language_data): Delete la_value_print_inner initializer.
4541 (unknown_language::value_print_inner): New member function.
4542 (auto_language_data): Delete la_value_print_inner initializer.
4543 (auto_language::value_print_inner): New member function.
4544 * language.h (language_data): Delete la_value_print_inner field.
4545 (language_defn::value_print_inner): Delcare new member function.
4546 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4547 initializer.
4548 (m2_language::value_print_inner): New member function.
4549 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4550 initializer.
4551 * opencl-lang.c (opencl_language_data): Likewise.
4552 * p-lang.c (pascal_language_data): Likewise.
4553 (pascal_language::value_print_inner): New member function.
4554 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4555 initializer.
4556 (rust_language::value_print_inner): New member function.
4557 * valprint.c (do_val_print): Update call to value_print_inner.
4558
a1d1fa3e
AB
45592020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4560
4561 * ada-lang.c (ada_language_data): Delete la_value_print
4562 initializer.
4563 (ada_language::value_print): New member function.
4564 * c-lang.c (c_language_data): Delete la_value_print initializer.
4565 (cplus_language_data): Likewise.
4566 (asm_language_data): Likewise.
4567 (minimal_language_data): Likewise.
4568 * d-lang.c (d_language_data): Likewise.
4569 * f-lang.c (f_language_data): Likewise.
4570 * go-lang.c (go_language_data): Likewise.
4571 * language.c (unk_lang_value_print): Delete.
4572 (language_defn::value_print): Define new member function.
4573 (unknown_language_data): Delete la_value_print initializer.
4574 (unknown_language::value_print): New member function.
4575 (auto_language_data): Delete la_value_print initializer.
4576 (auto_language::value_print): New member function.
4577 * language.h (language_data): Delete la_value_print field.
4578 (language_defn::value_print): Declare new member function.
4579 (LA_VALUE_PRINT): Update call to value_print.
4580 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4581 * objc-lang.c (objc_language_data): Likewise.
4582 * opencl-lang.c (opencl_language_data): Likewise.
4583 * p-lang.c (pascal_language_data): Likewise.
4584 (pascal_language::value_print): New member function.
4585 * rust-lang.c (rust_language_data): Delete la_value_print
4586 initializer.
4587
f16a9f57
AB
45882020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4589
4590 * ada-lang.c (ada_watch_location_expression): Rename to
4591 ada_language::watch_location_expression.
4592 (ada_language_data): Delete la_watch_location_expression
4593 initializer.
4594 (ada_language::watch_location_expression): New member function,
4595 implementation from ada_watch_location_expression.
4596 * breakpoint.c (watch_command_1): Update call to
4597 watch_location_expression.
4598 * c-lang.c (c_watch_location_expression): Rename to
4599 language_defn::watch_location_expression.
4600 (c_language_data): Delete la_watch_location_expression
4601 initializer.
4602 (cplus_language_data): Likewise.
4603 (asm_language_data): Likewise.
4604 (minimal_language_data): Likewise.
4605 * c-lang.h (c_watch_location_expression): Delete declaration.
4606 * d-lang.c (d_language_data): Delete la_watch_location_expression
4607 initializer.
4608 * f-lang.c (f_language_data): Likewise.
4609 * go-lang.c (go_language_data): Likewise.
4610 * language.c (language_defn::watch_location_expression): Member
4611 function implementation from c_watch_location_expression.
4612 (unknown_language_data): Delete la_watch_location_expression
4613 initializer.
4614 (auto_language_data): Likewise.
4615 * language.h (language_data): Delete la_watch_location_expression
4616 field.
4617 (language_defn::watch_location_expression): Declare new member
4618 function.
4619 * m2-lang.c (m2_language_data): Delete
4620 la_watch_location_expression initializer.
4621 * objc-lang.c (objc_language_data): Likewise.
4622 * opencl-lang.c (opencl_language_data): Likewise.
4623 * p-lang.c (pascal_language_data): Likewise.
4624 * rust-lang.c (rust_watch_location_expression): Rename to
4625 rust_language::watch_location_expression.
4626 (rust_language_data): Delete la_watch_location_expression
4627 initializer.
4628 (rust_language::watch_location_expression): New member function,
4629 implementation from rust_watch_location_expression.
4630
7e56227d
AB
46312020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4632
4633 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4634 ada_language::collect_symbol_completion_matches.
4635 (ada_language_data): Delete la_collect_symbol_completion_matches
4636 initializer.
4637 (ada_language::collect_symbol_completion_matches): New member
4638 function, implementation from
4639 ada_collect_symbol_completion_matches.
4640 * c-lang.c (c_language_data): Delete
4641 la_collect_symbol_completion_matches initializer.
4642 (cplus_language_data): Likewise.
4643 (asm_language_data): Likewise.
4644 (minimal_language_data): Likewise.
4645 * d-lang.c (d_language_data): Likewise.
4646 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4647 f_language::collect_symbol_completion_matches.
4648 (f_language_data): Delete la_collect_symbol_completion_matches
4649 initializer.
4650 (f_language::collect_symbol_completion_matches) New member
4651 function, implementation from f_collect_symbol_completion_matches.
4652 * go-lang.c (go_language_data): Delete
4653 la_collect_symbol_completion_matches initializer.
4654 * language.c (unknown_language_data): Likewise.
4655 (auto_language_data): Likewise.
4656 * language.h (language_data): Delete
4657 la_collect_symbol_completion_matches field.
4658 (language_defn::collect_symbol_completion_matches): New member
4659 function.
4660 * m2-lang.c (m2_language_data): Delete
4661 la_collect_symbol_completion_matches initializer.
4662 * objc-lang.c (objc_language_data): Likewise.
4663 * opencl-lang.c (opencl_language_data): Likewise.
4664 * p-lang.c (pascal_language_data): Likewise.
4665 * rust-lang.c (rust_language_data): Likewise.
4666 * symtab.c (default_collect_symbol_completion_matches): Delete.
4667 (collect_symbol_completion_matches): Update call to
4668 collect_symbol_completion_matches.
4669 (collect_symbol_completion_matches_type): Likewise.
4670 * symtab.h (default_collect_symbol_completion_matches): Delete
4671 declaration.
4672
53fc67f8
AB
46732020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4674
4675 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4676 (ada_language_data): Delete la_word_break_characters initializer.
4677 (ada_language::word_break_characters): New member function.
4678 * c-lang.c (c_language_data): Delete la_word_break_characters
4679 initializer.
4680 (cplus_language_data): Likewise.
4681 (asm_language_data): Likewise.
4682 (minimal_language_data): Likewise.
4683 * completer.c: Update global comment.
4684 (advance_to_expression_complete_word_point): Update call to
4685 word_break_characters.
4686 (complete_files_symbols): Likewise.
4687 (complete_line_internal_1): Likewise.
4688 (default_completer_handle_brkchars): Likewise.
4689 (skip_quoted_chars): Likewise.
4690 * d-lang.c (d_language_data): Delete la_word_break_characters
4691 initializer.
4692 * f-lang.c (f_word_break_characters): Delete.
4693 (f_language_data): Delete la_word_break_characters initializer.
4694 (f_language::word_break_characters): New member function.
4695 * go-lang.c (go_language_data): Delete la_word_break_characters
4696 initializer.
4697 * language.c (unknown_language_data): Likewise.
4698 (auto_language_data): Likewise.
4699 * language.h (default_word_break_characters): Move declaration to
4700 earlier in the file.
4701 (language_data): Delete la_word_break_characters field.
4702 (language_defn::word_break_characters): New member function.
4703 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4704 initializer.
4705 * objc-lang.c (objc_language_data): Likewise.
4706 * opencl-lang.c (opencl_language_data): Likewise.
4707 * p-lang.c (pascal_language_data): Likewise.
4708 * rust-lang.c (rust_language_data): Likewise.
4709
c9debfb9
AB
47102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4711
4712 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4713 (ada_language_data): Delete la_get_symbol_name_matcher
4714 initializer.
4715 (language_defn::get_symbol_name_matcher_inner): New member
4716 function.
4717 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4718 initializer.
4719 (cplus_language_data): Likewise.
4720 (cplus_language::get_symbol_name_matcher_inner): New member
4721 function.
4722 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4723 (minimal_language_data): Likewise.
4724 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4725 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4726 initializer.
4727 * dictionary.c (iter_match_first_hashed): Update call to
4728 get_symbol_name_matcher.
4729 (iter_match_next_hashed): Likewise.
4730 (iter_match_next_linear): Likewise.
4731 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4732 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4733 initializer.
4734 (f_language::get_symbol_name_matcher_inner): New member function.
4735 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4736 initializer.
4737 * language.c (default_symbol_name_matcher): Update header comment,
4738 make static.
4739 (language_defn::get_symbol_name_matcher): New definition.
4740 (language_defn::get_symbol_name_matcher_inner): Likewise.
4741 (get_symbol_name_matcher): Delete.
4742 (unknown_language_data): Delete la_get_symbol_name_matcher
4743 initializer.
4744 (auto_language_data): Likewise.
4745 * language.h (language_data): Delete la_get_symbol_name_matcher
4746 field.
4747 (language_defn::get_symbol_name_matcher): New member function.
4748 (language_defn::get_symbol_name_matcher_inner): Likewise.
4749 (default_symbol_name_matcher): Delete declaration.
4750 * linespec.c (find_methods): Update call to
4751 get_symbol_name_matcher.
4752 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4753 initializer.
4754 * minsyms.c (lookup_minimal_symbol): Update call to
4755 get_symbol_name_matcher.
4756 (iterate_over_minimal_symbols): Likewise.
4757 * objc-lang.c (objc_language_data): Delete
4758 la_get_symbol_name_matcher initializer.
4759 * opencl-lang.c (opencl_language_data): Likewise.
4760 * p-lang.c (pascal_language_data): Likewise.
4761 * psymtab.c (psymbol_name_matches): Update call to
4762 get_symbol_name_matcher.
4763 * rust-lang.c (rust_language_data): Delete
4764 la_get_symbol_name_matcher initializer.
4765 * symtab.c (symbol_matches_search_name): Update call to
4766 get_symbol_name_matcher.
4767 (compare_symbol_name): Likewise.
4768
9a49ad8c
AB
47692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4770
4771 * ada-lang.c (ada_language_data): Delete la_compute_program
4772 initializer.
4773 * c-lang.c (c_language_data): Likewise.
4774 (c_language::compute_program): New member function.
4775 (cplus_language_data): Delete la_compute_program initializer.
4776 (cplus_language::compute_program): New member function.
4777 (asm_language_data): Delete la_compute_program initializer.
4778 (minimal_language_data): Likewise.
4779 * c-lang.h (c_compute_program): Update comment.
4780 (cplus_compute_program): Likewise.
4781 * compile/compile-c-support.c (c_compute_program): Likewise.
4782 (cplus_compute_program): Likewise.
4783 * compile/compile.c (compile_to_object): Update call to
4784 la_compute_program.
4785 * d-lang.c (d_language_data): Delete la_compute_program
4786 initializer.
4787 * f-lang.c (f_language_data): Likewise.
4788 * go-lang.c (go_language_data): Likewise.
4789 * language.c (unknown_language_data): Likewise.
4790 (auto_language_data): Likewise.
4791 * language.h (language_data): Delete la_compute_program field.
4792 (language_defn::compute_program): New member function.
4793 * m2-lang.c (m2_language_data): Delete la_compute_program
4794 initializer.
4795 * objc-lang.c (objc_language_data): Likewise.
4796 * opencl-lang.c (opencl_language_data): Likewise.
4797 * p-lang.c (pascal_language_data): Likewise.
4798 * rust-lang.c (rust_language_data): Likewise.
4799
eff93b4d
AB
48002020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4801
4802 * ada-lang.c (ada_language_data) Delete
4803 la_class_name_from_physname initializer.
4804 * c-lang.c (c_language_data): Likewise.
4805 (cplus_language_data): Likewise.
4806 (cplus_language::class_name_from_physname): New member function.
4807 (asm_language_data): Delete la_class_name_from_physname
4808 initializer.
4809 (minimal_language_data): Likewise.
4810 * d-lang.c (d_language_data): Likewise.
4811 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4812 method on language_defn class.
4813 (guess_full_die_structure_name): Likewise.
4814 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4815 initializer.
4816 * go-lang.c (go_language_data): Likewise.
4817 * language.c (language_class_name_from_physname): Delete.
4818 (unk_lang_class_name): Delete.
4819 (unknown_language_data): Delete la_class_name_from_physname
4820 initializer.
4821 (auto_language_data): Likewise.
4822 * language.h (language_data): Delete la_class_name_from_physname
4823 field.
4824 (language_defn::class_name_from_physname): New function.
4825 (language_class_name_from_physname): Delete declaration.
4826 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4827 initializer.
4828 * objc-lang.c (objc_language_data): Likewise.
4829 * opencl-lang.c (opencl_language_data): Likewise.
4830 * p-lang.c (pascal_language_data): Likewise.
4831 * rust-lang.c (rust_language_data): Likewise.
4832
de543742
TT
48332020-06-16 Tom Tromey <tom@tromey.com>
4834
4835 * tui/tui-data.h (STATUS_NAME): New macro.
4836 * tui/tui-layout.c (tui_remove_some_windows)
4837 (initialize_known_windows, tui_register_window)
4838 (tui_layout_split::remove_windows, initialize_layouts)
4839 (tui_new_layout_command): Don't use hard-coded window names.
4840
a350efd4
TT
48412020-06-16 Tom Tromey <tom@tromey.com>
4842
4843 PR tui/25348:
4844 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4845 tui_initialize_readline. Only run once. Call rl_initialize.
4846 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4847 tui_initialize_readline.
4848 * tui/tui-io.c (tui_setup_io): Call
4849 tui_ensure_readline_initialized.
4850 * tui/tui-interp.c (tui_interp::init): Update.
4851
39ec0490
TT
48522020-06-16 Tom Tromey <tom@tromey.com>
4853
4854 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4855 Also preserve the status window.
4856
d2d1ea20
TT
48572020-06-16 Tom Tromey <tom@tromey.com>
4858
4859 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4860 where m_window==nullptr.
4861
66920317
TT
48622020-06-15 Tom Tromey <tromey@adacore.com>
4863
4864 * windows-nat.c (windows_nat::handle_output_debug_string):
4865 Update.
4866 (windows_nat::handle_ms_vc_exception): Update.
4867 * target.h (target_read_string): Change API.
4868 * target.c (target_read_string): Change API.
4869 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4870 Update.
4871 * solib-frv.c (frv_current_sos): Update.
4872 * solib-dsbt.c (dsbt_current_sos): Update.
4873 * solib-darwin.c (darwin_current_sos): Update.
4874 * linux-thread-db.c (inferior_has_bug): Update.
4875 * expprint.c (print_subexp_standard): Update.
4876 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4877 (ada_exception_message_1): Update.
4878
a5d871dd
TT
48792020-06-15 Tom Tromey <tromey@adacore.com>
4880
4881 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4882
670e35fa
TT
48832020-06-15 Tom Tromey <tromey@adacore.com>
4884
4885 * valprint.c (read_string): Update comment.
4886 * target.c (MIN): Remove.
4887 (target_read_string): Rewrite.
4888
f5272a3b
TT
48892020-06-15 Tom Tromey <tromey@adacore.com>
4890
4891 * corefile.c (read_memory_string): Remove.
4892 * ada-valprint.c (ada_value_print_ptr): Update.
4893 * ada-lang.h (ada_tag_name): Change return type.
4894 * ada-lang.c (type_from_tag): Update.
4895 (ada_tag_name_from_tsd): Change return type. Use
4896 target_read_string.
4897 (ada_tag_name): Likewise.
4898 * gdbcore.h (read_memory_string): Don't declare.
4899
2c074f49
HD
49002020-06-14 Hannes Domani <ssbssa@yahoo.de>
4901
4902 * symtab.c (rbreak_command): Ignore Windows drive colon.
4903
6a17d503
SM
49042020-06-12 Simon Marchi <simon.marchi@efficios.com>
4905
4906 * NEWS: Mention removed GDBserver host support.
4907
453c733f
NC
49082020-06-12 Nelson Chu <nelson.chu@sifive.com>
4909
4910 * features/riscv/rebuild-csr-xml.sh: Updated.
4911
2b4e6a3f
TT
49122020-06-11 Tom Tromey <tom@tromey.com>
4913
4914 PR gdb/18318:
4915 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4916
4412332f
JG
49172020-06-09 Jonny Grant <jg@jguk.org>
49182020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4919
4920 * main.c (captured_main_1): Don't print new line after help.
4921 (print_gdb_help): add mailing list and IRC channel information
4922 to --help. Add new lines between items in the footer. Remove
4923 quotes around bug url.
4924
2f33032a
KS
49252020-06-11 Keith Seitz <keiths@redhat.com>
4926
4927 PR gdb/21356
4928 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4929 Resolve typedefs for type length calculations.
4930
7ab96794
TV
49312020-06-10 Tom de Vries <tdevries@suse.de>
4932
4933 PR ada/24713
4934 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4935 (write_psymbols): Enable .gdb_index for ada.
4936 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4937 ada.
4938
e5f3ece2
TV
49392020-06-10 Tom de Vries <tdevries@suse.de>
4940
4941 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4942 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4943 namei" instead of "const char *name" argument.
4944 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4945 dw2_symtab_iter_init.
4946
940da03e
SM
49472020-06-08 Simon Marchi <simon.marchi@efficios.com>
4948
4949 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4950 to use type::field and field::type instead.
4951
b6cdac4b
SM
49522020-06-08 Simon Marchi <simon.marchi@efficios.com>
4953
4954 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4955 to use field::type instead.
4956
5d14b6e5
SM
49572020-06-08 Simon Marchi <simon.marchi@efficios.com>
4958
4959 * gdbtypes.h (struct field) <type, set_type>: New methods.
4960 Rename `type` field to...
4961 <m_type>: ... this. Change references throughout to use type or
4962 set_type methods.
4963 (FIELD_TYPE): Use field::type. Change call sites that modify
4964 the field's type to use field::set_type instead.
4965
3d967001
SM
49662020-06-08 Simon Marchi <simon.marchi@efficios.com>
4967
4968 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4969 to use type::index_type instead.
4970
262abc0d
SM
49712020-06-08 Simon Marchi <simon.marchi@efficios.com>
4972
4973 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4974 methods.
4975 (TYPE_INDEX_TYPE): Use type::index_type.
4976 * gdbtypes.c (create_array_type_with_stride): Likewise.
4977
82836c92
TT
49782020-06-07 Tom Tromey <tom@tromey.com>
4979
4980 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4981 parameter.
4982 (generic_value_print): Update.
4983
940dace9
AB
49842020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4985
4986 Revert commit 982a38f60b0.
4987 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4988
982a38f6
AB
49892020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4990
4991 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4992 avoid use after free.
4993
82f06518
TV
49942020-06-05 Tom de Vries <tdevries@suse.de>
4995
4996 * NEWS: Fix typos.
4997
f8c41851
SM
49982020-06-04 Simon Marchi <simon.marchi@efficios.com>
4999
5000 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5001 the per_bfd object.
5002 (dwarf2_read_debug_names): Likewise.
5003 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5004 object when re-using a per_bfd object with an index.
5005
f9b5d5ea
TV
50062020-06-03 Tom de Vries <tdevries@suse.de>
5007
5008 PR symtab/26046
5009 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5010 children for C++.
5011 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5012 DW_TAG_subprogram.
5013
f6eee2d0
AB
50142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5015
5016 * ada-lang.c (ada_language_data): Delete skip_trampoline
5017 initializer.
5018 * c-lang.c (c_language_data): Likewise.
5019 (cplus_language_data): Likewise.
5020 (cplus_language::skip_trampoline): New member function.
5021 (asm_language_data): Delete skip_trampoline initializer.
5022 (minimal_language_data): Likewise.
5023 * d-lang.c (d_language_data): Likewise.
5024 * f-lang.c (f_language_data): Likewise.
5025 * go-lang.c (go_language_data): Likewise.
5026 * language.c (unk_lang_trampoline): Delete function.
5027 (skip_language_trampoline): Update.
5028 (unknown_language_data): Delete skip_trampoline initializer.
5029 (auto_language_data): Likewise.
5030 * language.h (language_data): Delete skip_trampoline field.
5031 (language_defn::skip_trampoline): New function.
5032 * m2-lang.c (m2_language_data): Delete skip_trampoline
5033 initializer.
5034 * objc-lang.c (objc_skip_trampoline): Delete function, move
5035 implementation to objc_language::skip_trampoline.
5036 (objc_language_data): Delete skip_trampoline initializer.
5037 (objc_language::skip_trampoline): New member function with
5038 implementation from objc_skip_trampoline.
5039 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5040 initializer.
5041 * p-lang.c (pascal_language_data): Likewise.
5042 * rust-lang.c (rust_language_data): Likewise.
5043
0a50df5d
AB
50442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5045
5046 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5047 (ada_language::demangle): New member function.
5048 * c-lang.c (c_language_data): Delete la_demangle initializer.
5049 (cplus_language_data): Delete la_demangle initializer.
5050 (cplus_language::demangle): New member function.
5051 (asm_language_data): Delete la_demangle initializer.
5052 (minimal_language_data): Delete la_demangle initializer.
5053 * d-lang.c (d_language_data): Delete la_demangle initializer.
5054 (d_language::demangle): New member function.
5055 * f-lang.c (f_language_data): Delete la_demangle initializer.
5056 (f_language::demangle): New member function.
5057 * go-lang.c (go_language_data): Delete la_demangle initializer.
5058 (go_language::demangle): New member function.
5059 * language.c (language_demangle): Update.
5060 (unk_lang_demangle): Delete.
5061 (unknown_language_data): Delete la_demangle initializer.
5062 (unknown_language::demangle): New member function.
5063 (auto_language_data): Delete la_demangle initializer.
5064 (auto_language::demangle): New member function.
5065 * language.h (language_data): Delete la_demangle field.
5066 (language_defn::demangle): New function.
5067 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5068 * objc-lang.c (objc_language_data): Delete la_demangle
5069 initializer.
5070 (objc_language::demangle): New member function.
5071 * opencl-lang.c (opencl_language_data): Delete la_demangle
5072 initializer.
5073 * p-lang.c (pascal_language_data): Likewise.
5074 * rust-lang.c (rust_language_data): Likewise.
5075 (rust_language::demangle): New member function.
5076
fbfb0a46
AB
50772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5078
5079 * ada-lang.c (ada_language_data): Delete la_print_type
5080 initializer.
5081 (ada_language::print_type): New member function.
5082 * c-lang.c (c_language_data): Delete la_print_type initializer.
5083 (c_language::print_type): New member function.
5084 (cplus_language_data): Delete la_print_type initializer.
5085 (cplus_language::print_type): New member function.
5086 (asm_language_data): Delete la_print_type initializer.
5087 (asm_language::print_type): New member function.
5088 (minimal_language_data): Delete la_print_type initializer.
5089 (minimal_language::print_type): New member function.
5090 * d-lang.c (d_language_data): Delete la_print_type initializer.
5091 (d_language::print_type): New member function.
5092 * f-lang.c (f_language_data): Delete la_print_type initializer.
5093 (f_language::print_type): New member function.
5094 * go-lang.c (go_language_data): Delete la_print_type initializer.
5095 (go_language::print_type): New member function.
5096 * language.c (unk_lang_print_type): Delete.
5097 (unknown_language_data): Delete la_print_type initializer.
5098 (unknown_language::print_type): New member function.
5099 (auto_language_data): Delete la_print_type initializer.
5100 (auto_language::print_type): New member function.
5101 * language.h (language_data): Delete la_print_type field.
5102 (language_defn::print_type): New function.
5103 (LA_PRINT_TYPE): Update.
5104 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5105 (m2_language::print_type): New member function.
5106 * objc-lang.c (objc_language_data): Delete la_print_type
5107 initializer.
5108 (objc_language::print_type): New member function.
5109 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5110 to opencl_language::print_type.
5111 (opencl_language_data): Delete la_print_type initializer.
5112 (opencl_language::print_type): New member function, implementation
5113 from opencl_print_type.
5114 * p-lang.c (pascal_language_data): Delete la_print_type
5115 initializer.
5116 (pascal_language::print_type): New member function.
5117 * rust-lang.c (rust_print_type): Delete, implementation moved to
5118 rust_language::print_type.
5119 (rust_language_data): Delete la_print_type initializer.
5120 (rust_language::print_type): New member function, implementation
5121 from rust_print_type.
5122
6f827019
AB
51232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5124
5125 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5126 implementation moves to...
5127 (ada_language::sniff_from_mangled_name): ...here. Update return
5128 type.
5129 (ada_language_data): Delete la_sniff_from_mangled_name
5130 initializer.
5131 * c-lang.c (c_language_data): Likewise.
5132 (cplus_language_data): Likewise.
5133 (cplus_language::sniff_from_mangled_name): New member function,
5134 implementation taken from gdb_sniff_from_mangled_name.
5135 (asm_language_data): Delete la_sniff_from_mangled_name
5136 initializer.
5137 (minimal_language_data): Likewise.
5138 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5139 implementation moves to cplus_language::sniff_from_mangled_name.
5140 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5141 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5142 moves to...
5143 (d_language::sniff_from_mangled_name): ...here.
5144 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5145 * f-lang.c (f_language_data): Likewise.
5146 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5147 moves to...
5148 (go_language::sniff_from_mangled_name): ...here.
5149 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5150 * language.c (language_sniff_from_mangled_name): Delete.
5151 (unknown_language_data): Delete la_sniff_from_mangled_name
5152 initializer.
5153 (auto_language_data): Likewise.
5154 * language.h (language_data): Delete la_sniff_from_mangled_name
5155 field.
5156 (language_defn::sniff_from_mangled_name): New function.
5157 (language_sniff_from_mangled_name): Delete declaration.
5158 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5159 field.
5160 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5161 implementation moves to...
5162 (objc_language::sniff_from_mangled_name): ...here.
5163 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5164 * opencl-lang.c (opencl_language_data): Likewise.
5165 * p-lang.c (pascal_language_data): Likewise.
5166 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5167 implementation moves to...
5168 (rust_language::sniff_from_mangled_name): ...here.
5169 (rust_language_data): Delete la_sniff_from_mangled_name
5170 initializer.
5171 * symtab.c (symbol_find_demangled_name): Call
5172 sniff_from_mangled_name member function.
5173
fb8006fd
AB
51742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5175
5176 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5177 initializer.
5178 * c-lang.c (c_language_data): Likewise.
5179 (cplus_language_data): Likewise.
5180 (cplus_language::search_name_hash): New member function.
5181 (asm_language_data): Delete la_search_name_hash initializer.
5182 (minimal_language_data): Likewise.
5183 * d-lang.c (d_language_data): Likewise.
5184 * dictionary.c (default_search_name_hash): Rename to...
5185 (language_defn::search_name_hash): ...this.
5186 * f-lang.c (f_language_data): Likewise.
5187 (f_language::search_name_hash): New member function.
5188 * go-lang.c (go_language_data): Delete la_search_name_hash
5189 initializer.
5190 * language.c (unknown_language_data): Likewise.
5191 (auto_language_data): Likewise.
5192 * language.h (struct language_data): Delete la_search_name_hash
5193 field.
5194 (language_defn::search_name_hash): Declare new member function.
5195 (default_search_name_hash): Delete declaration.
5196 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5197 initializer.
5198 * objc-lang.c (objc_language_data): Likewise.
5199 * opencl-lang.c (opencl_language_data): Likewise.
5200 * p-lang.c (pascal_language_data): Likewise.
5201 * rust-lang.c (rust_language_data): Likewise.
5202 * symtab.c (search_name_hash): Update call.
5203
8e25bafe
AB
52042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5205
5206 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5207 initializer.
5208 * c-lang.c (class compile_instance): Declare.
5209 (c_language_data): Delete la_get_compile_instance initializer.
5210 (c_language::get_compile_instance): New member function.
5211 (cplus_language_data): Delete la_get_compile_instance initializer.
5212 (cplus_language::get_compile_instance): New member function.
5213 (asm_language_data): Delete la_get_compile_instance initializer.
5214 (minimal_language_data): Likewise.
5215 * c-lang.h (c_get_compile_context): Update comment.
5216 (cplus_get_compile_context): Update comment.
5217 * compile/compile.c (compile_to_object): Update calls, don't rely
5218 on function pointer being NULL.
5219 * d-lang.c (d_language_data): Delete la_get_compile_instance
5220 initializer.
5221 * f-lang.c (f_language_data): Likewise.
5222 * go-lang.c (go_language_data): Likewise.
5223 * language.c (unknown_language_data): Likewise.
5224 (auto_language_data): Likewise.
5225 * language.h (language_data): Delete la_get_compile_instance field.
5226 (language_defn::get_compile_instance): New member function.
5227 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5228 initializer.
5229 * objc-lang.c (objc_language_data): Likewise.
5230 * opencl-lang.c (opencl_language_data): Likewise.
5231 * p-lang.c (pascal_language_data): Likewise.
5232 * rust-lang.c (rust_language_data): Likewise.
5233
4009ee92
AB
52342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5235
5236 * ada-lang.c (ada_add_all_symbols): Update comment.
5237 (ada_iterate_over_symbols): Delete, move implementation to...
5238 (ada_language::iterate_over_symbols): ...here, a new member
5239 function, rewrite to use range based for loop.
5240 (ada_language_data): Delete la_iterate_over_symbols initializer.
5241 * c-lang.c (c_language_data): Likewise.
5242 (cplus_language_data): Likewise.
5243 (asm_language_data): Likewise.
5244 (minimal_language_data): Likewise.
5245 * d-lang.c (d_language_data): Likewise.
5246 * f-lang.c (f_language_data): Likewise.
5247 * go-lang.c (go_language_data): Likewise.
5248 * language.c (unknown_language_data): Likewise.
5249 (auto_language_data): Likewise.
5250 * language.h (language_data): Delete la_iterate_over_symbols field.
5251 (language_defn::iterate_over_symbols): New member function.
5252 (LA_ITERATE_OVER_SYMBOLS): Update.
5253 * linespec.c (iterate_over_all_matching_symtabs): Update.
5254 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5255 initializer.
5256 * objc-lang.c (objc_language_data): Likewise.
5257 * opencl-lang.c (opencl_language_data): Likewise.
5258 * p-lang.c (pascal_language_data): Likewise.
5259 * rust-lang.c (rust_language_data): Likewise.
5260
54f4ca46
AB
52612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5262
5263 * ada-lang.c (ada_language_data): Delete
5264 la_lookup_transparent_type initializer.
5265 * c-lang.c (c_language_data): Likewise.
5266 (cplus_language_data): Likewise.
5267 (cplus_language::lookup_transparent_type): New member function.
5268 (asm_language_data): Delete la_lookup_transparent_type
5269 initializer.
5270 (minimal_language_data): Likewise.
5271 * d-lang.c (d_language_data): Likewise.
5272 * f-lang.c (f_language_data): Likewise.
5273 * go-lang.c (go_language_data): Likewise.
5274 * language.c (unknown_language_data): Likewise.
5275 (auto_language_data): Likewise.
5276 * language.h (struct language_data): Delete
5277 la_lookup_transparent_type field.
5278 (language_defn::lookup_transparent_type): New member function.
5279 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5280 initializer.
5281 * objc-lang.c (objc_language_data): Likewise.
5282 * opencl-lang.c (opencl_language_data): Likewise.
5283 * p-lang.c (pascal_language_data): Likewise.
5284 * rust-lang.c (rust_language_data): Likewise.
5285 * symtab.c (symbol_matches_domain): Update call.
5286
1fb314aa
AB
52872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5288
5289 * ada-lang.c (ada_language_arch_info): Delete function, move
5290 implementation to...
5291 (ada_language::language_arch_info): ...here, a new member
5292 function.
5293 (ada_language_data): Delete la_language_arch_info.
5294 * c-lang.c (c_language_data): Likewise.
5295 (c_language::language_arch_info): New member function.
5296 (cplus_language_arch_info): Delete function, move
5297 implementation to...
5298 (cplus_language::language_arch_info): ...here, a new member
5299 function.
5300 (cplus_language_data): Delete la_language_arch_info.
5301 (asm_language_data): Likewise.
5302 (asm_language::language_arch_info): New member function.
5303 (minimal_language_data): Delete la_language_arch_info.
5304 (minimal_language::language_arch_info): New member function.
5305 * d-lang.c (d_language_arch_info): Delete function, move
5306 implementation to...
5307 (d_language::language_arch_info): ...here, a new member
5308 function.
5309 (d_language_data): Delete la_language_arch_info.
5310 * f-lang.c (f_language_arch_info): Delete function, move
5311 implementation to...
5312 (f_language::language_arch_info): ...here, a new member
5313 function.
5314 (f_language_data): Delete la_language_arch_info.
5315 * go-lang.c (go_language_arch_info): Delete function, move
5316 implementation to...
5317 (go_language::language_arch_info): ...here, a new member
5318 function.
5319 (go_language_data): Delete la_language_arch_info.
5320 * language.c (unknown_language_data): Likewise.
5321 (unknown_language::language_arch_info): New member function.
5322 (auto_language_data): Delete la_language_arch_info.
5323 (auto_language::language_arch_info): New member function.
5324 (language_gdbarch_post_init): Update call to
5325 la_language_arch_info.
5326 * language.h (language_data): Delete la_language_arch_info
5327 function pointer.
5328 (language_defn::language_arch_info): New function.
5329 * m2-lang.c (m2_language_arch_info): Delete function, move
5330 implementation to...
5331 (m2_language::language_arch_info): ...here, a new member
5332 function.
5333 (m2_language_data): Delete la_language_arch_info.
5334 * objc-lang.c (objc_language_arch_info): Delete function, move
5335 implementation to...
5336 (objc_language::language_arch_info): ...here, a new member
5337 function.
5338 (objc_language_data): Delete la_language_arch_info.
5339 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5340 implementation to...
5341 (opencl_language::language_arch_info): ...here, a new member
5342 function.
5343 (opencl_language_data): Delete la_language_arch_info.
5344 * p-lang.c (pascal_language_arch_info): Delete function, move
5345 implementation to...
5346 (pascal_language::language_arch_info): ...here, a new member
5347 function.
5348 (pascal_language_data): Delete la_language_arch_info.
5349 * rust-lang.c (rust_language_arch_info): Delete function, move
5350 implementation to...
5351 (rust_language::language_arch_info): ...here, a new member
5352 function.
5353 (rust_language_data): Delete la_language_arch_info.
5354
48448202
AB
53552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5356
5357 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5358 initializer.
5359 * c-lang.c (c_language_data): Likewise.
5360 (cplus_language_data): Likewise.
5361 (cplus_language::pass_by_reference_info): New method.
5362 (asm_language_data): Delete la_pass_by_reference initializer.
5363 (minimal_language_data): Likewise.
5364 * cp-abi.c (cp_pass_by_reference): Remove use of
5365 default_pass_by_reference.
5366 * d-lang.c (d_language_data): Likewise.
5367 * f-lang.c (f_language_data): Likewise.
5368 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5369 default_pass_by_reference.
5370 * go-lang.c (go_language_data): Likewise.
5371 * language.c (language_pass_by_reference): Update.
5372 (default_pass_by_reference): Delete.
5373 (unknown_language_data): Delete la_pass_by_reference
5374 initializer.
5375 (auto_language_data): Likewise.
5376 * language.h (struct language_data): Delete la_pass_by_reference
5377 field.
5378 (language_defn::pass_by_reference_info): New member function.
5379 (default_pass_by_reference): Delete declaration.
5380 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5381 initializer.
5382 * objc-lang.c (objc_language_data): Likewise.
5383 * opencl-lang.c (opencl_language_data): Likewise.
5384 * p-lang.c (pascal_language_data): Likewise.
5385 * rust-lang.c (rust_language_data): Likewise.
5386
15e5fd35
AB
53872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5388
5389 * ada-lang.c (ada_read_var_value): Delete function, move
5390 implementation to...
5391 (ada_language::read_var_value): ...here.
5392 (ada_language_data): Delete la_read_var_value initializer.
5393 * c-lang.c (c_language_data): Likewise.
5394 (cplus_language_data): Likewise.
5395 (minimal_language_data): Likewise.
5396 * d-lang.c (d_language_data): Likewise.
5397 * f-lang.c (f_language_data): Likewise.
5398 * findvar.c (default_read_var_value): Rename to...
5399 (language_defn::read_var_value): ...this.
5400 * findvar.c (read_var_value): Update header comment, and change to
5401 call member function instead of function pointer.
5402 * go-lang.c (go_language_data): Likewise.
5403 * language.c (unknown_language_data): Delete la_read_var_value
5404 initializer.
5405 (auto_language_data): Likewise.
5406 * language.h (struct language_data): Delete la_read_var_value
5407 field.
5408 (language_defn::read_var_value): New member function.
5409 (default_read_var_value): Delete declaration.
5410 * m2-lang.c (m2_language_data): Delete la_read_var_value
5411 initializer.
5412 * objc-lang.c (objc_language_data): Likewise.
5413 * opencl-lang.c (opencl_language_data): Likewise.
5414 * p-lang.c (pascal_language_data): Likewise.
5415 * rust-lang.c (rust_language_data): Likewise.
5416 * value.h (default_read_var_value): Delete declaration.
5417
5bd40f2a
AB
54182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5419
5420 * ada-lang.c (ada_print_array_index): Delete function, move
5421 implementation to...
5422 (ada_language::print_array_index): ...here.
5423 (ada_language_data): Delete la_print_array_index initializer.
5424 * c-lang.c (c_language_data): Likewise.
5425 (cplus_language_data): Likewise.
5426 (minimal_language_data): Likewise.
5427 * d-lang.c (d_language_data): Likewise.
5428 * f-lang.c (f_language_data): Likewise.
5429 * go-lang.c (go_language_data): Likewise.
5430 * language.c (default_print_array_index): Delete function, move
5431 implementation to...
5432 (language_defn::print_array_index): ...here.
5433 (unknown_language_data): Delete la_print_array_index initializer.
5434 (auto_language_data): Likewise.
5435 * language.h (struct language_data): Delete la_print_array_index
5436 field.
5437 (language_defn::print_array_index): New member function.
5438 (LA_PRINT_ARRAY_INDEX): Update.
5439 (default_print_array_index): Delete declaration.
5440 * m2-lang.c (m2_language_data): Delete la_print_array_index
5441 initializer.
5442 * objc-lang.c (objc_language_data): Likewise.
5443 * opencl-lang.c (opencl_language_data): Likewise.
5444 * p-lang.c (pascal_language_data): Likewise.
5445 * rust-lang.c (rust_language_data): Likewise.
5446
0874fd07
AB
54472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5448
5449 * gdb/ada-lang.c (ada_language_defn): Convert to...
5450 (ada_language_data): ...this.
5451 (class ada_language): New class.
5452 (ada_language_defn): New static global.
5453 * gdb/c-lang.c (c_language_defn): Convert to...
5454 (c_language_data): ...this.
5455 (class c_language): New class.
5456 (c_language_defn): New static global.
5457 (cplus_language_defn): Convert to...
5458 (cplus_language_data): ...this.
5459 (class cplus_language): New class.
5460 (cplus_language_defn): New static global.
5461 (asm_language_defn): Convert to...
5462 (asm_language_data): ...this.
5463 (class asm_language): New class.
5464 (asm_language_defn): New static global.
5465 (minimal_language_defn): Convert to...
5466 (minimal_language_data): ...this.
5467 (class minimal_language): New class.
5468 (minimal_language_defn): New static global.
5469 * gdb/d-lang.c (d_language_defn): Convert to...
5470 (d_language_data): ...this.
5471 (class d_language): New class.
5472 (d_language_defn): New static global.
5473 * gdb/f-lang.c (f_language_defn): Convert to...
5474 (f_language_data): ...this.
5475 (class f_language): New class.
5476 (f_language_defn): New static global.
5477 * gdb/go-lang.c (go_language_defn): Convert to...
5478 (go_language_data): ...this.
5479 (class go_language): New class.
5480 (go_language_defn): New static global.
5481 * gdb/language.c (unknown_language_defn): Remove declaration.
5482 (current_language): Initialize to nullptr, real initialization is
5483 moved to _initialize_language.
5484 (languages): Delete global.
5485 (language_defn::languages): Define.
5486 (set_language_command): Use language_defn::languages.
5487 (set_language): Likewise.
5488 (range_error): Likewise.
5489 (language_enum): Likewise.
5490 (language_def): Likewise.
5491 (add_set_language_command): Use language_def::languages for the
5492 language list, and language_def to lookup language pointers.
5493 (skip_language_trampoline): Use language_defn::languages.
5494 (unknown_language_defn): Convert to...
5495 (unknown_language_data): ...this.
5496 (class unknown_language): New class.
5497 (unknown_language_defn): New static global.
5498 (auto_language_defn): Convert to...
5499 (auto_language_data): ...this.
5500 (class auto_language): New class.
5501 (auto_language_defn): New static global.
5502 (language_gdbarch_post_init): Use language_defn::languages.
5503 (_initialize_language): Initialize current_language.
5504 * gdb/language.h (struct language_defn): Rename to...
5505 (struct language_data): ...this.
5506 (struct language_defn): New.
5507 (auto_language_defn): Delete.
5508 (unknown_language_defn): Delete.
5509 (minimal_language_defn): Delete.
5510 (ada_language_defn): Delete.
5511 (asm_language_defn): Delete.
5512 (c_language_defn): Delete.
5513 (cplus_language_defn): Delete.
5514 (d_language_defn): Delete.
5515 (f_language_defn): Delete.
5516 (go_language_defn): Delete.
5517 (m2_language_defn): Delete.
5518 (objc_language_defn): Delete.
5519 (opencl_language_defn): Delete.
5520 (pascal_language_defn): Delete.
5521 (rust_language_defn): Delete.
5522 * gdb/m2-lang.c (m2_language_defn): Convert to...
5523 (m2_language_data): ...this.
5524 (class m2_language): New class.
5525 (m2_language_defn): New static global.
5526 * gdb/objc-lang.c (objc_language_defn): Convert to...
5527 (objc_language_data): ...this.
5528 (class objc_language): New class.
5529 (objc_language_defn): New static global.
5530 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5531 (opencl_language_data): ...this.
5532 (class opencl_language): New class.
5533 (opencl_language_defn): New static global.
5534 * gdb/p-lang.c (pascal_language_defn): Convert to...
5535 (pascal_language_data): ...this.
5536 (class pascal_language): New class.
5537 (pascal_language_defn): New static global.
5538 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5539 language pointer, update comment format.
5540 * gdb/rust-lang.c (rust_language_defn): Convert to...
5541 (rust_language_data): ...this.
5542 (class rust_language): New class.
5543 (rust_language_defn): New static global.
5544
1313c56e
AB
55452020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5546
5547 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5548 member variable.
5549 <m_stmt_at_address>: New member variable.
5550 (lnp_state_machine::record_line): Don't record some lines, update
5551 tracking of is_stmt at the same address.
5552 (lnp_state_machine::lnp_state_machine): Initialise new member
5553 variables.
5554
b7ed9f3d
ST
55552020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5556
5557 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5558 "-include gnu-nat-mig.h".
5559 * gnu-nat-mig.h: New file.
5560 * gnu-nat.c: Include "gnu-nat-mig.h".
5561 (exc_server, msg_reply_server, notify_server,
5562 process_reply_server): Remove declarations.
5563
14a8ad62
ST
55642020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5565
5566 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5567 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5568 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5569 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5570 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5571 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5572 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5573 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5574 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5575 to gnu_nat_target class.
5576 * gnu-nat.c: Likewise.
5577 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5578 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5579 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5580 object.
5581 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5582 instead of `gnu_target'.
5583
0af5e106
ST
55842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5585
5586 * i386-gnu-tdep.c: Include "gdbcore.h"
5587 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5588 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5589 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5590 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5591 i386_gnu_sigcontext_addr): New functions
5592 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5593 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5594 tdep.
5595
078f2fc9
ST
55962020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5597
5598 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5599 before fork_inferior call. Avoid calling it if target_is_pushed returns
5600 true.
5601
53dff92c
ST
56022020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5603
5604 * gnu-nat.h (gnu_target): New variable declaration.
5605 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5606 gnu_target.
5607 * gnu-nat.c (gnu_target): New variable.
5608 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5609 add_thread_silent, and add_thread calls.
5610 (gnu_nat_target::create_inferior): Pass gnu_target to
5611 add_thread_silent, thread_change_ptid call.
5612 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5613 call.
5614
5a8b8627
ST
56152020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5616
5617 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5618 (gnu_nat_target::find_memory_regions): Remove unused
5619 `old_address' variable.
5620
366f550a
ST
56212020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5622
5623 * gnu-nat.c: Include "gdbarch.h".
5624
f14871bf
ST
56252020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5626
5627 * reply_mig_hack.awk (Error return): Cast function through
5628 void *, to bypass compiler function call check.
5629
c6887cfb
ST
56302020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5631
5632 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5633 $(srcdir)/reply_mig_hack.awk.
5634
6930bffe
ST
56352020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5636
5637 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5638
112c22ed
JG
56392020-05-30 Jonny Grant <jg@jguk.org>
5640
5641 * configure.ac (ACX_BUGURL): change bug URL to https.
5642
f68f85b5
PA
56432020-05-30 Pedro Alves <palves@redhat.com>
5644
5645 * cp-support.c (replace_typedefs_template): New.
5646 (replace_typedefs_qualified_name): Handle
5647 DEMANGLE_COMPONENT_TEMPLATE.
5648
976ca316
SM
56492020-05-29 Simon Marchi <simon.marchi@efficios.com>
5650
5651 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5652 dwarf2/index-cache.h, dwarf2/index-write.c,
5653 dwarf2/index-write.h, dwarf2/line-header.c,
5654 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5655 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5656 variables and fields from `dwarf2_per_objfile` to just
5657 `per_objfile` throughout.
5658
989ade05
SM
56592020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5660
5661 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5662 <push_dwarf_reg_entry_value>: Add comment.
5663
c47bae85
KB
56642020-05-28 Kevin Buettner <kevinb@redhat.com>
5665 Keith Seitz <keiths@redhat.com>
5666
5667 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5668 instead of PyEval_ReleaseLock.
5669 (class gdbpy_gil): Move to earlier in file.
5670 (finalize_python): Set gdb_python_initialized.
5671 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5672 when not initialized.
5673
44486dcf
SM
56742020-05-28 Simon Marchi <simon.marchi@efficios.com>
5675
5676 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5677 <push_dwarf_reg_entry_value>: Remove assert. Override
5678 per_objfile with caller_per_objfile.
5679
f030440d
TV
56802020-05-28 Tom de Vries <tdevries@suse.de>
5681
5682 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5683 PR gold/15646 workaround to symbol kind "type".
5684
f0fbb768
TT
56852020-05-27 Tom Tromey <tromey@adacore.com>
5686
5687 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5688
af0b2a3e
TT
56892020-05-27 Tom Tromey <tromey@adacore.com>
5690
5691 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5692 Use htab_find_with_hash.
5693 <add_abbrev>: Remove "abbrev_number" parameter.
5694 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5695 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5696 (hash_abbrev): Add comment.
5697 (abbrev_table::lookup_abbrev): Move to header file.
5698 (abbrev_table::read): Update.
5699
7d00ffec
TT
57002020-05-27 Tom Tromey <tromey@adacore.com>
5701
5702 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5703 method.
5704 <canonical_name>: New member.
5705 <raw_name>: Rename from "name".
5706 (partial_die_info): Initialize canonical_name.
5707 (scan_partial_symbols): Check raw_name.
5708 (partial_die_parent_scope, partial_die_full_name)
5709 (add_partial_symbol, add_partial_subprogram)
5710 (add_partial_enumeration, load_partial_dies): Use "name" method.
5711 (partial_die_info::name): New method.
5712 (partial_die_info::read, guess_partial_die_structure_name)
5713 (partial_die_info::fixup): Update.
5714
697bba18
TT
57152020-05-27 Tom Tromey <tromey@adacore.com>
5716
5717 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5718 <get_ref_die_offset>: Inline.
5719 <get_ref_die_offset_complaint>: New method.
5720 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5721 (attribute::get_ref_die_offset_complaint): Rename from
5722 get_ref_die_offset. Just issue complaint.
5723
c17ace43
HD
57242020-05-27 Hannes Domani <ssbssa@yahoo.de>
5725
5726 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5727
96445f0b
HD
57282020-05-27 Hannes Domani <ssbssa@yahoo.de>
5729
5730 * exec.c (exec_file_attach): Use errno value of first openp failure.
5731
ac637ec3
HD
57322020-05-27 Hannes Domani <ssbssa@yahoo.de>
5733
5734 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5735 Don't close thread handle.
5736
17ee85fc
TT
57372020-05-27 Tom Tromey <tom@tromey.com>
5738 Simon Marchi <simon.marchi@efficios.com>
5739
5740 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5741 shared_ptr.
5742 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5743 member.
5744 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5745 dwarf2_per_bfd_objfile_data_key>: New globals.
5746 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5747 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5748 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5749 shared.
5750 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5751 short-circuit when sharing.
5752 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5753 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5754
39b16f87
SM
57552020-05-27 Simon Marchi <simon.marchi@efficios.com>
5756
5757 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5758 to...
5759 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5760 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5761
fcf23d5b
SM
57622020-05-27 Simon Marchi <simon.marchi@efficios.com>
5763
5764 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5765 build_name_components, find_name_components_bounds>:
5766 Add per_objfile parameter.
5767 (struct mapped_index) <symbol_name_at>: Likewise.
5768 (struct mapped_debug_names): Remove constructor.
5769 <dwarf2_per_objfile>: Remove field.
5770 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5771 (mapped_index_base::find_name_components_bounds,
5772 mapped_index_base::build_name_components,
5773 dw2_expand_symtabs_matching_symbol): Likewise.
5774 (class mock_mapped_index) <symbol_name_at>: Likewise.
5775 (check_match): Likewise.
5776 (check_find_bounds_finds): Likewise.
5777 (test_mapped_index_find_name_component_bounds): Update.
5778 (CHECK_MATCH): Update.
5779 (dw2_expand_symtabs_matching): Update.
5780 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5781 per_objfile parameter.
5782 <find_vec_in_debug_names>: Likewise.
5783 <m_per_objfile>: New field.
5784 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5785 parameter.
5786 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5787 (dw2_debug_names_iterator::next): Update.
5788 (dw2_debug_names_lookup_symbol): Update.
5789 (dw2_debug_names_expand_symtabs_for_function): Update.
5790 (dw2_debug_names_map_matching_symbols): Update.
5791 (dw2_debug_names_expand_symtabs_matching): Update.
5792 (dwarf2_read_debug_names): Update.
5793
7188ed02
SM
57942020-05-27 Simon Marchi <simon.marchi@efficios.com>
5795
5796 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5797 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5798 move to dwarf2_per_objfile.
5799 <read_in_chain>: Remove.
5800 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5801 remove_all_cus, age_comp_units>: New methods.
5802 <m_dwarf2_cus>: New member.
5803 (struct dwarf2_per_cu_data) <cu>: Remove.
5804 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5805 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5806 moved to methods of dwarf2_per_objfile.
5807 (dwarf2_clear_marks): Remove.
5808 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5809 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5810 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5811 (dwarf2_per_objfile::remove_all_cus): New.
5812 (class free_cached_comp_units) <~free_cached_comp_units>:
5813 Update.
5814 (load_cu): Update.
5815 (dw2_do_instantiate_symtab): Adjust.
5816 (fill_in_sig_entry_from_dwo_entry): Adjust.
5817 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5818 (cutu_reader::cutu_reader): Likewise.
5819 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5820 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5821 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5822 and dwarf2_per_objfile::age_comp_units.
5823 (load_partial_comp_unit): Update.
5824 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5825 (process_queue): Likewise.
5826 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5827 backlink.
5828 (dwarf2_read_addr_index): Likewise.
5829 (follow_die_offset): Likewise.
5830 (dwarf2_fetch_die_loc_sect_off): Likewise.
5831 (dwarf2_fetch_constant_bytes): Likewise.
5832 (dwarf2_fetch_die_type_sect_off): Likewise.
5833 (follow_die_sig_1): Likewise.
5834 (load_full_type_unit): Likewise.
5835 (read_signatured_type): Likewise.
5836 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5837 (dwarf2_cu::~dwarf2_cu): Remove.
5838 (dwarf2_per_objfile::get_cu): New.
5839 (dwarf2_per_objfile::set_cu): New.
5840 (age_cached_comp_units): Rename to...
5841 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5842 to std::unordered_map.
5843 (free_one_cached_comp_unit): Rename to...
5844 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5845 to std::unordered_map.
5846 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5847 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5848 a dwarf2_per_objfile in data.
5849 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5850 (dwarf2_clear_marks): Remove.
5851
2e671100
SM
58522020-05-27 Simon Marchi <simon.marchi@efficios.com>
5853
5854 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5855 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5856 (init_tu_and_read_dwo_dies): Likewise.
5857 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5858 (cutu_reader::cutu_reader): Likewise.
5859 (load_partial_comp_unit): Likewise.
5860 (process_psymtab_comp_unit): Update.
5861 (build_type_psymtabs_1): Update.
5862 (process_skeletonless_type_unit): Update.
5863 (load_full_comp_unit): Update.
5864 (find_partial_die): Update.
5865 (dwarf2_read_addr_index): Update.
5866 (read_signatured_type): Update.
5867
2e6a9f79
SM
58682020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5869
5870 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5871 m_header_read_in>: New fields.
5872 <get_header>: New method.
5873 * dwarf2/read.c (per_cu_header_read_in): Remove.
5874 (dwarf2_per_cu_data::get_header): New.
5875 (dwarf2_per_cu_data::addr_size): Update.
5876 (dwarf2_per_cu_data::offset_size): Update.
5877 (dwarf2_per_cu_data::ref_addr_size): Update.
5878
1b555f17
SM
58792020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5880
5881 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5882 (dw2_do_instantiate_symtab): Update.
5883 (queue_and_load_all_dwo_tus): Change parameter from
5884 dwarf2_per_cu_data to dwarf2_cu.
5885 (dwarf2_fetch_die_loc_sect_off): Update.
5886 (dwarf2_fetch_constant_bytes): Update.
5887 (dwarf2_fetch_die_type_sect_off): Update.
5888
8fc0b21d
SM
58892020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5890
5891 * dwarf2/read.c (process_full_comp_unit,
5892 process_full_type_unit): Remove per_cu, per_objfile paramters.
5893 Add dwarf2_cu parameter.
5894 (process_queue): Update.
5895
168c9250
SM
58962020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5897
5898 * dwarf2/read.c (create_cu_from_index_list): Replace
5899 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5900 (create_cus_from_index_list): Likewise.
5901 (create_cus_from_index): Likewise.
5902 (create_signatured_type_table_from_index): Likewise.
5903 (create_cus_from_debug_names_list): Likewise.
5904 (create_cus_from_debug_names): Likewise.
5905 (dwarf2_read_gdb_index): Update.
5906 (dwarf2_read_debug_names): Update.
5907
e286671b
TT
59082020-05-27 Tom Tromey <tom@tromey.com>
5909 Simon Marchi <simon.marchi@efficios.com>
5910
5911 * dwarf2/read.h (struct dwarf2_per_objfile)
5912 <get_type_for_signatured_type, set_type_for_signatured_type>:
5913 New methods.
5914 <m_type_map>: New member.
5915 (struct signatured_type) <type>: Remove.
5916 * dwarf2/read.c
5917 (dwarf2_per_objfile::get_type_for_signatured_type,
5918 dwarf2_per_objfile::set_type_for_signatured_type): New.
5919 (get_signatured_type): Use new methods.
5920
8adb8487
TT
59212020-05-27 Tom Tromey <tom@tromey.com>
5922 Simon Marchi <simon.marchi@efficios.com>
5923
5924 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5925 (struct dwarf2_per_objfile) <type_units>: New member.
5926 <get_type_unit_group_unshareable>: New method.
5927 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5928 num_symtabs, symtabs>: Remove; move to
5929 type_unit_group_unshareable.
5930 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5931 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5932 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5933
127bbf4b
SM
59342020-05-27 Simon Marchi <simon.marchi@efficios.com>
5935
5936 * dwarf2/read.h (struct dwarf2_per_cu_data):
5937 <dwarf2_per_objfile>: Remove.
5938 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5939 dwarf2_per_objfile.
5940 (create_signatured_type_table_from_index): Likewise.
5941 (create_signatured_type_table_from_debug_names): Likewise.
5942 (create_debug_type_hash_table): Likewise.
5943 (fill_in_sig_entry_from_dwo_entry): Likewise.
5944 (create_type_unit_group): Likewise.
5945 (read_comp_units_from_section): Likewise.
5946 (create_cus_hash_table): Likewise.
5947
f6e649dd
SM
59482020-05-27 Simon Marchi <simon.marchi@efficios.com>
5949
5950 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5951 dwarf2_per_cu_data::dwarf2_per_objfile.
5952 (compute_compunit_symtab_includes): Likewise.
5953 (dwarf2_cu::start_symtab): Likewise.
5954
aa66c379
SM
59552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5956
5957 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5958 parameter.
5959 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5960 (read_namespace_alias): Update.
5961 (lookup_die_type): Update.
5962 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5963 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5964 Update.
5965 (disassemble_dwarf_expression): Update.
5966
120ce1b5
SM
59672020-05-27 Simon Marchi <simon.marchi@efficios.com>
5968
5969 * dwarf2/read.h (struct dwarf2_queue_item): Add
5970 dwarf2_per_objfile parameter, assign new parameter.
5971 <per_objfile>: New field.
5972 * dwarf2/read.c (free_one_cached_comp_unit): Add
5973 dwarf2_per_objfile parameter.
5974 (queue_comp_unit): Likewise.
5975 (dw2_do_instantiate_symtab): Update.
5976 (process_psymtab_comp_unit): Update.
5977 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5978 (process_imported_unit_die): Update.
5979 (queue_and_load_dwo_tu): Update.
5980 (follow_die_offset): Update.
5981 (follow_die_sig_1): Update.
5982
9f47c707
SM
59832020-05-27 Simon Marchi <simon.marchi@efficios.com>
5984
5985 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5986 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5987 (read_call_site_scope): Assign per_objfile.
5988 (dwarf2_per_cu_data::objfile): Remove.
5989 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5990 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5991 dwarf2_per_objfile parameter.
5992 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5993 dwarf2_per_objfile parameter.
5994 (dwarf_expr_reg_to_entry_parameter): Add output
5995 dwarf2_per_objfile parameter.
5996 (locexpr_get_frame_base): Update.
5997 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5998 <push_dwarf_reg_entry_value>: Update.
5999 <call_site_to_target_addr>: Update.
6000 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6001 parameter.
6002 (value_of_dwarf_reg_entry): Update.
6003 (rw_pieced_value): Update.
6004 (indirect_synthetic_pointer): Update.
6005 (dwarf2_evaluate_property): Update.
6006 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6007 parameter.
6008 (locexpr_read_variable): Update.
6009 (locexpr_get_symbol_read_needs): Update.
6010 (loclist_read_variable): Update.
6011
14095eb3
SM
60122020-05-27 Simon Marchi <simon.marchi@efficios.com>
6013
6014 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6015 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6016 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6017 parameter.
6018 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6019 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6020 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6021 parameter.
6022 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6023 sect_variable_value): Add dwarf2_per_objfile parameter.
6024 (class dwarf_evaluate_loc_desc) <dwarf_call,
6025 dwarf_variable_value>: Update.
6026 (fetch_const_value_from_synthetic_pointer): Add
6027 dwarf2_per_objfile parameter.
6028 (fetch_const_value_from_synthetic_pointer): Update.
6029 (coerced_pieced_ref): Update.
6030 (class symbol_needs_eval_context) <dwarf_call,
6031 dwarf_variable_value>: Update.
6032 (dwarf2_compile_expr_to_ax): Update.
6033
3c3cd3d4
SM
60342020-05-27 Simon Marchi <simon.marchi@efficios.com>
6035
6036 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6037 parameter.
6038 (dwarf2_evaluate_loc_desc_full): Update.
6039
82ca3f51
SM
60402020-05-27 Simon Marchi <simon.marchi@efficios.com>
6041
6042 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6043 parameter.
6044 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6045 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6046 dwarf2_per_objfile parameter.
6047 (decode_debug_loc_dwo_addresses): Likewise.
6048 (dwarf2_find_location_expression): Update.
6049 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6050 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6051 parameter.
6052 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6053 parameter.
6054 (locexpr_describe_location_1): Likewise.
6055 (locexpr_describe_location): Update.
6056
4b167ea1
SM
60572020-05-27 Simon Marchi <simon.marchi@efficios.com>
6058
6059 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6060 Remove.
6061 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6062 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6063 (dwarf2_compile_property_to_c): Update.
6064 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6065 use text offset from objfile.
6066 (locexpr_tracepoint_var_ref): Update.
6067 (locexpr_generate_c_location): Update.
6068 (loclist_describe_location): Update.
6069 (loclist_tracepoint_var_ref): Update.
6070 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6071 dwarf2_per_objfile parameter.
6072 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6073 use text offset from objfile.
6074 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6075
89b07335
SM
60762020-05-27 Simon Marchi <simon.marchi@efficios.com>
6077
6078 * dwarf2/expr.h (struct dwarf_expr_context)
6079 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6080 <offset>: Remove.
6081 <per_objfile>: New member.
6082 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6083 dwarf2_per_objfile parameter. Don't set offset, set
6084 per_objfile.
6085 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6086 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6087 a dwarf2_per_objfile object instead of an offset.
6088 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6089 constructor.
6090 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6091 to dwarf2_expr_executor constructor. Don't set offset.
6092 (dwarf2_fetch_cfa_info): Update.
6093 (struct dwarf2_frame_cache) <text_offset>: Remove.
6094 <per_objfile>: New field.
6095 (dwarf2_frame_cache): Update.
6096 (dwarf2_frame_prev_register): Update.
6097 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6098 <dwarf_evaluate_loc_desc>: Add constructor.
6099 (dwarf2_evaluate_loc_desc_full): Update.
6100 (dwarf2_locexpr_baton_eval): Update.
6101 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6102 Add constructor.
6103 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6104
293e7e51
SM
61052020-05-27 Simon Marchi <simon.marchi@efficios.com>
6106
6107 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6108 addr_sized_int_type>: Move to dwarf2_cu.
6109 <int_type>: Move to dwarf2_per_objfile.
6110 (struct dwarf2_per_objfile) <int_type>: Move here.
6111 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6112 addr_sized_int_type>: Move here.
6113 (read_func_scope): Update.
6114 (read_array_type): Update.
6115 (read_tag_string_type): Update.
6116 (attr_to_dynamic_prop): Update.
6117 (dwarf2_per_cu_data::int_type): Rename to...
6118 (dwarf2_per_objfile::int_type): ... this.
6119 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6120 (dwarf2_cu::addr_sized_int_type): ... this.
6121 (read_subrange_type): Update.
6122 (dwarf2_per_cu_data::addr_type): Rename to...
6123 (dwarf2_cu::addr_type): ... this.
6124 (set_die_type): Update.
6125
64874a40
SM
61262020-05-27 Simon Marchi <simon.marchi@efficios.com>
6127
6128 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6129 data through per_cu->cu.
6130
4ab09049
SM
61312020-05-27 Simon Marchi <simon.marchi@efficios.com>
6132
6133 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6134 dwarf2_per_cu_data parameter fo dwarf2_cu.
6135 (lookup_dwo_type_unit): Likewise.
6136 (read_cutu_die_from_dwo): Likewise.
6137 (lookup_dwo_unit): Likewise.
6138 (open_and_init_dwo_file): Likewise.
6139 (lookup_dwo_cutu): Likewise.
6140 (lookup_dwo_comp_unit): Likewise.
6141 (lookup_dwo_type_unit): Likewise.
6142 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6143 (cutu_reader::cutu_reader): Update.
6144
47b14e86
SM
61452020-05-27 Simon Marchi <simon.marchi@efficios.com>
6146
6147 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6148 parameter.
6149 (process_full_type_unit): Likewise.
6150 (process_queue): Update.
6151
43182c09
SM
61522020-05-27 Simon Marchi <simon.marchi@efficios.com>
6153
6154 * dwarf2/read.c (recursively_compute_inclusions): Add
6155 dwarf2_per_objfile parameter.
6156 (compute_compunit_symtab_includes): Likewise.
6157 (process_cu_includes): Update.
6158
7aa104c4
SM
61592020-05-27 Simon Marchi <simon.marchi@efficios.com>
6160
6161 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6162 parameter.
6163 (create_type_unit_group): Update.
6164 (process_psymtab_comp_unit_reader): Update.
6165 (build_type_psymtabs_reader): Update.
6166
e3beb21d
SM
61672020-05-27 Simon Marchi <simon.marchi@efficios.com>
6168
6169 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6170 object through m_this_cu->cu.
6171
d460f660
SM
61722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6173
6174 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6175 the info parameter.
6176 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6177
ab432490
SM
61782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6179
6180 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6181 per_objfile parameter.
6182 (load_full_type_unit): Add per_objfile parameter.
6183 (read_signatured_type): Likewise.
6184 (load_full_comp_unit): Likewise.
6185 (load_cu): Likewise.
6186 (dw2_do_instantiate_symtab): Likewise.
6187 (dw2_get_file_names): Likewise.
6188 (dw2_map_symtabs_matching_filename): Update.
6189 (dw_expand_symtabs_matching_file_matcher): Update.
6190 (dw2_map_symbol_filenames): Update.
6191 (process_psymtab_comp_unit): Add per_objfile parameter.
6192 (build_type_psymtabs_1): Update.
6193 (process_skeletonless_type_unit): Update.
6194 (dwarf2_build_psymtabs_hard): Update.
6195 (load_partial_comp_unit): Add per_objfile parameter.
6196 (scan_partial_symbols): Update.
6197 (load_full_comp_unit): Add per_objfile parameter.
6198 (process_imported_unit_die): Update.
6199 (create_cus_hash_table): Update.
6200 (find_partial_die): Update.
6201 (dwarf2_read_addr_index): Update.
6202 (follow_die_offset): Update.
6203 (dwarf2_fetch_die_loc_sect_off): Update.
6204 (dwarf2_fetch_constant_bytes): Update.
6205 (dwarf2_fetch_die_type_sect_off): Update.
6206 (follow_die_sig_1): Update.
6207 (load_full_type_unit): Add per_objfile parameter.
6208 (read_signatured_type): Likewise.
6209
313bad1b
SM
62102020-05-27 Simon Marchi <simon.marchi@efficios.com>
6211
6212 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6213 of objfile_name.
6214
c3699833
SM
62152020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6216
6217 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6218 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6219 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6220 field.
6221 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6222 (create_cus_from_index): Update.
6223 (dwarf2_read_gdb_index): Update.
6224 (create_cus_from_debug_names): Update.
6225 (dwarf2_read_debug_names): Update.
6226 (get_abbrev_section_for_cu): Update.
6227 (create_all_comp_units): Update.
6228 (read_attribute_value): Update.
6229 (get_debug_line_section): Update.
6230 * dwarf2/index-cache.c (index_cache::store): Update.
6231 * dwarf2/index-write.c (save_gdb_index_command): Update.
6232 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6233
1859c670
SM
62342020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6235
6236 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6237 member.
6238 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6239 dwarf2_per_cu_data::per_bfd.
6240 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6241 (create_type_unit_group): Likewise.
6242 (queue_comp_unit): Remove reference to
6243 per_cu->dwarf2_per_objfile.
6244 (maybe_queue_comp_unit): Likewise.
6245 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6246 (create_cus_hash_table): Assign new field.
6247
5e22e966
SM
62482020-05-27 Simon Marchi <simon.marchi@efficios.com>
6249
6250 * dwarf2/read.c: Replace
6251 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6252 dwarf2_cu->per_objfile throughout.
6253
97a1449a
SM
62542020-05-27 Simon Marchi <simon.marchi@efficios.com>
6255
6256 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6257 parameter, don't use per_cu->dwarf2_per_objfile.
6258 (dw2_instantiate_symtab): Likewise.
6259 (dw2_find_last_source_symtab): Update.
6260 (dw2_map_expand_apply): Update.
6261 (dw2_lookup_symbol): Update.
6262 (dw2_expand_symtabs_for_function): Update.
6263 (dw2_expand_all_symtabs): Update.
6264 (dw2_expand_symtabs_with_fullname): Update.
6265 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6266 don't use per_cu->dwarf2_per_objfile.
6267 (dw2_expand_marked_cus): Update.
6268 (dw2_find_pc_sect_compunit_symtab): Update.
6269 (dw2_debug_names_lookup_symbol): Update.
6270 (dw2_debug_names_expand_symtabs_for_function): Update.
6271 (dw2_debug_names_map_matching_symbols): Update.
6272 (dwarf2_psymtab::expand_psymtab): Update.
6273
9e021579
SM
62742020-05-27 Simon Marchi <simon.marchi@efficios.com>
6275
6276 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6277 <per_objfile>: New member.
6278 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6279 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6280 call to dwarf2_cu.
6281 (cutu_reader::cutu_reader): Update.
6282 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6283
ae090bdb
SM
62842020-05-27 Simon Marchi <simon.marchi@efficios.com>
6285
6286 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6287 struct dwarf2_per_objfile.
6288 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6289 dwarf2_per_bfd.
6290 * dwarf2/read.c (set_die_type): Update.
6291 (get_die_type_at_offset): Update.
6292
af758d11
SM
62932020-05-27 Tom Tromey <tom@tromey.com>
6294 Simon Marchi <simon.marchi@efficios.com>
6295
6296 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6297 method.
6298 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6299 get_symtab, set_symtab>: New methods.
6300 <m_symtabs>: New field.
6301 (struct dwarf2_psymtab): Derive from partial_symtab.
6302 <readin_p, get_compunit_symtab>: Declare methods.
6303 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6304 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6305 New methods.
6306 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6307 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6308 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6309 (dw2_symtab_iter_next, dw2_print_stats)
6310 (dw2_expand_symtabs_with_fullname)
6311 (dw2_expand_symtabs_matching_one)
6312 (dw_expand_symtabs_matching_file_matcher)
6313 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6314 (dw2_debug_names_iterator::next)
6315 (dw2_debug_names_map_matching_symbols)
6316 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6317 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6318 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6319 New methods.
6320 (get_compunit_symtab, process_full_comp_unit)
6321 (process_full_type_unit): Update.
6322 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6323
5989a64e
SM
63242020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6325
6326 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6327 then introduce a new dwarf2_per_objfile type.
6328 <read_line_string>: Move to the new dwarf2_per_objfile type.
6329 <objfile>: Likewise.
6330 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6331 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6332 dwarf2_per_objfile->per_bfd.
6333 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6334 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6335 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6336 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6337 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6338 (dwarf2_per_objfile::locate_sections): Rename to...
6339 (dwarf2_per_bfd::locate_sections): ... this.
6340 (dwarf2_per_objfile::get_cutu): Rename to...
6341 (dwarf2_per_bfd::get_cutu): ... this.
6342 (dwarf2_per_objfile::get_cu): Rename to...
6343 (dwarf2_per_bfd::get_cu): ... this.
6344 (dwarf2_per_objfile::get_tu): Rename to...
6345 (dwarf2_per_bfd::get_tu): ... this.
6346 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6347 (dwarf2_per_bfd::allocate_per_cu): ... this.
6348 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6349 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6350 (get_gdb_index_contents_ftype): Change parameter from
6351 dwarf2_per_objfile to dwarf2_per_bfd.
6352 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6353 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6354
a50264ba
TT
63552020-05-27 Tom Tromey <tom@tromey.com>
6356 Simon Marchi <simon.marchi@efficios.com>
6357
6358 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6359 (allocate_piece_closure): Set "per_objfile" member.
6360 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6361 (locexpr_describe_location, loclist_describe_location): Use new
6362 member.
6363 * dwarf2/read.c (read_call_site_scope)
6364 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6365 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6366 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6367 handle_data_member_location): Set per_objfile member.
6368 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6369 member.
6370 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6371
d3473f0c
TT
63722020-05-27 Tom Tromey <tom@tromey.com>
6373
6374 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6375 allocate_signatured_type>: Declare new methods.
6376 <m_num_psymtabs>: New member.
6377 (struct dwarf2_per_cu_data) <index>: New member.
6378 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6379 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6380 (create_cu_from_index_list): Use allocate_per_cu.
6381 (create_signatured_type_table_from_index)
6382 (create_signatured_type_table_from_debug_names)
6383 (create_debug_type_hash_table, add_type_unit)
6384 (read_comp_units_from_section): Use allocate_signatured_type.
6385
5717c425
TT
63862020-05-27 Tom Tromey <tom@tromey.com>
6387
6388 * psymtab.c (partial_map_expand_apply)
6389 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6390 (psym_lookup_global_symbol_language)
6391 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6392 (psym_print_stats, psym_expand_symtabs_for_function)
6393 (psym_map_symbol_filenames, psym_map_matching_symbols)
6394 (psym_expand_symtabs_matching)
6395 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6396 (maintenance_check_psymtabs): Update.
6397 * psympriv.h (struct partial_symtab) <readin_p,
6398 get_compunit_symtab>: Add objfile parameter.
6399 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6400 Likewise.
6401 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6402 get_compunit_symtab>: Likewise.
6403 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6404
45940949
TT
64052020-05-27 Tom Tromey <tom@tromey.com>
6406
6407 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6408 member.
6409 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6410 (create_cu_from_index_list)
6411 (create_signatured_type_table_from_index)
6412 (create_signatured_type_table_from_debug_names)
6413 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6414 (dwarf2_create_include_psymtab)
6415 (create_debug_type_hash_table, add_type_unit)
6416 (create_type_unit_group, read_comp_units_from_section)
6417 (dwarf2_compute_name, create_cus_hash_table)
6418 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6419 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6420 obstack.
6421 (dw2_get_real_path): Likewise. Change argument to
6422 dwarf2_per_objfile.
6423
f8c6d152
LM
64242020-05-27 Luis Machado <luis.machado@linaro.org>
6425
6426 PR tdep/26000
6427 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6428 for ldrd (immediate).
6429
e98d2e6d
PW
64302020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6431
6432 * command.h: Add comment giving the name of class_tui.
6433 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6434 create the fake command for the help for class_tui.
6435
53a47a3e
TT
64362020-05-26 Tom Tromey <tromey@adacore.com>
6437
6438 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6439 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6440 (val_atr): New function.
6441 (value_val_atr): Use it.
6442 * ada-valprint.c (print_optional_low_bound): Change low bound
6443 handling for enums.
6444 (val_print_packed_array_elements): Don't call discrete_position.
6445 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6446 discrete_position for enum types.
6447 * language.c (default_print_array_index): Change type.
6448 * language.h (struct language_defn) <la_print_array_index>: Add
6449 index_type parameter, change type of index_value.
6450 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6451 (default_print_array_index): Update.
6452 * valprint.c (maybe_print_array_index): Don't call
6453 value_from_longest. Update.
6454 (value_print_array_elements): Don't call discrete_position.
6455
0bc2354b
TT
64562020-05-26 Tom Tromey <tromey@adacore.com>
6457
6458 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6459 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6460
1218a4bf
CDA
64612020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6462
6463 PR gdb/13519
6464 * avr-tdep.c (avr_integer_to_address): Return data or code
6465 address accordingly to the second 'type' argument of the
6466 function.
6467
92651b1d
MW
64682020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6469
6470 * infcmd.c, inferior.h: (construct_inferior_arguments):
6471 Moved function from here to gdbsupport/common-inferior.{h,cc}
6472
0a4f5f8c
TT
64732020-05-23 Tom Tromey <tom@tromey.com>
6474
6475 Revert commit eca1f90c:
6476 * NEWS: Remove entry for completion styling.
6477 * completer.c (_rl_completion_prefix_display_length): Move
6478 declaration later.
6479 (gdb_fnprint): Revert.
6480 (gdb_display_match_list_1): Likewise.
6481 * cli/cli-style.c (completion_prefix_style)
6482 (completion_difference_style, completion_suffix_style): Remove.
6483 (_initialize_cli_style): Revert.
6484 * cli/cli-style.h (completion_prefix_style)
6485 (completion_difference_style, completion_suffix_style): Don't
6486 declare.
6487
e08bd6c5
PA
64882020-05-24 Pedro Alves <palves@redhat.com>
6489
6490 * symtab.c (completion_list_add_name): Return boolean indication
6491 of whether the symbol matched.
6492 (completion_list_add_symbol): Don't try to remove C++ aliases if
6493 the symbol didn't match in the first place.
6494 * symtab.h (completion_list_add_name): Return bool.
6495
ceacbf6e
SM
64962020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6497
6498 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6499 type::field.
6500
26f16254
JB
65012020-05-23 Joel Brobecker <brobecker@adacore.com>
6502
6503 GDB 9.2 released.
6504
eca1f90c
TT
65052020-05-23 Tom Tromey <tom@tromey.com>
6506
6507 * NEWS: Add entry for completion styling.
6508 * completer.c (_rl_completion_prefix_display_length): Move
6509 declaration earlier.
6510 (gdb_fnprint): Use completion_style.
6511 (gdb_display_match_list_1): Likewise.
6512 * cli/cli-style.c (completion_prefix_style)
6513 (completion_difference_style, completion_suffix_style): New
6514 globals.
6515 (_initialize_cli_style): Register new globals.
6516 * cli/cli-style.h (completion_prefix_style)
6517 (completion_difference_style, completion_suffix_style): Declare.
6518
51e2cfa2
PA
65192020-05-23 Pedro Alves <palves@redhat.com>
6520
6521 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6522 (parse_escape): Use ISDIGIT instead of isdigit.
6523 (puts_debug): Use gdb_isprint instead of isprint.
6524 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6525 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6526 ISSPACE instead of isspace.
6527 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6528 instead of isspace.
6529 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6530 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6531 instead of isxdigit and ISDIGIT instead of isdigit.
6532
80fc5e77
SM
65332020-05-22 Simon Marchi <simon.marchi@efficios.com>
6534
6535 * gdbtypes.h (struct type) <field>: New method.
6536 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6537 or type::field.
6538
3cabb6b0
SM
65392020-05-22 Simon Marchi <simon.marchi@efficios.com>
6540
6541 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6542 (TYPE_FIELDS): Use type::fields. Change all call sites that
6543 modify the propery to use type::set_fields instead.
6544
1f704f76
SM
65452020-05-22 Simon Marchi <simon.marchi@efficios.com>
6546
6547 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6548 type::num_fields instead.
6549
5e33d5f4
SM
65502020-05-22 Simon Marchi <simon.marchi@efficios.com>
6551
6552 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6553 methods.
6554 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6555 that modify the number of fields to use type::set_num_fields
6556 instead.
6557
9392ebb3
TT
65582020-05-22 Tom Tromey <tromey@adacore.com>
6559
6560 * compile/compile-object-load.h (munmap_list_free): Don't
6561 declare.
6562
7c13f4e8
AB
65632020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6564
6565 * annotate.c (annotate_source_line): Update return type, add call
6566 to update current symtab and line.
6567 * annotate.h (annotate_source_line): Update return type, and
6568 extend header comment.
6569 * source.c (info_line_command): Check annotation_level before
6570 calling annotate_source_line.
6571 * stack.c (print_frame_info): If calling annotate_source_line
6572 returns true, then don't print any other source line information.
6573
aa370940
SM
65742020-05-21 Simon Marchi <simon.marchi@efficios.com>
6575
6576 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6577
84d53fa9
SM
65782020-05-21 Simon Marchi <simon.marchi@efficios.com>
6579
6580 * coffread.c (patch_type): Remove NULL check before xfree.
6581 * corefile.c (set_gnutarget): Likewise.
6582 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6583 * exec.c (build_section_table): Likewise.
6584 * remote.c (remote_target::pass_signals): Likewise.
6585 * utils.c (n_spaces): Likewise.
6586 * cli/cli-script.c (document_command): Likewise.
6587 * i386-windows-tdep.c (core_process_module_section): Likewise.
6588 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6589
9d428aae
SM
65902020-05-20 Simon Marchi <simon.marchi@efficios.com>
6591
6592 * symfile.c (reread_symbols): Clear objfile's section_offsets
6593 vector and section indices, re-compute them by calling
6594 sym_offsets.
6595
250106a7
TT
65962020-05-20 Tom Tromey <tromey@adacore.com>
6597
6598 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6599 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6600
9a0bacfb
TV
66012020-05-20 Tom de Vries <tdevries@suse.de>
6602
6603 PR symtab/25833
6604 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6605
7b958a48
AM
66062020-05-20 Alan Modra <amodra@gmail.com>
6607
6608 PR 25993
6609 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6610 bfd_set_filename.
6611 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6612 passed to bfd_set_filename.
6613 * symfile-mem.c (add_vsyscall_page): Likewise for string
6614 passed to symbol_file_add_from_memory.
6615 (symbol_file_add_from_memory): Make name param a const char* and
6616 don't strdup.
6617
c7e97679
AM
66182020-05-20 Alan Modra <amodra@gmail.com>
6619
6620 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6621 rather than accessing bfd->filename directly.
6622 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6623 and use bfd_section_name.
6624 * dwarf2/frame.c (decode_frame_entry): Likewise.
6625 * exec.c (exec_set_section_address): Likewise.
6626 * solib-aix.c (solib_aix_bfd_open): Likewise.
6627 * stap-probe.c (get_stap_base_address): Likewise.
6628 * symfile.c (reread_symbols): Likewise.
6629
563c591b
TT
66302020-05-19 Tom Tromey <tromey@adacore.com>
6631
6632 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6633
f408d82c
SM
66342020-05-19 Simon Marchi <simon.marchi@efficios.com>
6635
6636 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6637
98c59b52
PA
66382020-05-19 Pedro Alves <palves@redhat.com>
6639
6640 * NEWS (set exec-file-mismatch): Adjust entry.
6641 * exec.c: Include "build-id.h".
6642 (validate_exec_file): Try to match build IDs instead of filenames.
6643 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6644 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6645 and pass down 'warn_if_slow'.
6646 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6647 gdb_bfd_open_closure to pass it down.
6648 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6649
4111f652
PA
66502020-05-19 Pedro Alves <palves@redhat.com>
6651
6652 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6653 * target.c (target_fileio_open_1): Rename to target_fileio_open
6654 and make extern. Use bool.
6655 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6656 (target_fileio_read_alloc_1): Adjust.
6657 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6658 (target_fileio_open_warn_if_slow): Delete declaration.
6659
ad80db5b
PA
66602020-05-19 Pedro Alves <palves@redhat.com>
6661
6662 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6663 Adjust all callers.
6664
1d6ce4d3
YS
66652020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6666
6667 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6668 whether disp is negative.
6669
9005fbbb
SM
66702020-05-19 Simon Marchi <simon.marchi@efficios.com>
6671
6672 * symfile.h (struct symfile_segment_data)
6673 <~symfile_segment_data>: Remove.
6674 <segment_info>: Change to std::vector.
6675 * symfile.c (default_symfile_segments): Update.
6676 * elfread.c (elf_symfile_segments): Update.
6677
68b888ff
SM
66782020-05-19 Simon Marchi <simon.marchi@efficios.com>
6679
6680 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6681 <segments>: New.
6682 <segment_bases, segment_sizes>: Remove.
6683 * symfile.c (default_symfile_segments): Update.
6684 * elfread.c (elf_symfile_segments): Update.
6685 * remote.c (remote_target::get_offsets): Update.
6686 * solib-target.c (solib_target_relocate_section_addresses):
6687 Update.
6688
62982abd
SM
66892020-05-19 Simon Marchi <simon.marchi@efficios.com>
6690
6691 * symfile.h (struct symfile_segment_data): Initialize fields.
6692 <~symfile_segment_data>: Add.
6693 (symfile_segment_data_up): New.
6694 (struct sym_fns) <sym_segments>: Return a
6695 symfile_segment_data_up.
6696 (default_symfile_segments): Return a symfile_segment_data_up.
6697 (free_symfile_segment_data): Remove.
6698 (get_symfile_segment_data): Return a symfile_segment_data_up.
6699 * symfile.c (default_symfile_segments): Likewise.
6700 (get_symfile_segment_data): Likewise.
6701 (free_symfile_segment_data): Remove.
6702 (symfile_find_segment_sections): Update.
6703 * elfread.c (elf_symfile_segments): Return a
6704 symfile_segment_data_up.
6705 * remote.c (remote_target::get_offsets): Update.
6706 * solib-target.c (solib_target_relocate_section_addresses):
6707 Update.
6708 * symfile-debug.c (debug_sym_segments): Return a
6709 symfile_segment_data_up.
6710
7f204339
RO
67112020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6712
e52a0f1b
RO
6713 PR build/25981
6714 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6715 Hardcode register numbers.
6716
7f204339
RO
6717 PR build/25981
6718 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6719 procfs_find_LDT_entry): Remove.
6720 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6721 procfs_find_LDT_entry): Remove.
6722 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6723 Remove.
6724
7f32a4d5
PA
67252020-05-17 Pedro Alves <palves@redhat.com>
6726 Andrew Burgess <andrew.burgess@embecosm.com>
6727 Keno Fischer <keno@juliacomputing.com>
6728
6729 PR gdb/25741
6730 * breakpoint.c (build_target_condition_list): Update comments.
6731 (build_target_command_list): Update comments and skip matching
6732 locations.
6733 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6734 a separate function. Simplify "set breakpoint auto-hw off"
6735 handling.
6736 (insert_breakpoints): Update comment.
6737 (tracepoint_locations_match): New parameter. For breakpoints,
6738 compare location types too, if the caller wants to.
6739 (handle_automatic_hardware_breakpoints): New functions.
6740 (bp_location_is_less_than): Also sort by location type and
6741 hardware breakpoint length.
6742 (update_global_location_list): Handle "set breakpoint auto-hw on"
6743 here.
6744 (update_breakpoint_locations): Ask breakpoint_locations_match to
6745 ignore location types.
6746
7d93a1e0
SM
67472020-05-16 Simon Marchi <simon.marchi@efficios.com>
6748
6749 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6750 type::name instead.
6751
d0e39ea2
SM
67522020-05-16 Simon Marchi <simon.marchi@efficios.com>
6753
6754 * gdbtypes.h (struct type) <name, set_name>: New methods.
6755 (TYPE_CODE): Use type::name. Change all call sites used to set
6756 the name to use type::set_name instead.
6757
2dab0c7b
TT
67582020-05-16 Tom Tromey <tom@tromey.com>
6759
6760 * top.c (quit_force): Update.
6761 * infrun.c (handle_no_resumed): Update.
6762 * top.h (all_uis): New function.
6763 (ALL_UIS): Remove.
6764
59f7bd8d
SM
67652020-05-16 Simon Marchi <simon.marchi@efficios.com>
6766
6767 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6768
9bf058f0
PA
67692020-05-16 Pedro Alves <palves@redhat.com>
6770
6771 * ia64-linux-nat.c
6772 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6773 Declare method.
6774 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6775
8f86ae1a
SM
67762020-05-15 Simon Marchi <simon.marchi@efficios.com>
6777
6778 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6779 (sparc64_adi_info): Likewise.
6780
d6bc0792
TT
67812020-05-15 Tom Tromey <tom@tromey.com>
6782
6783 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6784 block_objfile.
6785 (lookup_objfile_from_block): Remove.
6786 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6787 (lookup_global_symbol): Use block_objfile.
6788 * symtab.h (lookup_objfile_from_block): Don't declare.
6789 * printcmd.c (clear_dangling_display_expressions): Use
6790 block_objfile.
6791 * parse.c (operator_check_standard): Use block_objfile.
6792
8c14c3a3
TT
67932020-05-15 Tom Tromey <tom@tromey.com>
6794
6795 * language.c (language_alloc_type_symbol): Set
6796 SYMBOL_SECTION.
6797 * symtab.c (initialize_objfile_symbol): Remove.
6798 (allocate_symbol): Remove.
6799 (allocate_template_symbol): Remove.
6800 * dwarf2/read.c (fixup_go_packaging): Use "new".
6801 (new_symbol): Use "new".
6802 (read_variable): Don't call initialize_objfile_symbol. Use
6803 "new".
6804 (read_func_scope): Use "new".
6805 * xcoffread.c (process_xcoff_symbol): Don't call
6806 initialize_objfile_symbol.
6807 (SYMBOL_DUP): Remove.
6808 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6809 "new".
6810 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6811 (allocate_template_symbol): Don't declare.
6812 (struct symbol): Add copy constructor. Change defaults.
6813 * jit.c (finalize_symtab): Use "new".
6814 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6815 Use "new".
6816 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6817 (common_block_end): Use "new".
6818 * mdebugread.c (parse_symbol): Use "new".
6819 (new_symbol): Likewise.
6820
5b4a1a8d
PW
68212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6822
6823 * NEWS: Mention changes to help and apropos.
6824
57b4f16e
PW
68252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6826
6827 * command.h (enum command_class): Improve comments, document
6828 that class_alias is for user-defined aliases, give the class
6829 name for each class, remove unused class_xdb.
6830 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6831 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6832 by a precise class.
6833 * infcmd.c (_initialize_infcmd): Likewise.
6834 * reverse.c (_initialize_reverse): Likewise.
6835 * stack.c (_initialize_stack): Likewise.
6836 * symfile.c (_initialize_symfile): Likewise.
6837 * tracepoint.c (_initialize_tracepoint): Likewise.
6838
7c05caf7
PW
68392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6840
6841 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6842 when their aliased command is traversed.
6843 (help_cmd): Add fput_command_names_styled call to
6844 output command name and aliases when command has an alias.
6845
3b3aaacb
PW
68462020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6847
6848 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6849 * cli/cli-decode.c (help_cmd_list): Declare as static,
6850 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6851 a command together with the command.
6852 (fput_command_name_styled, fput_command_names_styled): New functions.
6853 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6854 fput_command_name_styled.
6855 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6856 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6857
7aa1b46f
PW
68582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6859
6860 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6861 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6862 * command.h (cmd_show_list): Likewise.
6863 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6864 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6865
89bcba74
PW
68662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6867
6868 * unittests/command-def-selftests.c (traverse_command_structure):
6869 Verify all commands of a list have the same prefix command and
6870 that only the top cmdlist commands have a null prefix.
6871
3f4d92eb
PW
68722020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6873
6874 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6875 as prefix, not one of its aliases.
6876 (set_cmd_prefix): Remove.
6877 (do_add_cmd): Centralize the setting of the prefix of a command, when
6878 command is defined after its full chain of prefix commands.
6879 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6880 (add_setshow_cmd_full): Likewise.
6881 (update_prefix_field_of_prefixed_commands): New function.
6882 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6883 update_prefix_field_of_prefixed_commands.
6884 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6885 addresses of remote_set_cmdlist and remote_show_cmdlist given
6886 as argument, not the address of an argument.
6887 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6888 * gdb/remote.c (_initialize_remote): Likewise.
6889
0605465f
PW
68902020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6891
6892 * cli/cli-cmds.c (alias_command): Check for an existing alias
6893 using lookup_cmd_composition, as valid_command_p is too strict
6894 and forbids aliases that are the prefix of an existing alias
6895 or command.
6896 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6897 command is properly recognised as a valid command.
6898
58e6ac70
PW
68992020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6900
6901 * unittests/help-doc-selftests.c: Rename to
6902 unittests/command-def-selftests.c
6903 * unittests/command-def-selftests.c (help_doc_tests): Update some
6904 comments.
6905 (command_structure_tests, traverse_command_structure): New namespace
6906 and function.
6907 (command_structure_invariants_tests): New function.
6908 (_initialize_command_def_selftests) Renamed from
6909 _initialize_help_doc_selftests, register command_structure_invariants
6910 selftest.
6911
a7b9ceb8
PW
69122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6913
6914 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6915 an alias of 'show'.
6916
b2188a06
JB
69172020-05-15 Joel Brobecker <brobecker@adacore.com>
6918
6919 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6920 ada_is_fixed_point_type. Update all callers.
6921 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6922 all callers.
6923 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6924 Update all callers.
6925 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6926 print_fixed_point_type. Update all callers.
6927 * ada-valprint.c (ada_value_print_num): Replace call to
6928 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6929
a51951c2
KB
69302020-05-14 Kevin Buettner <kevinb@redhat.com>
6931
6932 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6933 processors.
6934 (cpu_supports_bts): Add CV_AMD case.
6935
29d6859f
LM
69362020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6937 Simon Marchi <simon.marchi@efficios.com>
6938
6939 * infrun.c (stop_all_threads): Collect multiple wait events at
6940 each pass.
6941
78134374
SM
69422020-05-14 Simon Marchi <simon.marchi@efficios.com>
6943
6944 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6945 type::code instead.
6946
67607e24
SM
69472020-05-14 Simon Marchi <simon.marchi@efficios.com>
6948
6949 * gdbtypes.h (struct type) <code, set_code>: New methods.
6950 (TYPE_CODE): Use type::code. Change all call sites used to set
6951 the code to use type::set_code instead.
6952
a05575d3
TBA
69532020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6954 Tom de Vries <tdevries@suse.de>
6955 Pedro Alves <palves@redhat.com>
6956
6957 PR threads/25478
6958 * infrun.c (stop_all_threads): Do NOT ignore
6959 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6960 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6961 received.
6962 (handle_no_resumed): Remove code handling a live inferior with no
6963 threads.
6964 * remote.c (has_single_non_exited_thread): New.
6965 (remote_target::update_thread_list): Do not delete a thread if is
6966 the last thread of the process.
6967 * thread.c (thread_select): Call delete_exited_threads instead of
6968 prune_threads.
6969
6ad82919
TBA
69702020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6971
6972 * infrun.c (stop_all_threads): Enable/disable thread events of all
6973 targets. Move a debug message denoting the end of the function
6974 into the SCOPED_EXIT block.
6975
d890404b
TBA
69762020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6977
6978 * process-stratum-target.h: Include <set>.
6979 (all_non_exited_process_targets, switch_to_target_no_thread): New
6980 function declarations.
6981 * process-stratum-target.c (all_non_exited_process_targets)
6982 (switch_to_target_no_thread): New function implementations.
6983
293b3ebc
TBA
69842020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6985
6986 * infrun.c (handle_inferior_event): Extract out a piece of code
6987 into...
6988 (mark_non_executing_threads): ...this new function.
6989
7ca9b62a
TBA
69902020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6991
6992 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6993 use.
6994
fc75c28b
TBA
69952020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6996
6997 * regcache.c (regcache_read_pc_protected): New function
6998 implementation that returns 0 if the PC cannot read via
6999 'regcache_read_pc'.
7000 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7001 instead of 'regcache_read_pc'.
7002 (keep_going_pass_signal): Ditto.
7003
a89febbd
TT
70042020-05-13 Tom Tromey <tromey@adacore.com>
7005
7006 * ada-lang.c (align_value): Remove.
7007 (ada_template_to_fixed_record_type_1): Use align_up.
7008
f7e23710
TBA
70092020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7010
7011 * async-event.c: Update the copyright year.
7012 * async-event.h: Update the copyright year.
7013
02ff80c2
SM
70142020-05-12 Simon Marchi <simon.marchi@efficios.com>
7015
7016 * objfiles.h (is_addr_in_objfile,
7017 shared_objfile_contains_address_p): Return bool.
7018 * objfile.c (is_addr_in_objfile,
7019 shared_objfile_contains_address_p): Return bool.
7020
4fd6c7e8
TT
70212020-05-11 Tom Tromey <tromey@adacore.com>
7022
7023 * cli/cli-cmds.c (info_command): Restore.
7024 (_initialize_cli_cmds): Use add_prefix_command for "info".
7025 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7026
5eb68a39
TT
70272020-05-11 Tom Tromey <tromey@adacore.com>
7028
7029 * ada-lang.c (ada_value_primitive_field): Now public.
7030 * ada-lang.h (ada_value_primitive_field): Declare.
7031 * ada-valprint.c (print_field_values): Use
7032 ada_value_primitive_field for wrapper fields.
7033
7666722f
TV
70342020-05-11 Tom de Vries <tdevries@suse.de>
7035
7036 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7037 MODULE_DOMAIN.
7038
3ee6bb11
TV
70392020-05-11 Tom de Vries <tdevries@suse.de>
7040
7041 PR symtab/25941
7042 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7043 with length 0, if not gdb-produced.
7044 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7045
43434996
TV
70462020-05-09 Tom de Vries <tdevries@suse.de>
7047
7048 PR gdb/25955
7049 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7050 calculation.
7051
2f78cffc
TT
70522020-05-09 Tom Tromey <tom@tromey.com>
7053
7054 * top.c (server_command): Now bool.
7055 * top.h (server_command): Now bool.
7056
4f7bc5ed
TT
70572020-05-08 Tom Tromey <tromey@adacore.com>
7058
7059 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7060 already being processed.
7061
8be4b118
TT
70622020-05-08 Tom Tromey <tom@tromey.com>
7063
7064 * printcmd.c (struct display) <next>: Remove.
7065 <display>: New constructor.
7066 <exp_string>: Now a std::string.
7067 <enabled_p>: Now a bool.
7068 (display_number): Move definition earlier.
7069 (displays): Rename from display_chain. Now a std::vector.
7070 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7071 (display_command): Update.
7072 (do_one_display, disable_display)
7073 (enable_disable_display_command, do_enable_disable_display):
7074 Update.
7075 (free_display): Remove.
7076 (clear_displays): Rewrite.
7077 (delete_display): Update.
7078 (map_display_numbers): Use function_view. Remove "data"
7079 parameter. Update.
7080 (do_delete_display): Remove.
7081 (undisplay_command): Update.
7082 (do_one_display, do_displays, disable_display)
7083 (info_display_command): Update.
7084 (do_enable_disable_display): Remove.
7085 (enable_disable_display_command)
7086 (clear_dangling_display_expressions): Update.
7087
94c93c35
TT
70882020-05-08 Tom Tromey <tom@tromey.com>
7089
7090 * symtab.c (set_symbol_cache_size)
7091 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7092 (maintenance_print_symbol_cache_statistics): Update.
7093 * symmisc.c (print_symbol_bcache_statistics)
7094 (print_objfile_statistics, maintenance_print_objfiles)
7095 (maintenance_info_symtabs, maintenance_check_symtabs)
7096 (maintenance_expand_symtabs, maintenance_info_line_tables):
7097 Update.
7098 * symfile-debug.c (set_debug_symfile): Update.
7099 * source.c (forget_cached_source_info): Update.
7100 * python/python.c (gdbpy_progspaces): Update.
7101 * psymtab.c (maintenance_info_psymtabs): Update.
7102 * probe.c (parse_probes): Update.
7103 * linespec.c (iterate_over_all_matching_symtabs)
7104 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7105 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7106 * exec.c (exec_target::close): Update.
7107 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7108 * breakpoint.c (print_one_breakpoint_location)
7109 (create_longjmp_master_breakpoint)
7110 (create_std_terminate_master_breakpoint): Update.
7111 * progspace.c (program_spaces): Now a std::vector.
7112 (maybe_new_address_space): Update.
7113 (add_program_space): Remove.
7114 (program_space::program_space): Update.
7115 (remove_program_space): Update.
7116 (number_of_program_spaces): Remove.
7117 (print_program_space, update_address_spaces): Update.
7118 * progspace.h (program_spaces): Change type.
7119 (ALL_PSPACES): Remove.
7120 (number_of_program_spaces): Don't declare.
7121 (struct program_space) <next>: Remove.
7122
a1fd1ac9
TT
71232020-05-08 Tom Tromey <tom@tromey.com>
7124
7125 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7126 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7127 (enable_break): Update.
7128 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7129 (frv_fdpic_find_canonical_descriptor): Update.
7130 (frv_fetch_objfile_link_map): Update.
7131 * progspace.c (program_space::free_all_objfiles): Update.
7132 (program_space::solibs): New method.
7133 * progspace.h (struct program_space) <solibs>: New method.
7134 * solist.h (master_so_list): Don't declare.
7135 (ALL_SO_LIBS): Remove.
7136 * solib.h (so_list_head): Remove.
7137 (update_solib_list): Update comment.
7138 * solib.c (master_so_list): Remove.
7139 (solib_used, update_solib_list, solib_add)
7140 (info_sharedlibrary_command, clear_solib)
7141 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7142
38eae084
TT
71432020-05-08 Tom Tromey <tom@tromey.com>
7144
7145 * extension.c (extension_languages): Now a std::array.
7146 (ALL_EXTENSION_LANGUAGES): Remove.
7147 (get_ext_lang_defn, get_ext_lang_of_file)
7148 (eval_ext_lang_from_control_command): Update.
7149 (finish_ext_lang_initialization)
7150 (auto_load_ext_lang_scripts_for_objfile)
7151 (ext_lang_type_printers::ext_lang_type_printers)
7152 (apply_ext_lang_type_printers)
7153 (ext_lang_type_printers::~ext_lang_type_printers)
7154 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7155 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7156 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7157 (get_matching_xmethod_workers, ext_lang_colorize)
7158 (ext_lang_before_prompt): Update.
7159 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7160
596dc4ad
TT
71612020-05-08 Tom Tromey <tom@tromey.com>
7162
7163 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7164 overload.
7165 <swap_string, m_string>: Remove.
7166 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7167 Update.
7168 * stabsread.c (define_symbol, read_type): Update.
7169 * linespec.c (find_linespec_symbols): Update.
7170 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7171 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7172 * dbxread.c (read_dbx_symtab): Update.
7173 * cp-support.h (cp_canonicalize_string_full)
7174 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7175 Return unique_xmalloc_ptr.
7176 * cp-support.c (inspect_type): Update.
7177 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7178 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7179 Likewise.
7180 * c-typeprint.c (print_name_maybe_canonical): Update.
7181 * break-catch-throw.c (check_status_exception_catchpoint):
7182 Update.
7183
bf4cb9be
TV
71842020-05-08 Tom de Vries <tdevries@suse.de>
7185
7186 * infrun.c (follow_fork): Copy current_line and current_symtab to
7187 child thread.
7188
a1b68f28
SM
71892020-05-07 Simon Marchi <simon.marchi@efficios.com>
7190
7191 * async-event.c (struct async_signal_handler, struct
7192 async_event_handler): Reformat, remove typedef.
7193
98d48915
SM
71942020-05-07 Simon Marchi <simon.marchi@efficios.com>
7195
7196 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7197 access thistype->main_type->dyn_prop_list directly.
7198
7aa91313
SM
71992020-05-07 Simon Marchi <simon.marchi@efficios.com>
7200
7201 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7202 (remove_dyn_prop): Remove. Update all users to use
7203 type::remove_dyn_prop.
7204 * gdbtypes.c (remove_dyn_prop): Rename to...
7205 (type::remove_dyn_prop): ... this.
7206
5c54719c
SM
72072020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7208
7209 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7210 (add_dyn_prop): Remove. Update all users to use
7211 type::add_dyn_prop.
7212 * gdbtypes.c (add_dyn_prop): Rename to...
7213 (type::add_dyn_prop): ... this.
7214
24e99c6c
SM
72152020-05-07 Simon Marchi <simon.marchi@efficios.com>
7216
7217 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7218 (get_dyn_prop): Remove. Update all users to use
7219 type::dyn_prop.
7220 * gdbtypes.c (get_dyn_prop): Rename to...
7221 (type::dyn_prop): ... this.
7222
0d4bf016
SM
72232020-05-06 Simon Marchi <simon.marchi@efficios.com>
7224
7225 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7226
ac4a4f1c
SM
72272020-05-06 Simon Marchi <simon.marchi@efficios.com>
7228
7229 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7230 instruction, skip it if it's there.
7231
a3bbacc1
SM
72322020-05-05 Simon Marchi <simon.marchi@efficios.com>
7233
7234 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7235
c3236f84
SM
72362020-05-04 Simon Marchi <simon.marchi@efficios.com>
7237
7238 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7239 * gdbtypes.c (recursive_dump_type): Remove use of
7240 TYPE_INCOMPLETE.
7241
3b6acaee
TT
72422020-05-03 Tom Tromey <tom@tromey.com>
7243
7244 * breakpoint.c (catch_command, tcatch_command): Remove.
7245 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7246 add_show_prefix_cmd.
7247 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7248 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7249 Remove.
7250 (add_internal_problem_command): Use add_basic_prefix_cmd,
7251 add_show_prefix_cmd.
7252 * mips-tdep.c (set_mipsfpu_command): Remove.
7253 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7254 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7255 (_initialize_index_cache): Use add_basic_prefix_cmd.
7256 * memattr.c (dummy_cmd): Remove.
7257 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7258 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7259 (_initialize_tui_win): Use add_basic_prefix_cmd,
7260 add_show_prefix_cmd.
7261 * cli/cli-logging.c (set_logging_command): Remove.
7262 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7263 add_show_prefix_cmd.
7264 (show_logging_command): Remove.
7265 * target.c (target_command): Remove.
7266 (add_target): Use add_basic_prefix_cmd.
7267
a51119cd
HD
72682020-05-02 Hannes Domani <ssbssa@yahoo.de>
7269
7270 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7271
652fc23a 72722020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7273
652fc23a
PW
7274 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7275 info_command.
7276
117539e6
KR
72772020-04-30 Kamil Rytarowski <n54@gmx.com>
7278
7279 * nbsd-nat.c (nbsd_enable_proc_events)
7280 (nbsd_nat_target::post_startup_inferior): Add.
7281 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7282 (nbsd_nat_target::update_thread_list): Rewrite.
7283 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7284 "PTRACE_LWP_CREATE".
7285 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7286
102e38eb 72872020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7288
102e38eb
PW
7289 * stack.c (_initialize_stack): Remove duplicated creation
7290 of "frame" command and "f" alias.
7291
ee9d1e5f
HD
72922020-04-30 Hannes Domani <ssbssa@yahoo.de>
7293
7294 PR gdb/18706
7295 * gdbtypes.c (check_typedef): Calculate size of array of
7296 stubbed type.
7297
627c7fb8
HD
72982020-04-30 Hannes Domani <ssbssa@yahoo.de>
7299
7300 PR gdb/15559
7301 * i386-tdep.c (i386_push_dummy_call): Call
7302 i386_thiscall_push_dummy_call.
7303 (i386_thiscall_push_dummy_call): New function.
7304 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7305 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7306 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7307
ffc2844e
SM
73082020-04-29 Simon Marchi <simon.marchi@efficios.com>
7309
7310 * gdbarch.sh (do_read): Add shellcheck disable directive for
7311 warning SC2162.
7312
1207375d
SM
73132020-04-29 Simon Marchi <simon.marchi@efficios.com>
7314
7315 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7316 "referenced but not assigned" warning.
7317
9fdb2916
SM
73182020-04-29 Simon Marchi <simon.marchi@efficios.com>
7319
7320 * gdbarch.sh: Remove code that sets fallbackdefault.
7321
759cea5e
SM
73222020-04-29 Simon Marchi <simon.marchi@efficios.com>
7323
7324 * gdbarch.sh: Use shell operators && and || instead of
7325 -a and -o.
7326
cb02ab24
SM
73272020-04-29 Simon Marchi <simon.marchi@efficios.com>
7328
7329 * gdbarch.sh: Use $(...) instead of `...`.
7330
a6fc5ffc
SM
73312020-04-29 Simon Marchi <simon.marchi@efficios.com>
7332
7333 * gdbarch.sh: Use double quotes around variables.
7334
8d113d13
SM
73352020-04-29 Simon Marchi <simon.marchi@efficios.com>
7336
7337 * gdbarch.sh: Use %s with printf, instead of variables in the
7338 format string.
7339
ed6acedd
TT
73402020-04-29 Tom Tromey <tromey@adacore.com>
7341
7342 PR ada/25875:
7343 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7344 type fields here.
7345 (read_enumeration_type): Call
7346 update_enumeration_type_from_children later. Update comments.
7347 (process_enumeration_scope): Don't create type fields.
7348
b68b1b58
KR
73492020-04-29 Kamil Rytarowski <n54@gmx.com>
7350
7351 * nbsd-tdep.c: Include "xml-syscall.h".
7352 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7353
f94b2e03
KR
73542020-04-29 Kamil Rytarowski <n54@gmx.com>
7355
7356 * nbsd-nat.c: Include "sys/wait.h".
7357 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7358 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7359 (nbsd_nat_target::remove_exec_catchpoint)
7360 (nbsd_nat_target::set_syscall_catchpoint): Add.
7361 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7362 (nbsd_nat_target::insert_exec_catchpoint)
7363 (nbsd_nat_target::remove_exec_catchpoint)
7364 (nbsd_nat_target::set_syscall_catchpoint): Add.
7365 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7366 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7367 `nbsd_get_syscall_number'.
7368
fc49bc72
TT
73692020-04-29 Tom Tromey <tom@tromey.com>
7370
7371 * stack.c (print_block_frame_labels): Remove.
7372
d642b692
HD
73732020-04-29 Hannes Domani <ssbssa@yahoo.de>
7374
7375 PR gdb/17320
7376 * ada-valprint.c (val_print_packed_array_elements): Move array
7377 end bracket to new line.
7378 (ada_val_print_string): Remove extra spaces before first array
7379 element.
7380 * c-valprint.c (c_value_print_array): Likewise.
7381 * m2-valprint.c (m2_print_array_contents): Likewise.
7382 (m2_value_print_inner): Likewise.
7383 * p-valprint.c (pascal_value_print_inner): Likewise.
7384 * valprint.c (generic_val_print_array): Likewise.
7385 (value_print_array_elements): Move first array element and array
7386 end bracket to new line.
7387
ea90f227
TV
73882020-04-29 Tom de Vries <tdevries@suse.de>
7389
7390 PR symtab/25889
7391 * linespec.c (find_method): Fix ix calculation.
7392
4498ef4f
KR
73932020-04-28 Kamil Rytarowski <n54@gmx.com>
7394
7395 * syscalls/update-netbsd.sh: New file.
7396 * syscalls/netbsd.xml: Regenerate.
7397 * data-directory/Makefile.in: Register `netbsd.xml' in
7398 `SYSCALLS_FILES'.
7399
a55e30b5
SM
74002020-04-28 Simon Marchi <simon.marchi@efficios.com>
7401
7402 * syscalls/update-freebsd.sh: Add double quotes.
7403
2b2fbab8
TT
74042020-04-28 Tom Tromey <tom@tromey.com>
7405
7406 * NEWS: Update.
7407 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7408 (cmdpy_init): Allow class_tui.
7409
a65189c9
TV
74102020-04-28 Mark Williams <mark@myosotissp.com>
7411
7412 PR gdb/24480
7413 * dwarf2read.c: Add missing assingments to list_in_scope when
7414 start_symtab was already called.
7415
1b95cdb7
SM
74162020-04-28 Simon Marchi <simon.marchi@efficios.com>
7417
7418 PR gdb/25881
7419 * dwarf2/read.c (offset_map_type): Use
7420 gdb:hash_enum<sect_offset> as hash function.
7421
15cd93d0
TV
74222020-04-28 Tom de Vries <tdevries@suse.de>
7423
7424 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7425 with DW_AT_signature.
7426
1eb39914
SM
74272020-04-27 Simon Marchi <simon.marchi@efficios.com>
7428
7429 * configure.ac: Remove check for fs_base/gs_base in
7430 user_regs_struct.
7431 * configure: Re-generate.
7432 * config.in: Re-generate.
7433 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7434 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7435 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7436
991a3e2e
LM
74372020-04-27 Luis Machado <luis.machado@linaro.org>
7438
7439 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7440 problematic inline frame unwinding situation.
7441 * frame.c (frame_id_computed_p): New function.
7442 * frame.h (frame_id_computed_p): New prototype.
7443
361ba0e8
TT
74442020-04-26 Tom Tromey <tom@tromey.com>
7445
7446 * command.h (enum command_class) <class_pseudo>: Remove.
7447
bc3609fd
PW
74482020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7449
7450 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7451 and whitespace.
7452
b9771db7
KR
74532020-04-25 Kamil Rytarowski <n54@gmx.com>
7454
ec16513e
SM
7455 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7456 `PT_GET_PROCESS_STATE' block.
b9771db7 7457
7151c1af
TT
74582020-04-24 Tom Tromey <tom@tromey.com>
7459
7460 * symtab.h (symbol_get_demangled_name): Don't declare.
7461 * symtab.c (symbol_get_demangled_name): Remove.
7462 (general_symbol_info::natural_name)
7463 (general_symbol_info::demangled_name): Update.
7464
906bb4c5
TT
74652020-04-24 Tom Tromey <tom@tromey.com>
7466
7467 PR rust/25025:
7468 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7469
bcfe6157
TT
74702020-04-24 Tom Tromey <tom@tromey.com>
7471
7472 PR symtab/12707:
7473 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7474 exists.
7475 (new_symbol): Likewise.
7476 * compile/compile-object-load.c (get_out_value_type): Use
7477 symbol_matches_search_name.
7478
f049a313
TT
74792020-04-24 Tom Tromey <tom@tromey.com>
7480
7481 * dwarf2/read.c (add_partial_symbol): Do not call
7482 compute_and_set_names.
7483
76e288d1
TT
74842020-04-24 Tom Tromey <tom@tromey.com>
7485
7486 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7487 overload.
7488
2467f4f6
TT
74892020-04-24 Tom Tromey <tom@tromey.com>
7490
7491 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7492 (add_psymbol_to_list): New overload. Make old overload call new
7493 one.
7494 * psympriv.h (add_psymbol_to_list): New overload.
7495
e61108c9
TT
74962020-04-24 Tom Tromey <tom@tromey.com>
7497
7498 * dwarf2/read.c (partial_die_info::read) <case
7499 DW_AT_linkage_name>: Use value_as_string.
7500 (dwarf2_string_attr): Use value_as_string.
7501 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7502 method.
7503 * dwarf2/attribute.c (attribute::value_as_string): New method.
7504
8c87a452
TT
75052020-04-24 Tom Tromey <tom@tromey.com>
7506
7507 * symtab.c (general_symbol_info::natural_name)
7508 (general_symbol_info::demangled_name): Check for language_rust.
7509
787de330
TT
75102020-04-24 Tom Tromey <tom@tromey.com>
7511
7512 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7513 (dwarf2_physname): ... from here.
7514 (partial_die_info::read): Add Rust "{" hack.
7515
ff985671
TT
75162020-04-24 Tom Tromey <tom@tromey.com>
7517
7518 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7519 method.
7520 (symbol_set_demangled_name): Don't declare.
7521 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7522 symbol_set_demangled_name.
7523 (general_symbol_info::set_language)
7524 (general_symbol_info::compute_and_set_names): Update.
7525 * minsyms.c (minimal_symbol_reader::install): Update.
7526 * dwarf2/read.c (new_symbol): Update.
7527
1acda803
TT
75282020-04-24 Tom Tromey <tromey@adacore.com>
7529
7530 PR python/23662:
7531 * python/py-type.c (convert_field): Handle
7532 FIELD_LOC_KIND_DWARF_BLOCK.
7533 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7534 (typy_get_dynamic): Nw function.
7535 (type_object_getset): Add "dynamic".
7536 * NEWS: Add entry.
7537
d656f129
TT
75382020-04-24 Tom Tromey <tromey@adacore.com>
7539
7540 * ada-typeprint.c (print_choices, print_variant_part)
7541 (print_record_field_types_dynamic): New functions.
7542 (print_record_field_types): Use print_record_field_types_dynamic.
7543
7d79de9a
TT
75442020-04-24 Tom Tromey <tromey@adacore.com>
7545
7546 * dwarf2/read.c (handle_data_member_location): New overload.
7547 (dwarf2_add_field): Use it.
7548 (decode_locdesc): Add "computed" parameter. Update comment.
7549 * gdbtypes.c (is_dynamic_type_internal): Also look for
7550 FIELD_LOC_KIND_DWARF_BLOCK.
7551 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7552 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7553 virtual base classes.
7554 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7555 FIELD_LOC_KIND_DWARF_BLOCK.
7556
f8e89861
TT
75572020-04-24 Tom Tromey <tromey@adacore.com>
7558
7559 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7560 * gdbtypes.c (is_dynamic_type_internal): Check
7561 TYPE_HAS_DYNAMIC_LENGTH.
7562 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7563 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7564 New macros.
7565 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7566 constant.
7567
9c6a1327
TT
75682020-04-24 Tom Tromey <tromey@adacore.com>
7569
7570 * dwarf2/read.c (struct variant_field): Rewrite.
7571 (struct variant_part_builder): New.
7572 (struct nextfield): Remove "variant" field. Add "offset".
7573 (struct field_info): Add "current_variant_part" and
7574 "variant_parts".
7575 (alloc_discriminant_info): Remove.
7576 (alloc_rust_variant): New function.
7577 (quirk_rust_enum): Update.
7578 (dwarf2_add_field): Set "offset" member. Don't handle
7579 DW_TAG_variant_part.
7580 (offset_map_type): New typedef.
7581 (convert_variant_range, create_one_variant)
7582 (create_one_variant_part, create_variant_parts)
7583 (add_variant_property): New functions.
7584 (dwarf2_attach_fields_to_type): Call add_variant_property.
7585 (read_structure_type): Don't handle DW_TAG_variant_part.
7586 (handle_variant_part, handle_variant): New functions.
7587 (handle_struct_member_die): Use them.
7588 (process_structure_scope): Don't handle variant parts.
7589 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7590 (struct discriminant_info): Remove.
7591 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7592 (struct main_type) <flag_discriminated_union>: Remove.
7593 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7594 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7595 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7596 Update.
7597 * valops.c (value_union_variant): Remove.
7598 * value.h (value_union_variant): Don't declare.
7599
b249d2c2
TT
76002020-04-24 Tom Tromey <tromey@adacore.com>
7601
7602 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7603 (ada_value_primitive_packed_val): Update.
7604 * ada-valprint.c (ada_value_print_1): Update.
7605 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7606 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7607 just an address. Use evaluate_for_locexpr_baton.
7608 (dwarf2_evaluate_property): Update.
7609 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7610 array_view.
7611 * findvar.c (default_read_var_value): Update.
7612 * gdbtypes.c (compute_variant_fields_inner)
7613 (resolve_dynamic_type_internal): Update.
7614 (resolve_dynamic_type): Change type of valaddr parameter.
7615 * gdbtypes.h (resolve_dynamic_type): Update.
7616 * valarith.c (value_subscripted_rvalue): Update.
7617 * value.c (value_from_contents_and_address): Update.
7618
61122aa9
TT
76192020-04-24 Tom Tromey <tromey@adacore.com>
7620
7621 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7622 "push_initial_value" parameter.
7623 (dwarf2_evaluate_property): Likewise.
7624 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7625
ef83a141
TT
76262020-04-24 Tom Tromey <tromey@adacore.com>
7627
7628 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7629 (variant::matches, compute_variant_fields_recurse)
7630 (compute_variant_fields_inner, compute_variant_fields): New
7631 functions.
7632 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7633 Use resolved_type after type is made.
7634 (operator==): Add new cases.
7635 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7636 (struct discriminant_range, struct variant, struct variant_part):
7637 New.
7638 (union dynamic_prop_data) <variant_parts, original_type>: New
7639 members.
7640 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7641 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7642 constants.
7643 * value.c (unpack_bits_as_long): Now public.
7644 * value.h (unpack_bits_as_long): Declare.
7645
675127ec
TT
76462020-04-24 Tom Tromey <tromey@adacore.com>
7647
7648 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7649 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7650
9852ceef
HD
76512020-04-24 Hannes Domani <ssbssa@yahoo.de>
7652
7653 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7654
7632c6ce
KR
76552020-04-24 Kamil Rytarowski <n54@gmx.com>
7656
7657 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7658 (remove_fork_catchpoint, post_startup_inferior)
7659 (post_attach): Move...
7660 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7661 (remove_fork_catchpoint, post_startup_inferior)
7662 (post_attach): ...here.
7663 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7664 (remove_fork_catchpoint, post_startup_inferior)
7665 (post_attach): Move...
7666 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7667 (remove_fork_catchpoint, post_startup_inferior)
7668 (post_attach): ...here.
7669
7be2bb4f
TT
76702020-04-24 Tom Tromey <tromey@adacore.com>
7671
7672 * nat/windows-nat.h (struct windows_thread_info)
7673 <pc_adjusted>: New member.
7674 * windows-nat.c (windows_fetch_one_register): Check
7675 pc_adjusted.
7676 (windows_nat_target::get_windows_debug_event)
7677 (windows_nat_target::wait): Set pc_adjusted.
7678
f80cb3b4
TV
76792020-04-24 Tom de Vries <tdevries@suse.de>
7680
7681 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7682 Run gdb-add-index inside temp dir.
7683
29514b87
TT
76842020-04-23 Tom Tromey <tromey@adacore.com>
7685
7686 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7687 in loop.
7688
5939967b
LM
76892020-04-23 Luis Machado <luis.machado@linaro.org>
7690
7691 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7692 get_frame_register instead of gdbarch_unwind_pc.
7693
70bc38f5
TV
76942020-04-23 Tom de Vries <tdevries@suse.de>
7695
7696 * symtab.c (lookup_global_symbol): Prefer def over decl.
7697
de82891c
TV
76982020-04-23 Tom de Vries <tdevries@suse.de>
7699
7700 PR symtab/25807
7701 * block.c (best_symbol, better_symbol): Promote to external.
7702 * block.h (best_symbol, better_symbol): Declare.
7703 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7704 decl.
7705
ecc6c606
TT
77062020-04-23 Tom Tromey <tromey@adacore.com>
7707
7708 PR ada/25837:
7709 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7710 "const char *", not a "const std::string &".
7711 <name_and_matcher::operator==>: Update.
7712 * unittests/lookup_name_info-selftests.c: Change type of
7713 "result".
7714
740480b8
TT
77152020-04-23 Tom Tromey <tom@tromey.com>
7716
7717 * inferior.h (iterate_over_inferiors): Don't declare.
7718 * inferior.c (iterate_over_inferiors): Remove.
7719 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7720 Remove.
7721 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7722 use iterate_over_inferiors.
7723 (darwin_resume_inferior_it)
7724 (struct resume_inferior_threads_param)
7725 (darwin_resume_inferior_threads_it): Remove.
7726 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7727
ae3ab1f0
TV
77282020-04-23 Tom de Vries <tdevries@suse.de>
7729
7730 * blockframe.c (find_pc_partial_function): Use
7731 find_pc_sect_compunit_symtab rather than
7732 objfile->sf->qf->find_pc_sect_compunit_symtab.
7733
317d2668
TV
77342020-04-22 Tom de Vries <tdevries@suse.de>
7735
7736 PR symtab/25764
7737 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7738 in psymtabs.
7739
eea9e357
TV
77402020-04-22 Tom de Vries <tdevries@suse.de>
7741
7742 PR symtab/25801
7743 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7744 symtabs.
7745
3d5afab3
TV
77462020-04-22 Tom de Vries <tdevries@suse.de>
7747
7748 PR symtab/25700
7749 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7750 CU if already created.
7751
d43b7a2d
TBA
77522020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7753
7754 * infrun.c (displaced_step_fixup): Switch to the event_thread
7755 before calling displaced_step_restore, not after.
7756
d89edf9b
MM
77572020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7758
7759 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7760 its inferior is not recorded by us.
7761 (record_btrace_target_open): Replace call to
7762 all_non_exited_threads () with call to current_inferior
7763 ()->non_exited_threads ().
7764 (record_btrace_target::stop_recording): Likewise.
7765 (record_btrace_target::close): Likewise.
7766 (record_btrace_target::wait): Likewise.
7767 (record_btrace_target::record_stop_replaying): Likewise.
7768
5897fd49
MM
77692020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7770
7771 * btrace.c (btrace_enable): Throw an error on double enables and
7772 when enabling recording fails.
7773 (btrace_disable): Throw an error if the thread is not recorded.
7774
1a476b6d
MM
77752020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7776
7777 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7778 request if we do not have a thread_info.
7779
4778a5f8
TV
77802020-04-21 Tom de Vries <tdevries@suse.de>
7781
7782 PR gdb/25471
7783 * thread.c
7784 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7785 exception in get_frame_id.
7786
0fa7617d
TT
77872020-04-20 Tom Tromey <tromey@adacore.com>
7788
7789 * python/python.c (struct gdbpy_event): Mark move constructor as
7790 noexcept.
7791 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7792 constructor as noexcept.
7793 * completer.h (struct completion_result): Mark move constructor as
7794 noexcept.
7795 * completer.c (completion_result::completion_result): Use
7796 initialization style. Don't call reset_match_list.
7797
ad23bda0
MS
77982020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7799
7800 * MAINTAINERS (Write After Approval): Add myself.
7801
45e1f031
TT
78022020-04-18 Tom Tromey <tom@tromey.com>
7803
7804 * windows-tdep.c (init_w32_command_list)
7805 (w32_prefix_command_valid): Restore.
7806 (_initialize_windows_tdep): Call init_w32_command_list.
7807
08feed99
TT
78082020-04-18 Tom Tromey <tom@tromey.com>
7809
7810 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7811 * value.c (value_fn_field): Update.
7812 * valops.c (find_function_in_inferior)
7813 (value_allocate_space_in_inferior): Update.
7814 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7815 Update.
7816 * tui/tui-source.c (tui_source_window::set_contents): Update.
7817 * symtab.c (lookup_global_or_static_symbol)
7818 (find_function_start_sal_1, skip_prologue_sal)
7819 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7820 * symmisc.c (dump_msymbols, dump_symtab_1)
7821 (maintenance_print_one_line_table): Update.
7822 * symfile.c (init_entry_point_info, section_is_mapped)
7823 (list_overlays_command, simple_read_overlay_table)
7824 (simple_overlay_update_1): Update.
7825 * stap-probe.c (handle_stap_probe): Update.
7826 * stabsread.c (dbx_init_float_type, define_symbol)
7827 (read_one_struct_field, read_enum_type, read_range_type): Update.
7828 * source.c (info_line_command): Update.
7829 * python/python.c (gdbpy_source_objfile_script)
7830 (gdbpy_execute_objfile_script): Update.
7831 * python/py-type.c (save_objfile_types): Update.
7832 * python/py-objfile.c (py_free_objfile): Update.
7833 * python/py-inferior.c (python_new_objfile): Update.
7834 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7835 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7836 (maintenance_check_psymtabs): Update.
7837 * printcmd.c (info_address_command): Update.
7838 * objfiles.h (struct objfile) <arch>: New method, from
7839 get_objfile_arch.
7840 (get_objfile_arch): Don't declare.
7841 * objfiles.c (get_objfile_arch): Remove.
7842 (filter_overlapping_sections): Update.
7843 * minsyms.c (msymbol_is_function): Update.
7844 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7845 (output_nondebug_symbol): Update.
7846 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7847 (mdebug_expand_psymtab): Update.
7848 * machoread.c (macho_add_oso_symfile): Update.
7849 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7850 Update.
7851 * linux-fork.c (checkpoint_command): Update.
7852 * linespec.c (convert_linespec_to_sals): Update.
7853 * jit.c (finalize_symtab): Update.
7854 * infrun.c (insert_exception_resume_from_probe): Update.
7855 * ia64-tdep.c (ia64_find_unwind_table): Update.
7856 * hppa-tdep.c (internalize_unwinds): Update.
7857 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7858 Update.
7859 * gcore.c (call_target_sbrk): Update.
7860 * elfread.c (record_minimal_symbol, elf_symtab_read)
7861 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7862 (elf_gnu_ifunc_resolve_by_got): Update.
7863 * dwarf2/read.c (create_addrmap_from_index)
7864 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7865 (read_debug_names_from_section)
7866 (process_psymtab_comp_unit_reader, add_partial_symbol)
7867 (add_partial_subprogram, process_full_comp_unit)
7868 (read_file_scope, read_func_scope, read_lexical_block_scope)
7869 (read_call_site_scope, dwarf2_ranges_read)
7870 (dwarf2_record_block_ranges, dwarf2_add_field)
7871 (mark_common_block_symbol_computed, read_tag_pointer_type)
7872 (read_tag_string_type, dwarf2_init_float_type)
7873 (dwarf2_init_complex_target_type, read_base_type)
7874 (partial_die_info::read, partial_die_info::read)
7875 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7876 (dwarf2_fetch_die_loc_sect_off): Update.
7877 * dwarf2/loc.c (dwarf2_find_location_expression)
7878 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7879 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7880 (dwarf2_loc_desc_get_symbol_read_needs)
7881 (locexpr_describe_location_piece, locexpr_describe_location_1)
7882 (loclist_describe_location): Update.
7883 * dwarf2/index-write.c (write_debug_names): Update.
7884 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7885 * dtrace-probe.c (dtrace_process_dof): Update.
7886 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7887 (process_one_symbol): Update.
7888 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7889 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7890 (coff_read_enum_type): Update.
7891 * cli/cli-cmds.c (edit_command, list_command): Update.
7892 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7893 * breakpoint.c (create_overlay_event_breakpoint)
7894 (create_longjmp_master_breakpoint)
7895 (create_std_terminate_master_breakpoint)
7896 (create_exception_master_breakpoint, get_sal_arch): Update.
7897 * block.c (block_gdbarch): Update.
7898 * annotate.c (annotate_source_line): Update.
7899
0743fc83
TT
79002020-04-17 Tom Tromey <tromey@adacore.com>
7901
7902 * auto-load.c (show_auto_load_cmd): Remove.
7903 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7904 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7905 (maintenance_print_arc_command): Remove.
7906 * tui/tui-win.c (tui_command): Remove.
7907 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7908 * tui/tui-layout.c (tui_layout_command): Remove.
7909 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7910 * python/python.c (user_set_python, user_show_python): Remove.
7911 (_initialize_python): Use add_basic_prefix_cmd,
7912 add_show_prefix_cmd.
7913 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7914 (install_gdb_commands): Use add_basic_prefix_cmd,
7915 add_show_prefix_cmd.
7916 (info_guile_command): Remove.
7917 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7918 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7919 add_show_prefix_cmd.
7920 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7921 Remove do_set and do_show parameters.
7922 * cli/cli-style.c (set_style, show_style): Remove.
7923 (_initialize_cli_style): Use add_basic_prefix_cmd,
7924 add_show_prefix_cmd.
7925 (cli_style_option::add_setshow_commands): Remove do_set and
7926 do_show parameters.
7927 (cli_style_option::add_setshow_commands): Use
7928 add_basic_prefix_cmd, add_show_prefix_cmd.
7929 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7930 (set_style_name): Remove.
7931 * cli/cli-dump.c (dump_command, append_command): Remove.
7932 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7933 (tekhex_dump_command, binary_dump_command)
7934 (binary_append_command): Remove.
7935 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7936 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7937 (init_w32_command_list): Remove; move into ...
7938 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7939 * valprint.c (set_print, show_print, set_print_raw)
7940 (show_print_raw): Remove.
7941 (_initialize_valprint): Use add_basic_prefix_cmd,
7942 add_show_prefix_cmd.
7943 * typeprint.c (set_print_type, show_print_type): Remove.
7944 (_initialize_typeprint): Use add_basic_prefix_cmd,
7945 add_show_prefix_cmd.
7946 * record.c (set_record_command, show_record_command): Remove.
7947 (_initialize_record): Use add_basic_prefix_cmd,
7948 add_show_prefix_cmd.
7949 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7950 add_show_prefix_cmd.
7951 (info_command, show_command, set_debug, show_debug): Remove.
7952 * top.h (set_history, show_history): Don't declare.
7953 * top.c (set_history, show_history): Remove.
7954 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7955 (unset_tdesc_cmd): Remove.
7956 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7957 add_show_prefix_cmd.
7958 * symtab.c (info_module_command): Remove.
7959 (_initialize_symtab): Use add_basic_prefix_cmd.
7960 * symfile.c (overlay_command): Remove.
7961 (_initialize_symfile): Use add_basic_prefix_cmd.
7962 * sparc64-tdep.c (info_adi_command): Remove.
7963 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7964 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7965 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7966 add_show_prefix_cmd.
7967 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7968 (_initialize_serial): Use add_basic_prefix_cmd,
7969 add_show_prefix_cmd.
7970 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7971 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7972 add_show_prefix_cmd.
7973 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7974 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7975 add_show_prefix_cmd.
7976 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7977 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7978 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7979 add_show_prefix_cmd.
7980 * remote.c (remote_command, set_remote_cmd): Remove.
7981 (_initialize_remote): Use add_basic_prefix_cmd.
7982 * record-full.c (set_record_full_command)
7983 (show_record_full_command): Remove.
7984 (_initialize_record_full): Use add_basic_prefix_cmd,
7985 add_show_prefix_cmd.
7986 * record-btrace.c (cmd_set_record_btrace)
7987 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7988 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7989 (cmd_show_record_btrace_pt): Remove.
7990 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7991 add_show_prefix_cmd.
7992 * ravenscar-thread.c (set_ravenscar_command)
7993 (show_ravenscar_command): Remove.
7994 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7995 add_show_prefix_cmd.
7996 * mips-tdep.c (show_mips_command, set_mips_command)
7997 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7998 add_show_prefix_cmd.
7999 * maint.c (maintenance_command, maintenance_info_command)
8000 (maintenance_check_command, maintenance_print_command)
8001 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8002 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8003 add_show_prefix_cmd.
8004 (show_per_command_cmd): Remove.
8005 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8006 Remove.
8007 (maintenance_show_test_settings_cmd): Remove.
8008 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8009 add_show_prefix_cmd.
8010 * maint-test-options.c (maintenance_test_options_command):
8011 Remove.
8012 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8013 * macrocmd.c (macro_command): Remove
8014 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8015 * language.c (set_check, show_check): Remove.
8016 (_initialize_language): Use add_basic_prefix_cmd,
8017 add_show_prefix_cmd.
8018 * infcmd.c (unset_command): Remove.
8019 (_initialize_infcmd): Use add_basic_prefix_cmd.
8020 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8021 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8022 add_show_prefix_cmd.
8023 * go32-nat.c (go32_info_dos_command): Remove.
8024 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8025 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8026 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8027 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8028 (_initialize_frame): Use add_basic_prefix_cmd,
8029 add_show_prefix_cmd.
8030 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8031 (_initialize_dcache): Use add_basic_prefix_cmd,
8032 add_show_prefix_cmd.
8033 * cp-support.c (maint_cplus_command): Remove.
8034 (_initialize_cp_support): Use add_basic_prefix_cmd.
8035 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8036 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8037 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8038 add_basic_prefix_cmd, add_show_prefix_cmd.
8039 * breakpoint.c (save_command): Remove.
8040 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8041 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8042 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8043 add_show_prefix_cmd.
8044 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8045 (set_ada_command, show_ada_command): Remove.
8046 (_initialize_ada_language): Use add_basic_prefix_cmd,
8047 add_show_prefix_cmd.
8048 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8049
3557f442
KR
80502020-04-16 Kamil Rytarowski <n54@gmx.com>
8051
8052 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8053 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8054
16197208
SM
80552020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8056
8057 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8058 warning messages.
8059
00ac85d3
SM
80602020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8061
8062 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8063 import table is not at beginning of .idata section.
8064
381ce63f
PA
80652020-04-16 Pedro Alves <palves@redhat.com>
8066
8067 * inferior.c (delete_inferior): Use delete operator directly
8068 instead of delete_program_space.
8069 * progspace.c (add_program_space): New, factored out from
8070 program_space::program_space.
8071 (remove_program_space): New, factored out from
8072 delete_program_space.
8073 (program_space::program_space): Remove intro comment. Rewrite.
8074 (program_space::~program_space): Remove intro comment. Call
8075 remove_program_space.
8076 (delete_program_space): Delete.
8077 * progspace.h (program_space::program_space): Make explicit. Move
8078 intro comment here, adjusted.
8079 (program_space::~program_space): Move intro comment here,
8080 adjusted.
8081 (delete_program_space): Remove.
8082
a010605f
TT
80832020-04-16 Tom Tromey <tromey@adacore.com>
8084
8085 * windows-nat.c (windows_nat::handle_access_violation): New
8086 function.
8087 * nat/windows-nat.h (handle_access_violation): Declare.
8088 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8089 windows-nat.c. Call handle_access_violation.
8090
efba5c23
TV
80912020-04-16 Tom de Vries <tdevries@suse.de>
8092
8093 PR symtab/25791
8094 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8095 CUs without psymtab.
8096
97ed802d
KB
80972020-04-16 Kevin Buettner <kevinb@redhat.com>
8098
8099 * python/python.c (do_start_initialization): Don't call
8100 PyEval_InitThreads for Python 3.9 and beyond.
8101
c7d64809
KR
81022020-04-15 Kamil Rytarowski <n54@gmx.com>
8103
8104 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8105 thread functions.
8106 (obsd_nat_target::wait): Likewise.
8107
ce127a96
TT
81082020-04-15 Tom Tromey <tromey@adacore.com>
8109
8110 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8111 (DEBUG_EXCEPT): Use debug_printf.
8112
99f1bc6a
AB
81132020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8114
8115 * completer.c (class completion_tracker::completion_hash_entry)
8116 <hash_name>: New member function.
8117 (completion_tracker::discard_completions): New callback to hash a
8118 completion_hash_entry, pass this to htab_create_alloc.
8119
a0e9b532
JT
81202016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8121
8122 * windows-nat.c (windows_make_so): Warn rather than stopping with
8123 an error if realpath() fails.
8124
06ca5dd4
KR
81252020-04-14 Kamil Rytarowski <n54@gmx.com>
8126
8127 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8128 (nbsd_nat_target::info_proc): Add do_status.
8129
194d088f
TV
81302020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8131 Tom de Vries <tdevries@suse.de>
8132
8133 PR symtab/25718
8134 * psympriv.h (struct partial_symtab::read_symtab)
8135 (struct partial_symtab::expand_psymtab)
8136 (struct partial_symtab::read_dependencies): Update comments.
8137 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8138 read_symtab for includer.
8139 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8140 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8141 (struct dwarf2_include_psymtab::m_readin): Remove.
8142 (struct dwarf2_include_psymtab::includer): New member function.
8143 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8144
c1a66c06
TV
81452020-04-14 Tom de Vries <tdevries@suse.de>
8146
8147 PR symtab/25720
8148 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8149 with NULL symbol_matcher and lookup_name.
8150 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8151 and lookup_name.
8152 * dwarf2/read.c (dw2_expand_symtabs_matching)
8153 (dw2_debug_names_expand_symtabs_matching): Same.
8154 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8155 Make lookup_name a pointer. Update comment.
8156 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8157 lookup_name being a pointer.
8158 * symfile.c (expand_symtabs_matching): Same.
8159 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8160 * linespec.c (iterate_over_all_matching_symtabs): Same.
8161
400b5eca
TT
81622020-04-13 Tom Tromey <tom@tromey.com>
8163
8164 * run-on-main-thread.c: Update include.
8165 * unittests/main-thread-selftests.c: Update include.
8166 * tui/tui-win.c: Update include.
8167 * tui/tui-io.c: Update include.
8168 * tui/tui-interp.c: Update include.
8169 * tui/tui-hooks.c: Update include.
8170 * top.h: Update include.
8171 * top.c: Update include.
8172 * ser-base.c: Update include.
8173 * remote.c: Update include.
8174 * remote-notif.c: Update include.
8175 * remote-fileio.c: Update include.
8176 * record-full.c: Update include.
8177 * record-btrace.c: Update include.
8178 * python/python.c: Update include.
8179 * posix-hdep.c: Update include.
8180 * mingw-hdep.c: Update include.
8181 * mi/mi-main.c: Update include.
8182 * mi/mi-interp.c: Update include.
8183 * main.c: Update include.
8184 * linux-nat.c: Update include.
8185 * interps.c: Update include.
8186 * infrun.c: Update include.
8187 * inf-loop.c: Update include.
8188 * event-top.c: Update include.
8189 * event-loop.c: Move to ../gdbsupport/.
8190 * event-loop.h: Move to ../gdbsupport/.
8191 * async-event.h: Update include.
8192 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8193
93b54c8e
TT
81942020-04-13 Tom Tromey <tom@tromey.com>
8195
8196 * tui/tui-win.c: Include async-event.h.
8197 * remote.c: Include async-event.h.
8198 * remote-notif.c: Include async-event.h.
8199 * record-full.c: Include async-event.h.
8200 * record-btrace.c: Include async-event.h.
8201 * infrun.c: Include async-event.h.
8202 * event-top.c: Include async-event.h.
8203 * event-loop.h: Move some declarations to async-event.h.
8204 * event-loop.c: Don't include ser-event.h or top.h. Move some
8205 code to async-event.c.
8206 * async-event.h: New file.
8207 * async-event.c: New file.
8208 * Makefile.in (COMMON_SFILES): Add async-event.c.
8209 (HFILES_NO_SRCDIR): Add async-event.h.
8210
c1cd3163
TT
82112020-04-13 Tom Tromey <tom@tromey.com>
8212
8213 * utils.c (flush_streams): New function.
8214 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8215
29f2bf4f
TT
82162020-04-13 Tom Tromey <tom@tromey.com>
8217
8218 * event-loop.c (handle_file_event): Use warning, not
8219 printf_unfiltered.
8220
98029d02
TT
82212020-04-13 Tom Tromey <tom@tromey.com>
8222
8223 * event-loop.c: Include <chrono>.
8224
06cc9596
TT
82252020-04-13 Tom Tromey <tom@tromey.com>
8226
8227 * gdb_select.h: Move to ../gdbsupport/.
8228 * event-loop.c: Update include path.
8229 * top.c: Update include path.
8230 * ser-base.c: Update include path.
8231 * ui-file.c: Update include path.
8232 * ser-tcp.c: Update include path.
8233 * guile/scm-ports.c: Update include path.
8234 * posix-hdep.c: Update include path.
8235 * ser-unix.c: Update include path.
8236 * gdb_usleep.c: Update include path.
8237 * mingw-hdep.c: Update include path.
8238 * inflow.c: Update include path.
8239 * infrun.c: Update include path.
8240 * event-top.c: Update include path.
8241
8ae8e197
TT
82422020-04-13 Tom Tromey <tom@tromey.com>
8243
8244 * configure: Rebuild.
8245 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8246
58cf28e8
TT
82472020-04-13 Tom Tromey <tom@tromey.com>
8248
8249 * event-loop.h (start_event_loop): Don't declare.
8250 * event-loop.c (start_event_loop): Move...
8251 * main.c (start_event_loop): ...here. Now static.
8252
b7f999ae
SDJ
82532020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8254
8255 * MAINTAINERS: Update my email address.
8256
1085dfd4
KR
82572020-04-12 Kamil Rytarowski <n54@gmx.com>
8258
8259 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8260 IP_ALL.
8261
49d1d1f5
KR
82622020-04-12 Kamil Rytarowski <n54@gmx.com>
8263
8264 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8265 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8266
b4848d2a
KR
82672020-04-12 Kamil Rytarowski <n54@gmx.com>
8268
8269 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8270 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8271
51c133d5
KR
82722020-04-12 Kamil Rytarowski <n54@gmx.com>
8273
8274 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8275
54b8cbd0
KR
82762020-04-11 Kamil Rytarowski <n54@gmx.com>
8277
8278 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8279 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8280 (nbsd_nat_target::info_proc): New functions.
8281 * nbsd-nat.c (kinfo_get_vmmap): New function.
8282 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8283 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8284 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8285 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8286 functions.
8287 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8288 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8289 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8290 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8291 (KINFO_VME_FLAG_GROWS_DOWN): New.
8292
cf83625d
AS
82932020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8294
8295 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8296 bit shift.
8297
0c4311ab
TT
82982020-04-10 Tom Tromey <tromey@adacore.com>
8299
8300 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8301
3e65b3e9
TT
83022020-04-10 Tom Tromey <tromey@adacore.com>
8303
8304 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8305 separate debug files.
8306
13302e95
HD
83072020-04-10 Hannes Domani <ssbssa@yahoo.de>
8308
8309 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8310 Move to...
8311 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8312 ... here.
8313 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8314 Check for STATUS_WX86_BREAKPOINT.
8315 (windows_nat_target::wait): Same.
8316
bdfc1e8a
TV
83172020-04-10 Tom de Vries <tdevries@suse.de>
8318
8319 PR cli/25808
8320 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8321
f4460aec
SM
83222020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8323
8324 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8325 (Write After Approval): Remove Tom de Vries.
8326
a25198bb
BE
83272020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8328
8329 revert partially:
8330 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8331
aac66a4c
SM
8332 * buildsym.c (record_line): Fix undefined behavior and preserve
8333 lines at eof.
a25198bb 8334
206c98a6
KR
83352020-04-09 Kamil Rytarowski <n54@gmx.com>
8336
8337 * auxv.h (svr4_auxv_parse): New.
8338 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8339 and generic_auxv_parse.
8340 (svr4_auxv_parse): Add.
8341 * obsd-tdep.c: Include "auxv.h".
8342 (obsd_auxv_parse): Remove.
8343 (obsd_init_abi): Remove comment.
8344 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8345 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8346 * nbsd-tdep.c: Include "auxv.h".
8347 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8348
71fbdbaf
TT
83492020-04-08 Tom Tromey <tromey@adacore.com>
8350
8351 * nat/windows-nat.h (last_wait_event): Don't declare.
8352 (wait_for_debug_event): Update comment.
8353 * nat/windows-nat.c (last_wait_event): Now static.
8354
2c1d95e8
TT
83552020-04-08 Tom Tromey <tromey@adacore.com>
8356
8357 * windows-nat.c (wait_for_debug_event): Move to
8358 nat/windows-nat.c.
8359 * nat/windows-nat.h (wait_for_debug_event): Declare.
8360 * nat/windows-nat.c (wait_for_debug_event): Move from
8361 windows-nat.c. No longer static.
8362
d2977bc4
TT
83632020-04-08 Tom Tromey <tromey@adacore.com>
8364
8365 * windows-nat.c (get_windows_debug_event): Use
8366 fetch_pending_stop.
8367 * nat/windows-nat.h (fetch_pending_stop): Declare.
8368 * nat/windows-nat.c (fetch_pending_stop): New function.
8369
e758e19c
TT
83702020-04-08 Tom Tromey <tromey@adacore.com>
8371
8372 * windows-nat.c (windows_continue): Use matching_pending_stop and
8373 continue_last_debug_event.
8374 * nat/windows-nat.h (matching_pending_stop)
8375 (continue_last_debug_event): Declare.
8376 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8377 (matching_pending_stop, continue_last_debug_event): New
8378 functions.
8379
8d30e395
TT
83802020-04-08 Tom Tromey <tromey@adacore.com>
8381
8382 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8383 (handle_exception_result): Move to nat/windows-nat.h.
8384 (DEBUG_EXCEPTION_SIMPLE): Remove.
8385 (windows_nat::handle_ms_vc_exception): New function.
8386 (handle_exception): Move to nat/windows-nat.c.
8387 (get_windows_debug_event): Update.
8388 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8389 nat/windows-nat.c.
8390 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8391 (handle_exception_result): Move from windows-nat.c.
8392 (handle_exception): Declare.
8393 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8394 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8395 windows-nat.c.
8396
29de418d
TT
83972020-04-08 Tom Tromey <tromey@adacore.com>
8398
8399 * windows-nat.c (exception_count, event_count): Remove.
8400 (handle_exception, get_windows_debug_event)
8401 (do_initial_windows_stuff): Update.
8402
a816ba18
TT
84032020-04-08 Tom Tromey <tromey@adacore.com>
8404
8405 * windows-nat.c (windows_nat::handle_load_dll)
8406 (windows_nat::handle_unload_dll): Rename. No longer static.
8407 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8408 Declare.
8409
a00caa12
TT
84102020-04-08 Tom Tromey <tromey@adacore.com>
8411
8412 * complaints.h (stop_whining): Declare at top-level.
8413 (complaint): Don't declare stop_whining.
8414
d41b524f
TT
84152020-04-08 Tom Tromey <tromey@adacore.com>
8416
8417 * windows-nat.c (windows_nat::handle_output_debug_string):
8418 Rename. No longer static.
8419 * nat/windows-nat.h (handle_output_debug_string): Declare.
8420
3c76026d
TT
84212020-04-08 Tom Tromey <tromey@adacore.com>
8422
8423 * windows-nat.c (current_process_handle, current_process_id)
8424 (main_thread_id, last_sig, current_event, last_wait_event)
8425 (current_windows_thread, desired_stop_thread_id, pending_stops)
8426 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8427 (display_selectors, fake_create_process)
8428 (get_windows_debug_event): Update.
8429 * nat/windows-nat.h (current_process_handle, current_process_id)
8430 (main_thread_id, last_sig, current_event, last_wait_event)
8431 (current_windows_thread, desired_stop_thread_id, pending_stops)
8432 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8433 * nat/windows-nat.c (current_process_handle, current_process_id)
8434 (main_thread_id, last_sig, current_event, last_wait_event)
8435 (current_windows_thread, desired_stop_thread_id, pending_stops)
8436 (siginfo_er): New globals. Move from windows-nat.c.
8437
9d8679cc
TT
84382020-04-08 Tom Tromey <tromey@adacore.com>
8439
8440 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8441 (handle_load_dll): Update.
8442 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8443
28688adf
TT
84442020-04-08 Tom Tromey <tromey@adacore.com>
8445
8446 * windows-nat.c (enum thread_disposition_type): Move to
8447 nat/windows-nat.h.
8448 (windows_nat::thread_rec): Rename from thread_rec. No longer
8449 static.
8450 (windows_add_thread, windows_nat_target::fetch_registers)
8451 (windows_nat_target::store_registers, handle_exception)
8452 (windows_nat_target::resume, get_windows_debug_event)
8453 (windows_nat_target::get_tib_address)
8454 (windows_nat_target::thread_name)
8455 (windows_nat_target::thread_alive): Update.
8456 * nat/windows-nat.h (enum thread_disposition_type): Move from
8457 windows-nat.c.
8458 (thread_rec): Declare.
8459
4834dad0
TT
84602020-04-08 Tom Tromey <tromey@adacore.com>
8461
8462 * windows-nat.c: Add "using namespace".
8463 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8464 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8465
65bafd5b
TT
84662020-04-08 Tom Tromey <tromey@adacore.com>
8467
8468 * nat/windows-nat.h (struct windows_thread_info): Declare
8469 destructor.
8470 * nat/windows-nat.c (~windows_thread_info): New.
8471
0a4afda3
TT
84722020-04-08 Tom Tromey <tromey@adacore.com>
8473
8474 PR gdb/22992
8475 * windows-nat.c (current_event): Update comment.
8476 (last_wait_event, desired_stop_thread_id): New globals.
8477 (struct pending_stop): New.
8478 (pending_stops): New global.
8479 (windows_nat_target) <stopped_by_sw_breakpoint>
8480 <supports_stopped_by_sw_breakpoint>: New methods.
8481 (windows_fetch_one_register): Add assertions. Adjust PC.
8482 (windows_continue): Handle pending stops. Suspend other threads
8483 when stepping. Use last_wait_event
8484 (wait_for_debug_event): New function.
8485 (get_windows_debug_event): Use wait_for_debug_event. Handle
8486 pending stops. Queue spurious stops.
8487 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8488 (windows_nat_target::kill): Use wait_for_debug_event.
8489 * nat/windows-nat.h (struct windows_thread_info)
8490 <stopped_at_software_breakpoint>: New field.
8491 * nat/windows-nat.c (windows_thread_info::resume): Clear
8492 stopped_at_software_breakpoint.
8493
8e61ebec
TT
84942020-04-08 Tom Tromey <tromey@adacore.com>
8495
8496 * windows-nat.c (enum thread_disposition_type): New.
8497 (thread_rec): Replace "get_context" parameter with "disposition";
8498 change type.
8499 (windows_add_thread, windows_nat_target::fetch_registers)
8500 (windows_nat_target::store_registers, handle_exception)
8501 (windows_nat_target::resume, get_windows_debug_event)
8502 (windows_nat_target::get_tib_address)
8503 (windows_nat_target::thread_name)
8504 (windows_nat_target::thread_alive): Update.
8505
98a03287
TT
85062020-04-08 Tom Tromey <tromey@adacore.com>
8507
8508 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8509 (windows_continue): Use windows_continue::resume.
8510 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8511 resume>: Declare new methods.
8512 * nat/windows-nat.c: New file.
8513 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8514
7c7411bc
TT
85152020-04-08 Tom Tromey <tromey@adacore.com>
8516
8517 * windows-nat.c (windows_add_thread, windows_delete_thread)
8518 (windows_nat_target::fetch_registers)
8519 (windows_nat_target::store_registers, fake_create_process)
8520 (windows_nat_target::resume, windows_nat_target::resume)
8521 (get_windows_debug_event, windows_nat_target::wait)
8522 (windows_nat_target::pid_to_str)
8523 (windows_nat_target::get_tib_address)
8524 (windows_nat_target::get_ada_task_ptid)
8525 (windows_nat_target::thread_name)
8526 (windows_nat_target::thread_alive): Use lwp, not tid.
8527
2950fdf7
TT
85282020-04-08 Tom Tromey <tromey@adacore.com>
8529
8530 * windows-nat.c (handle_exception)
8531 (windows_nat_target::thread_name): Update.
8532 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8533 <name>: Now unique_xmalloc_ptr.
8534
62fe396b
TT
85352020-04-08 Tom Tromey <tromey@adacore.com>
8536
8537 * windows-nat.c (thread_rec)
8538 (windows_nat_target::fetch_registers): Update.
8539 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8540 Update comment.
8541 <debug_registers_changed, reload_context>: Now bool.
8542
e9534bd2
TT
85432020-04-08 Tom Tromey <tromey@adacore.com>
8544
8545 * windows-nat.c (windows_add_thread): Use new.
8546 (windows_init_thread_list, windows_delete_thread): Use delete.
8547 (get_windows_debug_event): Update.
8548 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8549 destructor, and initializers.
8550
ae1f8880
TT
85512020-04-08 Tom Tromey <tromey@adacore.com>
8552
8553 * windows-nat.c (struct windows_thread_info): Remove.
8554 * nat/windows-nat.h: New file.
8555
55a1e039
TT
85562020-04-08 Tom Tromey <tromey@adacore.com>
8557
8558 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8559 (thread_rec, windows_add_thread, windows_delete_thread)
8560 (windows_continue): Update.
8561
93366324
TT
85622020-04-08 Tom Tromey <tromey@adacore.com>
8563
8564 * windows-nat.c (struct windows_thread_info): Remove typedef.
8565 (thread_head): Remove.
8566 (thread_list): New global.
8567 (thread_rec, windows_add_thread, windows_init_thread_list)
8568 (windows_delete_thread, windows_continue): Update.
8569
0f2265e2
SM
85702020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8571
8572 * windows-tdep.h (windows_init_abi): Add comment.
8573 (cygwin_init_abi): New declaration.
8574 * windows-tdep.c: Split signal enumeration in two, one for
8575 Windows and one for Cygwin.
8576 (windows_gdb_signal_to_target): Only deal with signal of the
8577 Windows OS ABI.
8578 (cygwin_gdb_signal_to_target): New function.
8579 (windows_init_abi): Rename to windows_init_abi_common, don't set
8580 gdb_signal_to_target gdbarch method. Add new new function with
8581 this name.
8582 (cygwin_init_abi): New function.
8583 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8584 comment. Don't call windows_init_abi.
8585 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8586 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8587 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8588 i386_windows_init_abi_common, don't call windows_init_abi. Add
8589 a new function of this name.
8590 (i386_cygwin_init_abi): New function.
8591 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8592 OS ABI Cygwin.
8593
3810f182
SM
85942020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8595
8596 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8597 parameter.c.
8598 (dwarf2_read_gdb_index): Update.
8599
063f8e80
KR
86002020-04-07 Kamil Rytarowski <n54@gmx.com>
8601
8602 * nbsd-tdep.c: Include "objfiles.h".
8603 (nbsd_skip_solib_resolver): New.
8604 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8605
85a9510c 86062020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8607
8608 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8609 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8610 with DW_LLE_base_addressx are being emitted in DWARFv5.
8611 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8612 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8613 unsigned integer.
8614
9fc3eaae 86152020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8616
8617 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8618 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8619 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8620 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8621 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8622 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8623 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8624
8625
41144253 86262020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8627
8628 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8629 (read_loclist_index): New function definition.
8630 (lookup_loclist_base): New function definition.
8631 (read_loclist_header): New function definition.
8632 (dwarf2_cu): Add loclist_base and loclist_header field.
8633 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8634 (read_full_die_1): Read the value of DW_AT_loclists_base.
8635 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8636 (read_attribute_value): Handle DW_FORM_loclistx.
8637 (skip_one_die): Handle DW_FORM_loclistx.
8638 (loclist_header): New structure declaration.
8639 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8640
9f4e76a4
SM
86412020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8642
8643 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8644 constructor. Remove `addr` parameter from other constructor and
8645 add `per_cu` parameter.
8646 * dwarf2/read.c (create_partial_symtab): Update.
8647
25c11aca
TV
86482020-04-07 Tom de Vries <tdevries@suse.de>
8649
8650 PR symtab/25796
8651 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8652 (partial_die_info::fixup): Inherit has_const_value.
8653
5707e24b
TV
86542020-04-07 Tom de Vries <tdevries@suse.de>
8655
8656 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8657 symbols without address.
8658
05f00e22
KR
86592020-04-06 Kamil Rytarowski <n54@gmx.com>
8660
8661 * nbsd-nat.h (struct thread_info): Add forward declaration.
8662 (nbsd_nat_target::thread_alive): Add.
8663 (nbsd_nat_target::thread_name): Likewise.
8664 (nbsd_nat_target::update_thread_list): Likewise.
8665 (update_thread_list::post_attach): Likewise.
8666 (post_attach::pid_to_str): Likewise.
8667 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8668 (nbsd_thread_lister): Add.
8669 (nbsd_nat_target::thread_alive): Likewise.
8670 (nbsd_nat_target::thread_name): Likewise.
8671 (nbsd_add_threads): Likewise.
8672 (update_thread_list::post_attach): Likewise.
8673 (nbsd_nat_target::update_thread_list): Likewise.
8674 (post_attach::pid_to_str): Likewise.
8675
6ee448cc
TT
86762020-04-06 Tom Tromey <tromey@adacore.com>
8677
8678 * ada-valprint.c (print_variant_part): Extract the variant field.
8679 (print_field_values): Use the field as the outer value when
8680 recursing.
8681
dea34e8c
TT
86822020-04-06 Tom Tromey <tromey@adacore.com>
8683
8684 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8685 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8686 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8687 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8688 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8689
93689ce9
TT
86902020-04-06 Tom Tromey <tromey@adacore.com>
8691
8692 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8693 TYPE_CODE_ERROR.
8694
79743962
KR
86952020-04-06 Kamil Rytarowski <n54@gmx.com>
8696
8697 * nbsd-tdep.c: Include "gdbarch.h".
8698 Define enum with NetBSD signal numbers.
8699 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8700 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8701 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8702 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8703 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8704 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8705 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8706 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8707 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8708 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8709 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8710 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8711
9e7c9a03
HD
87122020-04-03 Hannes Domani <ssbssa@yahoo.de>
8713
8714 PR gdb/25325
8715 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8716
d9e49b61
TT
87172020-04-03 Tom Tromey <tromey@adacore.com>
8718
8719 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8720 Read constant block.
8721
e0fc5c3f
SM
87222020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8723
8724 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8725 (gdb_bfd_get_full_section_contents): New declaration.
8726 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8727 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8728 gdb_bfd_get_full_section_contents.
8729
e2ff18a0
SM
87302020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8731
8732 * exec.c (build_section_table): Replace internal_error with
8733 gdb_assert.
8734 (section_table_xfer_memory_partial): Likewise.
8735 * mdebugread.c (parse_partial_symbols): Likewise.
8736 * psymtab.c (lookup_partial_symbol): Likewise.
8737 * utils.c (wrap_here): Likewise.
8738
0830d301
TT
87392020-04-02 Tom Tromey <tromey@adacore.com>
8740
8741 * f-lang.c (build_fortran_types): Use arch_type to initialize
8742 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8743
e7da7f8f
TT
87442020-04-02 Tom Tromey <tromey@adacore.com>
8745
8746 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8747 of attributes.
8748
c90d28ac
AB
87492020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8750 Bernd Edlinger <bernd.edlinger@hotmail.de>
8751 Tom Tromey <tromey@adacore.com>
8752
8753 * buildsym.c (buildsym_compunit::record_line): Remove
8754 deduplication code.
8755
1aa98955
TV
87562020-04-02 Tom de Vries <tdevries@suse.de>
8757
8758 PR ada/24671
8759 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8760
d3214198
TV
87612020-04-02 Tom de Vries <tdevries@suse.de>
8762
8763 * dwarf2/read.c (dwarf2_gdb_index_functions,
8764 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8765 NULL.
8766 * psymtab.c (psym_lookup_global_symbol_language): New function.
8767 (psym_functions): Init psym_lookup_global_symbol_language with
8768 psym_lookup_global_symbol_language.
8769 * symfile-debug.c (debug_sym_quick_functions): Init
8770 lookup_global_symbol_language with NULL.
8771 * symfile.c (set_initial_language): Remove fixme comment.
8772 * symfile.h (struct quick_symbol_functions): Add
8773 lookup_global_symbol_language.
8774 * symtab.c (find_quick_global_symbol_language): New function.
8775 (find_main_name): Use find_quick_global_symbol_language.
8776
2836752f
SM
87772020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8778
8779 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8780
64dc2d4b
BE
87812020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8782
8783 * buildsym.c (record_line): Fix undefined behavior and preserve
8784 lines at eof.
8785
bbe3dc41
BE
87862020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8787
8788 * buildsym.c (record_line): Fix the resizing condition.
8789
6b4a335b
TT
87902020-04-01 Tom Tromey <tom@tromey.com>
8791
8792 * value.h (value_literal_complex): Add comment.
8793 * valops.c (value_literal_complex): Refer to value.h.
8794
3638a098
TT
87952020-04-01 Tom Tromey <tom@tromey.com>
8796
8797 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8798 (scalar_type): New rule, from typebase.
8799 (typebase): Use scalar_type. Recognize complex types.
8800 (field_name): Handle FLOAT_KEYWORD.
8801 (ident_tokens): Add _Complex and __complex__.
8802
c34e8714
TT
88032020-04-01 Tom Tromey <tom@tromey.com>
8804
8805 PR exp/25299:
8806 * valarith.c (promotion_type, complex_binop): New functions.
8807 (scalar_binop): Handle complex numbers. Use promotion_type.
8808 (value_pos, value_neg, value_complement): Handle complex numbers.
8809
fa649bb7
TT
88102020-04-01 Tom Tromey <tom@tromey.com>
8811
8812 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8813 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8814 (parse_number): Handle complex numbers.
8815
981c08ce
TT
88162020-04-01 Tom Tromey <tom@tromey.com>
8817
8818 * c-valprint.c (c_decorations): Change complex suffix to "i".
8819
4c99290d
TT
88202020-04-01 Tom Tromey <tom@tromey.com>
8821
8822 * valprint.c (generic_value_print_complex): Use accessors.
8823 * value.h (value_real_part, value_imaginary_part): Declare.
8824 * valops.c (value_real_part, value_imaginary_part): New
8825 functions.
8826 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8827
5b930b45
TT
88282020-04-01 Tom Tromey <tom@tromey.com>
8829
8830 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8831 (read_range_type): Update.
8832 * mdebugread.c (basic_type): Update.
8833 * go-lang.c (build_go_types): Use init_complex_type.
8834 * gdbtypes.h (struct main_type) <complex_type>: New member.
8835 (init_complex_type): Update.
8836 (arch_complex_type): Don't declare.
8837 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8838 Make name if none given. Use alloc_type_copy. Look for cached
8839 complex type.
8840 (arch_complex_type): Remove.
8841 (gdbtypes_post_init): Use init_complex_type.
8842 * f-lang.c (build_fortran_types): Use init_complex_type.
8843 * dwarf2/read.c (read_base_type): Update.
8844 * d-lang.c (build_d_types): Use init_complex_type.
8845 * ctfread.c (read_base_type): Update.
8846
53cccef1
TBA
88472020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8848
8849 * infrun.c (stop_all_threads): Update assertion, plus when
8850 stopping threads, take into account that we might be trying
8851 to stop an all-stop target.
8852 (stop_waiting): Call 'stop_all_threads' if there exists a
8853 non-stop target.
8854
a0714d30
TBA
88552020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8856
8857 * target.h (exists_non_stop_target): New function declaration.
8858 * target.c (exists_non_stop_target): New function.
8859
60e22c1e
HD
88602020-04-01 Hannes Domani <ssbssa@yahoo.de>
8861
8862 PR gdb/24789
8863 * eval.c (is_integral_or_integral_reference): New function.
8864 (evaluate_subexp_standard): Allow integer references in
8865 pointer arithmetic.
8866
e139a727
TBA
88672020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8868
8869 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8870 check for no ptid in the stop reply when the target is non-stop.
8871
e0802d59
TT
88722020-04-01 Tom Tromey <tromey@adacore.com>
8873
8874 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8875 "name" parameter to rvalue reference. Initialize m_name_holder.
8876 <lookup_name_info>: New overloads.
8877 <name>: Return gdb::string_view.
8878 <c_str>: New method.
8879 <make_ignore_params>: Update.
8880 <search_name_hash>: Update.
8881 <language_lookup_name>: Return const char *.
8882 <m_name>: Change type.
8883 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8884 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8885 (lookup_name_info::match_any): Update.
8886 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8887 Update.
8888 * minsyms.c (linkage_name_str): Update.
8889 * language.c (default_symbol_name_matcher): Update.
8890 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8891 Update.
8892 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8893 (ada_lookup_name_info::ada_lookup_name_info): Update.
8894 (literal_symbol_name_matcher): Update.
8895
8c072cb6
TT
88962020-04-01 Tom Tromey <tromey@adacore.com>
8897
8898 * psymtab.c (psymtab_search_name): Remove function.
8899 (psym_lookup_symbol): Create search name and lookup name here.
8900 (lookup_partial_symbol): Remove "name" parameter; add
8901 lookup_name.
8902 (psym_expand_symtabs_for_function): Update.
8903
6f29a534
TT
89042020-03-31 Joel Jones <joelkevinjones@gmail.com>
8905
8906 PR tui/25597:
8907 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8908
af62665e
TT
89092020-03-31 Tom Tromey <tromey@adacore.com>
8910
8911 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8912 memcpy.
8913
d1a89da5
NC
89142020-03-30 Nelson Chu <nelson.chu@sifive.com>
8915
8916 * features/riscv/32bit-csr.xml: Regenerated.
8917 * features/riscv/64bit-csr.xml: Regenerated.
8918
d8af9068
TT
89192020-03-30 Tom Tromey <tromey@adacore.com>
8920
8921 * ada-valprint.c (print_variant_part): Update.
8922 * ada-lang.h (ada_which_variant_applies): Update.
8923 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8924 outer_valaddr parameters; replace with "outer" value parameter.
8925 (to_fixed_variant_branch_type): Update.
8926
227c0bf4
PFC
89272020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8928
8929 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8930 <list>. Remove inclusion of observable.h.
8931 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8932 (struct arch_lwp_info): New struct.
8933 (class ppc_linux_dreg_interface): New class.
8934 (struct ppc_linux_process_info): New struct.
8935 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8936 <low_new_clone, low_forget_process, low_prepare_to_resume>
8937 <copy_thread_dreg_state, mark_thread_stale>
8938 <mark_debug_registers_changed, register_hw_breakpoint>
8939 <clear_hw_breakpoint, register_wp, clear_wp>
8940 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8941 <num_memory_accesses, get_trigger_type>
8942 <create_watchpoint_request, hwdebug_point_cmp>
8943 <init_arch_lwp_info, get_arch_lwp_info>
8944 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8945 methods.
8946 <struct ptid_hash>: New inner struct.
8947 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8948 members.
8949 (saved_dabr_value, hwdebug_info, max_slots_number)
8950 (struct hw_break_tuple, struct thread_points, ppc_threads)
8951 (have_ptrace_hwdebug_interface)
8952 (hwdebug_find_thread_points_by_tid)
8953 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8954 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8955 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8956 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8957 use m_dreg_interface.
8958 (hwdebug_point_cmp): Change to...
8959 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8960 reference arguments instead of pointers.
8961 (ppc_linux_nat_target::ranged_break_num_registers): Use
8962 m_dreg_interface.
8963 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8964 m_dreg_interface. Call register_hw_breakpoint.
8965 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8966 m_dreg_interface. Call clear_hw_breakpoint.
8967 (get_trigger_type): Change to...
8968 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8969 comment.
8970 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8971 use m_dreg_interface. Call register_hw_breakpoint.
8972 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8973 use m_dreg_interface. Call clear_hw_breakpoint.
8974 (can_use_watchpoint_cond_accel): Change to...
8975 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8976 method. Update comment, use m_dreg_interface and
8977 m_process_info.
8978 (calculate_dvc): Change to...
8979 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8980 m_dreg_interface.
8981 (num_memory_accesses): Change to...
8982 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8983 (check_condition): Change to...
8984 (ppc_linux_nat_target::check_condition): ...this method.
8985 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8986 comment, use m_dreg_interface.
8987 (create_watchpoint_request): Change to...
8988 (ppc_linux_nat_target::create_watchpoint_request): ...this
8989 method. Use m_dreg_interface.
8990 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8991 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8992 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8993 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8994 (ppc_linux_nat_target::low_forget_process)
8995 (ppc_linux_nat_target::low_new_fork)
8996 (ppc_linux_nat_target::low_new_clone)
8997 (ppc_linux_nat_target::low_delete_thread)
8998 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8999 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9000 only call mark_thread_stale.
9001 (ppc_linux_thread_exit): Remove.
9002 (ppc_linux_nat_target::stopped_data_address): Change to...
9003 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9004 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9005 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9006 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9007 comment. Call low_stopped_data_address.
9008 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9009 m_dreg_interface.
9010 (ppc_linux_nat_target::masked_watch_num_registers): Use
9011 m_dreg_interface.
9012 (ppc_linux_nat_target::copy_thread_dreg_state)
9013 (ppc_linux_nat_target::mark_thread_stale)
9014 (ppc_linux_nat_target::mark_debug_registers_changed)
9015 (ppc_linux_nat_target::register_hw_breakpoint)
9016 (ppc_linux_nat_target::clear_hw_breakpoint)
9017 (ppc_linux_nat_target::register_wp)
9018 (ppc_linux_nat_target::clear_wp)
9019 (ppc_linux_nat_target::init_arch_lwp_info)
9020 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9021 (_initialize_ppc_linux_nat): Remove observer callback.
9022
4db10d8f
PFC
90232020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9024
9025 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9026 (ppc_linux_nat_target::auxv_parse)
9027 (ppc_linux_nat_target::read_description)
9028 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9029 Move up.
9030
1310c1b0
PFC
90312020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9032
9033 * linux-nat.h (low_new_clone): New method.
9034 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9035
69b037c3
SM
90362020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9037
9038 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9039 (dbx_expand_psymtab): ... this.
9040 (start_psymtab): Update.
9041 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9042 (mdebug_expand_psymtab): ... this.
9043 (parse_partial_symbols): Update.
9044 (new_psymtab): Update.
9045 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9046 (xcoff_expand_psymtab): ... this.
9047 (xcoff_start_psymtab): Update.
9048
48993951
SM
90492020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9050
9051 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9052 <expand_dependencies>: ... this.
9053 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9054 (partial_symtab::expand_dependencies): ... this.
9055 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9056 Update.
9057 (dwarf2_psymtab::expand_psymtab): Update.
9058 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9059 * mdebugread.c (psymtab_to_symtab_1): Update.
9060 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9061
3ad83046
SM
90622020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9063
9064 * psympriv.h (discard_psymtab): Remove.
9065 * dbxread.c (dbx_end_psymtab): Update.
9066 * xcoffread.c (xcoff_end_psymtab): Update.
9067
4d1b9ab6
TT
90682020-03-28 Tom Tromey <tom@tromey.com>
9069
9070 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9071 comment.
9072
f1749218
TT
90732020-03-28 Tom Tromey <tom@tromey.com>
9074
9075 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9076
ebea7626
HD
90772020-03-27 Hannes Domani <ssbssa@yahoo.de>
9078
9079 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9080
a879b4d5
JB
90812020-03-26 John Baldwin <jhb@FreeBSD.org>
9082
9083 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9084
0826b30a
TT
90852020-03-26 Tom Tromey <tom@tromey.com>
9086
9087 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9088 (mark_common_block_symbol_computed, read_tag_string_type)
9089 (attr_to_dynamic_prop, read_subrange_type): Update.
9090 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9091 to be methods on struct attribute.
9092 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9093 (read_call_site_scope, partial_die_info::read)
9094 (partial_die_info::read, lookup_die_type, follow_die_ref):
9095 Update.
9096 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9097 from dwarf2_get_ref_die_offset.
9098 (attribute::constant_value): New method, from
9099 dwarf2_get_attr_constant_value.
9100 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9101 Declare method.
9102 <constant_value>: New method.
9103
2b2558bf
TT
91042020-03-26 Tom Tromey <tom@tromey.com>
9105
9106 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9107 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9108 (dwarf_type_encoding_name): Move to stringify.c.
9109 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9110 * dwarf2/stringify.c: New file.
9111 * dwarf2/stringify.h: New file.
9112
eeb64781
TT
91132020-03-26 Tom Tromey <tom@tromey.com>
9114
9115 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9116 Rewrite.
9117
a39fdb41
TT
91182020-03-26 Tom Tromey <tom@tromey.com>
9119
9120 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9121 methods.
9122 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9123 (lookup_ranges_base): Likewise.
9124 (read_cutu_die_from_dwo, read_full_die_1): Update.
9125
436c571c
TT
91262020-03-26 Tom Tromey <tom@tromey.com>
9127
9128 * dwarf2/read.c (read_import_statement, read_file_scope)
9129 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9130 (read_lexical_block_scope, read_call_site_scope)
9131 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9132 (handle_struct_member_die, process_structure_scope)
9133 (update_enumeration_type_from_children)
9134 (process_enumeration_scope, read_array_type, read_common_block)
9135 (read_namespace, read_module, read_subroutine_type): Update.
9136 (sibling_die): Remove.
9137
052c8bb8
TT
91382020-03-26 Tom Tromey <tom@tromey.com>
9139
9140 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9141 (build_type_psymtabs_reader, read_structure_type)
9142 (read_enumeration_type, read_full_die_1): Update.
9143 (dwarf2_attr_no_follow): Move to die.h.
9144 * dwarf2/die.h (struct die_info) <attr>: New method.
9145
2b24b6e4
TT
91462020-03-26 Tom Tromey <tom@tromey.com>
9147
9148 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9149 <base_address>: Now an optional.
9150 (dwarf2_find_base_address, dwarf2_rnglists_process)
9151 (dwarf2_ranges_process, fill_in_loclist_baton)
9152 (dwarf2_symbol_mark_computed): Update.
9153
c2d50fd0
TT
91542020-03-26 Tom Tromey <tom@tromey.com>
9155
9156 * dwarf2/read.c (struct die_info): Move to die.h.
9157 * dwarf2/die.h: New file.
9158
0df7ad3a
TT
91592020-03-26 Tom Tromey <tom@tromey.com>
9160
9161 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9162 * dwarf2/read.c
9163 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9164 Move to line-header.c.
9165 (read_checked_initial_length_and_offset, read_formatted_entries):
9166 Likewise.
9167 (dwarf_decode_line_header): Split into two.
9168 * dwarf2/line-header.c
9169 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9170 Move from read.c.
9171 (read_checked_initial_length_and_offset, read_formatted_entries):
9172 Likewise.
9173 (dwarf_decode_line_header): New function, split from read.c.
9174
86c0bb4c
TT
91752020-03-26 Tom Tromey <tom@tromey.com>
9176
9177 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9178 Declare method.
9179 * dwarf2/read.c (read_attribute_value): Update.
9180 (dwarf2_per_objfile::read_line_string): Rename from
9181 read_indirect_line_string.
9182 (read_formatted_entries): Update.
9183
2ef46c2f
TT
91842020-03-26 Tom Tromey <tom@tromey.com>
9185
9186 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9187 variable.
9188
4f9c1eda
TT
91892020-03-26 Tom Tromey <tom@tromey.com>
9190
9191 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9192 const.
9193 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9194 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9195 parameter const.
9196
5a0e026f
TT
91972020-03-26 Tom Tromey <tom@tromey.com>
9198
9199 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9200 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9201 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9202 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9203
8844c11b
TT
92042020-03-26 Tom Tromey <tom@tromey.com>
9205
9206 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9207 file_names_size, file_full_name, file_file_name>: Use const.
9208 <file_name_at, file_names>: Add const overload.
9209 * dwarf2/line-header.c (line_header::file_file_name)
9210 (line_header::file_full_name): Update.
9211
c90ec28a
TT
92122020-03-26 Tom Tromey <tom@tromey.com>
9213
9214 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9215 (macro_start_file, consume_improper_spaces)
9216 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9217 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9218 (dwarf_decode_macros): Move to macro.c.
9219 * dwarf2/macro.c: New file.
9220 * dwarf2/macro.h: New file.
9221 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9222
4f44ae6c
TT
92232020-03-26 Tom Tromey <tom@tromey.com>
9224
9225 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9226 method.
9227 * dwarf2/section.c: New method. From
9228 read_indirect_string_at_offset_from.
9229 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9230 (read_indirect_string_at_offset_from): Move to section.c.
9231 (read_indirect_string_at_offset): Rewrite.
9232 (read_indirect_line_string_at_offset): Remove.
9233 (read_indirect_string, read_indirect_line_string)
9234 (dwarf_decode_macro_bytes): Update.
9235
a0194fa8
TT
92362020-03-26 Tom Tromey <tom@tromey.com>
9237
9238 * dwarf2/section.h (struct dwarf2_section_info)
9239 <overload_complaint>: Declare.
9240 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9241 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9242 Rename from dwarf2_section_buffer_overflow_complaint.
9243 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9244 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9245
3d27bbdb
TT
92462020-03-26 Tom Tromey <tom@tromey.com>
9247
9248 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9249 Declare.
9250 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9251 Move from read.c.
9252 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9253 to section.c.
9254
9eac9650
TT
92552020-03-26 Tom Tromey <tom@tromey.com>
9256
9257 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9258
bf80d710
TT
92592020-03-26 Tom Tromey <tom@tromey.com>
9260
9261 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9262 "builder".
9263 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9264 parameter.
9265 (dwarf_decode_macros): Update.
9266
0314b390
TT
92672020-03-26 Tom Tromey <tom@tromey.com>
9268
9269 * dwarf2/read.c (read_attribute_value): Update.
9270 (read_indirect_string_from_dwz): Move to dwz.c; change into
9271 method.
9272 (dwarf_decode_macro_bytes): Update.
9273 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9274 * dwarf2/dwz.c: New file.
9275 * Makefile.in (COMMON_SFILES): Add dwz.c.
9276
9fda78b6
TT
92772020-03-26 Tom Tromey <tom@tromey.com>
9278
9279 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9280 * dwarf2/read.c: Add include.
9281 * dwarf2/index-write.c: Add include.
9282 * dwarf2/index-cache.c: Add include.
9283 * dwarf2/dwz.h: New file.
9284
33aa3c10
TT
92852020-03-25 Tom Tromey <tom@tromey.com>
9286
9287 * compile/compile-object-load.c (get_out_value_type): Mention
9288 correct symbol name in error message.
9289
d503b685
HD
92902020-03-25 Hannes Domani <ssbssa@yahoo.de>
9291
9292 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9293
7b1eff95
TV
92942020-03-25 Tom de Vries <tdevries@suse.de>
9295
9296 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9297 * symmisc.c (dump_symtab_1): Print user and includes fields.
9298 (maintenance_info_symtabs): Same.
9299
dd895392
AB
93002020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9301
9302 PR gdb/25534
9303 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9304 (riscv_regcache_cooked_write): New function.
9305 (riscv_push_dummy_call): Use new function.
9306 (riscv_return_value): Likewise.
9307
5ab2fbf1
SM
93082020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9309
9310 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9311 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9312 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9313 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9314 * infrun.c (follow_fork): Likewise.
9315 (follow_fork_inferior): Likewise.
9316 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9317 * linux-nat.h (class linux_nat_target): Likewise.
9318 * remote.c (class remote_target) <follow_fork>: Likewise.
9319 (remote_target::follow_fork): Likewise.
9320 * target-delegates.c: Re-generate.
9321 * target.c (default_follow_fork): Likewise.
9322 (target_follow_fork): Likewise.
9323 * target.h (struct target_ops) <follow_fork>: Likewise.
9324 (target_follow_fork): Likewise.
9325
a64fafb5
TV
93262020-03-24 Tom de Vries <tdevries@suse.de>
9327
9328 * psymtab.c (maintenance_info_psymtabs): Print user field.
9329
fe26d3a3
TT
93302020-03-20 Tom Tromey <tromey@adacore.com>
9331
9332 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9333 const.
9334 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9335 const.
9336
c884cc46
SM
93372020-03-20 Simon Marchi <simon.marchi@efficios.com>
9338
9339 * ptrace.m4: Don't check for ptrace declaration.
9340 * config.in: Re-generate.
9341 * configure: Re-generate.
9342 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9343 not defined.
9344
1ff700c2
KR
93452020-03-20 Kamil Rytarowski <n54@gmx.com>
9346
9347 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9348 `PTRACE_TYPE_RET'.
9349 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9350 * sparc-nat.c (gdb_ptrace): Likewise.
9351 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9352
f7d4f0b1
TT
93532020-03-20 Tom Tromey <tromey@adacore.com>
9354
9355 * c-exp.y (lex_one_token): Fix assert.
9356
f67210ff
TT
93572020-03-20 Tom Tromey <tromey@adacore.com>
9358
9359 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9360 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9361 strncpy call.
9362
1773be9e
TT
93632020-03-20 Tom Tromey <tromey@adacore.com>
9364
9365 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9366
70304be9
TT
93672020-03-20 Tom Tromey <tromey@adacore.com>
9368
9369 * ada-valprint.c (print_variant_part): Remove parameters; switch
9370 to value-based API.
9371 (print_field_values): Likewise.
9372 (ada_val_print_struct_union): Likewise.
9373 (ada_value_print_1): Update.
9374
9faa006d
KR
93752020-03-20 Kamil Rytarowski <n54@gmx.com>
9376
9377 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9378 nbsd_nat_target instead of inf_ptrace_target.
9379 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9380 nbsd_nat_target.
9381
4a90f062
KR
93822020-03-20 Kamil Rytarowski <n54@gmx.com>
9383
9384 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9385 it to the ptrace call.
9386 * (store_registers): Likewise.
9387
93882020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9389
9390 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9391 it to the ptrace call.
9392 * (store_registers): Likewise.
9393
2d07da27
LM
93942020-03-19 Luis Machado <luis.machado@linaro.org>
9395
9396 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9397 valid, fetch vg value from ptrace.
9398
f09db380
KR
93992020-03-19 Kamil Rytarowski <n54@gmx.com>
9400 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9401 * inf-ptrace.c: Likewise.
9402 * (gdb_ptrace): Add.
9403 * (inf_ptrace_target::resume): Update.
9404 * (inf_ptrace_target::xfer_partial): Likewise.
9405 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9406 * (inf_ptrace_peek_poke): Update.
9407
fcc7376e
KR
94082020-03-19 Kamil Rytarowski <n54@gmx.com>
9409
9410 * x86-bsd-nat.c (gdb_ptrace): New.
9411 * (x86bsd_dr_set): Add new argument `ptid'.
9412 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9413 x86bsd_dr_set_addr): Update.
9414
cada5fc9
AB
94152020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9416
9417 * remote.c (remote_target::process_stop_reply): Handle events for
9418 all threads differently.
9419
19a2740f
AB
94202020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9421
9422 * completer.c (completion_tracker::remove_completion): Define new
9423 function.
9424 * completer.h (completion_tracker::remove_completion): Declare new
9425 function.
9426 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9427 when adding a C++ function symbol.
9428
724fd9ba
AB
94292020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9430
9431 * completer.c (completion_tracker::completion_hash_entry): Define
9432 new class.
9433 (advance_to_filename_complete_word_point): Call
9434 recompute_lowest_common_denominator.
9435 (completion_tracker::completion_tracker): Call discard_completions
9436 to setup the hash table.
9437 (completion_tracker::discard_completions): Allow for being called
9438 from the constructor, pass new equal function, and element deleter
9439 when constructing the hash table. Initialise new class member
9440 variables.
9441 (completion_tracker::maybe_add_completion): Remove use of
9442 m_entries_vec, and store more information into m_entries_hash.
9443 (completion_tracker::recompute_lcd_visitor): New function, most
9444 content taken from...
9445 (completion_tracker::recompute_lowest_common_denominator):
9446 ...here, this now just visits each item in the hash calling the
9447 above visitor.
9448 (completion_tracker::build_completion_result): Remove use of
9449 m_entries_vec, call recompute_lowest_common_denominator.
9450 * completer.h (completion_tracker::have_completions): Remove use
9451 of m_entries_vec.
9452 (completion_tracker::completion_hash_entry): Declare new class.
9453 (completion_tracker::recompute_lowest_common_denominator): Change
9454 function signature.
9455 (completion_tracker::recompute_lcd_visitor): Declare new function.
9456 (completion_tracker::m_entries_vec): Delete.
9457 (completion_tracker::m_entries_hash): Initialize to NULL.
9458 (completion_tracker::m_lowest_common_denominator_valid): New
9459 member variable.
9460 (completion_tracker::m_lowest_common_denominator_max_length): New
9461 member variable.
9462
5a82b8a1
KR
94632020-03-17 Kamil Rytarowski <n54@gmx.com>
9464
9465 * regformats/regdef.h: Put reg in gdb namespace.
9466
fb516a69
KR
94672020-03-17 Kamil Rytarowski <n54@gmx.com>
9468
9469 * i386-bsd-nat.c (gdb_ptrace): New.
9470 * (i386bsd_fetch_inferior_registers,
9471 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9472 * (i386bsd_fetch_inferior_registers,
9473 i386bsd_store_inferior_registers) Use gdb_ptrace.
9474
1c0aa1fb
KR
94752020-03-17 Kamil Rytarowski <n54@gmx.com>
9476
9477 * amd64-bsd-nat.c (gdb_ptrace): New.
9478 * (amd64bsd_fetch_inferior_registers,
9479 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9480 * (amd64bsd_fetch_inferior_registers,
9481 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9482
5ccd2fb7
KR
94832020-03-17 Kamil Rytarowski <n54@gmx.com>
9484
9485 * user-regs.c (user_reg::read): Rename to...
9486 (user_reg::xread): ...this.
9487 * (append_user_reg): Rename argument `read' to `xread'.
9488 * (user_reg_add_builtin): Likewise.
9489 * (user_reg_add): Likewise.
9490 * (value_of_user_reg): Likewise.
9491
2108a63a
KR
94922020-03-17 Kamil Rytarowski <n54@gmx.com>
9493
9494 * sparc-nat.c (gdb_ptrace): New.
9495 * sparc-nat.c (sparc_fetch_inferior_registers)
9496 (sparc_store_inferior_registers) Remove obsolete comment.
9497 * sparc-nat.c (sparc_fetch_inferior_registers)
9498 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9499 * sparc-nat.c (sparc_fetch_inferior_registers)
9500 (sparc_store_inferior_registers) Use gdb_ptrace.
9501
a225c9a8
KR
95022020-03-17 Kamil Rytarowski <n54@gmx.com>
9503
9504 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9505 it to the ptrace call.
9506 * sh-nbsd-nat.c (store_registers): Likewise.
9507
98097623
KR
95082020-03-17 Kamil Rytarowski <n54@gmx.com>
9509
9510 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9511 nbsd_nat_target instead of inf_ptrace_target.
9512 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9513 nbsd_nat_target.
9514
9e38d619
KR
95152020-03-17 Kamil Rytarowski <n54@gmx.com>
9516
9517 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9518
a2ecbe9f
KR
95192020-03-17 Kamil Rytarowski <n54@gmx.com>
9520
9521 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9522 <sys/sysctl.h>.
9523 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9524
58990295
TV
95252020-03-17 Tom de Vries <tdevries@suse.de>
9526
9527 PR gdb/23710
9528 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9529 fields.
9530 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9531 fields.
9532 (process_imported_unit_die): Skip import of c++ CUs.
9533
771dd3a8
TT
95342020-03-16 Tom Tromey <tom@tromey.com>
9535
9536 * p-valprint.c (pascal_object_print_value): Initialize
9537 base_value.
9538
817a7585
AK
95392020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9540 Shahab Vahedi <shahab@synopsys.com>
9541
9542 * Makefile.in: Add arch/arc.o
9543 * configure.tgt: Likewise.
9544 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9545 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9546 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9547 * arc-tdep.h (arc_read_description): Add proto type.
9548 * arch/arc.c: New file.
9549 * arch/arc.h: Likewise.
9550 * features/Makefile: Replace old target descriptions with new.
9551 * features/arc-arcompact.c: Remove.
9552 * features/arc-arcompact.xml: Likewise.
9553 * features/arc-v2.c: Likewise
9554 * features/arc-v2.xml: Likewise
9555 * features/arc/aux-arcompact.xml: New file.
9556 * features/arc/aux-v2.xml: Likewise.
9557 * features/arc/core-arcompact.xml: Likewise.
9558 * features/arc/core-v2.xml: Likewise.
9559 * features/arc/aux-arcompact.c: Generate.
9560 * features/arc/aux-v2.c: Likewise.
9561 * features/arc/core-arcompact.c: Likewise.
9562 * features/arc/core-v2.c: Likewise.
9563 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9564
67430cd0
TT
95652020-03-16 Tom Tromey <tromey@adacore.com>
9566
9567 PR gdb/25663:
9568 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9569 putting value into bcache.
9570
30efb6c7
SM
95712020-03-16 Simon Marchi <simon.marchi@efficios.com>
9572
9573 PR gdb/21500
9574 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9575 to...
9576 (amd64_windows_init_abi_common): ... this. Don't set size of
9577 long type.
9578 (amd64_windows_init_abi): New function.
9579 (amd64_cygwin_init_abi): New function.
9580 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9581 the Cygwin OS ABI.
9582 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9583 comment.
9584
8db52437
SM
95852020-03-16 Simon Marchi <simon.marchi@efficios.com>
9586
9587 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9588 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9589 (pe_import_directory_entry): New struct type.
9590 (is_linked_with_cygwin_dll): New function.
9591 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9592 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9593 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9594
5982a56a
SM
95952020-03-16 Simon Marchi <simon.marchi@efficios.com>
9596
9597 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9598 i386_cygwin_core_osabi_sniffer.
9599
7a1998df
SM
96002020-03-16 Simon Marchi <simon.marchi@efficios.com>
9601
9602 * i386-cygwin-tdep.c: Rename to...
9603 * i386-windows-tdep.c: ... this.
9604 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9605 i386-windows-tdep.c.
9606 * configure.tgt: Likewise.
9607
053205cc
SM
96082020-03-16 Simon Marchi <simon.marchi@efficios.com>
9609
9610 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9611 * osabi.c (gdb_osabi_names): Add "Windows".
9612 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9613 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9614 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9615 i386_cygwin_osabi_sniffer.
9616 (_initialize_i386_cygwin_tdep): Register OS ABI
9617 GDB_OSABI_WINDOWS for i386.
9618 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9619 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9620 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9621 for x86-64.
9622 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9623 when the target matches '*-*-mingw*'.
9624
fe4b2ee6
SM
96252020-03-16 Simon Marchi <simon.marchi@efficios.com>
9626
9627 * defs.h (enum gdb_osabi): Move to...
9628 * osabi.h (enum gdb_osabi): ... here.
9629 * gdbarch.sh: Include osabi.h in gdbarch.h.
9630 * gdbarch.h: Re-generate.
9631
cb9b645d
SM
96322020-03-16 Simon Marchi <simon.marchi@efficios.com>
9633
9634 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9635 function.
9636 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9637
3293bbaf
TT
96382020-03-14 Tom Tromey <tom@tromey.com>
9639
9640 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9641 for C++.
9642 (c_type_print_modifier): Likewise. Add "language" parameter.
9643 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9644 (c_type_print_base_1): Update.
9645 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9646 constants.
9647 * type-stack.c (type_stack::insert): Handle tp_atomic and
9648 tp_restrict.
9649 (type_stack::follow_type_instance_flags): Likewise.
9650 (type_stack::follow_types): Likewise. Merge type-following code.
9651 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9652 (space_identifier, cv_with_space_id)
9653 (const_or_volatile_or_space_identifier_noopt)
9654 (const_or_volatile_or_space_identifier): Remove.
9655 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9656 rules.
9657 (ptr_operator, typebase): Update.
9658 (enum token_flag) <FLAG_C>: New constant.
9659 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9660 "_Atomic".
9661 (lex_one_token): Handle FLAG_C.
9662
154151a6
KR
96632020-03-14 Kamil Rytarowski <n54@gmx.com>
9664
9665 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9666 it to the ptrace call.
9667 * m68k-bsd-nat.c (store_registers): Likewise.
9668
bc107784
KR
96692020-03-14 Kamil Rytarowski <n54@gmx.com>
9670
9671 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9672 gdb_byte *.
9673 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9674 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9675 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9676
01a80117
KR
96772020-03-14 Kamil Rytarowski <n54@gmx.com>
9678
9679 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9680 nbsd_nat_target instead of inf_ptrace_target.
9681 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9682 nbsd_nat_target.
9683
f90280ca
KR
96842020-03-14 Kamil Rytarowski <n54@gmx.com>
9685
9686 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9687 register_t.
9688
6def66f1
KR
96892020-03-14 Kamil Rytarowski <n54@gmx.com>
9690
9691 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9692 it to the ptrace call.
9693 * alpha-bsd-nat.c (store_registers): Likewise.
9694
66eaca97
KR
96952020-03-14 Kamil Rytarowski <n54@gmx.com>
9696
9697 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9698 includes.
9699 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9700 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9701 fill_fpregset): Likewise.
9702
4fed520b
KR
97032020-03-14 Kamil Rytarowski <n54@gmx.com>
9704
9705 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9706 nbsd_nat_target instead of inf_ptrace_target.
9707 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9708 nbsd_nat_target.
9709
2190cf06
KR
97102020-03-14 Kamil Rytarowski <n54@gmx.com>
9711
9712 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9713 register_t.
9714
75c56d3d
KR
97152020-03-14 Kamil Rytarowski <n54@gmx.com>
9716
9717 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9718 it to the ptrace call.
9719 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9720 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9721 * arm-nbsd-nat.c (store_register): Likewise.
9722 * arm-nbsd-nat.c (store_regs): Likewise.
9723 * arm-nbsd-nat.c (store_fp_register): Likewise.
9724 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9725
6018d381
KR
97262020-03-14 Kamil Rytarowski <n54@gmx.com>
9727
9728 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9729 nbsd_nat_target instead of inf_ptrace_target.
9730 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9731 nbsd_nat_target.
9732
013f99f0
KR
97332020-03-14 Kamil Rytarowski <n54@gmx.com>
9734
9735 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9736 it to the ptrace call.
9737 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9738
12753073
KR
97392020-03-14 Kamil Rytarowski <n54@gmx.com>
9740
6227b330
KR
9741 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9742 it to the ptrace call.
9743 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9744
97452020-03-14 Kamil Rytarowski <n54@gmx.com>
9746
9747 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9748 gdb_byte *.
12753073
KR
9749 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9750
d5be5fa4
KR
97512020-03-14 Kamil Rytarowski <n54@gmx.com>
9752
9753 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9754 instead of inf_ptrace_target.
9755 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9756 nbsd_nat_target.
9757
8110f842
KR
97582020-03-14 Kamil Rytarowski <n54@gmx.com>
9759
9760 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9761 register_t.
9762
52feded7
KR
97632020-03-14 Kamil Rytarowski <n54@gmx.com>
9764
9765 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9766 register_t.
9767
25567eee
KR
97682020-03-14 Kamil Rytarowski <n54@gmx.com>
9769
9770 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9771 register_t.
9772
426a9c18
TT
97732020-03-13 Tom Tromey <tom@tromey.com>
9774
9775 * value.h (val_print): Don't declare.
9776 * valprint.h (val_print_array_elements)
9777 (val_print_scalar_formatted, generic_val_print): Don't declare.
9778 * valprint.c (generic_val_print_array): Take a struct value.
9779 (generic_val_print_ptr, generic_val_print_memberptr)
9780 (generic_val_print_bool, generic_val_print_int)
9781 (generic_val_print_char, generic_val_print_complex)
9782 (generic_val_print): Remove.
9783 (generic_value_print): Update.
9784 (do_val_print): Remove unused parameters. Don't call
9785 la_val_print.
9786 (val_print): Remove.
9787 (common_val_print): Update. Don't call value_check_printable.
9788 (val_print_scalar_formatted, val_print_array_elements): Remove.
9789 * rust-lang.c (rust_val_print): Remove.
9790 (rust_language_defn): Update.
9791 * p-valprint.c (pascal_val_print): Remove.
9792 (pascal_value_print_inner): Update.
9793 (pascal_object_print_val_fields, pascal_object_print_val):
9794 Remove.
9795 (pascal_object_print_static_field): Update.
9796 * p-lang.h (pascal_val_print): Don't declare.
9797 * p-lang.c (pascal_language_defn): Update.
9798 * opencl-lang.c (opencl_language_defn): Update.
9799 * objc-lang.c (objc_language_defn): Update.
9800 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9801 * m2-lang.h (m2_val_print): Don't declare.
9802 * m2-lang.c (m2_language_defn): Update.
9803 * language.h (struct language_defn) <la_val_print>: Remove.
9804 * language.c (unk_lang_value_print_inner): Rename. Change
9805 argument types.
9806 (unknown_language_defn, auto_language_defn): Update.
9807 * go-valprint.c (go_val_print): Remove.
9808 * go-lang.h (go_val_print): Don't declare.
9809 * go-lang.c (go_language_defn): Update.
9810 * f-valprint.c (f_val_print): Remove.
9811 * f-lang.h (f_value_print): Don't declare.
9812 * f-lang.c (f_language_defn): Update.
9813 * d-valprint.c (d_val_print): Remove.
9814 * d-lang.h (d_value_print): Don't declare.
9815 * d-lang.c (d_language_defn): Update.
9816 * cp-valprint.c (cp_print_value_fields)
9817 (cp_print_value_fields_rtti, cp_print_value): Remove.
9818 (cp_print_static_field): Update.
9819 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9820 (c_val_print_struct, c_val_print_union, c_val_print_int)
9821 (c_val_print_memberptr, c_val_print): Remove.
9822 * c-lang.h (c_val_print_array, cp_print_value_fields)
9823 (cp_print_value_fields_rtti): Don't declare.
9824 * c-lang.c (c_language_defn, cplus_language_defn)
9825 (asm_language_defn, minimal_language_defn): Update.
9826 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9827 (ada_val_print_enum): Take a struct value.
9828 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9829 (ada_val_print): Remove.
9830 (ada_value_print_1): Update.
9831 (printable_val_type): Remove.
9832 * ada-lang.h (ada_val_print): Don't declare.
9833 * ada-lang.c (ada_language_defn): Update.
9834
42331a1e
TT
98352020-03-13 Tom Tromey <tom@tromey.com>
9836
9837 * valprint.c (do_val_print): Update.
9838 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9839 a struct value.
9840 (value_to_value_object_no_release): Declare.
9841 * python/py-value.c (value_to_value_object_no_release): New
9842 function.
9843 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9844 struct value.
9845 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9846 function.
9847 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9848 a struct value.
9849 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9850 Declare.
9851 (gdbscm_apply_val_pretty_printer): Take a struct value.
9852 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9853 value.
9854 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9855 value.
9856 * extension-priv.h (struct extension_language_ops)
9857 <apply_val_pretty_printer>: Take a struct value.
9858 * cp-valprint.c (cp_print_value): Create a struct value.
9859 (cp_print_value): Update.
9860
3a916a97
TT
98612020-03-13 Tom Tromey <tom@tromey.com>
9862
9863 * ada-valprint.c (print_field_values): Call common_val_print.
9864
b59eac37
TT
98652020-03-13 Tom Tromey <tom@tromey.com>
9866
9867 * ada-valprint.c (val_print_packed_array_elements): Remove
9868 bitoffset and val parameters. Call common_val_print.
9869 (ada_val_print_string): Remove offset, address, and original_value
9870 parameters.
9871 (ada_val_print_array): Update.
9872 (ada_value_print_array): New function.
9873 (ada_value_print_1): Call it.
9874
03371129
TT
98752020-03-13 Tom Tromey <tom@tromey.com>
9876
9877 * ada-valprint.c (ada_value_print): Use common_val_print.
9878
2e088f8b
TT
98792020-03-13 Tom Tromey <tom@tromey.com>
9880
9881 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9882
39ef85a8
TT
98832020-03-13 Tom Tromey <tom@tromey.com>
9884
9885 * ada-valprint.c (ada_value_print_num): New function.
9886 (ada_value_print_1): Use it.
9887
b9fa6e07
TT
98882020-03-13 Tom Tromey <tom@tromey.com>
9889
9890 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9891
416595d6
TT
98922020-03-13 Tom Tromey <tom@tromey.com>
9893
9894 * ada-valprint.c (ada_value_print_ptr): New function.
9895 (ada_value_print_1): Use it.
9896
5b5e15ec
TT
98972020-03-13 Tom Tromey <tom@tromey.com>
9898
9899 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9900 call common_val_print.
9901 (ada_val_print_1): Update.
9902 (ada_value_print_1): New function.
9903 (ada_value_print_inner): Rewrite.
9904
fbf54e75
TT
99052020-03-13 Tom Tromey <tom@tromey.com>
9906
9907 * cp-valprint.c (cp_print_value_fields): Update.
9908 (cp_print_value): New function.
9909
64b653ca
TT
99102020-03-13 Tom Tromey <tom@tromey.com>
9911
9912 * m2-valprint.c (m2_value_print_inner): Use
9913 cp_print_value_fields.
9914 * cp-valprint.c (cp_print_value_fields): New function.
9915 * c-valprint.c (c_value_print_struct): New function.
9916 (c_value_print_inner): Use c_value_print_struct.
9917 * c-lang.h (cp_print_value_fields): Declare.
9918
6999f067
TT
99192020-03-13 Tom Tromey <tom@tromey.com>
9920
9921 * c-valprint.c (c_value_print_array): New function.
9922 (c_value_print_inner): Use it.
9923
ce80b8bd
TT
99242020-03-13 Tom Tromey <tom@tromey.com>
9925
9926 * c-valprint.c (c_value_print_memberptr): New function.
9927 (c_value_print_inner): Use it.
9928
2faac269
TT
99292020-03-13 Tom Tromey <tom@tromey.com>
9930
9931 * c-valprint.c (c_value_print_int): New function.
9932 (c_value_print_inner): Use it.
9933
da3e2c29
TT
99342020-03-13 Tom Tromey <tom@tromey.com>
9935
9936 * c-valprint.c (c_value_print_ptr): New function.
9937 (c_value_print_inner): Use it.
9938
50836231
TT
99392020-03-13 Tom Tromey <tom@tromey.com>
9940
9941 * c-valprint.c (c_value_print_inner): Rewrite.
9942
4f412b6e
TT
99432020-03-13 Tom Tromey <tom@tromey.com>
9944
9945 * valprint.c (generic_value_print_complex): New function.
9946 (generic_value_print): Use it.
9947
f5354008
TT
99482020-03-13 Tom Tromey <tom@tromey.com>
9949
9950 * valprint.c (generic_val_print_float): Don't call
9951 val_print_scalar_formatted.
9952 (generic_val_print, generic_value_print): Update.
9953
3eec3b05
TT
99542020-03-13 Tom Tromey <tom@tromey.com>
9955
9956 * valprint.c (generic_value_print_char): New function
9957 (generic_value_print): Use it.
9958
fdddfccb
TT
99592020-03-13 Tom Tromey <tom@tromey.com>
9960
9961 * valprint.c (generic_value_print_int): New function.
9962 (generic_value_print): Use it.
9963
6dde7521
TT
99642020-03-13 Tom Tromey <tom@tromey.com>
9965
9966 * valprint.c (generic_value_print_bool): New function.
9967 (generic_value_print): Use it.
9968
4112d2e6
TT
99692020-03-13 Tom Tromey <tom@tromey.com>
9970
9971 * valprint.c (generic_val_print_func): Simplify.
9972 (generic_val_print, generic_value_print): Update.
9973
65786af6
TT
99742020-03-13 Tom Tromey <tom@tromey.com>
9975
9976 * valprint.c (generic_val_print_flags): Remove.
9977 (generic_val_print, generic_value_print): Update.
9978 (val_print_type_code_flags): Add original_value parameter.
9979
40f3ce18
TT
99802020-03-13 Tom Tromey <tom@tromey.com>
9981
9982 * valprint.c (generic_val_print): Update.
9983 (generic_value_print): Update.
9984 * valprint.c (generic_val_print_enum): Don't call
9985 val_print_scalar_formatted.
9986
2a5b130b
TT
99872020-03-13 Tom Tromey <tom@tromey.com>
9988
9989 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9990 * valprint.c (generic_value_print_ptr): New function.
9991
abc66ce9
TT
99922020-03-13 Tom Tromey <tom@tromey.com>
9993
9994 * valprint.c (generic_value_print): Rewrite.
9995
07a32858
TT
99962020-03-13 Tom Tromey <tom@tromey.com>
9997
9998 * p-valprint.c (pascal_object_print_value_fields)
9999 (pascal_object_print_value): New functions.
10000
64d64d3a
TT
100012020-03-13 Tom Tromey <tom@tromey.com>
10002
10003 * p-valprint.c (pascal_value_print_inner): Rewrite.
10004
6a95a1f5
TT
100052020-03-13 Tom Tromey <tom@tromey.com>
10006
10007 * f-valprint.c (f_value_print_innner): Rewrite.
10008
59fcdac6
TT
100092020-03-13 Tom Tromey <tom@tromey.com>
10010
10011 * m2-valprint.c (m2_print_unbounded_array): New overload.
10012 (m2_print_unbounded_array): Update.
10013 (m2_print_array_contents): Take a struct value.
10014 (m2_value_print_inner): Rewrite.
10015
d133c3e1
TT
100162020-03-13 Tom Tromey <tom@tromey.com>
10017
10018 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10019 (d_value_print_inner): New function.
10020 * d-lang.h (d_value_print_inner): Declare.
10021 * d-lang.c (d_language_defn): Use d_value_print_inner.
10022
23b0f06b
TT
100232020-03-13 Tom Tromey <tom@tromey.com>
10024
10025 * go-valprint.c (go_value_print_inner): New function.
10026 * go-lang.h (go_value_print_inner): Declare.
10027 * go-lang.c (go_language_defn): Use go_value_print_inner.
10028
5f56f7cb
TT
100292020-03-13 Tom Tromey <tom@tromey.com>
10030
10031 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10032 API.
10033 (rust_val_print): Rewrite.
10034 (rust_value_print_inner): New function, from rust_val_print.
10035 (rust_language_defn): Use rust_value_print_inner.
10036
26792ee0
TT
100372020-03-13 Tom Tromey <tom@tromey.com>
10038
10039 * ada-valprint.c (ada_value_print_inner): New function.
10040 * ada-lang.h (ada_value_print_inner): Declare.
10041 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10042
24051bbe
TT
100432020-03-13 Tom Tromey <tom@tromey.com>
10044
10045 * f-valprint.c (f_value_print_innner): New function.
10046 * f-lang.h (f_value_print_innner): Declare.
10047 * f-lang.c (f_language_defn): Use f_value_print_innner.
10048
c0941be6
TT
100492020-03-13 Tom Tromey <tom@tromey.com>
10050
10051 * p-valprint.c (pascal_value_print_inner): New function.
10052 * p-lang.h (pascal_value_print_inner): Declare.
10053 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10054
62c4663d
TT
100552020-03-13 Tom Tromey <tom@tromey.com>
10056
10057 * m2-valprint.c (m2_value_print_inner): New function.
10058 * m2-lang.h (m2_value_print_inner): Declare.
10059 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10060
62182190
TT
100612020-03-13 Tom Tromey <tom@tromey.com>
10062
10063 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10064 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10065 * c-valprint.c (c_value_print_inner): New function.
10066 * c-lang.h (c_value_print_inner): Declare.
10067 * c-lang.c (c_language_defn, cplus_language_defn)
10068 (asm_language_defn, minimal_language_defn): Use
10069 c_value_print_inner.
10070
1e592a8a
TT
100712020-03-13 Tom Tromey <tom@tromey.com>
10072
10073 * p-valprint.c (pascal_object_print_value_fields): Now static.
10074 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10075
7fe471e9
TT
100762020-03-13 Tom Tromey <tom@tromey.com>
10077
10078 * c-valprint.c (c_val_print_array): Simplify.
10079
d121c6ce
TT
100802020-03-13 Tom Tromey <tom@tromey.com>
10081
10082 * valprint.c (value_print_array_elements): New function.
10083 * valprint.h (value_print_array_elements): Declare.
10084
4dba70ee
TT
100852020-03-13 Tom Tromey <tom@tromey.com>
10086
10087 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10088 * mips-tdep.c (mips_print_register): Use
10089 value_print_scalar_formatted.
10090
4f9ae810
TT
100912020-03-13 Tom Tromey <tom@tromey.com>
10092
10093 * valprint.h (value_print_scalar_formatted): Declare.
10094 * valprint.c (value_print_scalar_formatted): New function.
10095
156bfec9
TT
100962020-03-13 Tom Tromey <tom@tromey.com>
10097
10098 * valprint.h (generic_value_print): Declare.
10099 * valprint.c (generic_value_print): New function.
10100
2b4e573d
TT
101012020-03-13 Tom Tromey <tom@tromey.com>
10102
10103 * valprint.c (do_val_print): Call la_value_print_inner, if
10104 available.
10105 * rust-lang.c (rust_language_defn): Update.
10106 * p-lang.c (pascal_language_defn): Update.
10107 * opencl-lang.c (opencl_language_defn): Update.
10108 * objc-lang.c (objc_language_defn): Update.
10109 * m2-lang.c (m2_language_defn): Update.
10110 * language.h (struct language_defn) <la_value_print_inner>: New
10111 member.
10112 * language.c (unknown_language_defn, auto_language_defn): Update.
10113 * go-lang.c (go_language_defn): Update.
10114 * f-lang.c (f_language_defn): Update.
10115 * d-lang.c (d_language_defn): Update.
10116 * c-lang.c (c_language_defn, cplus_language_defn)
10117 (asm_language_defn, minimal_language_defn): Update.
10118 * ada-lang.c (ada_language_defn): Update.
10119
a1f6a07c
TT
101202020-03-13 Tom Tromey <tom@tromey.com>
10121
10122 * c-valprint.c (c_value_print): Use common_val_print.
10123
410cf315
TT
101242020-03-13 Tom Tromey <tom@tromey.com>
10125
10126 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10127
72a45c93
TT
101282020-03-13 Tom Tromey <tom@tromey.com>
10129
10130 * f-valprint.c (f77_print_array_1, f_val_print): Use
10131 common_val_print.
10132
040f66bd
TT
101332020-03-13 Tom Tromey <tom@tromey.com>
10134
10135 * riscv-tdep.c (riscv_print_one_register_info): Use
10136 common_val_print.
10137
a6e05a6c
TT
101382020-03-13 Tom Tromey <tom@tromey.com>
10139
10140 * mi/mi-main.c (output_register): Use common_val_print.
10141
3444c526
TT
101422020-03-13 Tom Tromey <tom@tromey.com>
10143
10144 * infcmd.c (default_print_one_register_info): Use
10145 common_val_print.
10146
c2a44efe
TT
101472020-03-13 Tom Tromey <tom@tromey.com>
10148
10149 * valprint.h (common_val_print_checked): Declare.
10150 * valprint.c (common_val_print_checked): New function.
10151 * stack.c (print_frame_arg): Use common_val_print_checked.
10152
b0c26e99
TT
101532020-03-13 Tom Tromey <tom@tromey.com>
10154
10155 * valprint.c (do_val_print): New function, from val_print.
10156 (val_print): Use do_val_print.
10157 (common_val_print): Use do_val_print.
10158
ce3acbe9
TT
101592020-03-13 Tom Tromey <tom@tromey.com>
10160
10161 * valprint.c (value_print): Use scoped_value_mark.
10162
96c7f873
TV
101632020-03-13 Tom de Vries <tdevries@suse.de>
10164
10165 PR symtab/25646
10166 * psymtab.c (partial_symtab::partial_symtab): Don't set
10167 globals_offset and statics_offset. Push element onto
10168 current_global_psymbols and current_static_psymbols stacks.
10169 (concat): New function.
10170 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10171 element from current_global_psymbols and current_static_psymbols
10172 stacks. Concat popped elements to global_psymbols and
10173 static_symbols.
10174 (add_psymbol_to_list): Use current_global_psymbols and
10175 current_static_psymbols stacks.
10176 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10177 current_static_psymbols fields.
10178
6ba0a321
CB
101792020-03-12 Christian Biesinger <cbiesinger@google.com>
10180
10181 * corelow.c (sniff_core_bfd): Remove.
10182 (class core_target) <m_core_vec>: Remove.
10183 (core_target::core_target): Update.
10184 (core_file_fns): Remove.
10185 (deprecated_add_core_fns): Remove.
10186 (default_core_sniffer): Remove.
10187 (sniff_core_bfd): Remove.
10188 (default_check_format): Remove.
10189 (gdb_check_format): Remove.
10190 (core_target_open): Update.
10191 (core_target::get_core_register_section): Update.
10192 (get_core_registers_cb): Update.
10193 (core_target::fetch_registers): Update.
10194 * gdbcore.h (struct core_fns): Remove.
10195 (deprecated_add_core_fns): Remove.
10196 (default_core_sniffer): Remove.
10197 (default_check_format): Remove.
10198
227031b2
TT
101992020-03-12 Tom Tromey <tom@tromey.com>
10200
10201 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10202 CORE_ADDR.
10203 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10204
53807e9f
TT
102052020-03-12 Tom Tromey <tom@tromey.com>
10206
10207 * remote.c (remote_target::download_tracepoint)
10208 (remote_target::enable_tracepoint)
10209 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10210 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10211 sprintf_vma.
10212
64f25102
TT
102132020-03-12 Tom Tromey <tom@tromey.com>
10214
10215 * symfile-mem.c: Update CORE_ADDR size assert.
10216
272cd5a3
SM
102172020-03-12 Simon Marchi <simon.marchi@efficios.com>
10218
10219 * selftest.m4: Move to gdbsupport/.
10220 * acinclude.m4: Update path to selftest.m4.
10221
74cd3f9d
SM
102222020-03-12 Simon Marchi <simon.marchi@efficios.com>
10223
10224 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10225 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10226 gdbarch-selfselftests.c and selftest-arch.c.
10227 (SUBDIR_UNITTESTS_OBS): Rename to...
10228 (SELFTESTS_OBS): ... this.
10229 (COMMON_SFILES): Remove disasm-selftests.c and
10230 gdbarch-selftests.c.
10231 * configure.ac: Don't add selftest-arch.{c,o} to
10232 CONFIG_{SRCS,OBS}.
10233 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10234 preprocessor conditions.
10235
db6878ac
SM
102362020-03-12 Simon Marchi <simon.marchi@efficios.com>
10237
10238 * configure.ac: Don't source bfd/development.sh.
10239 * selftest.m4: Modify comment.
10240 * configure: Re-generate.
10241
4d696a5c
SM
102422020-03-12 Simon Marchi <simon.marchi@efficios.com>
10243
10244 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10245 not "true" or "false".
10246 * configure: Re-generate.
10247
8dd8e1c7
CB
102482020-03-12 Christian Biesinger <cbiesinger@google.com>
10249
10250 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10251 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10252 renamed to arm_nbsd_supply_gregset.
10253 (fetch_register): Update to call arm_nbsd_supply_gregset.
10254 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10255 (arm_netbsd_nat_target::fetch_registers): Update.
10256 (fetch_elfcore_registers): Removed.
10257 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10258 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10259 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10260 not require NetBSD system headers.
10261 (arm_nbsd_regset): New struct.
10262 (arm_nbsd_iterate_over_regset_sections): New function.
10263 (arm_netbsd_init_abi_common): Updated to call
10264 set_gdbarch_iterate_over_regset_sections.
10265 * arm-nbsd-tdep.h: New file.
10266
dd69bf7a
KB
102672020-03-11 Kevin Buettner <kevinb@redhat.com>
10268
10269 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10270 recursion.
10271
a0761e34
SM
102722020-03-11 Simon Marchi <simon.marchi@efficios.com>
10273
10274 * configure: Re-generate.
10275
e7a82140
TT
102762020-03-11 Tom Tromey <tromey@adacore.com>
10277
10278 * ada-typeprint.c (print_choices): Fix comment.
10279
dcc050c8
AB
102802020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10281
10282 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10283 previous item in the list, when the list has no items.
10284
1c33af77
TV
102852020-03-11 Tom de Vries <tdevries@suse.de>
10286
10287 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10288 PROP_LOCLIST handling code.
10289
8c95582d
AB
102902020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10291
10292 * buildsym-legacy.c (record_line): Pass extra parameter to
10293 record_line.
10294 * buildsym.c (buildsym_compunit::record_line): Take an extra
10295 parameter, reduce duplication in the line table, and record the
10296 is_stmt flag in the line table.
10297 * buildsym.h (buildsym_compunit::record_line): Add extra
10298 parameter.
10299 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10300 non-statement lines.
10301 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10302 this to the symtab builder.
10303 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10304 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10305 through to dwarf_record_line_1.
10306 * infrun.c (process_event_stop_test): When stepping, don't stop at
10307 a non-statement instruction, and only refresh the step info when
10308 we land in the middle of a line's range. Also add an extra
10309 comment.
10310 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10311 field.
10312 * record-btrace.c (btrace_find_line_range): Only record lines
10313 marked as is-statement.
10314 * stack.c (frame_show_address): Show the frame address if we are
10315 in a non-statement sal.
10316 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10317 (maintenance_print_one_line_table): Print a header for the is_stmt
10318 column, and include is_stmt information in the output.
10319 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10320 preference to non-statements.
10321 (find_pcs_for_symtab_line): Prefer is-statement entries.
10322 (find_line_common): Likewise.
10323 * symtab.h (struct linetable_entry): Add is_stmt field.
10324 (struct symtab_and_line): Likewise.
10325 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10326 arranging the line table.
10327
e4003a34
TV
103282020-03-07 Tom de Vries <tdevries@suse.de>
10329
10330 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10331 DIE.
10332
e8932576
TT
103332020-03-07 Tom Tromey <tom@tromey.com>
10334
10335 * valops.c (value_literal_complex): Remove obsolete comment.
10336 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10337 comment.
10338
29734269
SM
103392020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10340
10341 * infrun.h: Forward-declare thread_info.
10342 (set_step_info): Add thread_info parameter, add doc.
10343 * infrun.c (set_step_info): Add thread_info parameter, move doc
10344 to header.
10345 * infrun.c (process_event_stop_test): Pass thread to
10346 set_step_info call.
10347 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10348 set_step_info.
10349 (prepare_one_step): Add thread_info parameter, pass it to
10350 set_step_frame and prepare_one_step (recursive) call.
10351 (step_1): Pass thread to prepare_one_step call.
10352 (step_command_fsm::should_stop): Pass thread to
10353 prepare_one_step.
10354 (until_next_fsm): Pass thread to set_step_frame call.
10355 (finish_command): Pass thread to set_step_info call.
10356
b7d64b29
HD
103572020-03-06 Hannes Domani <ssbssa@yahoo.de>
10358
10359 * windows-tdep.c (windows_solib_create_inferior_hook):
10360 Check if inferior is running.
10361
09f2921c
TV
103622020-03-06 Tom de Vries <tdevries@suse.de>
10363
10364 * NEWS: Fix "the the".
10365 * ctfread.c: Same.
10366
fd760e79
TV
103672020-03-06 Tom de Vries <tdevries@suse.de>
10368
10369 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10370
20ea4a60
AB
103712020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10372
10373 * .dir-locals.el: Add a comment referencing the other copies of
10374 this file.
10375
0afbabf0
JB
103762020-03-05 John Baldwin <jhb@FreeBSD.org>
10377
10378 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10379 psargs.
10380
842806cb
TBA
103812020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10382
10383 * .gitattributes: New file.
10384
be1e3d3e
TT
103852020-03-04 Tom Tromey <tom@tromey.com>
10386
10387 * symmisc.c (print_symbol_bcache_statistics)
10388 (print_objfile_statistics): Update.
10389 * symfile.c (allocate_symtab): Use intern.
10390 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10391 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10392 macro_cache>: Remove.
10393 <string_cache>: New member.
10394 (struct objfile) <intern>: New methods.
10395 * elfread.c (elf_symtab_read): Use intern.
10396 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10397 (dwarf2_compute_name, dwarf2_physname)
10398 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10399 names.
10400 (guess_partial_die_structure_name): Update.
10401 (partial_die_info::fixup): Intern name.
10402 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10403 name.
10404 (dwarf2_name): Intern name. Update.
10405 * buildsym.c (buildsym_compunit::get_macro_table): Use
10406 string_cache.
10407
4e7625fd
TT
104082020-03-04 Tom Tromey <tom@tromey.com>
10409
10410 * jit.c (bfd_open_from_target_memory): Make "target" const.
10411 * corefile.c (gnutarget): Now const.
10412 * gdbcore.h (gnutarget): Now const.
10413
46f9f931
HD
104142020-03-04 Hannes Domani <ssbssa@yahoo.de>
10415
10416 * NEWS: Mention support for WOW64 processes.
10417 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10418 (amd64_windows_segment_register_p): Remove static.
10419 (_initialize_amd64_windows_nat): Update.
10420 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10421 * i386-windows-nat.c (context_offset): Update.
10422 (i386_mappings): Rename and remove static.
10423 (i386_windows_segment_register_p): Remove static.
10424 (_initialize_i386_windows_nat): Update.
10425 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10426 (STATUS_WX86_SINGLE_STEP): New macro.
10427 (EnumProcessModulesEx): New macro.
10428 (Wow64SuspendThread): New macro.
10429 (Wow64GetThreadContext): New macro.
10430 (Wow64SetThreadContext): New macro.
10431 (Wow64GetThreadSelectorEntry): New macro.
10432 (windows_set_context_register_offsets): Add static.
10433 (windows_set_segment_register_p): Likewise.
10434 (windows_add_thread): Adapt for WOW64 processes.
10435 (windows_fetch_one_register): Likewise.
10436 (windows_nat_target::fetch_registers): Likewise.
10437 (windows_store_one_register): Likewise.
10438 (display_selector): Likewise.
10439 (display_selectors): Likewise.
10440 (handle_exception): Likewise.
10441 (windows_continue): Likewise.
10442 (windows_nat_target::resume): Likewise.
10443 (windows_add_all_dlls): Likewise.
10444 (do_initial_windows_stuff): Likewise.
10445 (windows_nat_target::attach): Likewise.
10446 (windows_get_exec_module_filename): Likewise.
10447 (windows_nat_target::create_inferior): Likewise.
10448 (windows_xfer_siginfo): Likewise.
10449 (_initialize_loadable): Initialize Wow64SuspendThread,
10450 Wow64GetThreadContext, Wow64SetThreadContext,
10451 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10452 * windows-nat.h (windows_set_context_register_offsets):
10453 Remove declaration.
10454 (windows_set_segment_register_p): Likewise.
10455 (i386_windows_segment_register_p): Add declaration.
10456 (amd64_windows_segment_register_p): Likewise.
10457
440cf44e
LM
104582020-03-04 Luis Machado <luis.machado@linaro.org>
10459
10460 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10461 in "info registers" for AArch64/ARM.
10462
10463 The change caused "info registers" to not print GPR's.
10464
10465 gdb/ChangeLog:
10466
10467 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10468
10469 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10470 when reg->group is empty and reggroup is not.
10471
1009d92f
TT
104722020-03-03 Tom Tromey <tromey@adacore.com>
10473
10474 * dwarf2/frame.c (struct dwarf2_frame_cache)
10475 <checked_tailcall_bottom, entry_cfa_sp_offset,
10476 entry_cfa_sp_offset_p>: Remove members.
10477 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10478 (dwarf2_frame_prev_register): Don't call
10479 dwarf2_tailcall_sniffer_first.
10480 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10481 * frame-unwind.c (add_unwinder): New fuction.
10482 (frame_unwind_init): Use it. Add tailcall unwinder.
10483
5e5d66b6
AB
104842020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10485 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10486
10487 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10488 value should be printed as true.
10489
584cf46d
HD
104902020-03-03 Hannes Domani <ssbssa@yahoo.de>
10491
10492 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10493 (windows_init_abi): Set and use windows_so_ops.
10494
7b973adc
SDJ
104952020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10496
10497 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10498 when verifying if dealing with a convenience variable.
10499
bb7b70ab
LM
105002020-03-03 Luis Machado <luis.machado@linaro.org>
10501
10502 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10503
9822cb57
SM
105042020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10505
10506 * infrun.c (gdbarch_supports_displaced_stepping): New.
10507 (use_displaced_stepping): Break up conditions in smaller pieces.
10508 Use gdbarch_supports_displaced_stepping.
10509 (displaced_step_prepare_throw): Use
10510 gdbarch_supports_displaced_stepping.
10511
63e163f2
AB
105122020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10513
10514 * NEWS: Mention new behaviour of the history filename.
10515 * top.c (write_history_p): Add comment.
10516 (show_write_history_p): Add header comment, give a different
10517 message when history writing is on, but the history filename is
10518 empty.
10519 (history_filename): Add comment.
10520 (history_filename_empty): New function.
10521 (show_history_filename): Add header comment, give a different
10522 message when the filename is empty.
10523 (init_history): Compare history_filename against nullptr, and only
10524 read history if the filename is not empty.
10525 (set_history_filename): Add header comment, and only make
10526 non-empty filenames absolute.
10527 (init_main): Make the filename argument to 'set history filename'
10528 optional.
10529
81b86b97
CB
105302020-03-02 Christian Biesinger <cbiesinger@google.com>
10531
10532 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10533 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10534 (fetch_fp_register): Update.
10535 (fetch_fp_regs): Update.
10536 (store_fp_register): Update.
10537 (store_fp_regs): Update.
10538 (arm_netbsd_nat_target::read_description): New function.
10539 (fetch_elfcore_registers): Update.
10540
24ed6739
AB
105412020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10542
10543 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10544 general_thread if the stop reply is missing a thread-id.
10545 (remote_target::process_stop_reply): Use the first non-exited
10546 thread if the target didn't pass a thread-id.
10547 * infrun.c (do_target_wait): Move call to
10548 switch_to_inferior_no_thread to ....
10549 (do_target_wait_1): ... here.
10550
a84bb2a0
JT
105512020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10552
10553 * debuginfod-support.c: Include defs.h first.
10554
658dadf0
TV
105552020-02-28 Tom de Vries <tdevries@suse.de>
10556
10557 * symfile.c (set_initial_language): Use default language for lookup.
10558
4ebe4877
SM
105592020-02-28 Simon Marchi <simon.marchi@efficios.com>
10560
10561 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10562 reader variable, pass `this` to read_cutu_die_from_dwo.
10563
e5da1139
AM
105642020-02-27 Aaron Merey <amerey@redhat.com>
10565
10566 * source.c (open_source_file): Check for nullptr when computing
10567 srcpath.
10568
317f7127
TT
105692020-02-27 Tom Tromey <tromey@adacore.com>
10570
10571 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10572 member.
10573 (dwarf2_add_field): Don't update nfields.
10574 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10575
3104d9ee
AB
105762020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10577
10578 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10579 abs.
10580
b83470bf
TT
105812020-02-26 Tom Tromey <tom@tromey.com>
10582
10583 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10584 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10585 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10586 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10587 per_cu_data.
10588
edfe0a0c
TT
105892020-02-26 Tom Tromey <tom@tromey.com>
10590
10591 * dwarf2/index-write.c (psym_index_map): Change type.
10592 (add_address_entry_worker, write_one_signatured_type)
10593 (recursively_count_psymbols, recursively_write_psymbols)
10594 (class debug_names, psyms_seen_size, write_gdbindex)
10595 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10596
0d79cdc4
AM
105972020-02-26 Aaron Merey <amerey@redhat.com>
10598
10599 * Makefile.in: Handle optional debuginfod support.
10600 * NEWS: Update.
10601 * README: Add --with-debuginfod summary.
10602 * config.in: Regenerate.
10603 * configure: Regenerate.
10604 * configure.ac: Handle optional debuginfod support.
10605 * debuginfod-support.c: debuginfod helper functions.
10606 * debuginfod-support.h: Ditto.
10607 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10608 summary.
10609 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10610 when a dwz file cannot be found.
10611 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10612 debuginfo file cannot be found.
10613 * source.c (open_source_file): Query debuginfod servers when a
10614 source file cannot be found.
10615 * top.c (print_gdb_configuration): Include
10616 --{with,without}-debuginfod in the output.
10617
b65ce565
JG
106182020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10619
10620 * thread.c (thr_try_catch_cmd): Print thread name.
10621
d4c9a4f8
SM
106222020-02-26 Simon Marchi <simon.marchi@efficios.com>
10623
10624 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10625 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10626 dwarf2_fetch_die_type_sect_off): Move to...
10627 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10628 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10629 dwarf2_fetch_die_type_sect_off): ... here.
10630 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10631 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10632 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10633
0dce4280
TV
106342020-02-26 Tom de Vries <tdevries@suse.de>
10635
10636 PR gdb/25603
10637 * symfile.c (set_initial_language): Exit-early if
10638 language_mode == language_mode_manual.
10639
450a1bfc
SM
106402020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10641
10642 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10643 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10644 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10645
9e80cfa1
AB
106462020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10647
10648 * gdbtypes.c (create_array_type_with_stride): Handle negative
10649 array strides.
10650 * valarith.c (value_subscripted_rvalue): Likewise.
10651
09624f1f
LM
106522020-02-25 Luis Machado <luis.machado@linaro.org>
10653
10654 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10655
8cb5117c
SM
106562020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10657
10658 * loc.h (dwarf2_get_die_type): Move to...
10659 * read.h (dwarf2_get_die_type): ... here.
10660 * read.c (dwarf2_get_die_type): Move doc to header.
10661
c325c44e
JB
106622020-02-25 Joel Brobecker <brobecker@adacore.com>
10663
10664 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10665 'gnulib/Makefile.in' to the list.
10666
4ac93832
TT
106672020-02-24 Tom Tromey <tom@tromey.com>
10668
10669 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10670 Remove.
10671 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10672 XOBNEWVEC.
10673
197400e8
TT
106742020-02-24 Tom Tromey <tom@tromey.com>
10675
10676 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10677 New method.
10678 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10679 (dw2_do_instantiate_symtab, dw2_get_file_names)
10680 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10681
76935768
TT
106822020-02-24 Tom Tromey <tom@tromey.com>
10683
10684 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10685 make_scoped_restore.
10686 (dwarf2_psymtab::read_symtab): Don't clear
10687 reading_partial_symbols.
10688
a88ef40d
TV
106892020-02-24 Tom de Vries <tdevries@suse.de>
10690
10691 PR gdb/25592
10692 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10693
c9af6521
TV
106942020-02-24 Tom de Vries <tdevries@suse.de>
10695
10696 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10697 commands layout next/prev/regs.
10698
5707a07a
TT
106992020-02-22 Tom Tromey <tom@tromey.com>
10700
10701 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10702 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10703
3b0fb49e
TT
107042020-02-22 Tom Tromey <tom@tromey.com>
10705
10706 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10707
283be8bf
TT
107082020-02-22 Tom Tromey <tom@tromey.com>
10709
10710 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10711 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10712 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10713 * tui/tui.c (_initialize_tui): Add usage text.
10714
ca793b96
TT
107152020-02-22 Tom Tromey <tom@tromey.com>
10716
10717 * tui/tui-win.c (tui_set_focus_command)
10718 (tui_set_win_height_command): Use error_no_arg.
10719 (_initialize_tui_win): Update help text.
10720 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10721
432b5c40
TT
107222020-02-22 Tom Tromey <tom@tromey.com>
10723
10724 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10725 * tui/tui-disasm.h (struct tui_disasm_window)
10726 <display_start_addr>: Declare.
10727 * tui/tui-source.h (struct tui_source_window)
10728 <display_start_addr>: Declare.
10729 * tui/tui-winsource.h (struct tui_source_window_base)
10730 <show_source_line, display_start_addr>: New methods.
10731 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10732 Rename and move to protected section.
10733 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10734 (tui_source_window_base::do_erase_source_content): Update.
10735 (tui_source_window_base::show_source_line): Now a method.
10736 (tui_source_window_base::show_source_content)
10737 (tui_source_window_base::tui_source_window_base)
10738 (tui_source_window_base::rerender)
10739 (tui_source_window_base::refill)
10740 (tui_source_window_base::do_scroll_horizontal)
10741 (tui_source_window_base::set_is_exec_point_at)
10742 (tui_source_window_base::update_breakpoint_info)
10743 (tui_source_window_base::update_exec_info): Update.
10744 * tui/tui-source.c (tui_source_window::set_contents)
10745 (tui_source_window::showing_source_p)
10746 (tui_source_window::do_scroll_vertical)
10747 (tui_source_window::location_matches_p)
10748 (tui_source_window::line_is_displayed): Update.
10749 (tui_source_window::display_start_addr): New method.
10750 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10751 (tui_disasm_window::do_scroll_vertical)
10752 (tui_disasm_window::location_matches_p): Update.
10753 (tui_disasm_window::display_start_addr): New method.
10754
01b1af32
TT
107552020-02-22 Tom Tromey <tom@tromey.com>
10756
10757 * NEWS: Add entry for gdb.register_window_type.
10758 * tui/tui-layout.h (window_factory): New typedef.
10759 (tui_register_window): Declare.
10760 * tui/tui-layout.c (saved_tui_windows): New global.
10761 (tui_apply_current_layout): Use it.
10762 (tui_register_window): New function.
10763 * python/python.c (do_start_initialization): Call
10764 gdbpy_initialize_tui.
10765 (python_GdbMethods): Add "register_window_type" function.
10766 * python/python-internal.h (gdbpy_register_tui_window)
10767 (gdbpy_initialize_tui): Declare.
10768 * python/py-tui.c: New file.
10769 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10770
fc96d20b
TT
107712020-02-22 Tom Tromey <tom@tromey.com>
10772
10773 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10774
935c78c0
TT
107752020-02-22 Tom Tromey <tom@tromey.com>
10776
10777 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10778 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10779 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10780 (tui_set_win_focus_to): Move from tui-win.c.
10781
0240c8f1
TT
107822020-02-22 Tom Tromey <tom@tromey.com>
10783
10784 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10785 functions.
10786 (known_window_types): New global.
10787 (tui_get_window_by_name): Reimplement.
10788 (initialize_known_windows): New function.
10789 (validate_window_name): Rewrite.
10790 (_initialize_tui_layout): Call initialize_known_windows.
10791
fdb01f0c
TT
107922020-02-22 Tom Tromey <tom@tromey.com>
10793
10794 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10795 Remove constants.
10796 * tui/tui-winsource.h (struct tui_source_window_base)
10797 <tui_source_window_base>: Remove parameter.
10798 * tui/tui-winsource.c
10799 (tui_source_window_base::tui_source_window_base): Remove
10800 parameter.
10801 (tui_source_window_base::refill): Update.
10802 * tui/tui-stack.h (struct tui_locator_window)
10803 <tui_locator_window>: Update.
10804 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10805 Default the constructor.
10806 * tui/tui-regs.h (struct tui_data_item_window)
10807 <tui_data_item_window>: Default the constructor.
10808 (struct tui_data_window) <tui_data_window>: Likewise.
10809 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10810 Default the constructor.
10811 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10812 Default the constructor.
10813 <type>: Remove.
10814 (struct tui_win_info) <tui_win_info>: Default the constructor.
10815 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10816 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10817 Default the constructor.
10818
865a5aec
TT
108192020-02-22 Tom Tromey <tom@tromey.com>
10820
10821 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10822 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10823 * tui/tui-win.c (tui_resize_all): Don't call
10824 tui_delete_invisible_windows.
10825 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10826 done.
10827 (tui_set_layout): Update.
10828 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10829 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10830 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10831
e098d18c
TT
108322020-02-22 Tom Tromey <tom@tromey.com>
10833
10834 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10835 correctly.
10836
eb9c8874
TT
108372020-02-22 Tom Tromey <tom@tromey.com>
10838
10839 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10840
7eed1a8e
TT
108412020-02-22 Tom Tromey <tom@tromey.com>
10842
10843 * tui/tui-winsource.h (struct tui_source_window_iterator)
10844 <inner_iterator>: New etytypedef.
10845 <tui_source_window_iterator>: Take "end" parameter.
10846 <tui_source_window_iterator>: Take iterator.
10847 <operator*, advance>: Update.
10848 <m_iter>: Change type.
10849 <m_end>: New field.
10850 (struct tui_source_windows) <begin, end>: Update.
10851 * tui/tui-layout.c (tui_windows): New global.
10852 (tui_apply_current_layout): Clear tui_windows.
10853 (tui_layout_window::apply): Update tui_windows.
10854 * tui/tui-data.h (tui_windows): Declare.
10855 (all_tui_windows): Now inline function.
10856 (class tui_window_iterator, struct all_tui_windows): Remove.
10857
7c043ba6
TT
108582020-02-22 Tom Tromey <tom@tromey.com>
10859
10860 PR tui/17850:
10861 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10862 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10863 "height" argument.
10864 (class tui_layout_window) <get_sizes>: Likewise.
10865 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10866 argument.
10867 <get_sizes>: Add "height" argument.
10868 <m_vertical>: New field.
10869 * tui/tui-layout.c (tui_layout_split::clone): Update.
10870 (tui_layout_split::get_sizes): Add "height" argument.
10871 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10872 (tui_new_layout_command): Parse "-horizontal".
10873 (_initialize_tui_layout): Update help string.
10874 (tui_layout_split::specification): Add "-horizontal" when needed.
10875 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10876 argument.
10877 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10878 New methods.
10879
6bc56648
TT
108802020-02-22 Tom Tromey <tom@tromey.com>
10881
10882 * tui/tui-layout.h (enum tui_adjust_result): New.
10883 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10884 (class tui_layout_window) <adjust_size>: Return
10885 tui_adjust_result. Rewrite.
10886 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10887 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10888
c22fef7e
TT
108892020-02-22 Tom Tromey <tom@tromey.com>
10890
10891 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10892 parameter and return types.
10893 (class tui_layout_base) <specification>: Add "depth".
10894 (class tui_layout_window) <specification>: Add "depth".
10895 (class tui_layout_split) <specification>: Add "depth".
10896 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10897 and return types.
10898 (tui_new_layout_command): Parse sub-layouts.
10899 (_initialize_tui_layout): Update help string.
10900 (tui_layout_window::specification): Add "depth".
10901 (add_layout_command): Update.
10902
ee325b61
TT
109032020-02-22 Tom Tromey <tom@tromey.com>
10904
10905 * NEWS: Add "tui new-layout" item.
10906 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10907 Add new-layout command to help text.
10908 (validate_window_name): New function.
10909 (tui_new_layout_command): New function.
10910 (_initialize_tui_layout): Register "new-layout".
10911 (tui_layout_window::specification): New method.
10912 (tui_layout_window::specification): New method.
10913 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10914 method.
10915 (class tui_layout_window) <specification>: New method.
10916 (class tui_layout_split) <specification>: New method.
10917
416eb92d
TT
109182020-02-22 Tom Tromey <tom@tromey.com>
10919
10920 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10921 * tui/tui-win.c (window_name_completer): Update comment.
10922 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10923 Declare method.
10924 (class tui_layout_window) <replace_window>: Likewise.
10925 (class tui_layout_split) <replace_window>: Likewise.
10926 (tui_set_layout): Don't declare.
10927 (tui_set_initial_layout): Declare function.
10928 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10929 (asm_regs_layout): New globals.
10930 (tui_current_layout, show_layout): Remove.
10931 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10932 (find_layout, tui_apply_layout): New function.
10933 (layout_completer): Remove.
10934 (tui_next_layout): Reimplement.
10935 (tui_next_layout_command): New function.
10936 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10937 (tui_regs_layout): Reimplement.
10938 (tui_regs_layout_command): New function.
10939 (extract_display_start_addr): Rewrite.
10940 (next_layout, prev_layout): Remove.
10941 (tui_layout_window::replace_window): New method.
10942 (tui_layout_split::replace_window): New method.
10943 (destroy_layout): New function.
10944 (layout_list): New global.
10945 (add_layout_command): New function.
10946 (initialize_layouts): Update.
10947 (tui_layout_command): New function.
10948 (_initialize_tui_layout): Install "layout" commands.
10949 * tui/tui-data.h (enum tui_layout_type): Remove.
10950 (tui_current_layout): Don't declare.
10951
0dbc2fc7
TT
109522020-02-22 Tom Tromey <tom@tromey.com>
10953
10954 * tui/tui-regs.c (tui_reg_layout): Remove.
10955 (tui_reg_command): Use tui_regs_layout.
10956 * tui/tui-layout.h (tui_reg_command): Declare.
10957 * tui/tui-layout.c (tui_reg_command): New function.
10958
5afe342e
TT
109592020-02-22 Tom Tromey <tom@tromey.com>
10960
10961 * tui/tui.c (tui_rl_delete_other_windows): Call
10962 tui_remove_some_windows.
10963 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10964 Declare method.
10965 (class tui_layout_window) <remove_windows>: New method.
10966 (class tui_layout_split) <remove_windows>: Declare.
10967 (tui_remove_some_windows): Declare.
10968 * tui/tui-layout.c (tui_remove_some_windows): New function.
10969 (tui_layout_split::remove_windows): New method.
10970
427326a8
TT
109712020-02-22 Tom Tromey <tom@tromey.com>
10972
10973 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10974 * tui/tui-layout.h (tui_next_layout): Declare.
10975 * tui/tui-layout.c (tui_next_layout): New function.
10976
3fe12b6d
TT
109772020-02-22 Tom Tromey <tom@tromey.com>
10978
10979 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10980 correct coordinates.
10981
59b8b5d2
TT
109822020-02-22 Tom Tromey <tom@tromey.com>
10983
10984 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10985 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10986 DATA_WIN case.
10987
2a3d458b
TT
109882020-02-22 Tom Tromey <tom@tromey.com>
10989
10990 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10991 TUI_DISASM_WIN, not tui_win_list.
10992
3f0cbb04
TT
109932020-02-22 Tom Tromey <tom@tromey.com>
10994
10995 * valprint.c (generic_val_print_enum_1)
10996 (val_print_type_code_flags): Style member names.
10997 * rust-lang.c (val_print_struct, rust_print_enum)
10998 (rust_print_struct_def, rust_internal_print_type): Style member
10999 names.
11000 * p-valprint.c (pascal_object_print_value_fields): Style member
11001 names. Only call fprintf_symbol_filtered for static members.
11002 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11003 * f-valprint.c (f_val_print): Style member names.
11004 * f-typeprint.c (f_type_print_base): Style member names.
11005 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11006 call fprintf_symbol_filtered for static members.
11007 (cp_print_class_member): Style member names.
11008 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11009 member names.
11010 * ada-valprint.c (ada_print_scalar): Style enum names.
11011 (ada_val_print_enum): Likewise.
11012 * ada-typeprint.c (print_enum_type): Style enum names.
11013
d4d947ae
TT
110142020-02-21 Tom Tromey <tom@tromey.com>
11015
11016 * psympriv.h (struct partial_symtab): Update comment.
11017
e94e944b
TT
110182020-02-21 Tom Tromey <tromey@adacore.com>
11019
11020 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11021 type is CORE_ADDR.
11022
1eb73179
TV
110232020-02-21 Tom de Vries <tdevries@suse.de>
11024
11025 PR gdb/25534
11026 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11027 if dependencies[i]->user != NULL.
11028
4f180d53
AT
110292020-02-21 Ali Tamur <tamur@google.com>
11030
11031 * dwarf2/read.c (dwarf2_name): Add null check.
11032
22b6cd70
TT
110332020-02-20 Tom Tromey <tom@tromey.com>
11034
11035 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11036 ">=", in binary search.
11037 (dwarf2_find_containing_comp_unit): New overload.
11038 (run_test): New self-test.
11039 (_initialize_dwarf2_read): Register new test.
11040
bd0cf5a6
NC
110412020-02-20 Nelson Chu <nelson.chu@sifive.com>
11042
11043 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11044 * riscv-tdep.h: Likewise.
11045 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11046 rv32-only CSR.
11047 * features/riscv/64bit-csr.xml: Regenerated.
11048
3f702acd
SDJ
110492020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11050 Tom Tromey <tom@tromey.com>
11051
11052 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11053 of 'fputc_unfiltered'.
11054 (putchar_unfiltered): Call 'fputc_unfiltered'.
11055 (fputc_unfiltered): Call 'fputs_unfiltered'.
11056
d13c7322
AB
110572020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11058
11059 * config.in: Regenerate.
11060 * configure: Regenerate.
11061 * configure.ac: Add --with-python-libdir option.
11062 * main.c: Use WITH_PYTHON_LIBDIR.
11063
869d8950
TT
110642020-02-19 Tom Tromey <tom@tromey.com>
11065
11066 * symtab.c (general_symbol_info::compute_and_set_names): Use
11067 obstack_strndup. Simplify call to symbol_set_demangled_name.
11068
298e9637
SM
110692020-02-19 Simon Marchi <simon.marchi@efficios.com>
11070
11071 * dwarf2/read.c (allocate_signatured_type_table,
11072 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11073 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11074 Remove objfile parameter, update all callers.
11075
08410482
DE
110762020-02-19 Doug Evans <dje@google.com>
11077
11078 PR rust/25535
11079 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11080 rust_enum_variant calculation.
11081
dfdeeca1
TT
110822020-02-19 Tom Tromey <tromey@adacore.com>
11083
11084 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11085
2ef5453b
TT
110862020-02-19 Tom Tromey <tromey@adacore.com>
11087
11088 * ada-lang.c (cache_symbol): Use obstack_strdup.
11089
9f1528a1
AB
110902020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11091
11092 * configure: Regenerate.
11093
d3c22fa8
TT
110942020-02-19 Tom Tromey <tromey@adacore.com>
11095
11096 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11097 NULL check.
11098
bf84f706
MR
110992020-02-19 Maciej W. Rozycki <macro@wdc.com>
11100
11101 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11102
d1c9b20f
AB
111032020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11104
11105 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11106 if GDBSERVER is not defined.
11107 (riscv_tdesc_cache): Likewise, also store const target_desc.
11108 (STATIC_IN_GDB): Define.
11109 (riscv_create_target_description): Update declaration with
11110 STATIC_IN_GDB.
11111 (riscv_lookup_target_description): New function, only define if
11112 GDBSERVER is not defined.
11113 * arch/riscv.h (riscv_create_target_description): Declare only
11114 when GDBSERVER is defined.
11115 (riscv_lookup_target_description): New declaration when GDBSERVER
11116 is not defined.
11117 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11118 (riscv_linux_read_features): ...this, and return
11119 riscv_gdbarch_features instead of target_desc.
11120 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11121 (riscv_linux_read_description): Rename to...
11122 (riscv_linux_read_features): ...this.
11123 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11124 Update to use riscv_gdbarch_features and
11125 riscv_lookup_target_description.
11126 * riscv-tdep.c (riscv_find_default_target_description): Use
11127 riscv_lookup_target_description instead of
11128 riscv_create_target_description.
11129
373d7ac0
SM
111302020-02-18 Simon Marchi <simon.marchi@efficios.com>
11131
11132 * valprint.c (generic_val_print_enum_1): When printing a flag
11133 enum with value 0 and there is no enumerator with value 0, print
11134 just "0" instead of "(unknown: 0x0)".
11135
b29a2df0
SM
111362020-02-18 Simon Marchi <simon.marchi@efficios.com>
11137
11138 * valprint.c (generic_val_print_enum_1): Print unknown part of
11139 flag enum in hex.
11140
6740f0cc
SM
111412020-02-18 Simon Marchi <simon.marchi@efficios.com>
11142
11143 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11144 flag enums to contain duplicate enumerators.
11145 * valprint.c (generic_val_print_enum_1): Update comment.
11146
edd45eb0
SM
111472020-02-18 Simon Marchi <simon.marchi@efficios.com>
11148
11149 * dwarf2/read.c: Include "count-one-bits.h".
11150 (update_enumeration_type_from_children): If an enumerator has
11151 multiple bits set, don't treat the enumeration as a "flag enum".
11152 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11153 of flag enums have 0 or 1 bit set.
11154
6d0cf446
BE
111552020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11156
11157 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11158 conversion.
11159 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11160 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11161 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11162 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11163 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11164
7001c1b7
SM
111652020-02-18 Simon Marchi <simon.marchi@efficios.com>
11166
11167 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11168
fdb61c6c
SM
111692020-02-14 Simon Marchi <simon.marchi@efficios.com>
11170
11171 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11172 displaced_step_closure_up.
11173 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11174 (struct displaced_step_closure_up):
11175 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11176 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11177 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11178 Likewise.
11179 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11180 * gdbarch.c, gdbarch.h: Re-generate.
11181 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11182 displaced_step_closure_up.
11183 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11184 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11185 * infrun.h (displaced_step_closure_up): New type alias.
11186 (struct displaced_step_inferior_state) <step_closure>: Change
11187 type to displaced_step_closure_up.
11188 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11189 displaced_step_closure_up.
11190 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11191
a4a38eb4
TT
111922020-02-14 Tom Tromey <tom@tromey.com>
11193
11194 * minidebug.c (gnu_debug_key): New global.
11195 (find_separate_debug_file_in_section): Use it.
11196
e8217e61
SM
111972020-02-14 Simon Marchi <simon.marchi@efficios.com>
11198
11199 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11200 std::unique_ptr.
11201 * gdbarch.c: Re-generate.
11202 * gdbarch.h: Re-generate.
11203 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11204 change.
11205 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11206 type to std::unique_ptr.
11207 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11208 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11209 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11210 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11211 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11212 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11213 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11214 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11215 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11216
d8d83535
SM
112172020-02-14 Simon Marchi <simon.marchi@efficios.com>
11218
11219 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11220 std::unique_ptr.
11221 (displaced_step_clear): Rename to...
11222 (displaced_step_reset): ... this. Just call displaced->reset ().
11223 (displaced_step_clear_cleanup): Rename to...
11224 (displaced_step_reset_cleanup): ... this.
11225 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11226 (displaced_step_fixup): Likewise.
11227 (resume_1): Likewise.
11228 (handle_inferior_event): Restore child's memory before calling
11229 displaced_step_fixup on the parent.
11230 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11231 to std::unique_ptr.
11232 <step_closure>: Change type to std::unique_ptr.
11233
5f661e03
SM
112342020-02-14 Simon Marchi <simon.marchi@efficios.com>
11235
11236 * arm-tdep.c: Include count-one-bits.h.
11237 (cleanup_block_store_pc): Use count_one_bits.
11238 (cleanup_block_load_pc): Use count_one_bits.
11239 (arm_copy_block_xfer): Use count_one_bits.
11240 (thumb2_copy_block_xfer): Use count_one_bits.
11241 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11242 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11243 (thumb_get_next_pcs_raw): Use count_one_bits.
11244 (arm_get_next_pcs_raw): Use count_one_bits_l.
11245 * arch/arm.c (bitcount): Remove.
11246 * arch/arm.h (bitcount): Remove.
11247
8084e579
TT
112482020-02-14 Tom Tromey <tromey@adacore.com>
11249
11250 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11251 Update.
11252 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11253 * dwarf2/loc.c (call_site_find_chain_1): Return
11254 unique_xmalloc_ptr.
11255 (call_site_find_chain): Likewise.
11256
258bf0ee
RB
112572020-02-14 Richard Biener <rguenther@suse.de>
11258
11259 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11260 on expression with division operators.
11261
f98a8458
AKS
112622020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11263
11264 * MAINTAINERS (Write After Approval): Adding myself.
11265
d1437c0e
TT
112662020-02-12 Tom Tromey <tom@tromey.com>
11267
11268 * event-loop.c (event_data, gdb_event, event_handler_func):
11269 Remove.
11270
3d4560f7
TT
112712020-02-12 Tom Tromey <tom@tromey.com>
11272
11273 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11274 (dwarf2_frame_objfile_data): Add comment.
11275 (find_comp_unit, set_comp_unit): New functions.
11276 (dwarf2_frame_find_fde): Use find_comp_unit.
11277 (dwarf2_build_frame_info): Use set_comp_unit.
11278
21982304
TT
112792020-02-12 Tom Tromey <tom@tromey.com>
11280
11281 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11282 (comp_unit): Don't initialize objfile.
11283 (execute_cfa_program): Add text_offset parameter.
11284 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11285 (dwarf2_frame_cache): Update.
11286 (dwarf2_build_frame_info): Don't set "objfile" member.
11287
4debb237
TT
112882020-02-12 Tom Tromey <tom@tromey.com>
11289
11290 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11291 (decode_frame_entry): Likewise.
11292 (dwarf2_build_frame_info): Update.
11293
0d404d44
TT
112942020-02-12 Tom Tromey <tom@tromey.com>
11295
11296 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11297 (decode_frame_entry_1): Use the comp_unit obstack.
11298
a7a3ae5c
TT
112992020-02-12 Tom Tromey <tom@tromey.com>
11300
11301 * dwarf2/frame.c (struct comp_unit): Add initializers and
11302 constructor.
11303 (dwarf2_frame_objfile_data): Store a comp_unit.
11304 (dwarf2_frame_find_fde): Update.
11305 (dwarf2_build_frame_info): Use "new".
11306
a9d65418
TT
113072020-02-12 Tom Tromey <tom@tromey.com>
11308
11309 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11310 (dwarf2_fde_table): Typedef for std::vector.
11311 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11312 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11313 (decode_frame_entry): Update.
11314 (dwarf2_build_frame_info): Use "new".
11315
7559c217
CB
113162020-02-12 Christian Biesinger <cbiesinger@google.com>
11317
11318 * arm-tdep.c (arm_gdbarch_init): Update.
11319 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11320 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11321 have_neon, is_m>: Change to bool.
11322
aeefc73c
CB
113232020-02-12 Christian Biesinger <cbiesinger@google.com>
11324
11325 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11326
d27b8e5f
TT
113272020-02-12 Tom Tromey <tom@tromey.com>
11328
11329 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11330
cd5900f3
HD
113312020-02-12 Hannes Domani <ssbssa@yahoo.de>
11332
11333 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11334 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11335
f056b22b
TT
113362020-02-11 Tom Tromey <tom@tromey.com>
11337
11338 * psymtab.h: Update comment.
11339
f92ff6b5
TT
113402020-02-11 Tom Tromey <tom@tromey.com>
11341
11342 * gdb_obstack.h (struct auto_obstack): Use
11343 DISABLE_COPY_AND_ASSIGN.
11344
3fd6912b
TT
113452020-02-11 Tom Tromey <tom@tromey.com>
11346
11347 * dwarf2/frame.h (struct objfile): Don't forward declare.
11348
69ed9b74
CB
113492020-02-11 Christian Biesinger <cbiesinger@google.com>
11350
11351 * cris-tdep.c (cris_supply_gregset): Change signature to match
11352 what struct regset expects.
11353 (cris_regset): New struct.
11354 (fetch_core_registers): Remove.
11355 (cris_iterate_over_regset_sections): New function.
11356 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11357 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11358
bda874f6
CB
113592020-02-11 Christian Biesinger <cbiesinger@google.com>
11360
11361 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11362 registers.
11363
754e1564
CB
113642020-02-11 Christian Biesinger <cbiesinger@google.com>
11365
11366 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11367
8ddd8e0e
SM
113682020-02-11 Simon Marchi <simon.marchi@efficios.com>
11369
11370 * configure: Re-generate.
11371
898e7f60
SM
113722020-02-11 Simon Marchi <simon.marchi@efficios.com>
11373
11374 * configure: Re-generate.
11375
58df732b
SM
113762020-02-11 Simon Marchi <simon.marchi@efficios.com>
11377
11378 * acinclude: Update warning.m4 path.
11379 * warning.m4: Move to gdbsupport.
11380
da5bd37e
TT
113812020-02-11 Tom Tromey <tromey@adacore.com>
11382
11383 * remote.c (remote_console_output): Update.
11384 * printcmd.c (printf_command): Update.
11385 * event-loop.c (gdb_wait_for_event): Update.
11386 * linux-nat.c (sigchld_handler): Update.
11387 * remote-sim.c (gdb_os_write_stdout): Update.
11388 (gdb_os_flush_stdout): Update.
11389 (gdb_os_flush_stderr): Update.
11390 (gdb_os_write_stderr): Update.
11391 * exceptions.c (print_exception): Update.
11392 * remote-fileio.c (remote_fileio_func_read): Update.
11393 (remote_fileio_func_write): Update.
11394 * tui/tui.c (tui_enable): Update.
11395 * tui/tui-interp.c (tui_interp::init): Update.
11396 * utils.c (init_page_info): Update.
11397 (putchar_unfiltered, fputc_unfiltered): Update.
11398 (gdb_flush): Update.
11399 (emit_style_escape): Update.
11400 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11401 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11402 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11403 (stderr_file::write): Update.
11404 (stderr_file::puts): Update.
11405 * ui-file.h (ui_file_isatty, ui_file_write)
11406 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11407 (ui_file_puts): Don't declare.
11408
85f0dd3c
TV
114092020-02-10 Tom de Vries <tdevries@suse.de>
11410
11411 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11412 sentinel to char *.
11413
2e927613
TV
114142020-02-09 Tom de Vries <tdevries@suse.de>
11415
11416 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11417 filename if it matches "<artificial>".
11418
6bafc845
HD
114192020-02-09 Hannes Domani <ssbssa@yahoo.de>
11420
11421 * windows-tdep.c (struct enum_value_name): New struct.
11422 (create_enum): New function.
11423 (windows_get_siginfo_type): Create and use enum types.
11424
7928d571
HD
114252020-02-09 Hannes Domani <ssbssa@yahoo.de>
11426
11427 * NEWS: Mention $_siginfo support for Windows.
11428 * windows-nat.c (handle_exception): Set siginfo_er.
11429 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11430 (windows_xfer_siginfo): New function.
11431 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11432 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11433 (init_windows_gdbarch_data): New function.
11434 (get_windows_gdbarch_data): New function.
11435 (windows_get_siginfo_type): New function.
11436 (windows_init_abi): Register windows_get_siginfo_type.
11437 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11438
6751ebae
TT
114392020-02-08 Tom Tromey <tom@tromey.com>
11440
11441 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11442 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11443 <keep>: Declare method.
11444 <m_keep>: Remove member.
11445 <~cutu_reader>: Remove.
11446 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11447 (cutu_reader::cutu_reader): Update.
11448 (cutu_reader::keep): Rename from ~cutu_reader.
11449 (process_psymtab_comp_unit, build_type_psymtabs_1)
11450 (process_skeletonless_type_unit, load_partial_comp_unit)
11451 (load_full_comp_unit, dwarf2_read_addr_index)
11452 (read_signatured_type): Update.
11453
135f5437
TT
114542020-02-08 Tom Tromey <tom@tromey.com>
11455
11456 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11457 "want_partial_unit" parameter.
11458 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11459 Inline check for DW_TAG_partial_unit.
11460 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11461
9f66ff1c
TT
114622020-02-08 Tom Tromey <tom@tromey.com>
11463
11464 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11465 read.c.
11466 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11467 read.c.
11468
c8a7a66f
TT
114692020-02-08 Tom Tromey <tom@tromey.com>
11470
11471 * dwarf2/read.c (read_address): Move to comp-unit.c.
11472 (dwarf2_rnglists_process, dwarf2_ranges_process)
11473 (read_attribute_value, dwarf_decode_lines_1)
11474 (var_decode_location, decode_locdesc): Update.
11475 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11476 read.c. Remove "cu" parameter.
11477 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11478 method.
11479
8266302d
TT
114802020-02-08 Tom Tromey <tom@tromey.com>
11481
11482 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11483 (read_indirect_line_string): Update.
11484 * dwarf2/comp-unit.c (read_offset): Remove.
11485 (read_comp_unit_head): Update.
11486 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11487 method.
11488 (read_offset): Don't declare.
11489
4057dfde
TT
114902020-02-08 Tom Tromey <tom@tromey.com>
11491
11492 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11493 * dwarf2/read.c (struct comp_unit_head): Move to
11494 dwarf2/comp-unit.h.
11495 (enum class rcuh_kind): Move to comp-unit.h.
11496 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11497 (read_comp_unit_head, error_check_comp_unit_head)
11498 (read_and_check_comp_unit_head): Move to comp-unit.c.
11499 (read_offset, dwarf_unit_type_name): Likewise.
11500 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11501 (cutu_reader::cutu_reader, read_call_site_scope)
11502 (find_partial_die, follow_die_offset): Update.
11503 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11504
24aa364d
TT
115052020-02-08 Tom Tromey <tom@tromey.com>
11506
11507 * dwarf2/read.c (read_offset_1): Move to leb.c.
11508 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11509 (dwarf_decode_macro_bytes): Update.
11510 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11511 * dwarf2/leb.h (read_offset): Declare.
11512
2c7d5afc
TT
115132020-02-08 Tom Tromey <tom@tromey.com>
11514
11515 * dwarf2/read.c (dwarf2_section_size): Remove.
11516 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11517 Update.
11518 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11519
4075cb26
TT
115202020-02-08 Tom Tromey <tom@tromey.com>
11521
11522 * dwarf2/read.c (read_initial_length): Move to leb.c.
11523 * dwarf2/leb.h (read_initial_length): Declare.
11524 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11525 handle_nonstd parameter.
11526 * dwarf2/frame.c (read_initial_length): Remove.
11527 (decode_frame_entry_1): Update.
11528
09ba997f
TT
115292020-02-08 Tom Tromey <tom@tromey.com>
11530
11531 * dwarf2/loc.c (dwarf2_find_location_expression)
11532 (dwarf_evaluate_loc_desc::get_tls_address)
11533 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11534 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11535 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11536 (dwarf2_compile_property_to_c)
11537 (dwarf2_loc_desc_get_symbol_read_needs)
11538 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11539 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11540 (loclist_describe_location, loclist_tracepoint_var_ref)
11541 (loclist_generate_c_location): Update.
11542 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11543 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11544 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11545 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11546 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11547 (dwarf2_per_cu_data::addr_size)
11548 (dwarf2_per_cu_data::ref_addr_size)
11549 (dwarf2_per_cu_data::text_offset)
11550 (dwarf2_per_cu_data::addr_type): Now methods.
11551 (per_cu_header_read_in): Make per_cu "const".
11552 (dwarf2_version): Remove.
11553 (dwarf2_per_cu_data::int_type): Now a method.
11554 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11555 (set_die_type, read_array_type, read_subrange_index_type)
11556 (read_tag_string_type, read_subrange_type): Update.
11557 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11558 offset_size, ref_addr_size, text_offset, addr_type, version,
11559 objfile, int_type, addr_sized_int_type>: Declare methods.
11560
96c738c0
TT
115612020-02-08 Tom Tromey <tom@tromey.com>
11562
11563 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11564 Move earlier.
11565
8fdd972c
TT
115662020-02-08 Tom Tromey <tom@tromey.com>
11567
11568 * dwarf2/read.h (dwarf_line_debug): Declare.
11569 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11570 * dwarf2/read.c: Move line_header code to new files.
11571 (dwarf_line_debug): No longer static.
11572 * dwarf2/line-header.c: New file.
11573 * dwarf2/line-header.h: New file.
11574
03075812
TT
115752020-02-08 Tom Tromey <tom@tromey.com>
11576
11577 * dwarf2/read.c (struct line_header) <file_full_name,
11578 file_file_name>: Return unique_xmalloc_ptr.
11579 (line_header::file_file_name): Update.
11580 (line_header::file_full_name): Update.
11581 (dw2_get_file_names_reader): Update.
11582 (macro_start_file): Update.
11583
bb822404
TT
115842020-02-08 Tom Tromey <tom@tromey.com>
11585
11586 * dwarf2/read.c (struct line_header) <file_full_name,
11587 file_file_name>: Declare methods.
11588 (dw2_get_file_names_reader): Update.
11589 (file_file_name): Now a method.
11590 (file_full_name): Likewise.
11591 (macro_start_file): Update.
11592
009b64fc
TT
115932020-02-08 Tom Tromey <tom@tromey.com>
11594
11595 * dwarf2/read.c (dwarf_always_disassemble)
11596 (show_dwarf_always_disassemble): Move to loc.c.
11597 (_initialize_dwarf2_read): Move "always-disassemble" registration
11598 to loc.c.
11599 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11600 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11601 static.
11602 (show_dwarf_always_disassemble): Move from read.c.
11603 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11604
5895093f
TT
116052020-02-08 Tom Tromey <tom@tromey.com>
11606
11607 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11608 (create_quick_file_names_table): Return htab_up.
11609 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11610 Update.
11611 * dwarf2/read.h (struct dwarf2_per_objfile)
11612 <quick_file_names_table>: Now htab_up.
11613
b3b32279
TT
116142020-02-08 Tom Tromey <tom@tromey.com>
11615
11616 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11617
1d33d811
TT
116182020-02-08 Tom Tromey <tom@tromey.com>
11619
11620 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11621 Rewrite.
11622 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11623 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11624 (abbrev_table::abbrev_table): No longer inline.
11625 (ABBREV_HASH_SIZE): Remove.
11626 (abbrev_table::m_abbrevs): Now an htab_up.
11627
86de1d91
TT
116282020-02-08 Tom Tromey <tom@tromey.com>
11629
11630 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11631 (cutu_reader): Update.
11632 (build_type_psymtabs_1): Update.
11633 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11634 (abbrev_table::alloc_abbrev): Update.
11635 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11636 (abbrev_table::read): New static method, renamed from
11637 abbrev_table_read_table.
11638 (abbrev_table::alloc_abbrev)
11639 (abbrev_table::add_abbrev): Now private.
11640 (abbrev_table::abbrev_table): Now private.
11641 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11642
0335378b
TT
116432020-02-08 Tom Tromey <tom@tromey.com>
11644
11645 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11646 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11647 htab_up.
11648
48b490f2
TT
116492020-02-08 Tom Tromey <tom@tromey.com>
11650
11651 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11652 htab_up.
11653 (lookup_dwo_unit_in_dwp): Update.
11654 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11655 on obstack.
11656
bc68fb19
TT
116572020-02-08 Tom Tromey <tom@tromey.com>
11658
11659 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11660 obstack.
11661
d15acc42
TT
116622020-02-08 Tom Tromey <tom@tromey.com>
11663
11664 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11665 line_header_hash.
11666 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11667 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11668 Change type to htab_up.
11669
eaa5fa8b
TT
116702020-02-08 Tom Tromey <tom@tromey.com>
11671
11672 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11673 htab_up. Don't allocate on obstack.
11674 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11675 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11676 Change type to htab_up.
11677
b0b6a987
TT
116782020-02-08 Tom Tromey <tom@tromey.com>
11679
11680 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11681 Change type to htab_up.
11682 * dwarf2/read.c (create_signatured_type_table_from_index)
11683 (create_signatured_type_table_from_debug_names)
11684 (create_all_type_units, add_type_unit)
11685 (lookup_dwo_signatured_type, lookup_signatured_type)
11686 (process_skeletonless_type_unit): Update.
11687 (create_debug_type_hash_table, create_debug_types_hash_table):
11688 Change type of types_htab.
11689 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11690 htab_up. Don't allocate on obstack.
11691 (create_cus_hash_table): Change type of cus_htab parameter.
11692 (struct dwo_file) <cus, tus>: Now htab_up.
11693 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11694 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11695 (queue_and_load_all_dwo_tus): Update.
11696 * dwarf2/index-write.c (write_gdbindex): Update.
11697 (write_debug_names): Update.
11698
39856def
TT
116992020-02-08 Tom Tromey <tom@tromey.com>
11700
11701 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11702 dwarf2/read.c. Remove "next" member. Add constructor ntad
11703 destructor.
11704 (struct dwarf2_per_objfile) <queue>: New member.
11705 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11706 dwarf2/read.h.
11707 (dwarf2_queue, dwarf2_queue_tail): Remove.
11708 (class dwarf2_queue_guard): Add parameter to constructor. Use
11709 DISABLE_COPY_AND_ASSIGN.
11710 <m_per_objfile>: New member.
11711 <~dwarf2_queue_guard>: Rewrite.
11712 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11713 Update.
11714 (~dwarf2_queue_item): New.
11715
3e225074
TT
117162020-02-08 Tom Tromey <tom@tromey.com>
11717
11718 * dwarf2/read.c (struct die_info) <has_children>: New member.
11719 (dw2_get_file_names_reader): Remove has_children.
11720 (dw2_get_file_names): Update.
11721 (read_cutu_die_from_dwo): Remove has_children.
11722 (cutu_reader::init_tu_and_read_dwo_dies)
11723 (cutu_reader::cutu_reader): Update.
11724 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11725 Remove has_children.
11726 (build_type_psymtabs_1, process_skeletonless_type_unit)
11727 (load_partial_comp_unit, load_full_comp_unit): Update.
11728 (create_dwo_cu_reader): Remove has_children.
11729 (create_cus_hash_table, read_die_and_children): Update.
11730 (read_full_die_1,read_full_die): Remove has_children.
11731 (read_signatured_type): Update.
11732 (class cutu_reader) <has_children>: Remove.
11733
82ca8957
TT
117342020-02-08 Tom Tromey <tom@tromey.com>
11735
11736 * dwarf2/expr.c: Rename from dwarf2expr.c.
11737 * dwarf2/expr.h: Rename from dwarf2expr.h.
11738 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11739 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11740 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11741 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11742 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11743 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11744 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11745 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11746 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11747 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11748 * dwarf2/loc.c: Rename from dwarf2loc.c.
11749 * dwarf2/loc.h: Rename from dwarf2loc.h.
11750 * dwarf2/read.c: Rename from dwarf2read.c.
11751 * dwarf2/read.h: Rename from dwarf2read.h.
11752 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11753 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11754 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11755 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11756 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11757 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11758 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11759 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11760 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11761 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11762 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11763 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11764 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11765 Update.
11766 * Makefile.in (COMMON_SFILES): Update.
11767 (HFILES_NO_SRCDIR): Update.
11768
9e35d499
TT
117692020-02-08 Tom Tromey <tom@tromey.com>
11770
11771 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11772 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11773
1eba2311
TT
117742020-02-08 Tom Tromey <tom@tromey.com>
11775
11776 * dwarf2read.h (struct die_info): Don't declare.
11777
e41c2da2
TT
117782020-02-08 Tom Tromey <tom@tromey.com>
11779
11780 * dwarf2read.h (die_info_ptr): Remove typedef.
11781
4fc6c0d5
TT
117822020-02-08 Tom Tromey <tom@tromey.com>
11783
11784 * dwarf2read.c (read_call_site_scope)
11785 (handle_data_member_location, dwarf2_add_member_fn)
11786 (mark_common_block_symbol_computed, read_common_block)
11787 (attr_to_dynamic_prop, partial_die_info::read)
11788 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11789 (dwarf2_symbol_mark_computed, set_die_type): Update.
11790 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11791 method.
11792 (attr_form_is_block): Don't declare.
11793 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11794
cd6c91b4
TT
117952020-02-08 Tom Tromey <tom@tromey.com>
11796
11797 * dwarf2read.c (dwarf2_find_base_address, )
11798 (read_call_site_scope, rust_containing_type)
11799 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11800 (handle_data_member_location, dwarf2_add_member_fn)
11801 (get_alignment, read_structure_type, process_structure_scope)
11802 (mark_common_block_symbol_computed, read_common_block)
11803 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11804 (partial_die_info::read, read_attribute_value, new_symbol)
11805 (lookup_die_type, dwarf2_get_ref_die_offset)
11806 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11807 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11808 (dwarf2_symbol_mark_computed): Update.
11809 * dwarf2/attribute.h (struct attribute) <value_as_address,
11810 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11811 methods.
11812 (value_as_address, attr_form_is_section_offset)
11813 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11814 * dwarf2/attribute.c (attribute::value_as_address)
11815 (attribute::form_is_section_offset, attribute::form_is_constant)
11816 (attribute::form_is_ref): Now methods.
11817
162dce55
TT
118182020-02-08 Tom Tromey <tom@tromey.com>
11819
11820 * dwarf2read.c (struct attribute, DW_STRING)
11821 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11822 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11823 (attr_form_is_block, attr_form_is_section_offset)
11824 (attr_form_is_constant, attr_form_is_ref): Move.
11825 * dwarf2/attribute.h: New file.
11826 * dwarf2/attribute.c: New file, from dwarf2read.c.
11827 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11828
3054dd54
TT
118292020-02-08 Tom Tromey <tom@tromey.com>
11830
11831 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11832 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11833 Move.
11834 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11835 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11836 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11837 abbrev.c.
11838 * dwarf2/abbrev.h: New file.
11839 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11840 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11841
96b79293
TT
118422020-02-08 Tom Tromey <tom@tromey.com>
11843
11844 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11845 (dwarf2_section_size, dwarf2_get_section_info)
11846 (create_signatured_type_table_from_debug_names)
11847 (create_addrmap_from_aranges, read_debug_names_from_section)
11848 (get_gdb_index_contents_from_section, read_comp_unit_head)
11849 (error_check_comp_unit_head, read_abbrev_offset)
11850 (create_debug_type_hash_table, init_cu_die_reader)
11851 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11852 (read_comp_units_from_section, create_cus_hash_table)
11853 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11854 (create_dwp_v2_section, dwarf2_rnglists_process)
11855 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11856 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11857 (read_indirect_string_from_dwz, read_addr_index_1)
11858 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11859 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11860 (fill_in_loclist_baton): Update.
11861 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11862 get_containing_section, get_bfd_owner, get_bfd_section,
11863 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11864 (dwarf2_read_section, get_section_name, get_section_file_name)
11865 (get_containing_section, get_section_bfd_owner)
11866 (get_section_bfd_section, get_section_name, get_section_file_name)
11867 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11868 declare.
11869 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11870 (dwarf2_section_info::get_bfd_owner)
11871 (dwarf2_section_info::get_bfd_section)
11872 (dwarf2_section_info::get_name)
11873 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11874 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11875 (dwarf2_section_info::read): Now methods.
11876 * dwarf-index-write.c (class debug_names): Update.
11877
2c86cff9
TT
118782020-02-08 Tom Tromey <tom@tromey.com>
11879
11880 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11881 Move to dwarf2/section.h.
11882 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11883 (get_section_bfd_section, get_section_name)
11884 (get_section_file_name, get_section_id, get_section_flags)
11885 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11886 dwarf2/section.c.
11887 * dwarf2/section.h: New file.
11888 * dwarf2/section.c: New file, from dwarf2read.c.
11889 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11890
f4382c45
TT
118912020-02-08 Tom Tromey <tom@tromey.com>
11892
11893 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11894 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11895 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11896 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11897 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11898 * dwarf2/leb.h: New file, from dwarf2read.c.
11899 * dwarf2/leb.c: New file, from dwarf2read.c.
11900 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11901 Remove.
11902 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11903 (COMMON_SFILES): Add dwarf2/leb.c.
11904
01840b7a
JB
119052020-02-08 Joel Brobecker <brobecker@adacore.com>
11906
11907 GDB 9.1 released.
11908
dfcb27e4
IB
119092020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11910
11911 PR gdb/25190:
aac66a4c
SM
11912 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11913 * gdb/remote.c (remote_console_output): Update.
11914 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11915 (ui_file_puts): ...this.
11916 * gdb/ui-file.h (ui_file_puts): Add declaration.
11917 * gdb/utils.c (emit_style_escape): Update.
11918 (flush_wrap_buffer): Update.
11919 (fputs_maybe_filtered): Update.
11920 (fputs_unfiltered): Add function.
dfcb27e4 11921
faa17681
IB
119222020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11923
aac66a4c
SM
11924 * gdb/event-loop.c (gdb_wait_for_event): Update.
11925 * gdb/printcmd.c (printf_command): Update.
11926 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11927 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11928 (gdb_os_flush_stderr): Update.
11929 * gdb/remote.c (remote_console_output): Update.
11930 * gdb/ui-file.c (gdb_flush): Rename to...
11931 (ui_file_flush): ...this.
11932 (stderr_file::write): Update.
11933 (stderr_file::puts): Update.
11934 * gdb/ui-file.h (gdb_flush): Rename to...
11935 (ui_file_flush): ...this.
11936 * gdb/utils.c (gdb_flush): Add function.
11937 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 11938
5abbbe1d
TT
119392020-02-07 Tom Tromey <tromey@adacore.com>
11940
11941 PR breakpoints/24915:
11942 * source.c (find_and_open_source): Do not check basenames_may_differ.
11943
919adfe8
TT
119442020-02-07 Tom Tromey <tom@tromey.com>
11945
11946 * README: Update gdbserver documentation.
11947 * gdbserver: Move to top level.
11948 * configure.tgt (build_gdbserver): Remove.
11949 * configure.ac: Remove --enable-gdbserver.
11950 * configure: Rebuild.
11951 * Makefile.in (distclean): Don't mention gdbserver.
11952
1d5d29e7
SV
119532020-02-06 Shahab Vahedi <shahab@synopsys.com>
11954
11955 * source-cache.c (source_cache::ensure): Surround
11956 get_plain_source_lines with a try/catch.
11957 (source_cache::get_line_charpos): Get rid of try/catch
11958 and only check for the return value of "ensure".
11959 * tui/tui-source.c (tui_source_window::set_contents):
11960 Simplify "nlines" calculation.
11961
6eb1129c
SV
119622020-02-06 Shahab Vahedi <shahab@synopsys.com>
11963
11964 * MAINTAINERS (Write After Approval): Add myself.
11965
c6a42d11
CB
119662020-02-05 Christian Biesinger <cbiesinger@google.com>
11967
11968 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11969 function call.
11970
c8ecdda6
CB
119712020-02-05 Christian Biesinger <cbiesinger@google.com>
11972
11973 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11974
f6480e70
MR
119752020-02-05 Maciej W. Rozycki <macro@wdc.com>
11976
11977 * nat/riscv-linux-tdesc.h: New file.
11978 * nat/riscv-linux-tdesc.c: New file, taking code from...
11979 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11980 ... here.
11981 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11982 NATDEPFILES.
11983
dcc9fbc6
AB
119842020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11985
11986 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11987 we don't set the fake simulator ptid to the null_ptid.
11988
719546c4
SM
119892020-02-03 Simon Marchi <simon.marchi@efficios.com>
11990
11991 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11992 * gdbthread.h (class thread_info) <resumed>: Likewise.
11993 * infrun.c (resume_1): Likewise.
11994 (proceed): Likewise.
11995 (infrun_thread_stop_requested): Likewise.
11996 (stop_all_threads): Likewise.
11997 (handle_inferior_event): Likewise.
11998 (restart_threads): Likewise.
11999 (finish_step_over): Likewise.
12000 (keep_going_stepped_thread): Likewise.
12001 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12002 (linux_handle_extended_wait): Likewise.
12003 * record-btrace.c (get_thread_current_frame_id): Likewise.
12004 * record-full.c (record_full_wait_1): Likewise.
12005 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12006 * target.c (target_resume): Likewise.
12007 * thread.c (set_running_thread): Likewise.
12008
e409c542
AKS
120092020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12010
12011 * f-valprint.c (f77_print_array_1): Changed datatype of index
12012 variable to LONGEST from int to enable it to contain bound
12013 values correctly.
12014
ee98c0da
MR
120152020-02-03 Maciej W. Rozycki <macro@wdc.com>
12016
12017 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12018 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12019 offsets according to FLEN determined.
12020 (riscv_linux_nat_target::read_description): Determine FLEN
12021 dynamically.
12022 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12023 according to FLEN determined.
12024 (riscv_linux_nat_target::store_registers): Likewise.
12025
aa66aac4
SV
120262020-02-01 Shahab Vahedi <shahab@synopsys.com>
12027
12028 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12029 when reg->group is empty and reggroup is not.
12030
fd9faca8
TT
120312020-01-31 Tom Tromey <tromey@adacore.com>
12032
12033 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12034 Call beneath target's mourn_inferior after unpushing.
12035
42330a68
AB
120362020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12037
12038 PR tui/9765
12039 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12040 have enough lines to fill the screen, still return the lowest
12041 address we found.
12042
7a27a45b
AB
120432020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12044
12045 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12046 '-', '<', and '>' commands.
12047
c47f70e2
PA
120482020-01-29 Pedro Alves <palves@redhat.com>
12049 Sergio Durigan Junior <sergiodj@redhat.com>
12050
12051 * infcmd.c (construct_inferior_arguments): Assert that
12052 'argc' is greater than 0.
12053
5133a315
LM
120542020-01-29 Luis Machado <luis.machado@linaro.org>
12055
12056 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12057 (BRK_INSN_MASK): Define to 0xd4200000.
12058 (aarch64_program_breakpoint_here_p): New function.
12059 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12060 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12061 breakpoint.c.
12062 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12063 breakpoint.h
12064 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12065 call gdbarch_program_breakpoint_here_p.
12066 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12067 default_program_breakpoint_here_p, changed return type to bool and
12068 simplified.
12069 * breakpoint.h (program_breakpoint_here): Moved prototype to
12070 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12071 return type to bool.
12072 * gdbarch.c: Regenerate.
12073 * gdbarch.h: Regenerate.
12074 * gdbarch.sh (program_breakpoint_here_p): New method.
12075 * infrun.c (handle_signal_stop): Call
12076 gdbarch_program_breakpoint_here_p.
12077
168f8c6b
TT
120782020-01-26 Tom Tromey <tom@tromey.com>
12079
12080 * ctfread.c (struct ctf_fp_info): Reindent.
12081 (_initialize_ctfread): Remove.
12082
128a391f
TT
120832020-01-26 Tom Tromey <tom@tromey.com>
12084
12085 * psymtab.c (partial_map_expand_apply)
12086 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12087 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12088 (psym_print_stats, psym_expand_symtabs_for_function)
12089 (psym_map_symbol_filenames, psym_map_matching_symbols)
12090 (psym_expand_symtabs_matching)
12091 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12092 (maintenance_check_psymtabs): Use new methods.
12093 * psympriv.h (struct partial_symtab) <readin_p,
12094 get_compunit_symtab>: New methods.
12095 <readin, compunit_symtab>: Remove members.
12096 (struct standard_psymtab): New.
12097 (struct legacy_psymtab): Derive from standard_psymtab.
12098 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12099 standard_psymtab.
12100 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12101
0494dbec
TT
121022020-01-26 Tom Tromey <tom@tromey.com>
12103
12104 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12105 read_dependencies. Add assert.
12106 * psymtab.c (partial_symtab::read_dependencies): New method.
12107 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12108 method.
12109 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12110 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12111 read_dependencies.
12112 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12113 Add assert.
12114
8566b89b
TT
121152020-01-26 Tom Tromey <tom@tromey.com>
12116
12117 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12118 Call expand_psymtab.
12119 (xcoff_read_symtab): Call expand_psymtab.
12120 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12121 legacy_expand_psymtab.
12122 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12123 method.
12124 (struct legacy_psymtab) <expand_psymtab>: Implement.
12125 <legacy_expand_psymtab>: New member.
12126 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12127 (parse_partial_symbols): Set legacy_expand_psymtab.
12128 (psymtab_to_symtab_1): Change argument order. Call
12129 expand_psymtab.
12130 (new_psymtab): Set legacy_expand_psymtab.
12131 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12132 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12133 expand_psymtab.
12134 (dwarf2_psymtab::expand_psymtab): Rename from
12135 psymtab_to_symtab_1. Call expand_psymtab.
12136 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12137 (dbx_end_psymtab): Likewise.
12138 (dbx_psymtab_to_symtab_1): Change argument order. Call
12139 expand_psymtab.
12140 (dbx_read_symtab): Call expand_psymtab.
12141 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12142 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12143 (ctf_psymtab::read_symtab): Call expand_psymtab.
12144
077cbab2
TT
121452020-01-26 Tom Tromey <tom@tromey.com>
12146
12147 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12148 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12149 messages.
12150 * mdebugread.c (mdebug_read_symtab): Remove prints.
12151 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12152 assert.
12153 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12154
891813be
TT
121552020-01-26 Tom Tromey <tom@tromey.com>
12156
12157 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12158 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12159 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12160 legacy_symtab.
12161 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12162 * psymtab.c (psymtab_to_symtab): Call method.
12163 (dump_psymtab): Update.
12164 * psympriv.h (struct partial_symtab): Add virtual destructor.
12165 <read_symtab>: New method.
12166 (struct legacy_symtab): New.
12167 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12168 (struct pst_map) <pst>: Now a legacy_psymtab.
12169 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12170 (new_psymtab): Use legacy_psymtab.
12171 * dwarf2read.h (struct dwarf2_psymtab): New.
12172 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12173 * dwarf2read.c (dwarf2_create_include_psymtab)
12174 (dwarf2_build_include_psymtabs, create_type_unit_group)
12175 (create_partial_symtab, process_psymtab_comp_unit_reader)
12176 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12177 (set_partial_user): Use dwarf2_psymtab.
12178 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12179 (psymtab_to_symtab_1, process_full_comp_unit)
12180 (process_full_type_unit, dwarf2_ranges_read)
12181 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12182 (dwarf_decode_lines): Use dwarf2_psymtab.
12183 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12184 (add_address_entry_worker, write_one_signatured_type)
12185 (recursively_count_psymbols, recursively_write_psymbols)
12186 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12187 (write_debug_names): Likewise.
12188 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12189 <pst>: Now a legacy_psymtab.
12190 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12191 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12192 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12193 * ctfread.c (struct ctf_psymtab): New.
12194 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12195 ctf_psymtab.
12196 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12197 (create_partial_symtab): Return a ctf_psymtab.
12198 (scan_partial_symbols): Update.
12199
c3693a1d
TT
122002020-01-26 Tom Tromey <tom@tromey.com>
12201
12202 * xcoffread.c (xcoff_start_psymtab): Use new.
12203 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12204 renamed from start_psymtab_common.
12205 * psympriv.h (struct partial_symtab): Add new constructor.
12206 (start_psymtab_common): Don't declare.
12207 * mdebugread.c (parse_partial_symbols): Use new.
12208 * dwarf2read.c (create_partial_symtab): Use new.
12209 * dbxread.c (start_psymtab): Use new.
12210 * ctfread.c (create_partial_symtab): Use new.
12211
32caafd0
TT
122122020-01-26 Tom Tromey <tom@tromey.com>
12213
12214 * xcoffread.c (xcoff_end_psymtab): Use new.
12215 * psymtab.c (start_psymtab_common): Use new.
12216 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12217 Update.
12218 * psympriv.h (struct partial_symtab): Add parameters to
12219 constructor. Don't inline.
12220 (allocate_psymtab): Don't declare.
12221 * mdebugread.c (new_psymtab): Use new.
12222 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12223 * dbxread.c (dbx_end_psymtab): Use new.
12224
abaa2f23
TT
122252020-01-26 Tom Tromey <tom@tromey.com>
12226
12227 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12228 allocate_psymtab. Update documentation.
12229 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12230 allocate_psymtab. Do not use new.
12231 (allocate_psymtab): Use new. Update.
12232
6d94535f
TT
122332020-01-26 Tom Tromey <tom@tromey.com>
12234
12235 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12236 * psymtab.c (psym_print_stats): Update.
12237 * psympriv.h (struct partial_symtab) <readin,
12238 psymtabs_addrmap_supported, anonymous>: Now bool.
12239 * mdebugread.c (psymtab_to_symtab_1): Update.
12240 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12241 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12242 (process_full_comp_unit, process_full_type_unit): Update.
12243 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12244 * ctfread.c (psymtab_to_symtab): Update.
12245
6f17252b
TT
122462020-01-26 Tom Tromey <tom@tromey.com>
12247
12248 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12249 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12250 * psymtab.c (psymtab_storage): Delete psymtabs.
12251 (psymtab_storage::allocate_psymtab): Use new.
12252 (psymtab_storage::discard_psymtab): Use delete.
12253 * psympriv.h (struct partial_symtab): Add constructor and
12254 initializers.
12255
f6f1cebc
TT
122562020-01-26 Tom Tromey <tom@tromey.com>
12257
12258 * machoread.c: Do not include psympriv.h.
12259
e47e48f6
PW
122602020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12261
12262 * NEWS: Mention the new option and the set/show commands.
12263
a2fedca9
PW
122642020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12265
12266 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12267 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12268 (validate_exec_file): New variables, enums, functions.
12269 (exec_file_locate_attach, print_section_info): Style the filenames.
12270 (_initialize_exec): Install show_exec_file_mismatch_command and
12271 set_exec_file_mismatch_command.
12272 * gdbcore.h (validate_exec_file): Declare.
12273 * infcmd.c (attach_command): Call validate_exec_file.
12274 * remote.c ( remote_target::remote_add_inferior): Likewise.
12275
7ffa82e1
AB
122762020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12277
12278 * frame.c (find_frame_sal): Move call to get_next_frame into more
12279 inner scope.
12280 * inline-frame.c (inilne_state) <inline_state>: Update argument
12281 types.
12282 (inilne_state) <skipped_symbol>: Rename to...
12283 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12284 (skip_inline_frames): Build vector of skipped symbols and use this
12285 to reate the inline_state.
12286 (inline_skipped_symbol): Add a comment and some assertions, fetch
12287 skipped symbol from the list.
12288
3d92a3e3
AB
122892020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12290
12291 * buildsym.c (lte_is_less_than): Delete.
12292 (buildsym_compunit::end_symtab_with_blockvector): Create local
12293 lambda function to sort line table entries, and use
12294 std::stable_sort instead of std::sort.
12295 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12296 markers when looking for a previous line.
12297
94a72be7
AB
122982020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12299
12300 * dwarf2read.c (lnp_state_machine::record_line): Include
12301 end_sequence parameter in debug print out. Record the line if we
12302 are at an end_sequence marker even if it's not the start of a
12303 statement.
12304 * symmisc.c (maintenance_print_one_line_table): Print end of
12305 sequence markers with 'END' not '0'.
12306
53af73bf
PA
123072020-01-24 Pedro Alves <palves@redhat.com>
12308
12309 PR gdb/25410
12310 * thread.c (scoped_restore_current_thread::restore): Use
12311 switch_to_inferior_no_thread.
12312 * exec.c: Include "progspace-and-thread.h".
12313 (add_target_sections, remove_target_sections):
12314 scoped_restore_current_pspace_and_thread instead of
12315 scoped_restore_current_thread.
12316 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12317 and aspace to the inferior before calling clone_program_space.
12318 Remove stale comment.
12319
3050c6f4
CB
123202020-01-24 Christian Biesinger <cbiesinger@google.com>
12321
12322 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12323 (arm_netbsd_nat_target::fetch_registers): ...this.
12324 (arm_nbsd_nat_target::store_registers): Rename to...
12325 (arm_netbsd_nat_target::store_registers): ...this.
12326
73685c7e
CB
123272020-01-24 Christian Biesinger <cbiesinger@google.com>
12328
12329 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12330 register_t.
12331
89203d40
CB
123322020-01-24 Christian Biesinger <cbiesinger@google.com>
12333
12334 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12335 Update comment.
12336 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12337 Likewise.
12338 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12339 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12340 the correct replacement (iterate_over_regset_sections).
12341 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12342 Update comment.
12343
1ba1ac88
AB
123442020-01-24 Graham Markall <graham.markall@embecosm.com>
12345
12346 PR gdb/23718
12347 * gdb/python/python.c (execute_gdb_command): Call
12348 async_enable_stdin in catch block.
12349
f3364a6d
AB
123502020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12351
12352 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12353 SWITCH_THRU_ALL_UIS.
12354
733d0a67
AB
123552020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12356
12357 PR tui/9765
12358 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12359 comment, add extra parameter, and update to store previous symbol
12360 when appropriate.
12361 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12362 add extra parameter.
12363 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12364 remove unneeded parameter, add try/catch around gdb_print_insn,
12365 rewrite to add items to asm_lines vector.
12366 (tui_find_backward_disassembly_start_address): New function.
12367 (tui_find_disassembly_address): Updated throughout.
12368 (tui_disasm_window::set_contents): Update for changes to
12369 tui_disassemble.
12370 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12371 number of lines to scroll.
12372
b3b3bada
SM
123732020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12374
12375 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12376 (SECT_OFF_DATA): Likewise.
12377 (SECT_OFF_RODATA): Likewise.
12378 (SECT_OFF_TEXT): Likewise.
12379 (SECT_OFF_BSS): Likewise.
12380 (struct objfile) <text_section_offset, data_section_offset>: New
12381 methods.
12382 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12383 objfile::text_section_offset.
12384 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12385 * coffread.c (coff_symtab_read): Likewise.
12386 (enter_linenos): Likewise.
12387 (process_coff_symbol): Likewise.
12388 * ctfread.c (get_objfile_text_range): Likewise.
12389 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12390 Use objfile::data_section_offset.
12391 * dwarf2-frame.c (execute_cfa_program): Use
12392 objfile::text_section_offset.
12393 (dwarf2_frame_find_fde): Likewise.
12394 * dwarf2read.c (create_addrmap_from_index): Likewise.
12395 (create_addrmap_from_aranges): Likewise.
12396 (dw2_find_pc_sect_compunit_symtab): Likewise.
12397 (process_psymtab_comp_unit_reader): Likewise.
12398 (add_partial_symbol): Likewise.
12399 (add_partial_subprogram): Likewise.
12400 (process_full_comp_unit): Likewise.
12401 (read_file_scope): Likewise.
12402 (read_func_scope): Likewise.
12403 (read_lexical_block_scope): Likewise.
12404 (read_call_site_scope): Likewise.
12405 (dwarf2_rnglists_process): Likewise.
12406 (dwarf2_ranges_process): Likewise.
12407 (dwarf2_ranges_read): Likewise.
12408 (dwarf_decode_lines_1): Likewise.
12409 (new_symbol): Likewise.
12410 (dwarf2_fetch_die_loc_sect_off): Likewise.
12411 (dwarf2_per_cu_text_offset): Likewise.
12412 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12413 * hppa-tdep.c (read_unwind_info): Likewise.
12414 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12415 * psympriv.h (struct partial_symtab): Likewise.
12416 * psymtab.c (find_pc_sect_psymtab): Likewise.
12417 * solib-svr4.c (enable_break): Likewise.
12418 * stap-probe.c (relocate_address): Use
12419 objfile::data_section_offset.
12420 * xcoffread.c (enter_line_range): Use
12421 objfile::text_section_offset.
12422 (read_xcoff_symtab): Likewise.
12423
ab53f382
SM
124242020-01-23 Simon Marchi <simon.marchi@efficios.com>
12425
12426 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12427 declaration to narrower scopes.
12428
e7eee665
SM
124292020-01-23 Simon Marchi <simon.marchi@efficios.com>
12430
12431 * darwin-nat.h (struct darwin_exception_msg, enum
12432 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12433 Move up.
12434 (class darwin_nat_target) <wait_1, check_new_threads,
12435 decode_exception_message, decode_message, stop_inferior,
12436 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12437 * darwin-nat.c (darwin_check_new_threads): Rename to...
12438 (darwin_nat_target::check_new_threads): ... this.
12439 (darwin_suspend_inferior_it): Remove.
12440 (darwin_decode_exception_message): Rename to...
12441 (darwin_nat_target::decode_exception_message): ... this.
12442 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12443 (darwin_decode_message): Rename to...
12444 (darwin_nat_target::decode_message): ... this.
12445 (cancel_breakpoint): Rename to...
12446 (darwin_nat_target::cancel_breakpoint): ... this.
12447 (darwin_wait): Rename to...
12448 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12449 instead of iterate_over_inferiors.
12450 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12451 (darwin_stop_inferior): Rename to...
12452 (darwin_nat_target::stop_inferior): ... this.
12453 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12454 (darwin_init_thread_list): Rename to...
12455 (darwin_nat_target::init_thread_list): ... this.
12456 (darwin_ptrace_him): Rename to...
12457 (darwin_nat_target::ptrace_him): ... this.
12458 (darwin_nat_target::create_inferior): Pass lambda function to
12459 fork_inferior.
12460 (darwin_nat_target::detach): Call stop_inferior instead of
12461 darwin_stop_inferior.
12462 * fork-inferior.h (fork_inferior): Change init_trace_fun
12463 parameter to gdb::function_view.
12464 * fork-inferior.c (fork_inferior): Likewise.
12465
c162ed3e
HD
124662020-01-23 Hannes Domani <ssbssa@yahoo.de>
12467
12468 * i386-cygwin-tdep.c (core_process_module_section): Update.
12469 * windows-nat.c (struct lm_info_windows): Add text_offset.
12470 (windows_xfer_shared_libraries): Update.
12471 * windows-tdep.c (windows_xfer_shared_library):
12472 Add text_offset_cached argument.
12473 * windows-tdep.h (windows_xfer_shared_library): Update.
12474
a1237872
SM
124752020-01-21 Simon Marchi <simon.marchi@efficios.com>
12476
12477 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12478
b3ee6dd9
SM
124792020-01-21 Simon Marchi <simon.marchi@efficios.com>
12480
12481 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12482 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12483 replace with range-based for.
12484 (gdbsim_interrupt_inferior): Remove.
12485 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12486 with a range-based for. Inline code from
12487 gdbsim_interrupt_inferior.
12488
f9fac3c8
SM
124892020-01-21 Simon Marchi <simon.marchi@efficios.com>
12490
12491 * infrun.c (proceed): Fix indentation.
12492
f6474de9
TT
124932020-01-21 Tom Tromey <tromey@adacore.com>
12494
12495 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12496 * python/python.c (python_extension_ops): Update.
12497 (gdbpy_colorize): New function.
12498 * python/lib/gdb/__init__.py (colorize): New function.
12499 * extension.h (ext_lang_colorize): Declare.
12500 * extension.c (ext_lang_colorize): New function.
12501 * extension-priv.h (struct extension_language_ops) <colorize>: New
12502 member.
12503 * cli/cli-style.c (_initialize_cli_style): Update help text.
12504
f0c702d4
LM
125052020-01-21 Luis Machado <luis.machado@linaro.org>
12506
12507 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12508 <cond>: Change type to bool.
12509 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12510 (aarch64_displaced_step_cb): Likewise.
12511 (aarch64_displaced_step_tb): Likewise.
12512
1ab139e5
LM
125132020-01-21 Luis Machado <luis.machado@linaro.org>
12514
12515 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12516 output.
12517
0c271889
LM
125182020-01-21 Luis Machado <luis.machado@linaro.org>
12519
12520 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12521 <pc_adjust>: Adjust the documentation.
12522 (aarch64_displaced_step_fixup): Check if PC really moved before
12523 adjusting it.
12524
4d89c1c7
TT
125252020-01-19 Tom Tromey <tom@tromey.com>
12526
12527 * disasm.c (~gdb_disassembler): New destructor.
12528 (gdb_buffered_insn_length): Call disassemble_free_target.
12529 * disasm.h (class gdb_disassembler): Declare destructor. Use
12530 DISABLE_COPY_AND_ASSIGN.
12531
c0ab21c2
TT
125322020-01-19 Tom Tromey <tom@tromey.com>
12533
12534 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12535 (die_reader_func_ftype): Remove.
12536 (cutu_reader): New class.
12537 (dw2_get_file_names_reader): Remove "data" parameter.
12538 (dw2_get_file_names): Use cutu_reader.
12539 (create_debug_type_hash_table): Update.
12540 (read_cutu_die_from_dwo): Update comment.
12541 (lookup_dwo_unit): Add dwo_name parameter.
12542 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12543 die_reader_func_ftype and data parameters.
12544 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12545 Remove die_reader_func_ftype and data parameters.
12546 (~cutu_reader): New; from init_cutu_and_read_dies.
12547 (cutu_reader::cutu_reader): Rename from
12548 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12549 and data parameters.
12550 (init_cutu_and_read_dies_simple): Remove.
12551 (struct process_psymtab_comp_unit_data): Remove.
12552 (process_psymtab_comp_unit_reader): Remove data parameter; add
12553 want_partial_unit and pretend_language parameters.
12554 (process_psymtab_comp_unit): Use cutu_reader.
12555 (build_type_psymtabs_reader): Remove data parameter.
12556 (build_type_psymtabs_1): Use cutu_reader.
12557 (process_skeletonless_type_unit): Likewise.
12558 (load_partial_comp_unit_reader): Remove.
12559 (load_partial_comp_unit): Use cutu_reader.
12560 (load_full_comp_unit_reader): Remove.
12561 (load_full_comp_unit): Use cutu_reader.
12562 (struct create_dwo_cu_data): Remove.
12563 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12564 dwo_unit parameters.
12565 (create_cus_hash_table): Use cutu_reader.
12566 (struct dwarf2_read_addr_index_data): Remove.
12567 (dwarf2_read_addr_index_reader): Remove.
12568 (dwarf2_read_addr_index): Use cutu_reader.
12569 (read_signatured_type_reader): Remove.
12570 (read_signatured_type): Use cutu_reader.
12571
45bbae5c
TT
125722020-01-19 Tom Tromey <tom@tromey.com>
12573
12574 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12575 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12576 (tui_wrefresh): Declare.
12577 * tui/tui-wingeneral.c (suppress_output): New global.
12578 (tui_suppress_output, ~tui_suppress_output): New constructor and
12579 destructor.
12580 (tui_wrefresh): New function.
12581 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12582 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12583 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12584 method.
12585 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12586 tui_wrefresh.
12587 (tui_data_window::no_refresh): New method.
12588 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12589 (tui_reg_command): Use tui_suppress_output
12590 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12591 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12592 method.
12593 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12594
4f13c1c0
TT
125952020-01-19 Tom Tromey <tom@tromey.com>
12596
12597 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12598 Handle case where symtab is null.
12599
fa47e446
SM
126002020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12601
12602 * linux-fork.c (one_fork_p): Simplify.
12603
26f42329
SM
126042020-01-17 Simon Marchi <simon.marchi@efficios.com>
12605
12606 * top.c (struct qt_args): Remove.
12607 (kill_or_detach): Change return type to void, replace `void *`
12608 parameter with a proper one.
12609 (print_inferior_quit_action): Likewise.
12610 (quit_confirm): Use range-based for loop to iterate over inferiors.
12611 (quit_force): Likewise.
12612
a9ac81b1
SM
126132020-01-17 Simon Marchi <simon.marchi@efficios.com>
12614
12615 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12616 `void *` parameter with proper parameters.
12617 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12618 (print_one_inferior): Change return type to void, replace `void *`
12619 parameter with proper parameters.
12620 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12621 inferiors.
12622 (get_other_inferior): Remove.
12623 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12624 inferiors.
12625
788eca49
SM
126262020-01-17 Simon Marchi <simon.marchi@efficios.com>
12627
12628 * mi/mi-interp.c (report_initial_inferior): Remove.
12629 (mi_interp::init): Use range-based for to iterate over inferiors.
12630
d9bc85b6
SM
126312020-01-17 Simon Marchi <simon.marchi@efficios.com>
12632
12633 * python/py-inferior.c (build_inferior_list): Remove.
12634 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12635
40c94099
CB
126362020-01-16 Christian Biesinger <cbiesinger@google.com>
12637
12638 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12639 (btrace_stitch_trace): Likewise.
12640 * charset.c (intermediate_encoding): Likewise (vaild).
12641 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12642 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12643 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12644
e0cdfe3c
HD
126452020-01-16 Hannes Domani <ssbssa@yahoo.de>
12646
12647 * windows-tdep.c (windows_get_tlb_type):
12648 Add rtl_user_process_parameters type.
12649
790f1718 126502020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12651 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12652
12653 PR build/24805
12654 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12655 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12656 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12657 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12658 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12659 (ps_plog): Redeclare exported functions with default visibility.
12660
3112ed97
NA
126612020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12662
12663 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12664 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12665
8dc3273e
SM
126662020-01-15 Simon Marchi <simon.marchi@efficios.com>
12667
12668 * infcmd.c (post_create_inferior): Use get_thread_regcache
12669 instead of get_current_regcache.
12670
ff47f4f0
TT
126712020-01-14 Tom Tromey <tom@tromey.com>
12672
12673 PR symtab/12535:
12674 * python/python.c (gdbpy_decode_line): Treat empty string the same
12675 as no argument.
12676
975f45b7
TT
126772020-01-14 Tom Tromey <tom@tromey.com>
12678
12679 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12680
25e57356
TT
126812020-01-14 Tom Tromey <tom@tromey.com>
12682
12683 * nat/linux-btrace.c: Don't include <config.h>.
12684 * nat/linux-ptrace.c: Don't include <config.h>.
12685 * nat/x86-linux-dregs.c: Don't include <config.h>.
12686
05ea2a05
TT
126872020-01-14 Tom Tromey <tom@tromey.com>
12688
12689 * configure: Rebuild.
12690 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12691
01027315
TT
126922020-01-14 Tom Tromey <tom@tromey.com>
12693
12694 * nat/x86-linux-dregs.c: Include configh.h.
12695 * nat/linux-ptrace.c: Include configh.h.
12696 * nat/linux-btrace.c: Include configh.h.
12697 * defs.h: Include config.h, bfd.h.
12698 * configure.ac: Don't source common.host.
12699 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12700 * configure: Rebuild.
12701 * acinclude.m4: Update path.
12702 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12703 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12704 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12705 (CLIBS): Add LIBSUPPORT.
12706 (CDEPS): Likewise.
12707 (COMMON_SFILES): Remove gdbsupport files.
12708 (HFILES_NO_SRCDIR): Likewise.
12709 (stamp-version): Update path to create-version.sh.
12710 (ALLDEPFILES): Remove gdbsupport files.
12711
b2ceabe8
TT
127122020-01-14 Tom Tromey <tom@tromey.com>
12713
12714 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12715 USE_WIN32API when needed.
12716 * configure.ac (USE_WIN32API): Don't define.
12717 (WIN32LIBS): Use WIN32APILIBS.
12718 * configure: Rebuild.
12719
25c51f71
TT
127202020-01-14 Tom Tromey <tom@tromey.com>
12721
12722 * configure: Rebuild.
12723 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12724
717c684d
BE
127252020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12726
12727 * skip.c (skip_function_command): Make skip w/o arguments use the
12728 name of the inlined function if pc is inside any inlined function.
12729
7da6a5b9
LM
127302020-01-14 Luis Machado <luis.machado@linaro.org>
12731
12732 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12733 * infrun.c (resume_1): Likewise.
12734 (handle_inferior_event): Remove stale comment.
12735 * linux-nat.c (linux_nat_target::resume): Update comments.
12736 (save_stop_reason): Likewise.
12737 (linux_nat_filter_event): Likewise.
12738 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12739
44e4c775
AB
127402020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12741
12742 * elfread.c (record_minimal_symbol): Set section index to 0 for
12743 non-allocatable sections.
12744
18a8505e
AT
12745
127462020-01-13 Ali Tamur <tamur@google.com>
12747
12748 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12749 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12750 to gdb::optional. Update comments.
12751 (dwo_file): Update comments.
12752 (read_attribute): Update API to take an additional out parameter,
12753 need_reprocess. This is used to mark attributes that need other
12754 attributes (e.g. str_offsets_base) for correct computation which may not
12755 have been read yet.
12756 (read_attribute_reprocess): New function declaration.
12757 (read_addr_index): Likewise.
12758 (read_dwo_str_index): Likewise.
12759 (read_stub_str_index): Likewise.
12760 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12761 (lookup_addr_base): New function definition.
12762 (lookup_ranges_base): Likewise.
12763 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12764 lookup_ranges_base.
12765 (init_cutu_and_read_dies): Update comments.
12766 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12767 unit. This is used to inherit parent's str_offsets_base and addr_base.
12768 Update comments.
12769 (init_cutu_and_read_dies_simple): Reflect API changes.
12770 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12771 (create_cus_hash_table): Change API to take parent compile unit.
12772 Reflect API changes.
12773 (open_and_init_dwo_file): Reflect API changes.
12774 (dwarf2_get_pc_bounds): Update comments.
12775 (dwarf2_record_block_ranges): Likewise.
12776 (read_full_die_1): Change implementation to reprocess attributes that
12777 need str_offsets_base and addr_base.
12778 (partial_die_info::read): Likewise.
12779 (read_attribute_reprocess): New function definition.
12780 (read_attribute_value): Change API to take an additional out parameter,
12781 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12782 when a non-dwo compile unit has index based attributes.
12783 (read_attribute): Reflect API changes.
12784 (read_addr_index_1): Reflect API changes. Update comments.
12785 (dwarf2_read_addr_index_data): Reflect API changes.
12786 (dwarf2_read_addr_index): Likewise.
12787 (read_str_index): Change API and implementation. This becomes a helper
12788 to be used by the new string index related methods. Update error
12789 message and comments.
12790 (read_dwo_str_index): New function definition.
12791 (read_stub_str_index): Likewise.
12792 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12793 * symfile.h (dwarf2_debug_sections): Likewise.
12794 * xcoffread.c (dwarf2_debug_sections): Likewise.
12795
0cac9354
SM
127962020-01-13 Simon Marchi <simon.marchi@efficios.com>
12797
12798 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12799 core_reg_sect type to gdb_byte *.
12800 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12801 * cris-tdep.c (fetch_core_registers): Likewise.
12802 * corelow.c (core_target::get_core_register_section): Change
12803 type of `contents` to gdb::byte_vector.
12804
9a6d629c
AB
128052020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12806
12807 * tui/tui-wingeneral.c (box_win): Position the title in the center
12808 of the border.
12809
d8b2f9e3
SM
128102020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12811
12812 * corelow.c (core_target::get_core_register_section): Use
12813 std::vector instead of alloca.
12814
bb564c58
SM
128152020-01-13 Simon Marchi <simon.marchi@efficios.com>
12816
12817 * warning.m4: Add -Wmissing-declarations to build_warnings.
12818 * configure: Re-generate.
12819
6b366111
SM
128202020-01-13 Simon Marchi <simon.marchi@efficios.com>
12821
12822 * python/python.c (init__gdb_module): Add declaration.
12823
6c265988
SM
128242020-01-13 Simon Marchi <simon.marchi@efficios.com>
12825
12826 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12827 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12828 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12829 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12830 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12831 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12832 * ada-exp.y (_initialize_ada_exp): Add declaration.
12833 * ada-lang.c (_initialize_ada_language): Add declaration.
12834 * ada-tasks.c (_initialize_tasks): Add declaration.
12835 * agent.c (_initialize_agent): Add declaration.
12836 * aix-thread.c (_initialize_aix_thread): Add declaration.
12837 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12838 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12839 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12840 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12841 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12842 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12843 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12844 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12845 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12846 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12847 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12848 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12849 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12850 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12851 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12852 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12853 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12854 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12855 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12856 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12857 * annotate.c (_initialize_annotate): Add declaration.
12858 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12859 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12860 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12861 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12862 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12863 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12864 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12865 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12866 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12867 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12868 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12869 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12870 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12871 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12872 * auto-load.c (_initialize_auto_load): Add declaration.
12873 * auxv.c (_initialize_auxv): Add declaration.
12874 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12875 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12876 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12877 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12878 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12879 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12880 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12881 * breakpoint.c (_initialize_breakpoint): Add declaration.
12882 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12883 * btrace.c (_initialize_btrace): Add declaration.
12884 * charset.c (_initialize_charset): Add declaration.
12885 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12886 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12887 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12888 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12889 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12890 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12891 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12892 * coffread.c (_initialize_coffread): Add declaration.
12893 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12894 * compile/compile.c (_initialize_compile): Add declaration.
12895 * complaints.c (_initialize_complaints): Add declaration.
12896 * completer.c (_initialize_completer): Add declaration.
12897 * copying.c (_initialize_copying): Add declaration.
12898 * corefile.c (_initialize_core): Add declaration.
12899 * corelow.c (_initialize_corelow): Add declaration.
12900 * cp-abi.c (_initialize_cp_abi): Add declaration.
12901 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12902 * cp-support.c (_initialize_cp_support): Add declaration.
12903 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12904 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12905 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12906 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12907 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12908 * ctfread.c (_initialize_ctfread): Add declaration.
12909 * d-lang.c (_initialize_d_language): Add declaration.
12910 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12911 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12912 * dbxread.c (_initialize_dbxread): Add declaration.
12913 * dcache.c (_initialize_dcache): Add declaration.
12914 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12915 * disasm.c (_initialize_disasm): Add declaration.
12916 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12917 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12918 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12919 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12920 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12921 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12922 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12923 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12924 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12925 * elfread.c (_initialize_elfread): Add declaration.
12926 * exec.c (_initialize_exec): Add declaration.
12927 * extension.c (_initialize_extension): Add declaration.
12928 * f-lang.c (_initialize_f_language): Add declaration.
12929 * f-valprint.c (_initialize_f_valprint): Add declaration.
12930 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12931 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12932 * filesystem.c (_initialize_filesystem): Add declaration.
12933 * findcmd.c (_initialize_mem_search): Add declaration.
12934 * findvar.c (_initialize_findvar): Add declaration.
12935 * fork-child.c (_initialize_fork_child): Add declaration.
12936 * frame-base.c (_initialize_frame_base): Add declaration.
12937 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12938 * frame.c (_initialize_frame): Add declaration.
12939 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12940 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12941 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12942 * gcore.c (_initialize_gcore): Add declaration.
12943 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12944 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12945 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12946 * gdbarch.c (_initialize_gdbarch): Add declaration.
12947 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12948 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12949 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12950 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12951 * go-lang.c (_initialize_go_language): Add declaration.
12952 * go32-nat.c (_initialize_go32_nat): Add declaration.
12953 * guile/guile.c (_initialize_guile): Add declaration.
12954 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12955 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12956 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12957 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12958 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12959 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12960 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12961 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12962 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12963 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12964 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12965 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12966 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12967 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12968 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12969 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12970 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12971 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12972 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12973 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12974 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12975 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12976 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12977 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12978 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12979 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12980 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12981 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12982 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12983 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12984 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12985 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12986 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12987 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12988 * infcall.c (_initialize_infcall): Add declaration.
12989 * infcmd.c (_initialize_infcmd): Add declaration.
12990 * inflow.c (_initialize_inflow): Add declaration.
12991 * infrun.c (_initialize_infrun): Add declaration.
12992 * interps.c (_initialize_interpreter): Add declaration.
12993 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12994 * jit.c (_initialize_jit): Add declaration.
12995 * language.c (_initialize_language): Add declaration.
12996 * linux-fork.c (_initialize_linux_fork): Add declaration.
12997 * linux-nat.c (_initialize_linux_nat): Add declaration.
12998 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12999 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13000 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13001 * m2-lang.c (_initialize_m2_language): Add declaration.
13002 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13003 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13004 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13005 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13006 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13007 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13008 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13009 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13010 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13011 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13012 * machoread.c (_initialize_machoread): Add declaration.
13013 * macrocmd.c (_initialize_macrocmd): Add declaration.
13014 * macroscope.c (_initialize_macroscope): Add declaration.
13015 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13016 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13017 * maint.c (_initialize_maint_cmds): Add declaration.
13018 * mdebugread.c (_initialize_mdebugread): Add declaration.
13019 * memattr.c (_initialize_mem): Add declaration.
13020 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13021 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13022 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13023 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13024 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13025 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13026 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13027 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13028 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13029 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13030 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13031 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13032 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13033 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13034 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13035 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13036 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13037 * mipsread.c (_initialize_mipsread): Add declaration.
13038 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13039 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13040 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13041 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13042 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13043 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13044 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13045 * nto-procfs.c (_initialize_procfs): Add declaration.
13046 * objc-lang.c (_initialize_objc_language): Add declaration.
13047 * observable.c (_initialize_observer): Add declaration.
13048 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13049 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13050 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13051 * osabi.c (_initialize_gdb_osabi): Add declaration.
13052 * osdata.c (_initialize_osdata): Add declaration.
13053 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13054 * parse.c (_initialize_parse): Add declaration.
13055 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13056 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13057 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13058 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13059 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13060 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13061 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13062 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13063 * printcmd.c (_initialize_printcmd): Add declaration.
13064 * probe.c (_initialize_probe): Add declaration.
13065 * proc-api.c (_initialize_proc_api): Add declaration.
13066 * proc-events.c (_initialize_proc_events): Add declaration.
13067 * proc-service.c (_initialize_proc_service): Add declaration.
13068 * procfs.c (_initialize_procfs): Add declaration.
13069 * producer.c (_initialize_producer): Add declaration.
13070 * psymtab.c (_initialize_psymtab): Add declaration.
13071 * python/python.c (_initialize_python): Add declaration.
13072 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13073 * record-btrace.c (_initialize_record_btrace): Add declaration.
13074 * record-full.c (_initialize_record_full): Add declaration.
13075 * record.c (_initialize_record): Add declaration.
13076 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13077 * regcache.c (_initialize_regcache): Add declaration.
13078 * reggroups.c (_initialize_reggroup): Add declaration.
13079 * remote-notif.c (_initialize_notif): Add declaration.
13080 * remote-sim.c (_initialize_remote_sim): Add declaration.
13081 * remote.c (_initialize_remote): Add declaration.
13082 * reverse.c (_initialize_reverse): Add declaration.
13083 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13084 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13085 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13086 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13087 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13088 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13089 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13090 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13091 Add declaration.
13092 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13093 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13094 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13095 * rust-exp.y (_initialize_rust_exp): Add declaration.
13096 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13097 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13098 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13099 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13100 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13101 * score-tdep.c (_initialize_score_tdep): Add declaration.
13102 * ser-go32.c (_initialize_ser_dos): Add declaration.
13103 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13104 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13105 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13106 * ser-uds.c (_initialize_ser_socket): Add declaration.
13107 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13108 * serial.c (_initialize_serial): Add declaration.
13109 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13110 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13111 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13112 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13113 * skip.c (_initialize_step_skip): Add declaration.
13114 * sol-thread.c (_initialize_sol_thread): Add declaration.
13115 * solib-aix.c (_initialize_solib_aix): Add declaration.
13116 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13117 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13118 * solib-frv.c (_initialize_frv_solib): Add declaration.
13119 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13120 * solib-target.c (_initialize_solib_target): Add declaration.
13121 * solib.c (_initialize_solib): Add declaration.
13122 * source-cache.c (_initialize_source_cache): Add declaration.
13123 * source.c (_initialize_source): Add declaration.
13124 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13125 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13126 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13127 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13128 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13129 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13130 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13131 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13132 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13133 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13134 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13135 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13136 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13137 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13138 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13139 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13140 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13141 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13142 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13143 * stabsread.c (_initialize_stabsread): Add declaration.
13144 * stack.c (_initialize_stack): Add declaration.
13145 * stap-probe.c (_initialize_stap_probe): Add declaration.
13146 * std-regs.c (_initialize_frame_reg): Add declaration.
13147 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13148 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13149 * symfile.c (_initialize_symfile): Add declaration.
13150 * symmisc.c (_initialize_symmisc): Add declaration.
13151 * symtab.c (_initialize_symtab): Add declaration.
13152 * target.c (_initialize_target): Add declaration.
13153 * target-connection.c (_initialize_target_connection): Add
13154 declaration.
13155 * target-dcache.c (_initialize_target_dcache): Add declaration.
13156 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13157 * thread.c (_initialize_thread): Add declaration.
13158 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13159 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13160 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13161 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13162 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13163 * tracectf.c (_initialize_ctf): Add declaration.
13164 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13165 * tracefile.c (_initialize_tracefile): Add declaration.
13166 * tracepoint.c (_initialize_tracepoint): Add declaration.
13167 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13168 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13169 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13170 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13171 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13172 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13173 * tui/tui.c (_initialize_tui): Add declaration.
13174 * typeprint.c (_initialize_typeprint): Add declaration.
13175 * ui-style.c (_initialize_ui_style): Add declaration.
13176 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13177 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13178 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13179 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13180 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13181 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13182 * unittests/filtered_iterator-selftests.c
13183 (_initialize_filtered_iterator_selftests): Add declaration.
13184 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13185 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13186 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13187 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13188 * unittests/main-thread-selftests.c
13189 (_initialize_main_thread_selftests): Add declaration.
13190 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13191 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13192 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13193 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13194 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13195 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13196 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13197 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13198 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13199 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13200 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13201 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13202 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13203 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13204 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13205 declaration.
13206 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13207 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13208 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13209 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13210 * user-regs.c (_initialize_user_regs): Add declaration.
13211 * utils.c (_initialize_utils): Add declaration.
13212 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13213 * valops.c (_initialize_valops): Add declaration.
13214 * valprint.c (_initialize_valprint): Add declaration.
13215 * value.c (_initialize_values): Add declaration.
13216 * varobj.c (_initialize_varobj): Add declaration.
13217 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13218 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13219 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13220 * windows-nat.c (_initialize_windows_nat): Add declaration.
13221 (_initialize_check_for_gdb_ini): Add declaration.
13222 (_initialize_loadable): Add declaration.
13223 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13224 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13225 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13226 * xcoffread.c (_initialize_xcoffread): Add declaration.
13227 * xml-support.c (_initialize_xml_support): Add declaration.
13228 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13229 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13230 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13231 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13232
e2de1eec
SM
132332020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13234
13235 * regformats/regdat.sh: Generate declaration for init function.
13236
e0037b4c
SM
132372020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13238
13239 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13240 up.
13241 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13242 close_one_inferior>: New methods.
13243 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13244 pass down target to find_inferior_pid.
13245 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13246 Pass down target to find_inferior_ptid.
13247 (gdbsim_target::create_inferior): Pass down target to
13248 add_thread_silent.
13249 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13250 target down to find_inferior_ptid and switch_to_thread.
13251 (gdbsim_target::close): Update to call close_one_inferior.
13252 (struct resume_data): Remove.
13253 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13254 directly, rather than through a void pointer.
13255 (gdbsim_target::resume): Update to call resume_one_inferior.
13256
58920b5b
SM
132572020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13258
13259 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13260
4ec89149
PA
132612020-01-12 Pedro Alves <palves@redhat.com>
13262
13263 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13264 directly for the current inferior instead of
13265 discard_all_inferiors.
13266 (discard_all_inferiors): Delete.
13267
7c392d1d
TT
132682020-01-11 Tom Tromey <tom@tromey.com>
13269
13270 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13271 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13272 deprecated_safe_get_selected_frame.
13273
d9ebdab7
TBA
132742020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13275
13276 * inferior.c (print_inferior): Switch inferior before printing it.
13277
f3c469b9
PA
132782020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13279 Pedro Alves <palves@redhat.com>
13280
13281 * progspace-and-thread.c (switch_to_program_space_and_thread):
13282 Assert there's an inferior for PSPACE. Use
13283 switch_to_inferior_no_thread to switch the inferior too.
13284 * progspace.c (program_space::~program_space): Call
13285 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13286 (program_space::free_all_objfiles): Don't call clear_symtab_users
13287 here.
13288 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13289
65c574f6
PA
132902020-01-10 Pedro Alves <palves@redhat.com>
13291
13292 * NEWS: Mention multi-target debugging, "info connections", and
13293 "add-inferior -no-connection".
13294
2f4fcf00
PA
132952020-01-10 Pedro Alves <palves@redhat.com>
13296
13297 * infrun.c: Include "target-connection.h".
13298 (check_multi_target_resumption): New.
13299 (proceed): Call it.
13300 * target-connection.c (make_target_connection_string): Make
13301 extern.
13302 * target-connection.h (make_target_connection_string): Declare.
13303
121b3efd
PA
133042020-01-10 Pedro Alves <palves@redhat.com>
13305
13306 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13307 * inferior.c (uiout_field_connection): New function.
13308 (print_inferior): Add new "connection-id" column.
13309 (add_inferior_command): Show connection number/string of added
13310 inferior.
13311 * process-stratum-target.h
13312 (process_stratum_target::connection_string): New virtual method.
13313 (process_stratum_target::connection_number): New field.
13314 * remote.c (remote_target::connection_string): New override.
13315 * target-connection.c: New file.
13316 * target-connection.h: New file.
13317 * target.c (decref_target): Remove process_stratum targets from
13318 the connection list.
13319 (target_stack::push): Add process_stratum targets to the
13320 connection list.
13321
4f837581
PA
133222020-01-10 Pedro Alves <palves@redhat.com>
13323
13324 Revert:
13325 2016-04-12 Pedro Alves <palves@redhat.com>
13326 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13327 Remove references to name.
13328 * serial.h (struct serial) <name>: Delete.
13329
f4ec508e
PA
133302020-01-10 Pedro Alves <palves@redhat.com>
13331
13332 * gdbarch-selftests.c (register_to_value_test): Remove "target
13333 already pushed" check.
13334
5b6d1e4f
PA
133352020-01-10 Pedro Alves <palves@redhat.com>
13336 John Baldwin <jhb@FreeBSD.org>
13337
13338 * aarch64-linux-nat.c
13339 (aarch64_linux_nat_target::thread_architecture): Adjust.
13340 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13341 (task_command_1): Likewise.
13342 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13343 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13344 (aix_thread_target::store_registers)
13345 (aix_thread_target::thread_alive): Adjust.
13346 * amd64-fbsd-tdep.c: Include "inferior.h".
13347 (amd64fbsd_get_thread_local_address): Pass down target.
13348 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13349 thread's gdbarch instead of target_gdbarch.
13350 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13351 get_last_target_status.
13352 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13353 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13354 inferiors.
13355 (update_inserted_breakpoint_locations): Skip if inferiors with no
13356 execution.
13357 (update_global_location_list): When handling moribund locations,
13358 find representative inferior for location's pspace, and use thread
13359 count of its process_stratum target.
13360 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13361 * bsd-uthread.c (bsd_uthread_target::wait): Use
13362 as_process_stratum_target and adjust thread_change_ptid and
13363 add_thread calls.
13364 (bsd_uthread_target::update_thread_list): Use
13365 as_process_stratum_target and adjust find_thread_ptid,
13366 thread_change_ptid and add_thread calls.
13367 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13368 find_thread_ptid call.
13369 * corelow.c (add_to_thread_list): Adjust add_thread call.
13370 (core_target_open): Adjust add_thread_silent and thread_count
13371 calls.
13372 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13373 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13374 * event-top.c (async_disconnect): Pop targets from all inferiors.
13375 * exec.c (add_target_sections): Push exec target on all inferiors
13376 sharing the program space.
13377 (remove_target_sections): Remove the exec target from all
13378 inferiors sharing the program space.
13379 (exec_on_vfork): New.
13380 * exec.h (exec_on_vfork): Declare.
13381 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13382 Pass it down.
13383 (fbsd_nat_target::update_thread_list): Adjust.
13384 (fbsd_nat_target::resume): Adjust.
13385 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13386 down.
13387 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13388 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13389 get_thread_arch_regcache call.
13390 * fork-child.c (gdb_startup_inferior): Pass target down to
13391 startup_inferior and set_executing.
13392 * gdbthread.h (struct process_stratum_target): Forward declare.
13393 (add_thread, add_thread_silent, add_thread_with_info)
13394 (in_thread_list): Add process_stratum_target parameter.
13395 (find_thread_ptid(inferior*, ptid_t)): New overload.
13396 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13397 parameter.
13398 (all_threads()): Delete overload.
13399 (all_threads, all_non_exited_threads): Add process_stratum_target
13400 parameter.
13401 (all_threads_safe): Use brace initialization.
13402 (thread_count): Add process_stratum_target parameter.
13403 (set_resumed, set_running, set_stop_requested, set_executing)
13404 (threads_are_executing, finish_thread_state): Add
13405 process_stratum_target parameter.
13406 (switch_to_thread): Use is_current_thread.
13407 * i386-fbsd-tdep.c: Include "inferior.h".
13408 (i386fbsd_get_thread_local_address): Pass down target.
13409 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13410 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13411 have_inferiors check.
13412 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13413 (inf_ptrace_target::attach): Adjust.
13414 * infcall.c (run_inferior_call): Adjust.
13415 * infcmd.c (run_command_1): Pass target to
13416 scoped_finish_thread_state.
13417 (proceed_thread_callback): Skip inferiors with no execution.
13418 (continue_command): Rename 'all_threads' local to avoid hiding
13419 'all_threads' function. Adjust get_last_target_status call.
13420 (prepare_one_step): Adjust set_running call.
13421 (signal_command): Use user_visible_resume_target. Compare thread
13422 pointers instead of inferior_ptid.
13423 (info_program_command): Adjust to pass down target.
13424 (attach_command): Mark target's 'thread_executing' flag.
13425 (stop_current_target_threads_ns): New, factored out from ...
13426 (interrupt_target_1): ... this. Switch inferior before making
13427 target calls.
13428 * inferior-iter.h
13429 (struct all_inferiors_iterator, struct all_inferiors_range)
13430 (struct all_inferiors_safe_range)
13431 (struct all_non_exited_inferiors_range): Filter on
13432 process_stratum_target too. Remove explicit.
13433 * inferior.c (inferior::inferior): Push dummy target on target
13434 stack.
13435 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13436 Add process_stratum_target parameter, and pass it down.
13437 (have_live_inferiors): Adjust.
13438 (switch_to_inferior_and_push_target): New.
13439 (add_inferior_command, clone_inferior_command): Handle
13440 "-no-connection" parameter. Use
13441 switch_to_inferior_and_push_target.
13442 (_initialize_inferior): Mention "-no-connection" option in
13443 the help of "add-inferior" and "clone-inferior" commands.
13444 * inferior.h: Include "process-stratum-target.h".
13445 (interrupt_target_1): Use bool.
13446 (struct inferior) <push_target, unpush_target, target_is_pushed,
13447 find_target_beneath, top_target, process_target, target_at,
13448 m_stack>: New.
13449 (discard_all_inferiors): Delete.
13450 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13451 (all_inferiors, all_non_exited_inferiors): Add
13452 process_stratum_target parameter.
13453 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13454 (target_last_proc_target): New global.
13455 (follow_fork_inferior): Push target on new inferior. Pass target
13456 to add_thread_silent. Call exec_on_vfork. Handle target's
13457 reference count.
13458 (follow_fork): Adjust get_last_target_status call. Also consider
13459 target.
13460 (follow_exec): Push target on new inferior.
13461 (struct execution_control_state) <target>: New field.
13462 (user_visible_resume_target): New.
13463 (do_target_resume): Call target_async.
13464 (resume_1): Set target's threads_executing flag. Consider resume
13465 target.
13466 (commit_resume_all_targets): New.
13467 (proceed): Also consider resume target. Skip threads of inferiors
13468 with no execution. Commit resumtion in all targets.
13469 (start_remote): Pass current inferior to wait_for_inferior.
13470 (infrun_thread_stop_requested): Consider target as well. Pass
13471 thread_info pointer to clear_inline_frame_state instead of ptid.
13472 (infrun_thread_thread_exit): Consider target as well.
13473 (random_pending_event_thread): New inferior parameter. Use it.
13474 (do_target_wait): Rename to ...
13475 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13476 down.
13477 (threads_are_resumed_pending_p, do_target_wait): New.
13478 (prepare_for_detach): Adjust calls.
13479 (wait_for_inferior): New inferior parameter. Handle it. Use
13480 do_target_wait_1 instead of do_target_wait.
13481 (fetch_inferior_event): Adjust. Switch to representative
13482 inferior. Pass target down.
13483 (set_last_target_status): Add process_stratum_target parameter.
13484 Save target in global.
13485 (get_last_target_status): Add process_stratum_target parameter and
13486 handle it.
13487 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13488 (context_switch): Check inferior_ptid == null_ptid before calling
13489 inferior_thread().
13490 (get_inferior_stop_soon): Pass down target.
13491 (wait_one): Rename to ...
13492 (poll_one_curr_target): ... this.
13493 (struct wait_one_event): New.
13494 (wait_one): New.
13495 (stop_all_threads): Adjust.
13496 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13497 event's target.
13498 (switch_back_to_stepped_thread): Also consider target.
13499 (print_stop_event): Update.
13500 (normal_stop): Update. Also consider the resume target.
13501 * infrun.h (wait_for_inferior): Remove declaration.
13502 (user_visible_resume_target): New declaration.
13503 (get_last_target_status, set_last_target_status): New
13504 process_stratum_target parameter.
13505 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13506 process_stratum_target parameter, and use it.
13507 (clear_inline_frame_state (thread_info*)): New.
13508 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13509 process_stratum_target parameter.
13510 (clear_inline_frame_state (thread_info*)): Declare.
13511 * linux-fork.c (delete_checkpoint_command): Pass target down to
13512 find_thread_ptid.
13513 (checkpoint_command): Adjust.
13514 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13515 instead of just tweaking inferior_ptid.
13516 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13517 (exit_lwp): Pass target down to find_thread_ptid.
13518 (attach_proc_task_lwp_callback): Pass target down to
13519 add_thread/set_running/set_executing.
13520 (linux_nat_target::attach): Pass target down to
13521 thread_change_ptid.
13522 (get_detach_signal): Pass target down to find_thread_ptid.
13523 Consider last target status's target.
13524 (linux_resume_one_lwp_throw, resume_lwp)
13525 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13526 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13527 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13528 (linux_nat_target::async_wait_fd): New.
13529 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13530 target down.
13531 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13532 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13533 * linux-thread-db.c (struct thread_db_info::process_target): New
13534 field.
13535 (add_thread_db_info): Save target.
13536 (get_thread_db_info): New process_stratum_target parameter. Also
13537 match target.
13538 (delete_thread_db_info): New process_stratum_target parameter.
13539 Also match target.
13540 (thread_from_lwp): Adjust to pass down target.
13541 (thread_db_notice_clone): Pass down target.
13542 (check_thread_db_callback): Pass down target.
13543 (try_thread_db_load_1): Always push the thread_db target.
13544 (try_thread_db_load, record_thread): Pass target down.
13545 (thread_db_target::detach): Pass target down. Always unpush the
13546 thread_db target.
13547 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13548 target down. Always unpush the thread_db target.
13549 (find_new_threads_callback, thread_db_find_new_threads_2)
13550 (thread_db_target::update_thread_list): Pass target down.
13551 (thread_db_target::pid_to_str): Pass current inferior down.
13552 (thread_db_target::get_thread_local_address): Pass target down.
13553 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13554 target down.
13555 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13556 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13557 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13558 (procfs_init_inferior): Rename to ...
13559 (procfs_target::procfs_init_inferior): ... this and adjust.
13560 (procfs_target::create_inferior, procfs_notice_thread)
13561 (procfs_do_thread_registers): Adjust.
13562 * ppc-fbsd-tdep.c: Include "inferior.h".
13563 (ppcfbsd_get_thread_local_address): Pass down target.
13564 * proc-service.c (ps_xfer_memory): Switch current inferior and
13565 program space as well.
13566 (get_ps_regcache): Pass target down.
13567 * process-stratum-target.c
13568 (process_stratum_target::thread_address_space)
13569 (process_stratum_target::thread_architecture): Pass target down.
13570 * process-stratum-target.h
13571 (process_stratum_target::threads_executing): New field.
13572 (as_process_stratum_target): New.
13573 * ravenscar-thread.c
13574 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13575 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13576 down.
13577 * record-btrace.c (record_btrace_target::info_record): Adjust.
13578 (record_btrace_target::record_method)
13579 (record_btrace_target::record_is_replaying)
13580 (record_btrace_target::fetch_registers)
13581 (get_thread_current_frame_id, record_btrace_target::resume)
13582 (record_btrace_target::wait, record_btrace_target::stop): Pass
13583 target down.
13584 * record-full.c (record_full_wait_1): Switch to event thread.
13585 Pass target down.
13586 * regcache.c (regcache::regcache)
13587 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13588 process_stratum_target parameter and handle it.
13589 (current_thread_target): New global.
13590 (get_thread_regcache): Add process_stratum_target parameter and
13591 handle it. Switch inferior before calling target method.
13592 (get_thread_regcache): Pass target down.
13593 (get_thread_regcache_for_ptid): Pass target down.
13594 (registers_changed_ptid): Add process_stratum_target parameter and
13595 handle it.
13596 (registers_changed_thread, registers_changed): Pass target down.
13597 (test_get_thread_arch_aspace_regcache): New.
13598 (current_regcache_test): Define a couple local test_target_ops
13599 instances and use them for testing.
13600 (readwrite_regcache): Pass process_stratum_target parameter.
13601 (cooked_read_test, cooked_write_test): Pass mock_target down.
13602 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13603 (get_thread_arch_aspace_regcache): Add process_stratum_target
13604 parameter.
13605 (regcache::target): New method.
13606 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13607 (regcache::registers_changed_ptid): Add process_stratum_target
13608 parameter.
13609 (regcache::m_target): New field.
13610 (registers_changed_ptid): Add process_stratum_target parameter.
13611 * remote.c (remote_state::supports_vCont_probed): New field.
13612 (remote_target::async_wait_fd): New method.
13613 (remote_unpush_and_throw): Add remote_target parameter.
13614 (get_current_remote_target): Adjust.
13615 (remote_target::remote_add_inferior): Push target.
13616 (remote_target::remote_add_thread)
13617 (remote_target::remote_notice_new_inferior)
13618 (get_remote_thread_info): Pass target down.
13619 (remote_target::update_thread_list): Skip threads of inferiors
13620 bound to other targets. (remote_target::close): Don't discard
13621 inferiors. (remote_target::add_current_inferior_and_thread)
13622 (remote_target::process_initial_stop_replies)
13623 (remote_target::start_remote)
13624 (remote_target::remote_serial_quit_handler): Pass down target.
13625 (remote_target::remote_unpush_target): New remote_target
13626 parameter. Unpush the target from all inferiors.
13627 (remote_target::remote_unpush_and_throw): New remote_target
13628 parameter. Pass it down.
13629 (remote_target::open_1): Check whether the current inferior has
13630 execution instead of checking whether any inferior is live. Pass
13631 target down.
13632 (remote_target::remote_detach_1): Pass down target. Use
13633 remote_unpush_target.
13634 (extended_remote_target::attach): Pass down target.
13635 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13636 (remote_target::append_resumption): Pass down target.
13637 (remote_target::append_pending_thread_resumptions)
13638 (remote_target::remote_resume_with_hc, remote_target::resume)
13639 (remote_target::commit_resume): Pass down target.
13640 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13641 (remote_target::interrupt_query)
13642 (remote_target::remove_new_fork_children)
13643 (remote_target::check_pending_events_prevent_wildcard_vcont)
13644 (remote_target::remote_parse_stop_reply)
13645 (remote_target::process_stop_reply): Pass down target.
13646 (first_remote_resumed_thread): New remote_target parameter. Pass
13647 it down.
13648 (remote_target::wait_as): Pass down target.
13649 (unpush_and_perror): New remote_target parameter. Pass it down.
13650 (remote_target::readchar, remote_target::remote_serial_write)
13651 (remote_target::getpkt_or_notif_sane_1)
13652 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13653 down target.
13654 (remote_target::mourn_inferior): Pass down target. Use
13655 remote_unpush_target.
13656 (remote_target::core_of_thread)
13657 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13658 (remote_target::pid_to_exec_file)
13659 (remote_target::thread_handle_to_thread_info): Pass down target.
13660 (remote_target::async_wait_fd): New.
13661 * riscv-fbsd-tdep.c: Include "inferior.h".
13662 (riscv_fbsd_get_thread_local_address): Pass down target.
13663 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13664 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13665 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13666 Adjust.
13667 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13668 * solib-svr4.c (enable_break): Pass down target.
13669 * spu-multiarch.c (parse_spufs_run): Pass down target.
13670 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13671 * target-delegates.c: Regenerate.
13672 * target.c (g_target_stack): Delete.
13673 (current_top_target): Return the current inferior's top target.
13674 (target_has_execution_1): Refer to the passed-in inferior's top
13675 target.
13676 (target_supports_terminal_ours): Check whether the initial
13677 inferior was already created.
13678 (decref_target): New.
13679 (target_stack::push): Incref/decref the target.
13680 (push_target, push_target, unpush_target): Adjust.
13681 (target_stack::unpush): Defref target.
13682 (target_is_pushed): Return bool. Adjust to refer to the current
13683 inferior's target stack.
13684 (dispose_inferior): Delete, and inline parts ...
13685 (target_preopen): ... here. Only dispose of the current inferior.
13686 (target_detach): Hold strong target reference while detaching.
13687 Pass target down.
13688 (target_thread_name): Add assertion.
13689 (target_resume): Pass down target.
13690 (target_ops::beneath, find_target_at): Adjust to refer to the
13691 current inferior's target stack.
13692 (get_dummy_target): New.
13693 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13694 has a thread running.
13695 (initialize_targets): Rename to ...
13696 (_initialize_target): ... this.
13697 * target.h: Include "gdbsupport/refcounted-object.h".
13698 (struct target_ops): Inherit refcounted_object.
13699 (target_ops::shortname, target_ops::longname): Make const.
13700 (target_ops::async_wait_fd): New method.
13701 (decref_target): Declare.
13702 (struct target_ops_ref_policy): New.
13703 (target_ops_ref): New typedef.
13704 (get_dummy_target): Declare function.
13705 (target_is_pushed): Return bool.
13706 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13707 (all_matching_threads_iterator::all_matching_threads_iterator):
13708 Handle filter target.
13709 * thread-iter.h (struct all_matching_threads_iterator, struct
13710 all_matching_threads_range, class all_non_exited_threads_range):
13711 Filter by target too. Remove explicit.
13712 * thread.c (threads_executing): Delete.
13713 (inferior_thread): Pass down current inferior.
13714 (clear_thread_inferior_resources): Pass down thread pointer
13715 instead of ptid_t.
13716 (add_thread_silent, add_thread_with_info, add_thread): Add
13717 process_stratum_target parameter. Use it for thread and inferior
13718 searches.
13719 (is_current_thread): New.
13720 (thread_info::deletable): Use it.
13721 (find_thread_ptid, thread_count, in_thread_list)
13722 (thread_change_ptid, set_resumed, set_running): New
13723 process_stratum_target parameter. Pass it down.
13724 (set_executing): New process_stratum_target parameter. Pass it
13725 down. Adjust reference to 'threads_executing'.
13726 (threads_are_executing): New process_stratum_target parameter.
13727 Adjust reference to 'threads_executing'.
13728 (set_stop_requested, finish_thread_state): New
13729 process_stratum_target parameter. Pass it down.
13730 (switch_to_thread): Also match inferior.
13731 (switch_to_thread): New process_stratum_target parameter. Pass it
13732 down.
13733 (update_threads_executing): Reimplement.
13734 * top.c (quit_force): Pop targets from all inferior.
13735 (gdb_init): Don't call initialize_targets.
13736 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13737 Declare.
13738 (windows_add_thread, windows_delete_thread): Adjust.
13739 (get_windows_debug_event): Rename to ...
13740 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13741 * tracefile-tfile.c (tfile_target_open): Pass down target.
13742 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13743 Forward declare.
13744 (switch_to_thread): Add process_stratum_target parameter.
13745 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13746 parameter. Use it.
13747 (mi_on_resume): Pass target down.
13748 * nat/fork-inferior.c (startup_inferior): Add
13749 process_stratum_target parameter. Pass it down.
13750 * nat/fork-inferior.h (startup_inferior): Add
13751 process_stratum_target parameter.
13752 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13753
75c6c844
PA
137542020-01-10 Pedro Alves <palves@redhat.com>
13755
13756 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13757 directly. Instead find the first thread in the thread list and
13758 use switch_to_thread.
13759
78f2c40a
PA
137602020-01-10 Pedro Alves <palves@redhat.com>
13761
13762 * remote.c (remote_target::remote_add_inferior): Don't bind a
13763 process to the current inferior if the current inferior is already
13764 bound to a process.
13765
e7af6c70
TBA
137662020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13767 Pedro Alves <palves@redhat.com>
13768
13769 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13770 If no process is specified, return null_ptid instead of
13771 inferior_ptid.
13772 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13773 TARGET_WAITKIND_SIGNALLED with no pid.
13774
31ba933e
PA
137752020-01-10 Pedro Alves <palves@redhat.com>
13776
13777 * remote.c (first_remote_resumed_thread): New.
13778 (remote_target::wait_as): Use it as default event_ptid instead of
13779 inferior_ptid.
13780
735fc2ca
PA
137812020-01-10 Pedro Alves <palves@redhat.com>
13782
13783 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13784
c17e02e1
PA
137852020-01-10 Pedro Alves <palves@redhat.com>
13786
13787 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13788 not -1.
13789
ab1ddbcf
PA
137902020-01-10 Pedro Alves <palves@redhat.com>
13791
13792 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13793 ptid to get_last_target_status.
13794 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13795 ptid to get_last_target_status.
13796 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13797 get_last_target_status.
13798 (info_program_command): Don't pass a target_waitstatus to
13799 get_last_target_status.
13800 * infrun.c (init_wait_for_inferior): Use
13801 nullify_last_target_wait_ptid.
13802 (get_last_target_status): Handle nullptr arguments.
13803 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13804 (print_stop_event): Don't pass a ptid to get_last_target_status.
13805 (normal_stop): Don't pass a ptid to get_last_target_status.
13806 * infrun.h (get_last_target_status, set_last_target_status): Move
13807 comments here and update.
13808 (nullify_last_target_wait_ptid): Declare.
13809 * linux-fork.c (fork_load_infrun_state): Remove local extern
13810 declaration of nullify_last_target_wait_ptid.
13811 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13812 to get_last_target_status.
13813
f3f8ece4
PA
138142020-01-10 Pedro Alves <palves@redhat.com>
13815
13816 * gdbthread.h (scoped_restore_current_thread)
13817 <dont_restore, restore, m_dont_restore>: Declare.
13818 * thread.c (thread_alive): Add assertion. Return bool.
13819 (switch_to_thread_if_alive): New.
13820 (prune_threads): Switch inferior/thread.
13821 (print_thread_info_1): Switch thread before calling target methods.
13822 (scoped_restore_current_thread::restore): New, factored out from
13823 ...
13824 (scoped_restore_current_thread::~scoped_restore_current_thread):
13825 ... this.
13826 (scoped_restore_current_thread::scoped_restore_current_thread):
13827 Add assertion.
13828 (thread_apply_all_command, thread_select): Use
13829 switch_to_thread_if_alive.
13830 * infrun.c (proceed, restart_threads, handle_signal_stop)
13831 (switch_back_to_stepped_thread): Switch current thread before
13832 calling target methods.
13833
db2d40f7
PA
138342020-01-10 Pedro Alves <palves@redhat.com>
13835
13836 * inferior.c (switch_to_inferior_no_thread): New function,
13837 factored out from ...
13838 (inferior_command): ... here.
13839 * inferior.h (switch_to_inferior_no_thread): Declare.
13840 * mi/mi-main.c (run_one_inferior): Use
13841 switch_to_inferior_no_thread.
13842
bd420a2d
PA
138432020-01-10 Pedro Alves <palves@redhat.com>
13844
13845 * infcmd.c (kill_command): Remove dead code.
13846
ddf5db90
PA
138472020-01-10 Pedro Alves <palves@redhat.com>
13848
13849 * remote.c (remote_target::mourn_inferior): No longer check
13850 whether the target is running.
13851
5018ce90
PA
138522020-01-10 Pedro Alves <palves@redhat.com>
13853
13854 * corelow.c (core_target::has_execution): Change parameter type to
13855 inferior pointer.
13856 * inferior.c (number_of_live_inferiors): Use
13857 inferior::has_execution instead of target_has_execution_1.
13858 * inferior.h (inferior::has_execution): New.
13859 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13860 inferior::has_execution instead of target_has_execution_1.
13861 * process-stratum-target.c
13862 (process_stratum_target::has_execution): Change parameter type to
13863 inferior pointer. Check the inferior's PID instead of
13864 inferior_ptid.
13865 * process-stratum-target.h
13866 (process_stratum_target::has_execution): Change parameter type to
13867 inferior pointer.
13868 * record-full.c (record_full_core_target::has_execution): Change
13869 parameter type to inferior pointer.
13870 * target.c (target_has_execution_1): Change parameter type to
13871 inferior pointer.
13872 (target_has_execution_current): Adjust.
13873 * target.h (target_ops::has_execution): Change parameter type to
13874 inferior pointer.
13875 (target_has_execution_1): Change parameter type to inferior
13876 pointer. Change return type to bool.
13877 * tracefile.h (tracefile_target::has_execution): Change parameter
13878 type to inferior pointer.
13879
74375d18
PA
138802020-01-10 Pedro Alves <palves@redhat.com>
13881
13882 * exceptions.c (print_flush): Remove current_top_target() check.
13883
acdf84a6
PA
138842020-01-10 Pedro Alves <palves@redhat.com>
13885
13886 * remote.c (show_remote_exec_file): Show the current inferior's
13887 exec-file instead of the command variable's value.
13888
ec506636
PA
138892020-01-10 Pedro Alves <palves@redhat.com>
13890
13891 * record-full.c (record_full_resume_ptid): New global.
13892 (record_full_target::resume): Set it.
13893 (record_full_wait_1): Use record_full_resume_ptid instead of
13894 inferior_ptid.
13895
873657b9
PA
138962020-01-10 Pedro Alves <palves@redhat.com>
13897
13898 * gdbthread.h (scoped_restore_current_thread)
13899 <dont_restore, restore, m_dont_restore>: Declare.
13900 * thread.c (thread_alive): Add assertion. Return bool.
13901 (switch_to_thread_if_alive): New.
13902 (prune_threads): Switch inferior/thread.
13903 (print_thread_info_1): Switch thread before calling target methods.
13904 (scoped_restore_current_thread::restore): New, factored out from
13905 ...
13906 (scoped_restore_current_thread::~scoped_restore_current_thread):
13907 ... this.
13908 (scoped_restore_current_thread::scoped_restore_current_thread):
13909 Add assertion.
13910 (thread_apply_all_command, thread_select): Use
13911 switch_to_thread_if_alive.
13912
7f0ae84c
GB
139132020-01-10 George Barrett <bob@bob131.so>
13914
13915 * stap-probe.c (stap_modify_semaphore): Don't check for null
13916 semaphores.
13917 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13918 for null semaphores.
13919
f5a7c406
AB
139202020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13921
13922 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13923 all source windows, and maintain horizontal scroll status while
13924 doing so.
13925
9ae6bf64
TT
139262020-01-09 Tom Tromey <tom@tromey.com>
13927
13928 PR tui/18932:
13929 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13930 update_source_window, not print_source_lines.
13931
b2efe70c
AB
139322020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13933
13934 * tui/tui.c (tui_enable): Register tui hooks after calling
13935 tui_display_main.
13936
5f23a082
CB
139372020-01-09 Christian Biesinger <cbiesinger@google.com>
13938
13939 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13940
3061113b
SM
139412020-01-08 Simon Marchi <simon.marchi@efficios.com>
13942
13943 * thread.c (print_thread_info_1): Fix indentation.
13944
57d75002
CB
139452020-01-09 Christian Biesinger <cbiesinger@google.com>
13946
13947 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13948 unique_xmalloc_ptr outside the if to always free the demangled name.
13949
6a053cb1
TT
139502020-01-08 Tom Tromey <tromey@adacore.com>
13951
13952 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13953 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13954 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13955 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13956 Remove.
13957 (section_offsets): New typedef.
13958 * symtab.c (fixup_section, get_msymbol_address): Update.
13959 * symmisc.c (dump_msymbols): Update.
13960 * symfile.h (relative_addr_info_to_section_offsets)
13961 (symfile_map_offsets_to_segments): Update.
13962 * symfile.c (build_section_addr_info_from_objfile)
13963 (init_objfile_sect_indices): Update.
13964 (struct place_section_arg): Change type of "offsets".
13965 (place_section): Update.
13966 (relative_addr_info_to_section_offsets): Change type of
13967 "section_offsets". Remove "num_sections" parameter.
13968 (default_symfile_offsets, syms_from_objfile_1)
13969 (set_objfile_default_section_offset): Update.
13970 (reread_symbols): No need to preserve section offsets by hand.
13971 (symfile_map_offsets_to_segments): Change type of "offsets".
13972 * stap-probe.c (relocate_address): Update.
13973 * stabsread.h (process_one_symbol): Update.
13974 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13975 (solib_target_relocate_section_addresses): Update.
13976 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13977 Update.
13978 * solib-frv.c (frv_relocate_main_executable): Update.
13979 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13980 * solib-aix.c (solib_aix_get_section_offsets): Change return
13981 type.
13982 (solib_aix_solib_create_inferior_hook): Update.
13983 * remote.c (remote_target::get_offsets): Update.
13984 * psymtab.c (find_pc_sect_psymtab): Update.
13985 * psympriv.h (struct partial_symbol) <address, text_low,
13986 text_high>: Update.
13987 * objfiles.h (obj_section_offset): Update.
13988 (struct objfile) <section_offsets>: Change type.
13989 <num_sections>: Remove.
13990 (objfile_relocate): Update.
13991 * objfiles.c (entry_point_address_query): Update
13992 (relocate_one_symbol): Change type of "section_offsets".
13993 (objfile_relocate1, objfile_relocate1): Change type of
13994 "new_offsets".
13995 (objfile_rebase1): Update.
13996 * mipsread.c (mipscoff_symfile_read): Update.
13997 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13998 parameter.
13999 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14000 (parse_external, psymtab_to_symtab_1): Update.
14001 * machoread.c (macho_symfile_offsets): Update.
14002 * ia64-tdep.c (ia64_find_unwind_table): Update.
14003 * hppa-tdep.c (read_unwind_info): Update.
14004 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14005 * dwarf2read.c (create_addrmap_from_index)
14006 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14007 (process_psymtab_comp_unit_reader, add_partial_symbol)
14008 (add_partial_subprogram, process_full_comp_unit)
14009 (read_file_scope, read_func_scope, read_lexical_block_scope)
14010 (read_call_site_scope, dwarf2_rnglists_process)
14011 (dwarf2_ranges_process, dwarf2_ranges_read)
14012 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14013 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14014 Update.
14015 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14016 Update.
14017 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14018 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14019 (process_one_symbol): Change type of "section_offsets".
14020 * ctfread.c (get_objfile_text_range): Update.
14021 * coffread.c (coff_symtab_read, enter_linenos)
14022 (process_coff_symbol): Update.
14023 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14024 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14025
456e800a
TT
140262020-01-08 Tom Tromey <tromey@adacore.com>
14027
14028 * dwarf2read.c (parse_macro_definition): Use std::string.
14029 (parse_macro_definition): Likewise.
14030
6dfa2fc2
TT
140312020-01-08 Tom Tromey <tromey@adacore.com>
14032
14033 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14034 (ATTR_ALLOC_CHUNK): Remove.
14035
421d1616
TT
140362020-01-08 Tom Tromey <tromey@adacore.com>
14037
14038 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14039
43816ebc
TT
140402020-01-08 Tom Tromey <tromey@adacore.com>
14041
14042 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14043 (dwarf2_compute_name, open_dwo_file): Likewise.
14044 (process_enumeration_scope): Use std::vector.
14045 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14046 (partial_die_info::fixup, dwarf2_start_subfile)
14047 (guess_full_die_structure_name, dwarf2_name): Likewise.
14048 (determine_prefix): Update.
14049 (guess_full_die_structure_name): Make return type const.
14050 (partial_die_full_name): Return unique_xmalloc_ptr.
14051 (DW_FIELD_ALLOC_CHUNK): Remove.
14052
4212d509
TT
140532020-01-07 Tom Tromey <tromey@adacore.com>
14054
14055 PR build/24937:
14056 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14057
06a6207a
JT
140582020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14059
14060 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14061
153d79c4
AB
140622020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14063
14064 * stack.c (print_frame_info): Move disassemble_next_line code
14065 inside source_print block.
14066
66182876
EZ
140672020-01-06 Eli Zaretskii <eliz@gnu.org>
14068
14069 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14070 gdb/signals.h, as we are now using native signal symbols.
14071
cbfa8581
SV
140722020-01-06 Shahab Vahedi <shahab@synopsys.com>
14073
14074 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14075 overflow by an early check of content vs threshold.
aac66a4c 14076 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14077 Likewise.
14078
3f602821
EZ
140792020-01-06 Eli Zaretskii <eliz@gnu.org>
14080
14081 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14082
a08c904d
JT
140832020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14084
14085 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14086 export table if no section contains it's RVA.
14087
89a65580
EZ
140882020-01-06 Eli Zaretskii <eliz@gnu.org>
14089
14090 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14091
8b7fcda2
HD
140922020-01-06 Hannes Domani <ssbssa@yahoo.de>
14093
14094 * source.c (print_source_lines_base): Set last_line_listed.
14095
a61b4f69
SV
140962020-01-06 Shahab Vahedi <shahab@synopsys.com>
14097
14098 * tui/tui-disasm.c: Remove trailing spaces.
14099
559e7e50
EZ
141002020-01-06 Eli Zaretskii <eliz@gnu.org>
14101 Pedro Alves <palves@redhat.com>
14102
14103 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14104 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14105 (windows_gdb_signal_to_target): New function, uses the above
14106 enumeration to convert GDB internal signal codes to equivalent
14107 Windows codes.
14108 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14109 * windows-nat.c: Include "gdb_wait.h".
14110 (get_windows_debug_event): Extract the fatal exception from the
14111 exit status and convert to the equivalent Posix signal number.
14112 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14113 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14114 * gdbsupport/gdb_wait.c: New file, implements
14115 windows_status_to_termsig.
14116 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14117 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14118
f2302a34
AB
141192020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14120
14121 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14122 show_layout.
14123
6a5206eb
LM
141242020-01-05 Luis Machado <luis.machado@linaro.org>
14125
14126 * aarch64-linux-nat.c
14127 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14128 and bfd_mach_aarch64.
14129
6ec1d75e
PW
141302020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14131
14132 * ui-file.c (stdio_file::can_emit_style_escape)
14133 (tee_file::can_emit_style_escape): Ensure style is used also on
14134 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14135 to gdb_stdout.
14136 * main.c (set_gdb_data_directory): Use file style to output the
14137 warning that the given pathname is not a directory.
14138 * top.c (show_history_filename, gdb_safe_append_history)
14139 (show_gdb_datadir): Use file style.
14140
44f81a76
HD
141412020-01-03 Hannes Domani <ssbssa@yahoo.de>
14142
14143 * solib-target.c (struct lm_info_target):
14144 Change offsets to be a unique_xmalloc_ptr.
14145 (solib_target_relocate_section_addresses): Update.
14146
25057eb0
HD
141472020-01-03 Hannes Domani <ssbssa@yahoo.de>
14148
14149 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14150
6e2118f5
BE
141512020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14152
14153 * MAINTAINERS (Write After Approval): Add myself.
14154
8133c7dc
LM
141552020-01-02 Luis Machado <luis.machado@linaro.org>
14156
14157 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14158 Cell BE architecture.
14159 * target.h (struct target_ops) <thread_architecture>: Likewise.
14160
48189bec
HD
141612020-01-01 Hannes Domani <ssbssa@yahoo.de>
14162
14163 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14164
ead1063b
HD
141652020-01-01 Hannes Domani <ssbssa@yahoo.de>
14166
14167 * MAINTAINERS (Write After Approval): Add myself.
14168
e5d78223
JB
141692020-01-01 Joel Brobecker <brobecker@adacore.com>
14170
14171 * gdbarch.sh: Update copyright year range of generated files.
14172
b811d2c2
JB
141732020-01-01 Joel Brobecker <brobecker@adacore.com>
14174
14175 Update copyright year range in all GDB files.
14176
5f4def5c
JB
141772020-01-01 Joel Brobecker <brobecker@adacore.com>
14178
14179 * copyright.py: Convert to Python 3.
14180
51fd4002
JB
141812020-01-01 Joel Brobecker <brobecker@adacore.com>
14182
14183 * copyright.py: Adapt after move of gnulib directory from gdb
14184 directory to toplevel directory.
14185
5fb651f2
JB
141862020-01-01 Joel Brobecker <brobecker@adacore.com>
14187
14188 * copyright.py (main): Exit if run from the wrong directory.
14189
5dd8bf88
JB
141902020-01-01 Joel Brobecker <brobecker@adacore.com>
14191
14192 * top.c (print_gdb_version): Change copyright year to 2020.
14193
9f71dacb 141942020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14195
9f71dacb 14196 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14197
9f71dacb 14198For older changes see ChangeLog-2019.
c906108c
SS
14199\f
14200Local Variables:
14201mode: change-log
14202left-margin: 8
14203fill-column: 74
14204version-control: never
57da7796 14205coding: utf-8
c906108c 14206End: