Use gdb_bfd_sections in restore_command
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
03cd72b8
TT
12020-09-19 Tom Tromey <tom@tromey.com>
2
3 * cli/cli-dump.c (struct callback_data): Remove.
4 (restore_one_section): Rename from restore_section_callback.
5 Change parameters.
6 (restore_binary_file): Change parameters.
7 (restore_command): Use foreach.
8
f4f2b85f
TT
92020-09-19 Tom Tromey <tom@tromey.com>
10
11 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
12 (gcore_copy_callback): Likewise.
13 (gcore_memory_sections): Use foreach.
14
b35c1d1c
TT
152020-09-19 Tom Tromey <tom@tromey.com>
16
17 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
18 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
19 parameters.
20 (generic_elf_osabi_sniffer): Use foreach.
21 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
22 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
23
5bb6e9dd
TT
242020-09-19 Tom Tromey <tom@tromey.com>
25
26 * dwarf2/read.c (locate_dwz_sections): Change parameters.
27 (dwarf2_get_dwz_file): Use foreach.
28 (dwarf2_locate_dwo_sections): Change parameters.
29 (open_and_init_dwo_file): Use foreach.
30 (dwarf2_locate_common_dwp_sections): Change parameters.
31 (open_and_init_dwp_file): Use foreach.
32
ad7277da
TT
332020-09-19 Tom Tromey <tom@tromey.com>
34
35 * symfile.h: (find_lowest_section): Don't declare.
36 * symfile.c (find_lowest_section): Now static. Change
37 parameters.
38 (struct place_section_arg): Remove.
39 (place_section): Change parameters.
40 (addr_info_make_relative): Use foreach.
41 (symfile_dummy_outputs): Remove.
42 (default_symfile_relocate): Use foreach.
43
cb814f2e
TT
442020-09-19 Tom Tromey <tom@tromey.com>
45
46 * objfiles.c (add_to_objfile_sections): Rename from
47 add_to_objfile_sections_full.
48 (add_to_objfile_sections): Remove.
49 (build_objfile_section_table): Use foreach.
50
3cabfd26
TT
512020-09-19 Tom Tromey <tom@tromey.com>
52
53 * stap-probe.c (get_stap_base_address_1): Remove.
54 (get_stap_base_address): Use foreach.
55
1ce51eb5
TT
562020-09-19 Tom Tromey <tom@tromey.com>
57
58 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
59 parameters.
60 (gdb_bfd_close_or_warn): Use foreach.
61
a190fabb
TT
622020-09-19 Tom Tromey <tom@tromey.com>
63
64 * corelow.c (add_to_thread_list): Change parameters.
65 (core_target_open): Use foreach.
66
cafb0d81
TT
672020-09-19 Tom Tromey <tom@tromey.com>
68
69 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
70 existing function.
71
c8d5abea
AB
722020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
73
74 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
75 for arrays.
76
6d816919
AB
772020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
78
79 * eval.c: Remove 'f-lang.h' include.
80 (value_f90_subarray): Moved to f-lang.c.
81 (eval_call): Renamed to...
82 (evaluate_subexp_do_call): ...this, is no longer static, header
83 comment moved into header file.
84 (evaluate_funcall): Update call to eval_call.
85 (skip_undetermined_arglist): Moved to f-lang.c.
86 (fortran_value_subarray): Likewise.
87 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
88 moved to evaluate_subexp_f.
89 (calc_f77_array_dims): Moved to f-lang.c
90 * expprint.c (print_subexp_funcall): New function.
91 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
92 moved to print_subexp_f, OP_FUNCALL uses new function.
93 (dump_subexp_body_funcall): New function.
94 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
95 moved to dump_subexp_f, OP_FUNCALL uses new function.
96 * expression.h (evaluate_subexp_do_call): Declare.
97 * f-lang.c (value_f90_subarray): Moved from eval.c.
98 (skip_undetermined_arglist): Likewise.
99 (calc_f77_array_dims): Likewise.
100 (fortran_value_subarray): Likewise.
101 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
102 (operator_length_f): Likewise.
103 (print_subexp_f): Likewise.
104 (dump_subexp_body_f): Likewise.
105 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
106 declaration of this operation to here.
107 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
108 support moved to operator_length_f.
109 * parser-defs.h (dump_subexp_body_funcall): Declare.
110 (print_subexp_funcall): Declare.
111 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
112 fortran-operator.def.
113
8c37706a
AB
1142020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
115
116 * eval.c (fortran_value_subarray): New function, content is taken
117 from...
118 (evaluate_subexp_standard): ...here, in two places. Now arrays
119 and strings both call the new function.
120 (calc_f77_array_dims): Add header comment, handle strings.
121
14f9473c
VC
1222020-09-18 Victor Collod <vcollod@nvidia.com>
123
124 PR gdb/26635
125 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
126 (i386_analyze_prologue): Call i386_skip_endbr.
127
b60cea74
TT
1282020-09-18 Tom Tromey <tromey@adacore.com>
129
130 * windows-nat.c (struct windows_nat_target) <wait>: Update.
131 (windows_nat_target::wait): Update.
132 * target/wait.h (enum target_wait_flag): New. Use
133 DEF_ENUM_FLAGS_TYPE.
134 * target/target.h (target_wait): Change type of options.
135 * target.h (target_options_to_string, default_target_wait):
136 Update.
137 (struct target_ops) <wait>: Change type of options.
138 * target.c (target_wait, default_target_wait, do_option): Change
139 type of "options".
140 (target_options_to_string): Likewise.
141 * target-delegates.c: Rebuild.
142 * target-debug.h (target_debug_print_target_wait_flags): Rename
143 from target_debug_print_options.
144 * sol-thread.c (class sol_thread_target) <wait>: Update.
145 (sol_thread_target::wait): Update.
146 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
147 (rs6000_nat_target::wait): Update.
148 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
149 Update.
150 (remote_target::wait_ns, remote_target::wait_as): Change type of
151 "options".
152 (remote_target::wait): Update.
153 * remote-sim.c (struct gdbsim_target) <wait>: Update.
154 (gdbsim_target::wait): Update.
155 * record-full.c (class record_full_base_target) <wait>: Update.
156 (record_full_wait_1): Change type of "options".
157 (record_full_base_target::wait): Update.
158 * record-btrace.c (class record_btrace_target) <wait>: Update.
159 (record_btrace_target::wait): Update.
160 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
161 Update.
162 (ravenscar_thread_target::wait): Update.
163 * procfs.c (class procfs_target) <wait>: Update.
164 (procfs_target::wait): Update.
165 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
166 * obsd-nat.c (obsd_nat_target::wait): Update.
167 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
168 (nto_procfs_target::wait): Update.
169 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
170 * nbsd-nat.c (nbsd_wait): Change type of "options".
171 (nbsd_nat_target::wait): Update.
172 * linux-thread-db.c (class thread_db_target) <wait>: Update.
173 (thread_db_target::wait): Update.
174 * linux-nat.h (class linux_nat_target) <wait>: Update.
175 * linux-nat.c (linux_nat_target::wait): Update.
176 (linux_nat_wait_1): Update.
177 * infrun.c (do_target_wait_1, do_target_wait): Change type of
178 "options".
179 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
180 * inf-ptrace.c (inf_ptrace_target::wait): Update.
181 * go32-nat.c (struct go32_nat_target) <wait>: Update.
182 (go32_nat_target::wait): Update.
183 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
184 * gnu-nat.c (gnu_nat_target::wait): Update.
185 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
186 * fbsd-nat.c (fbsd_nat_target::wait): Update.
187 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
188 * darwin-nat.c (darwin_nat_target::wait): Update.
189 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
190 (bsd_uthread_target::wait): Update.
191 * aix-thread.c (class aix_thread_target) <wait>: Update.
192 (aix_thread_target::wait): Update.
193
0295dde6
AB
1942020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
195
196 * compile/compile-object-run.c (create_copied_type_recursive): New
197 function.
198 (compile_object_run): Use new function.
199
d3483b43
JT
2002020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
201
202 * NEWS: Mention x86_64 Cygwin core file support.
203
e7d612ad
JT
2042020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
205
206 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
207 (core_process_module_section): Handle NOTE_INFO_MODULE64.
208
aff9d387
JT
2092020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
210
62a5151b
JT
211 * windows-tdep.h: Add prototypes.
212 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
213 (i386_windows_core_pid_to_str): Move and rename ...
214 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
215 (windows_core_pid_to_str): ... and here.
216 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
217
2182020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
219 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
220 (amd64_windows_init_abi_common): ... and register.
221
7d155da3
JT
2222020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
223
224 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
225 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
226
e8ef12b9
PA
2272020-09-18 Pedro Alves <pedro@palves.net>
228
229 PR gdb/26631
230 * thread.c (thread_find_command): Switch inferior before calling
231 target methods.
232
c1e1314d
TT
2332020-09-17 Tom Tromey <tromey@adacore.com>
234
235 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
236 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
237 (tdesc_arch_data_up): New typedef.
238 (tdesc_use_registers, tdesc_data_alloc): Update.
239 (tdesc_data_cleanup): Don't declare.
240 * target-descriptions.c (tdesc_data_alloc): Return a
241 tdesc_arch_data_up.
242 (tdesc_arch_data_deleter::operator()): Rename from
243 tdesc_data_cleanup. Change argument type.
244 (tdesc_use_registers): Change early_data to an rvalue reference.
245 (tdesc_use_registers): Don't use delete.
246 * sparc-tdep.c (sparc32_gdbarch_init): Update.
247 * s390-tdep.c (s390_gdbarch_init): Update.
248 * rx-tdep.c (rx_gdbarch_init): Update.
249 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
250 * riscv-tdep.c (riscv_gdbarch_init): Update.
251 * or1k-tdep.c (or1k_gdbarch_init): Update.
252 * nios2-tdep.c (nios2_gdbarch_init): Update.
253 * nds32-tdep.c (nds32_gdbarch_init): Update.
254 * mips-tdep.c (mips_gdbarch_init): Update.
255 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
256 * m68k-tdep.c (m68k_gdbarch_init): Update.
257 * i386-tdep.c (i386_gdbarch_init): Update.
258 * arm-tdep.c (arm_gdbarch_init): Update.
259 * arc-tdep.c (arc_tdesc_init): Update.
260 (arc_gdbarch_init): Update.
261 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
262
0363df3d
HD
2632020-09-17 Hannes Domani <ssbssa@yahoo.de>
264
265 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
266 for WOW64 processes.
267
280a9412
TT
2682020-09-17 Tom Tromey <tom@tromey.com>
269
270 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
271
6108fd18
TT
2722020-09-17 Tom Tromey <tom@tromey.com>
273
274 * value.c (preserve_values): Update.
275 * python/py-type.c (save_objfile_types): Update.
276 * guile/scm-type.c (save_objfile_types): Update.
277 * gdbtypes.h (create_copied_types_hash): Return htab_up.
278 * gdbtypes.c (create_copied_types_hash): Return htab_up.
279 * compile/compile-object-run.c (compile_object_run): Update.
280
fa9b1164
TT
2812020-09-17 Tom Tromey <tom@tromey.com>
282
283 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
284 Remove.
285 <m_table>: Now htab_up.
286 * typeprint.c (typedef_hash_table::recursively_update)
287 (typedef_hash_table::add_template_parameters)
288 (typedef_hash_table::typedef_hash_table): Update.
289 (typedef_hash_table::~typedef_hash_table): Remove.
290 (typedef_hash_table::typedef_hash_table)
291 (typedef_hash_table::find_global_typedef)
292 (typedef_hash_table::find_typedef): Update.
293
eb53f105
TT
2942020-09-17 Tom Tromey <tom@tromey.com>
295
296 * target-descriptions.c (tdesc_use_registers): Use htab_up.
297
7a8a5d47
TT
2982020-09-17 Tom Tromey <tom@tromey.com>
299
300 * linespec.c (class decode_compound_collector)
301 <~decode_compound_collector>: Remove.
302 <m_unique_syms>: Now htab_up.
303 (decode_compound_collector::operator ()): Update.
304 (class symtab_collector) <~symtab_collector>: Remove.
305 <m_symtab_table>: Now htab_up.
306 (symtab_collector::operator ()): Update.
307
99032cfc
TT
3082020-09-17 Tom Tromey <tom@tromey.com>
309
310 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
311 (filename_seen_cache::clear): Update.
312 (~filename_seen_cache): Remove.
313 (filename_seen_cache::seen): Update.
314 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
315 htab_up.
316 <~filename_seen_cache>: Remove.
317 <traverse>: Update.
318
32580f6d
TT
3192020-09-17 Tom Tromey <tom@tromey.com>
320
321 * completer.c (completion_tracker::discard_completions)
322 (completion_tracker::~completion_tracker)
323 (completion_tracker::maybe_add_completion)
324 (completion_tracker::remove_completion)
325 (completion_tracker::recompute_lowest_common_denominator)
326 (completion_tracker::build_completion_result): Update.
327 * completer.h (class completion_tracker) <have_completions>:
328 Update.
329 <m_entries_hash>: Now htab_up.
330
c1fb9836
TT
3312020-09-17 Tom Tromey <tom@tromey.com>
332
333 * breakpoint.c (ambiguous_names_p): Use htab_up.
334
88f07206
TT
3352020-09-17 Tom Tromey <tom@tromey.com>
336
337 * auto-load.c (struct auto_load_pspace_info)
338 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
339 <loaded_script_files, loaded_script_texts>: Change type to
340 htab_up.
341 (~auto_load_pspace_info) Remove.
342 (init_loaded_scripts_info, maybe_add_script_file)
343 (maybe_add_script_text, auto_load_info_scripts): Update.
344
9519b2ee
TT
3452020-09-17 Tom Tromey <tromey@adacore.com>
346
347 * c-exp.y (name_obstack): Now static.
348
d2cd4113
CC
3492020-09-17 Chungyi Chi <demonic@csie.io>
350
351 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
352
b650a282
SM
3532020-09-16 Simon Marchi <simon.marchi@efficios.com>
354
355 * breakpoint.h (init_catchpoint): Change int parameter to bool.
356 (add_solib_catchpoint): Likewise.
357 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
358 to bool.
359 (add_solib_catchpoint): Change int parameter/variable to bool.
360 (catch_load_or_unload): Likewise.
361 (init_catchpoint): Likewise.
362 (create_fork_vfork_event_catchpoint): Likewise.
363 (catch_fork_command_1): Likewise.
364 (catch_exec_command_1): Likewise.
365
4d0bcfcf
SM
3662020-09-16 Simon Marchi <simon.marchi@efficios.com>
367
368 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
369 Change instance_flags to m_instance_flags.
370
fe830662
TT
3712020-09-16 Tom Tromey <tromey@adacore.com>
372
373 PR gdb/26598:
374 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
375
fe5ddfc3
JB
3762020-09-16 John Baldwin <jhb@FreeBSD.org>
377
378 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
379 PL_FLAG_EXEC.
380 (fbsd_nat_target::insert_exec_catchpoint)
381 (fbsd_nat_target::remove_exec_catchpoint): Always define.
382 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
383 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
384
e911c666
JB
3852020-09-16 John Baldwin <jhb@FreeBSD.org>
386
387 * configure.ac: Remove check for kinfo_getvmmap().
388 * configure, config.in: Regenerate.
389 * fbsd-nat.c (fbsd_read_mapping): Remove
390 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
391 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
392 kinfo_get_vmmap() are always present.
393
1f17d372
JB
3942020-09-16 John Baldwin <jhb@FreeBSD.org>
395
396 * fbsd-nat.c: Always include support for
397 TARGET_OBJECT_SIGNAL_INFO.
398
bcb1da7f
JB
3992020-09-16 John Baldwin <jhb@FreeBSD.org>
400
401 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
402 sysctl and remove procfs fallback.
403
5515f729
JB
4042020-09-16 John Baldwin <jhb@FreeBSD.org>
405
406 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
407 * fbsd-nat.h: Likewise.
408
da1df1db
TBA
4092020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
410
411 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
412 argument.
413
0e25e767
AB
4142020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
415
416 * ada-lang.c (ada_language_data): Delete.
417 (ada_language): Remove references to ada_language_data.
418 * c-lang.c (c_language_data): Delete.
419 (c_language): Remove references to c_language_data.
420 (cplus_language_data): Delete.
421 (cplus_language): Remove references to cplus_language_data.
422 (asm_language_data): Delete.
423 (asm_language): Remove references to asm_language_data.
424 (minimal_language_data): Delete.
425 (minimal_language): Remove references to minimal_language_data.
426 * d-lang.c (d_language_data): Delete.
427 (d_language): Remove references to d_language_data.
428 * f-lang.c (f_language_data): Delete.
429 (f_language): Remove references to f_language_data.
430 * go-lang.c (go_language_data): Delete.
431 (go_language): Remove references to go_language_data.
432 * language.c (unknown_language_data): Delete.
433 (unknown_language): Remove references to unknown_language_data.
434 (auto_language_data): Delete.
435 (auto_language): Remove references to auto_language_data.
436 * language.h (language_data): Delete struct.
437 (language_defn): No longer inherit from language_data.
438 * m2-lang.c (m2_language_data): Delete.
439 (m2_language): Remove references to m2_language_data.
440 * objc-lang.c (objc_language_data): Delete.
441 (objc_language): Remove references to objc_language_data.
442 * opencl-lang.c (opencl_language_data): Delete.
443 (opencl_language): Remove references to opencl_language_data.
444 * p-lang.c (pascal_language_data): Delete.
445 (pascal_language): Remove references to pascal_language_data.
446 * rust-lang.c (rust_language_data): Delete.
447 (rust_language): Remove references to rust_language_data.
448
b7c6e27d
AB
4492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
450
451 * ada-lang.c (ada_language_data): Remove la_op_print_tab
452 initializer.
453 (ada_language::opcode_print_table): New member function.
454 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
455 (c_language::opcode_print_table): New member function.
456 (cplus_language_data): Remove la_op_print_tab initializer.
457 (cplus_language::opcode_print_table): New member function.
458 (asm_language_data): Remove la_op_print_tab initializer.
459 (asm_language::opcode_print_table): New member function.
460 (minimal_language_data): Remove la_op_print_tab initializer.
461 (minimal_language::opcode_print_table): New member function.
462 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
463 (d_language::opcode_print_table): New member function.
464 * expprint.c (print_subexp_standard): Update call to
465 opcode_print_table.
466 (op_string): Likewise.
467 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
468 (f_language::opcode_print_table): New member function.
469 * go-lang.c (go_language_data): Remove la_op_print_tab
470 initializer.
471 (go_language::opcode_print_table): New member function.
472 * language.c (unknown_language_data): Remove la_op_print_tab
473 initializer.
474 (unknown_language::opcode_print_table): New member function.
475 (auto_language_data): Remove la_op_print_tab initializer.
476 (auto_language::opcode_print_table): New member function.
477 * language.h (language_data): Remove la_op_print_tab field.
478 (language_defn::opcode_print_table): Declare new member function.
479 * m2-lang.c (m2_language_data): Remove la_op_print_tab
480 initializer.
481 (m2_language::opcode_print_table): New member function.
482 * objc-lang.c (objc_language_data): Remove la_op_print_tab
483 initializer.
484 (objc_language::opcode_print_table): New member function.
485 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
486 initializer.
487 (opencl_language::opcode_print_table): New member function.
488 * p-lang.c (pascal_language_data): Remove la_op_print_tab
489 initializer.
490 (pascal_language::opcode_print_table): New member function.
491 * rust-lang.c (rust_language_data): Remove la_op_print_tab
492 initializer.
493 (rust_language::opcode_print_table): New member function.
494
5aba6ebe
AB
4952020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
496
497 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
498 (ada_language::expression_ops): New member function.
499 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
500 (c_language::expression_ops): New member function.
501 (cplus_language_data): Remove la_exp_desc initializer.
502 (cplus_language::expression_ops): New member function.
503 (asm_language_data): Remove la_exp_desc initializer.
504 (asm_language::expression_ops): New member function.
505 (minimal_language_data): Remove la_exp_desc initializer.
506 (minimal_language::expression_ops): New member function.
507 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
508 (d_language::expression_ops): New member function.
509 * eval.c (evaluate_subexp): Update call to expression_ops.
510 * expprint.c (print_subexp): Likewise.
511 (op_name): Likewise.
512 (dump_subexp_body): Likewise.
513 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
514 (f_language::expression_ops): New member function.
515 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
516 (go_language::expression_ops): New member function.
517 * language.c (language_defn::expression_ops): New function.
518 (unknown_language_data): Remove la_exp_desc initializer.
519 (auto_language_data): Likewise.
520 * language.h (language_data): Remove la_exp_desc field.
521 (language_defn::expression_ops): Declare new member function.
522 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
523 (m2_language::expression_ops): New member function.
524 * objc-lang.c (objc_language_data): Remove la_exp_desc
525 initializer.
526 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
527 initializer.
528 (opencl_language::expression_ops): New member function.
529 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
530 * parse.c (operator_length): Update call to expression_ops.
531 (exp_iterate): Likewise.
532 * rust-lang.c (rust_language_data): Remove la_exp_desc
533 initializer.
534 (ruse_language::expression_ops): New member function.
535
b63a3f3f
AB
5362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
537
538 * ada-lang.c (ada_language_data): Remove la_varobj_ops
539 initializer.
540 (ada_language::varobj_ops): New member function.
541 * c-lang.c (c_language_data): Remove la_varobj_ops
542 initializer.
543 (cplus_language_data): Likewise.
544 (cplus_language::varobj_ops): New member function.
545 (asm_language_data): Remove la_varobj_ops initializer.
546 (minimal_language_data): Likewise.
547 * d-lang.c (d_language_data): Likewise.
548 * f-lang.c (f_language_data): Likewise.
549 * go-lang.c (go_language_data): Likewise.
550 * language.c (language_defn::varobj_ops): New function.
551 (unknown_language_data): Remove la_varobj_ops
552 initializer.
553 (auto_language_data): Likewise.
554 * language.h (language_data): Remove la_varobj_ops field.
555 (language_defn::varobj_ops): Declare new member function.
556 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
557 * objc-lang.c (objc_language_data): Likewise.
558 * opencl-lang.c (opencl_language_data): Likewise.
559 * p-lang.c (pascal_language_data): Likewise.
560 * rust-lang.c (rust_language_data): Likewise.
561 * varobj.c (varobj_create): Update call to varobj_ops.
562 * varobj.h (default_varobj_ops): Delete define.
563
1ac14a04
AB
5642020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
565
566 * ada-lang.c (ada_language_data): Remove la_macro_expansion
567 initializer.
568 * c-lang.c (c_language_data): Likewise.
569 (c_language::macro_expansion): New member function.
570 (cplus_language_data): Likewise.
571 (cplus_language::macro_expansion): New member function.
572 (asm_language_data): Likewise.
573 (asm_language::macro_expansion): New member function.
574 (minimal_language_data): Likewise.
575 (minimal_language::macro_expansion): New member function.
576 * d-lang.c (d_language_data): Remove la_macro_expansion
577 initializer.
578 * f-lang.c (f_language_data): Likewise.
579 * go-lang.c (go_language_data): Likewise.
580 * language.c (unknown_language_data): Likewise.
581 (auto_language_data): Likewise.
582 * language.h (language_data): Remove la_macro_expansion field.
583 (language_defn::macro_expansion): New member function.
584 * m2-lang.c (m2_language_data): Remove la_macro_expansion
585 initializer.
586 * objc-lang.c (objc_language_data): Likewise.
587 (objc_language::macro_expansion): New member function.
588 * opencl-lang.c (opencl_language_data): Likewise.
589 (opencl_language::macro_expansion): New member function.
590 * p-lang.c (pascal_language_data): Remove la_macro_expansion
591 initializer.
592 * rust-lang.c (rust_language_data): Likewise.
593 * symtab.c (default_collect_symbol_completion_matches_break_on):
594 Update call to macro_expansion.
595
3a3440fb
AB
5962020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
597
598 * ada-lang.c (ada_language_data): Remove la_array_ordering
599 initializer.
600 * c-lang.c (c_language_data): Likewise.
601 (cplus_language_data): Likewise.
602 (asm_language_data): Likewise.
603 (minimal_language_data): Likewise.
604 * d-lang.c (d_language_data): Likewise.
605 * dwarf2/read.c (read_array_order): Update for call to
606 array_ordering.
607 * f-lang.c (f_language_data): Remove la_array_ordering
608 initializer.
609 (f_language::array_ordering): New member function.
610 * go-lang.c (go_language_data): Remove la_array_ordering
611 initializer.
612 * language.c (unknown_language_data): Likewise.
613 (auto_language_data): Likewise.
614 * language.h (language_data): Delete la_array_ordering field.
615 (language_defn::array_ordering): New member function.
616 * m2-lang.c (m2_language_data): Remove la_array_ordering
617 initializer.
618 * objc-lang.c (objc_language_data): Likewise.
619 * opencl-lang.c (opencl_language_data): Likewise.
620 * p-lang.c (pascal_language_data): Likewise.
621 * rust-lang.c (rust_language_data): Likewise.
622
0d201fa4
AB
6232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
624
625 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
626 initializer.
627 * c-lang.c (c_language_data): Likewise.
628 (cplus_language_data): Likewise.
629 (asm_language_data): Likewise.
630 (minimal_language_data): Likewise.
631 * d-lang.c (d_language_data): Likewise.
632 * f-lang.c (f_language_data): Likewise.
633 (f_language::case_sensitivity): New member function.
634 * go-lang.c (go_language_data): Remove la_case_sensitivity
635 initializer.
636 * language.c (enum case_mode): Moved here from language.h.
637 (case_mode): Make static.
638 (show_case_command): Update for case_sensitivity being a method.
639 (set_case_command): Likewise.
640 (set_range_case): Likewise.
641 (unknown_language_data): Remove la_case_sensitivity initializer.
642 (auto_language_data): Likewise.
643 * language.h (case_mode): Delete, move enum declaration to
644 language.c.
645 (language_data): Delete la_case_sensitivity field.
646 (language_defn::case_sensitivity): New member function.
647 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
648 initializer.
649 * objc-lang.c (objc_language_data): Likewise.
650 * opencl-lang.c (opencl_language_data): Likewise.
651 * p-lang.c (pascal_language_data): Likewise.
652 * rust-lang.c (rust_language_data): Likewise.
653
efdf6a73
AB
6542020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
655
656 * ada-lang.c (ada_language_data): Remove la_range_check
657 initializer.
658 * c-lang.c (c_language_data): Likewise.
659 (cplus_language_data): Likewise.
660 (asm_language_data): Likewise.
661 (minimal_language_data): Likewise.
662 * d-lang.c (d_language_data): Likewise.
663 * f-lang.c (f_language_data): Likewise.
664 (f_language::range_checking_on_by_default): New member function.
665 * go-lang.c (go_language_data): Remove la_range_check initializer.
666 * language.c (enum range_mode): Moved here from language.h.
667 (range_mode): Made static.
668 (show_range_command): Update to use
669 range_checking_on_by_default.
670 (set_range_command): Likewise.
671 (set_range_case): Likewise.
672 (unknown_language_data): Remove la_range_check initializer.
673 (auto_language_data): Likewise.
674 * language.h (range_mode): Delete. Enum definition moved to
675 language.c.
676 (language_data): Remove la_range_check field.
677 (language_defn::range_checking_on_by_default): New member
678 function.
679 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
680 (m2_language::range_checking_on_by_default): New member function.
681 * objc-lang.c (objc_language_data): Remove la_range_check
682 initializer.
683 * opencl-lang.c (opencl_language_data): Likewise.
684 * p-lang.c (pascal_language_data): Likewise.
685 (pascal_language::range_checking_on_by_default): New member
686 function.
687 * rust-lang.c (rust_language_data): Remove la_range_check
688 initializer.
689 (rust_language::range_checking_on_by_default): New member
690 function.
691
bf92aec5
AB
6922020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
693
694 * dwarf2/read.c (dwarf2_physname): Remove special case for
695 language_go.
696 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
697 member function.
698
d3355e4d
AB
6992020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
700
701 * ada-lang.c (ada_language_data): Remove
702 la_store_sym_names_in_linkage_form_p initializer.
703 (ada_language::store_sym_names_in_linkage_form_p): New member
704 function.
705 * c-lang.c (c_language_data): Remove
706 la_store_sym_names_in_linkage_form_p initializer.
707 (c_language::store_sym_names_in_linkage_form_p): New member
708 function.
709 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
710 initializer.
711 (asm_language_data): Likewise.
712 (asm_language::store_sym_names_in_linkage_form_p): New member
713 function.
714 (minimal_language_data): Remove
715 la_store_sym_names_in_linkage_form_p initializer.
716 (minimal_language::store_sym_names_in_linkage_form_p): New member
717 function.
718 * d-lang.c (d_language_data): Remove
719 la_store_sym_names_in_linkage_form_p initializer.
720 * dwarf2/read.c (dwarf2_physname): Update call to
721 store_sym_names_in_linkage_form_p.
722 * f-lang.c (f_language_data): Remove
723 la_store_sym_names_in_linkage_form_p initializer.
724 * go-lang.c (go_language_data): Remove
725 la_store_sym_names_in_linkage_form_p initializer.
726 * language.c (unknown_language_data): Remove
727 la_store_sym_names_in_linkage_form_p initializer.
728 (unknown_language::store_sym_names_in_linkage_form_p): New member
729 function.
730 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
731 initializer.
732 (auto_language::store_sym_names_in_linkage_form_p): New member
733 function.
734 * language.h (language_data): Remove
735 la_store_sym_names_in_linkage_form_p member variable.
736 (language_defn::store_sym_names_in_linkage_form_p): New member
737 function.
738 * m2-lang.c (m2_language_data): Remove
739 la_store_sym_names_in_linkage_form_p initializer.
740 * objc-lang.c (objc_language_data): Likewise.
741 * opencl-lang.c (opencl_language_data): Likewise.
742 * p-lang.c (pascal_language_data): Likewise.
743 * rust-lang.c (rust_language_data): Likewise.
744
22c12a6c
AB
7452020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
746
747 * ada-lang.c (ada_language_data): Remove string_lower_bound
748 initializer.
749 * c-lang.c (c_language_data): Likewise.
750 (cplus_language_data): Likewise.
751 (asm_language_data): Likewise.
752 (minimal_language_data): Likewise.
753 * d-lang.c (d_language_data): Likewise.
754 * f-lang.c (f_language_data): Likewise.
755 * go-lang.c (go_language_data): Likewise.
756 * language.c (unknown_language_data): Likewise.
757 (auto_language_data): Likewise.
758 * language.h (language_data): Remove string_lower_bound field.
759 (language_defn::string_lower_bound): New member function.
760 * m2-lang.c (m2_language_data): Remove string_lower_bound
761 initializer.
762 (m2_language::string_lower_bound): New member function.
763 * objc-lang.c (objc_language_data): Remove string_lower_bound
764 initializer.
765 * opencl-lang.c (opencl_language_data): Likewise.
766 * p-lang.c (pascal_language_data): Likewise.
767 * rust-lang.c (rust_language_data): Likewise.
768 * valops.c (value_cstring): Update call to string_lower_bound.
769 (value_string): Likewise.
770 * value.c (allocate_repeated_value): Likewise.
771
1c236ddd
AB
7722020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
773
774 * valops.c (value_repeat): Fix incorrect argument name in comment.
775
67bd3fd5
AB
7762020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
777
778 * ada-lang.c (ada_language_data): Remove c_style_arrays
779 initializer.
780 (ada_language::c_style_arrays_p): New member fuction.
781 * c-lang.c (c_language_data): Remove c_style_arrays
782 initializer.
783 (cplus_language_data): Likewise.
784 (asm_language_data): Likewise.
785 (minimal_language_data): Likewise.
786 * d-lang.c (d_language_data): Likewise.
787 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
788 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
789 (f_language::c_style_arrays_p): New member function.
790 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
791 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
792 * language.c (unknown_language_data): Remove c_style_arrays
793 initializer.
794 (auto_language_data): Likewise.
795 * language.h (language_data): Remove c_style_arrays field.
796 (language_defn::c_style_arrays_p): New member function.
797 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
798 (m2_language::c_style_arrays_p): New member function.
799 * objc-lang.c (objc_language_data): Remove c_style_arrays
800 initializer.
801 * opencl-lang.c (opencl_language_data): Likewise.
802 * p-lang.c (pascal_language_data): Likewise.
803 * rust-lang.c (rust_language_data): Likewise.
804 * valarith.c (value_subscript): Update call to c_style_arrays_p,
805 and update local variable to a bool.
806 * valops.c (value_cast): Update call to c_style_arrays_p.
807 (value_array): Likewise.
808 * value.c (coerce_array): Likewise.
809
85967615
AB
8102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
811
812 * ada-lang.c (ada_language_data): Remove la_language initializer.
813 * c-lang.c (c_language_data): Likewise.
814 (cplus_language_data): Likewise.
815 (asm_language_data): Likewise.
816 (minimal_language_data): Likewise.
817 * d-lang.c (d_language_data): Likewise.
818 * f-lang.c (f_language_data): Likewise.
819 * go-lang.c (go_language_data): Likewise.
820 * language.c (unknown_language_data): Likewise.
821 (auto_language_data): Likewise.
822 * language.h (language_data): Remove la_language field.
823 (language_defn::language_defn): Initialise la_language field.
824 (language_defn::la_language): New member variable.
825 * m2-lang.c (m2_language_data): Remove la_language field.
826 * objc-lang.c (objc_language_data): Likewise.
827 * opencl-lang.c (opencl_language_data): Likewise.
828 * p-lang.c (pascal_language_data): Likewise.
829 * rust-lang.c (rust_language_data): Likewise.
830
e171d6f1
AB
8312020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
832
833 * ada-lang.c (ada_extensions): Delete, moved into
834 ada_language::filename_extensions.
835 (ada_language_data): Remove la_filename_extensions initializer.
836 (ada_language::filename_extensions): New member function.
837 * c-lang.c (c_extensions): Delete, moved into
838 c_language::filename_extensions.
839 (c_language_data): Remove la_filename_extensions initializer.
840 (c_language::filename_extensions): New member function.
841 (cplus_extensions): Delete, moved into
842 cplus_language::filename_extensions.
843 (cplus_language_data): Remove la_filename_extensions initializer.
844 (cplus_language::filename_extensions): New member function.
845 (asm_extensions): Delete, moved into
846 asm_language::filename_extensions.
847 (asm_language_data): Remove la_filename_extensions initializer.
848 (asm_language::filename_extensions): New member function.
849 (minimal_language_data): Remove la_filename_extensions
850 initializer.
851 * d-lang.c (d_extensions): Delete, moved into
852 d_language::filename_extensions.
853 (d_language_data): Remove la_filename_extensions initializer.
854 (d_language::filename_extensions): New member function.
855 * f-lang.c (f_extensions): Delete, moved into
856 f_language::filename_extensions.
857 (f_language_data): Remove la_filename_extensions initializer.
858 (f_language::filename_extensions): New member function.
859 * go-lang.c (go_language_data): Remove la_filename_extensions
860 initializer.
861 * language.c (add_set_language_command): Update now that
862 filename_extensions returns a vector.
863 (unknown_language_data): Remove la_filename_extensions
864 initializer.
865 (auto_language_data): Likewise.
866 * language.h (language_data): Remove la_filename_extensions field.
867 (language_defn::filename_extensions): New member function.
868 * m2-lang.c (m2_language_data): Remove la_filename_extensions
869 initializer.
870 * objc-lang.c (objc_extensions): Delete, moved into
871 objc_language::filename_extensions.
872 (objc_language_data): Remove la_filename_extensions initializer.
873 (objc_language::filename_extensions): New member function.
874 * opencl-lang.c (opencl_language_data): Remove
875 la_filename_extensions initializer.
876 * p-lang.c (pascal_extensions): Delete, moved into
877 pascal_language::filename_extensions.
878 (pascal_language_data): Remove la_filename_extensions initializer.
879 (pascal_language::filename_extensions): New member function.
880 * rust-lang.c (rust_extensions): Delete, moved into
881 rust_language::filename_extensions.
882 (rust_language_data): Remove la_filename_extensions initializer.
883 (rust_language::filename_extensions): New member function.
884 * symfile.c (add_filename_language): Add new assert.
885
6f7664a9
AB
8862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
887
888 * ada-lang.c (ada_language_data): Remove la_name and
889 la_natural_name initializers.
890 (ada_language::name): New member function.
891 (ada_language::natural_name): New member function.
892 * c-lang.c (c_language_data): Remove la_name and
893 la_natural_name initializers.
894 (c_language::name): New member function.
895 (c_language::natural_name): New member function.
896 (cplus_language_data): Remove la_name and
897 la_natural_name initializers.
898 (cplus_language::name): New member function.
899 (cplus_language::natural_name): New member function.
900 (asm_language_data): Remove la_name and
901 la_natural_name initializers.
902 (asm_language::name): New member function.
903 (asm_language::natural_name): New member function.
904 (minimal_language_data): Remove la_name and
905 la_natural_name initializers.
906 (minimal_language::name): New member function.
907 (minimal_language::natural_name): New member function.
908 * compile/compile.c (compile_to_object): Update call to
909 lanugage_defn::name.
910 * d-lang.c (d_language_data): Remove la_name and
911 la_natural_name initializers.
912 (d_language::name): New member function.
913 (d_language::natural_name): New member function.
914 * expprint.c (print_subexp_standard): Update call to
915 language_defn::name.
916 (dump_raw_expression): Likewise
917 (dump_prefix_expression): Likewise.
918 * f-lang.c (f_language_data): Remove la_name and
919 la_natural_name initializers.
920 (f_language::name): New member function.
921 (f_language::natural_name): New member function.
922 * go-lang.c (go_language_data): Remove la_name and
923 la_natural_name initializers.
924 (go_language::name): New member function.
925 (go_language::natural_name): New member function.
926 * language.c (show_language_command): Update call to
927 language_defn::name.
928 (set_language_command): Likewise.
929 (language_enum): Likewise.
930 (language_str): Likewise.
931 (add_set_language_command): Likewise, use
932 language_defn::natural_name in the doc string.
933 (unknown_language_data): Remove la_name and
934 la_natural_name initializers.
935 (unknown_language::name): New member function.
936 (unknown_language::natural_name): New member function.
937 (auto_language_data): Remove la_name and
938 la_natural_name initializers.
939 (auto_language::name): New member function.
940 (auto_language::natural_name): New member function.
941 (language_lookup_primitive_type_as_symbol): Update call to
942 language_defn::name.
943 * language.h (language_data): Remove la_name and la_natural_name
944 member variables.
945 (language_defn::name): New member function.
946 (language_defn::natural_name): New member function.
947 * m2-lang.c (m2_language_data): Remove la_name and
948 la_natural_name initializers.
949 (m2_language::name): New member function.
950 (m2_language::natural_name): New member function.
951 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
952 language_defn::natural_name.
953 * objc-lang.c (objc_language_data): Remove la_name and
954 la_natural_name initializers.
955 (objc_language::name): New member function.
956 (objc_language::natural_name): New member function.
957 * opencl-lang.c (opencl_language_data): Remove la_name and
958 la_natural_name initializers.
959 (opencl_language::name): New member function.
960 (opencl_language::natural_name): New member function.
961 * p-lang.c (pascal_language_data): Remove la_name and
962 la_natural_name initializers.
963 (pascal_language::name): New member function.
964 (pascal_language::natural_name): New member function.
965 * rust-lang.c (rust_language_data): Remove la_name and
966 la_natural_name initializers.
967 (rust_language::name): New member function.
968 (rust_language::natural_name): New member function.
969 * symtab.c (lookup_language_this): Update call to
970 language_defn::name.
971
5bae7c4e
AB
9722020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
973
974 * ada-lang.c (ada_language_data): Remove la_name_of_this
975 initializer.
976 * ax-gdb.c (gen_expr): Update call to name_of_this.
977 * c-exp.y (classify_name): Likewise.
978 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
979 (cplus_language_data): Likewise.
980 (cplus_language::name_of_this): New member function.
981 (asm_language_data): Remove la_name_of_this initializer.
982 (minimal_language_data): Likewise.
983 * d-lang.c (d_language_data): Likewise.
984 (d_language::name_of_this): New member function.
985 * expprint.c (print_subexp_standard): Update call to name_of_this.
986 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
987 * go-lang.c (go_language_data): Likewise.
988 * language.c (unknown_language_data): Likewise.
989 (unknown_language::name_of_this): New member function.
990 (auto_language_data): Remove la_name_of_this initializer.
991 (auto_language::name_of_this): New member function.
992 * language.h (language_data): Delete la_name_of_this member
993 variable.
994 (language_defn::name_of_this): New member function.
995 * m2-lang.c (m2_language_data): Remove la_name_of_this
996 initializer.
997 * objc-lang.c (objc_language_data): Likewise.
998 (objc_language::name_of_this): New member function.
999 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1000 initializer.
1001 * p-lang.c (pascal_language_data): Likewise.
1002 (pascal_language::name_of_this): New member function.
1003 * rust-lang.c (rust_language_data): Remove la_name_of_this
1004 initializer.
1005 * symtab.c (lookup_language_this): Update call to name_of_this.
1006 (lookup_symbol_aux): Likewise.
1007 * valops.c (value_of_this): Likewise.
1008
22e3f3ed
AB
10092020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1010
1011 * ada-lang.c (ada_language_data): Remove
1012 la_struct_too_deep_ellipsis initializer.
1013 (ada_language::struct_too_deep_ellipsis): New member function.
1014 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1015 initializer.
1016 (cplus_language_data): Likewise.
1017 (asm_language_data): Likewise.
1018 (minimal_language_data): Likewise.
1019 * cp-valprint.c (cp_print_value): Update call to
1020 struct_too_deep_ellipsis.
1021 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1022 initializer.
1023 * f-lang.c (f_language_data): Likewise.
1024 (f_language::struct_too_deep_ellipsis): New member function.
1025 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1026 initializer.
1027 * language.c (unknown_language_data): Likewise.
1028 (auto_language_data): Likewise.
1029 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1030 member variable.
1031 (language_defn::struct_too_deep_ellipsis): New member function.
1032 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1033 initializer.Q
1034 * objc-lang.c (objc_language_data): Likewise.
1035 * opencl-lang.c (opencl_language_data): Likewise.
1036 * p-lang.c (pascal_language_data): Likewise.
1037 * rust-lang.c (rust_language_data): Likewise.
1038 * valprint.c (val_print_check_max_depth): Update call to
1039 struct_too_deep_ellipsis.
1040
ed29e1c7
FW
10412020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1042
1043 * MAINTAINERS (Write After Approval): Add myself.
1044
12d8f940
TT
10452020-09-15 Tom Tromey <tom@tromey.com>
1046
1047 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1048 Remove.
1049
6b5a7bc7
TT
10502020-09-15 Tom Tromey <tom@tromey.com>
1051
1052 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1053 and TYPE_CODE_METHODPTR cases.
1054 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1055 (c_value_print_inner): Update.
1056 * valprint.c (generic_value_print_memberptr): New function, from
1057 c_value_print_memberptr.
1058 (generic_value_print): Use it. Call cplus_print_method_ptr.
1059
47f0e2ff
TT
10602020-09-15 Tom Tromey <tromey@adacore.com>
1061
1062 * python/python-internal.h (PyInt_FromLong): Remove define.
1063 * python/py-value.c (convert_value_from_python): Use
1064 gdb_py_object_from_longest.
1065 * python/py-type.c (typy_get_code): Use
1066 gdb_py_object_from_longest.
1067 * python/py-symtab.c (salpy_get_line): Use
1068 gdb_py_object_from_longest.
1069 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1070 gdb_py_object_from_longest.
1071 * python/py-record.c (recpy_gap_reason_code): Use
1072 gdb_py_object_from_longest.
1073 * python/py-record-btrace.c (recpy_bt_insn_size)
1074 (recpy_bt_func_level, btpy_list_count): Use
1075 gdb_py_object_from_longest.
1076 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1077 gdb_py_object_from_longest. Fix error handling.
1078 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1079 gdb_py_object_from_longest.
1080 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1081 gdb_py_object_from_longest.
1082 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1083 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1084 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1085
512116ce
TT
10862020-09-15 Tom Tromey <tromey@adacore.com>
1087
1088 * python/python.c (gdbpy_parameter_value): Use
1089 gdb_py_object_from_ulongest.
1090
4ab1029c
TT
10912020-09-15 Tom Tromey <tromey@adacore.com>
1092
1093 * python/py-infevents.c (create_register_changed_event_object):
1094 Use gdb_py_object_from_longest.
1095 * python/py-exitedevent.c (create_exited_event_object): Use
1096 gdb_py_object_from_longest.
1097
062534d4
TT
10982020-09-15 Tom Tromey <tromey@adacore.com>
1099
1100 * python/python.c (gdbpy_parameter_value): Use
1101 gdb_py_object_from_longest.
1102 * python/py-type.c (convert_field, typy_range): Use
1103 gdb_py_object_from_longest.
1104 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1105 gdb_py_object_from_longest.
1106 * python/py-lazy-string.c (stpy_get_length): Use
1107 gdb_py_object_from_longest.
1108 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1109 gdb_py_object_from_longest.
1110 * python/py-infevents.c (create_memory_changed_event_object): Use
1111 gdb_py_object_from_longest.
1112 * python/py-inferior.c (infpy_get_num): Use
1113 gdb_py_object_from_longest.
1114 (infpy_get_pid): Likewise.
1115
d1cab987
TT
11162020-09-15 Tom Tromey <tromey@adacore.com>
1117
1118 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1119 defines.
1120 * python/py-value.c (valpy_long): Use
1121 gdb_py_object_from_ulongest.
1122 * python/py-symtab.c (salpy_get_pc): Use
1123 gdb_py_object_from_ulongest.
1124 (salpy_get_last): Likewise.
1125 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1126 gdb_py_object_from_ulongest.
1127 * python/py-lazy-string.c (stpy_get_address): Use
1128 gdb_py_object_from_ulongest.
1129 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1130 * python/py-arch.c (archpy_disassemble): Use
1131 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1132 error handling.
1133
4bde49dc
TT
11342020-09-15 Tom Tromey <tromey@adacore.com>
1135
1136 * python/python-internal.h (gdb_py_long_from_longest): Remove
1137 defines.
1138 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1139 * python/py-type.c (convert_field, typy_get_sizeof): Use
1140 gdb_py_object_from_longest.
1141 * python/py-record-btrace.c (btpy_list_index): Use
1142 gdb_py_object_from_longest.
1143
37431074
TT
11442020-09-15 Tom Tromey <tromey@adacore.com>
1145
1146 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1147 * python/py-record.c (recpy_element_number): Use
1148 gdb_py_object_from_longest.
1149 (recpy_gap_number): Likewise.
1150
cbe25684
TT
11512020-09-15 Tom Tromey <tromey@adacore.com>
1152
1153 * top.c (ui::ui): Update.
1154 (highest_ui_num): Remove.
1155 * top.h (struct ui) <num>: Remove.
1156
db92ac45
TT
11572020-09-15 Tom Tromey <tromey@adacore.com>
1158
1159 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1160 * ui-style.c (ansi_regex_text): Now array.
1161 * rust-exp.y (number_regex_text): Now array.
1162 * linespec.c (linespec_quote_characters): Now array.
1163 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1164 Now arrays.
1165
d2b31b67
SM
11662020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1167
1168 * debuginfod-support.c (debuginfod_client_deleter): New.
1169 (debuginfod_client_up): New.
1170 (debuginfod_init): Return debuginfod_client_up.
1171 (debuginfod_source_query): Adjust.
1172 (debuginfod_debuginfo_query): Adjust.
1173
3246bd8e
SM
11742020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1175
1176 * debuginfod-support.c (debuginfod_source_query): Use
1177 make_unique_xstrdup.
1178
10242f36
SM
11792020-09-14 Simon Marchi <simon.marchi@efficios.com>
1180
1181 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1182 with `type::instance_flags`.
1183
e1044e6a
MM
11842020-09-14 Michael Mullin <masmullin@gmail.com>
1185
1186 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1187 Remove baton parameter.
1188
04902b09
PA
11892020-09-14 Pedro Alves <pedro@palves.net>
1190
1191 * Makefile.in (SELFTESTS_SRCS): Add
1192 unittests/enum-flags-selftests.c.
1193 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1194 btrace_function_flags instead of enum btrace_function_flag.
1195 * compile/compile-c-types.c (convert_qualified): Use
1196 enum_flags::raw.
1197 * compile/compile-cplus-symbols.c (convert_one_symbol)
1198 (convert_symbol_bmsym):
1199 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1200 (compile_cplus_convert_struct_or_union_methods)
1201 (compile_cplus_instance::convert_qualified_base):
1202 * go-exp.y (parse_string_or_char): Add cast to int.
1203 * unittests/enum-flags-selftests.c: New file.
1204 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1205 type to btrace_thread_flags from btrace_thread_flag.
1206 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1207 local's type to btrace_thread_flags from btrace_thread_flag. Add
1208 cast in DEBUG call.
1209
69896a2c
PA
12102020-09-14 Pedro Alves <pedro@palves.net>
1211
1212 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1213 * gdbtypes.c (address_space_name_to_int): Rename to ...
1214 (address_space_name_to_type_instance_flags): ... this.
1215 (address_space_int_to_name): Rename to ...
1216 (address_space_type_instance_flags_to_name): ... this.
1217 * gdbtypes.h (address_space_name_to_int): Rename to ...
1218 (address_space_name_to_type_instance_flags): ... this.
1219 (address_space_int_to_name): Rename to ...
1220 (address_space_type_instance_flags_to_name): ... this.
1221 * type-stack.c (type_stack::insert): Adjust to rename.
1222 * type-stack.h (type_stack::insert): Likewise.
1223
314ad88d
PA
12242020-09-14 Pedro Alves <pedro@palves.net>
1225 Andrew Burgess <andrew.burgess@embecosm.com>
1226
1227 * avr-tdep.c (avr_address_class_type_flags): Return
1228 type_instance_flags.
1229 (avr_address_class_type_flags_to_name): Take a
1230 type_instance_flags.
1231 (avr_address_class_name_to_type_flags): Return bool and take a
1232 type_instance_flags.
1233 * d-lang.c (build_d_types): Use type::set_instance_flags.
1234 * ft32-tdep.c (ft32_address_class_type_flags): Return
1235 type_instance_flags.
1236 (ft32_address_class_type_flags_to_name): Take a
1237 type_instance_flags.
1238 (ft32_address_class_name_to_type_flags): Return bool and take a
1239 type_instance_flags.
1240 (ft32_gdbarch_init): Use type::set_instance_flags.
1241 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1242 * gdbarch.h, gdbarch.c: Regenerate.
1243 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1244 (address_class_name_to_type_flags): Use type_instance_flags and
1245 bool.
1246 * gdbtypes.c (address_space_name_to_int)
1247 (address_space_int_to_name, make_qualified_type): Use
1248 type_instance_flags.
1249 (make_qualified_type): Use type_instance_flags and
1250 type::set_instance_flags.
1251 (make_type_with_address_space, make_cv_type, make_vector_type)
1252 (check_typedef): Use type_instance_flags.
1253 (recursive_dump_type): Cast type_instance_flags to unsigned for
1254 printing.
1255 (copy_type_recursive): Use type::set_instance_flags.
1256 (gdbtypes_post_init): Use type::set_instance_flags.
1257 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1258 <m_instance_flags>: ... this.
1259 <instance_flags, set_instance_flags>: New methods.
1260 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1261 (SET_TYPE_INSTANCE_FLAGS): New.
1262 (address_space_name_to_int, address_space_int_to_name)
1263 (make_type_with_address_space): Pass flags using
1264 type_instance_flags instead of int.
1265 * stabsread.c (cleanup_undefined_types_noname): Use
1266 type::set_instance_flags.
1267 * s390-tdep.c (s390_address_class_type_flags): Return
1268 type_instance_flags.
1269 (s390_address_class_type_flags_to_name): Take a
1270 type_instance_flags.
1271 (s390_address_class_name_to_type_flags): Return bool and take a
1272 type_instance_flags.
1273 * type-stack.c (type_stack::follow_types): Use
1274 type_instance_flags.
1275 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1276
27087b7f
TT
12772020-09-14 Tom Tromey <tromey@adacore.com>
1278
1279 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1280 * x86-tdep.c (x86_is_thunk_register_name)
1281 (x86_in_indirect_branch_thunk): Update.
1282 * sparc64-tdep.c (sparc64_fpu_register_names)
1283 (sparc64_cp0_register_names, sparc64_register_names)
1284 (sparc64_pseudo_register_names): Now const.
1285 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1286 cp0_registers_num>: Now const.
1287 * sparc-tdep.c (sparc_core_register_names)
1288 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1289 (sparc32_pseudo_register_names): Now const.
1290 (validate_tdesc_registers): Update.
1291 * rust-lang.c (rust_extensions): Now const.
1292 * p-lang.c (p_extensions): Now const.
1293 * objc-lang.c (objc_extensions): Now const.
1294 * nto-tdep.c (nto_thread_state_str): Now const.
1295 * moxie-tdep.c (moxie_register_names): Now const.
1296 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1297 Now const.
1298 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1299 (mips_linux_reg_names): Now const.
1300 (mips_gdbarch_init): Update.
1301 * microblaze-tdep.c (microblaze_register_names): Now const.
1302 * m68k-tdep.c (m68k_register_names): Now const.
1303 * m32r-tdep.c (m32r_register_names): Now const.
1304 * ia64-tdep.c (ia64_register_names): Now const.
1305 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1306 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1307 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1308 ymm_avx512_register_names, pkeys_register_names>: Now const.
1309 * i386-tdep.c (i386_register_names, i386_zmm_names)
1310 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1311 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1312 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1313 * f-lang.c (f_extensions): Now const.
1314 * d-lang.c (d_extensions): Now const.
1315 * csky-tdep.c (csky_register_names): Now const.
1316 * charset.c (default_charset_names, charset_enum): Now const.
1317 (_initialize_charset): Update.
1318 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1319 const.
1320 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1321 (bsd_uthread_solib_loaded): Update.
1322 (bsd_uthread_state): Now const.
1323 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1324 (amd64_ymm_avx512_names, amd64_ymmh_names)
1325 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1326 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1327 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1328 (amd64_dword_names): Now const.
1329 * agent.c (can_use_agent_enum): Now const.
1330 * ada-tasks.c (task_states, long_task_states): Now const.
1331 * ada-lang.c (known_runtime_file_name_patterns)
1332 (known_auxiliary_function_name_patterns, attribute_names)
1333 (standard_exc, ada_extensions): Now const.
1334
89806626
SM
13352020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1336
1337 * bcache.h (struct bcache) <bcache>: Remove constructor.
1338 <m_hash_function, m_compare_function>: Remove.
1339 <~bcache>: Make virtual.
1340 <compare>: Remove static method, introduce virtual method.
1341 <default_hash>: Remove.
1342 <hash>: New virtual method.
1343 * bcache.c (bcache::expand_hash_table): Update.
1344 (bcache::insert): Update.
1345 (bcache::hash): New.
1346 (bcache::compare): Update comment and parameter names.
1347 * gdbtypes.c (types_deeply_equal): Update.
1348 * psymtab.h (struct psymbol_bcache): New struct.
1349 (class psymtab_storage) <psymtab_storage>: Make default.
1350 <psymbol_cache>: Change type to psymbol_bcache.
1351 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1352 (psymbol_hash): Change to...
1353 (psymbol_bcache::hash): ... this.
1354 (psymbol_compare): Change to...
1355 (psymbol_bcache::compare): ... this.
1356
677c92fe
SM
13572020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1358
1359 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1360 checking for initial lwp.
1361
3eba3a01
TT
13622020-09-14 Tom Tromey <tromey@adacore.com>
1363
1364 * m68k-tdep.c (m68k_extract_return_value): Use
1365 pointer_result_regnum.
1366 (m68k_store_return_value): Likewise.
1367 (m68k_reg_struct_return_p): Handle vectors and arrays.
1368 (m68k_return_value): Handle arrays.
1369 (m68k_svr4_return_value): Fix single-element aggregate handling.
1370 Handle long double. Adjust for embedded ABI.
1371 (m68k_svr4_init_abi): Set pointer_result_regnum.
1372 (m68k_embedded_init_abi): New function.
1373 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1374 (m68k_osabi_sniffer): New function.
1375 (_initialize_m68k_tdep): Register osabi sniffer.
1376 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1377 member.
1378
33f4dd48
SM
13792020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1380
1381 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1382 with gdb::unique_xmalloc_ptr<char>.
1383
8400a90d
SM
13842020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1385
1386 * xml-support.h (xml_fetch_another): Change type to be a
1387 function_view.
1388 (xml_process_xincludes): Remove baton parameter.
1389 (xml_fetch_content_from_file): Change baton parameter to
1390 dirname.
1391 * xml-support.c (struct xinclude_parsing_data)
1392 <xinclude_parsing_data>: Remove baton parameter.
1393 <fetcher_baton>: Remove.
1394 (xinclude_start_include): Adjust.
1395 (xml_process_xincludes): Adjust.
1396 (xml_fetch_content_from_file): Replace baton parameter with
1397 dirname.
1398 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1399 (xml_init_syscalls_info): Use a lambda.
1400 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1401 (file_read_description_xml): Use a lambda.
1402 (fetch_available_features_from_target): Change baton parameter
1403 to target_ops.
1404 (target_read_description_xml): Use a lambda.
1405 (target_fetch_description_xml): Use a lambda.
1406 (string_read_description_xml): Update.
1407
04f5bab2
SM
14082020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1409
1410 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1411 uses with type::endianity_is_not_default.
1412
db558e34
SM
14132020-09-14 Simon Marchi <simon.marchi@efficios.com>
1414
1415 * gdbtypes.h (struct type) <endianity_is_not_default,
1416 set_endianity_is_not_default>: New methods.
1417 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1418 type::endianity_is_not_default, change all write call sites to
1419 use type::set_endianity_is_not_default.
1420
22c4c60c
SM
14212020-09-14 Simon Marchi <simon.marchi@efficios.com>
1422
1423 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1424 uses with type::is_fixed_instance.
1425
9cdd0d12
SM
14262020-09-14 Simon Marchi <simon.marchi@efficios.com>
1427
1428 * gdbtypes.h (struct type) <is_fixed_instance,
1429 set_is_fixed_instance>: New methods.
1430 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1431 write call sites to use type::set_is_fixed_instance.
1432
0becda7a
SM
14332020-09-14 Simon Marchi <simon.marchi@efficios.com>
1434
1435 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1436 uses with type::is_gnu_ifunc.
1437
03cc7249
SM
14382020-09-14 Simon Marchi <simon.marchi@efficios.com>
1439
1440 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1441 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1442 use type::set_is_gnu_ifunc.
1443
3f46044c
SM
14442020-09-14 Simon Marchi <simon.marchi@efficios.com>
1445
1446 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1447 uses with type::stub_is_supported.
1448
9baccff6
SM
14492020-09-14 Simon Marchi <simon.marchi@efficios.com>
1450
1451 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1452 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1453 use type::set_stub_is_supported.
1454
bd63c870
SM
14552020-09-14 Simon Marchi <simon.marchi@efficios.com>
1456
1457 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1458 uses with type::is_vector.
1459
2062087b
SM
14602020-09-14 Simon Marchi <simon.marchi@efficios.com>
1461
1462 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1463 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1464 use type::set_is_vector.
1465
a409645d
SM
14662020-09-14 Simon Marchi <simon.marchi@efficios.com>
1467
1468 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1469 uses with type::has_varargs.
1470
1d6286ed
SM
14712020-09-14 Simon Marchi <simon.marchi@efficios.com>
1472
1473 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1474 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1475 use type::set_has_varargs.
1476
7f9f399b
SM
14772020-09-14 Simon Marchi <simon.marchi@efficios.com>
1478
1479 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1480 uses with type::is_prototyped.
1481
27e69b7a
SM
14822020-09-14 Simon Marchi <simon.marchi@efficios.com>
1483
1484 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1485 New methods.
1486 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1487 call sites to use type::set_is_prototyped.
1488
d2183968
SM
14892020-09-14 Simon Marchi <simon.marchi@efficios.com>
1490
1491 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1492 uses with type::target_is_stub.
1493
8f53807e
SM
14942020-09-14 Simon Marchi <simon.marchi@efficios.com>
1495
1496 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1497 New methods.
1498 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1499 sites to use type::set_target_is_stub.
1500
e46d3488
SM
15012020-09-14 Simon Marchi <simon.marchi@efficios.com>
1502
1503 * gdbtypes.h (TYPE_STUB): Remove, replace all
1504 uses with type::is_stub.
1505
b4b73759
SM
15062020-09-14 Simon Marchi <simon.marchi@efficios.com>
1507
1508 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1509 (TYPE_STUB): Use type::is_stub, change all write call sites to
1510 use type::set_is_stub.
1511
20ce4123
SM
15122020-09-14 Simon Marchi <simon.marchi@efficios.com>
1513
1514 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1515 type::has_no_signedness.
1516
15152a54
SM
15172020-09-14 Simon Marchi <simon.marchi@efficios.com>
1518
1519 * gdbtypes.h (struct type) <has_no_signedness,
1520 set_has_no_signedness>: New methods.
1521 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1522 call sites to use type::set_has_no_signedness.
1523
c6d940a9
SM
15242020-09-14 Simon Marchi <simon.marchi@efficios.com>
1525
1526 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1527 type::is_unsigned.
1528
653223d3
SM
15292020-09-14 Simon Marchi <simon.marchi@efficios.com>
1530
1531 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1532 methods.
1533 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1534 sites to use type::set_is_unsigned.
1535
55ea94da
FH
15362020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1537 Adam Renquinha <arenquinha@cimeq.qc.ca>
1538
1539 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1540 pointer and stack frame offset when unwinding.
1541
6791b117
PA
15422020-09-13 Pedro Alves <pedro@palves.net>
1543
1544 * NEWS: Document "-break-insert --qualified".
1545 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1546
77f2120b
PA
15472020-09-13 Pedro Alves <pedro@palves.net>
1548
1549 * linespec.c (classify_mtype, compare_msyms): Delete.
1550 (search_minsyms_for_name): Remove classification logic. Instead
1551 filter out trampoline symbols if we also found an external
1552 function of the same name.
1553
ed6a896c
JB
15542020-09-13 Joel Brobecker <brobecker@adacore.com>
1555
1556 * NEWS: Create a new section for the next release branch.
1557 Rename the section of the current branch, now that it has
1558 been cut.
1559
32aea73e
JB
15602020-09-13 Joel Brobecker <brobecker@adacore.com>
1561
1562 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1563 * version.in: Bump version to 11.0.50.DATE-git.
1564
8087c3fa
JB
15652020-09-12 Joel Brobecker <brobecker@adacore.com>
1566
1567 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1568
2a67f09d
FW
15692020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1570 Felix Willgerodt <Felix.Willgerodt@intel.com>
1571
1572 * gdbarch.sh: Added bfloat16 type.
1573 * gdbarch.c: Regenerated.
1574 * gdbarch.h: Regenerated.
1575 * gdbtypes.c (floatformats_bfloat16): New struct.
1576 (gdbtypes_post_init): Add builtin_bfloat16.
1577 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1578 (floatformats_bfloat16): New struct.
1579 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1580 (i386_ymm_type): Add field "v16_bfloat16"
1581 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1582 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1583 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1584 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1585 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1586 * features/i386/64bit-avx512.c: Regenerated.
1587 * features/i386/64bit-sse.xml: Add bfloat16 type.
1588 * features/i386/64bit-sse.c: Regenerated.
1589
1347d111
FW
15902020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1591
1592 * i386-tdep.c (i386_zmm_type): Fix field names.
1593 (i386_ymm_type): Fix field names.
1594
7a4e8e7d
TBA
15952020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1596
1597 * breakpoint.c: Fix typo in the help message of the
1598 "set breakpoint condition-evaluation" command.
1599
cf4ac4be
KR
16002020-09-10 Kamil Rytarowski <n54@gmx.com>
1601
1602 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1603 * (nbsd_nat_target::pid_to_exec_file)
1604 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1605 (nbsd_nat_target::post_startup_inferior)
1606 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1607 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1608 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1609 * (nbsd_thread_lister): Remove.
1610
f404573e
KR
16112020-09-10 Kamil Rytarowski <n54@gmx.com>
1612
1613 * fork-inferior.c (startup_inferior): Avoid double free.
1614
1ccb2c17
KR
16152020-09-10 Kamil Rytarowski <n54@gmx.com>
1616
1617 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1618 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1619
feedfcc7
KR
16202020-09-10 Kamil Rytarowski <n54@gmx.com>
1621
1622 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1623 * netbsd-nat.c: Include <sys/ptrace.h>.
1624 * (netbsd_nat::enable_proc_events): Add.
1625
c489f8c6
KR
16262020-09-10 Kamil Rytarowski <n54@gmx.com>
1627
1628 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1629 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1630 (netbsd_nat::for_each_thread): Add.
1631 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1632 "gdbsupport/common-debug.h".
1633 * (netbsd_nat::netbsd_thread_lister)
1634 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1635 (netbsd_nat::for_each_thread): Add.
1636
330662f6
KR
16372020-09-10 Kamil Rytarowski <n54@gmx.com>
1638
1639 * netbsd-nat.h: Include <unistd.h>.
1640 * (netbsd_nat::pid_to_exec_file): Add.
1641 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1642 * (netbsd_nat::pid_to_exec_file) Add.
1643
70b67307
KR
16442020-09-10 Kamil Rytarowski <n54@gmx.com>
1645
1646 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1647
99cf6da6
KR
16482020-09-10 Kamil Rytarowski <n54@gmx.com>
1649
1650 * netbsd-nat.h: New file.
1651 * netbsd-nat.c: Likewise.
1652
1b788fb6
TT
16532020-09-09 Tom Tromey <tromey@adacore.com>
1654
1655 * ada-lang.c (remove_extra_symbols): Do not increment when
1656 removing an element
1657
03b0a45f
TT
16582020-09-08 Tom Tromey <tromey@adacore.com>
1659
1660 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1661
3cae4447
TT
16622020-09-08 Tom Tromey <tromey@adacore.com>
1663
1664 PR win32/25302:
1665 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1666 (gdb_bfd_init_data): New function.
1667 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1668
7f08fd51
TBA
16692020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1670
1671 * infrun.c (fetch_inferior_event): Use
1672 `switch_to_target_no_thread` to switch the target.
1673
3e6ff933
TT
16742020-09-06 Tom Tromey <tom@tromey.com>
1675
1676 * symfile.h (dwarf2_free_objfile): Don't declare.
1677
e56798df
AKS
16782020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1679
1680 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1681 to match 16 byte real/complex type generated by Flang compiler.
1682
8f5c6526
TV
16832020-09-03 Tom de Vries <tdevries@suse.de>
1684
1685 PR breakpoint/26546
1686 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1687 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1688
c5065df0
SM
16892020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1690
1691 * maint.c (index_digits): New function.
1692 (struct maint_print_section_data): Remove.
1693 (print_bfd_section_info): Remove print_data parameter, add arg
1694 and index_digits.
1695 (print_objfile_section_info): Likewise.
1696 (print_bfd_section_info_maybe_relocated): Likewise (plus
1697 objfile).
1698 (maintenance_info_sections): Adjust calls.
1699
02c6f3f1
TT
17002020-09-02 Tom Tromey <tromey@adacore.com>
1701
1702 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1703 for null pointers.
1704 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1705
ef5e5b0b
SM
17062020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1707
1708 * bcache.h (struct bcache) <insert>: Change type of `added` to
1709 pointer to bool.
1710 * bcache.c (bcache::insert): Likewise.
1711 * gdbtypes.c (check_types_worklist): Adjust.
1712 * psymtab.c (add_psymbol_to_bcache): Adjust.
1713
973695d6
KB
17142020-08-31 Kevin Buettner <kevinb@redhat.com>
1715
1716 * corelow.c (unordered_set): Include.
1717 (class core_target): Add field 'm_core_unavailable_mappings'.
1718 (core_target::build_file_mappings): Print only one warning
1719 per inaccessible file. Add unavailable/broken mappings
1720 to m_core_unavailable_mappings.
1721 (core_target::xfer_partial): Call...
1722 (core_target::xfer_memory_via_mappings): New method.
1723
264fc0e2
SM
17242020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1725
1726 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1727 type to bool.
1728
2de01bdb
SM
17292020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1730
1731 * dwarf2/read.c (struct field_info): Fix indentation.
1732
f3bd50f1
SM
17332020-08-31 Simon Marchi <simon.marchi@efficios.com>
1734
1735 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1736 ordering in comment.
1737 * frame.c (frame_id_eq): Fix indentation.
1738
22b9b4b0
SL
17392020-08-31 Scott Linder <scott@scottlinder.com>
1740 Simon Marchi <simon.marchi@efficios.com>
1741
1742 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1743 inline frame ids in outer frame.
1744
84154d16
SM
17452020-08-31 Simon Marchi <simon.marchi@efficios.com>
1746
1747 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1748 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1749 (outer_frame_id): Use FID_STACK_OUTER instead of
1750 FID_STACK_INVALID.
1751 (frame_id_p): Don't check for outer_frame_id.
1752
8efaf6b3
SM
17532020-08-31 Simon Marchi <simon.marchi@efficios.com>
1754
1755 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1756 regnum/frame in value. Call allocate_value_lazy.
1757 * frame.c (frame_unwind_register_value): Use
1758 val_print_not_saved.
1759
fe1fe7ea
SM
17602020-08-31 Simon Marchi <simon.marchi@efficios.com>
1761
1762 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1763
f7c7700d
PA
17642020-08-29 Pedro Alves <pedro@palves.net>
1765
1766 * progspace.c (print_program_space): Use all_inferiors. Switch to
1767 the inferior before calling target_pid_to_str.
1768
e0814aae
TT
17692020-08-28 Tom Tromey <tom@tromey.com>
1770
1771 * xcoffread.c (xcoff_end_psymtab): Update comment.
1772 * dbxread.c (dbx_end_psymtab): Update comment.
1773
626d2320
TV
17742020-08-28 Tom de Vries <tdevries@suse.de>
1775
1776 PR breakpoint/26544
1777 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1778 event_location.
1779 (create_breakpoint): Same.
1780 (base_breakpoint_decode_location): Same.
1781 (bkpt_create_sals_from_location): Same.
1782 (bkpt_decode_location): Same.
1783 (bkpt_probe_create_sals_from_location): Same.
1784 (bkpt_probe_decode_location): Same.
1785 (tracepoint_create_sals_from_location): Same.
1786 (tracepoint_decode_location): Same.
1787 (tracepoint_probe_decode_location): Same.
1788 (strace_marker_create_sals_from_location): Same.
1789 (strace_marker_decode_location): Same.
1790 (create_sals_from_location_default): Same.
1791 (decode_location_default): Same.
1792 * breakpoint.h (struct breakpoint_ops): Same.
1793 (create_breakpoint): Same.
1794 * linespec.h (decode_line_full): Same.
1795 * linespec.c (decode_line_full): Same. Throw error if
1796 result.size () == 0.
1797
df631783
PA
17982020-08-27 Pedro Alves <pedro@palves.net>
1799
1800 PR gdb/26524
1801 * breakpoint.c (until_break_fsm) <location_breakpoint,
1802 caller_breakpoint>: Delete fields.
1803 <breakpoints>: New field.
1804 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1805 two individual breakpoints.
1806 (until_break_fsm::should_stop): Loop over breakpoints in the
1807 breakpoint vector.
1808 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1809 vector.
1810 (until_break_command): Handle location expanding into multiple
1811 sals.
1812
b2b38aa4
PA
18132020-08-27 Pedro Alves <pedro@palves.net>
1814
1815 PR gdb/26523
1816 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1817 bp_until breakpoints user-specified locations. Update intro
1818 comment.
1819
b886559f
SM
18202020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1821
1822 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1823 gdb_bfd_sections): New.
1824 * maint.c (print_bfd_section_info): Change param type to
1825 maint_print_section_data.
1826 (print_objfile_section_info): Likewise.
1827 (print_bfd_section_info_maybe_relocated): Likewise.
1828 (maintenance_info_sections): Use gdb_bfd_sections.
1829
4c6e63bf
SV
18302020-08-25 Shahab Vahedi <shahab@synopsys.com>
1831
1832 * MAINTAINERS: Add ARC target and maintainer.
1833
8d7f0635
AK
18342020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1835
1836 * configure.tgt: ARC support for GNU/Linux.
1837 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1838 * arc-linux-tdep.c: New file.
1839 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1840 * arc-tdep.c (arc_write_pc): Use it.
1841
fdd8731b
SV
18422020-08-25 Shahab Vahedi <shahab@synopsys.com>
1843
1844 * arc-tdep.c (arc_check_for_hardware_loop): New.
1845 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1846
22459524
SV
18472020-08-25 Shahab Vahedi <shahab@synopsys.com>
1848
1849 * arc-tdep.h: Include "gdbarch.h".
1850
995d3a19
SV
18512020-08-25 Shahab Vahedi <shahab@synopsys.com>
1852
1853 * arch/arc.h
1854 (arc_gdbarch_features): New class to stir the selection of target XML.
1855 (arc_create_target_description): Use FEATURES to choose XML target.
1856 (arc_lookup_target_description): Use arc_create_target_description
1857 to create _new_ target descriptions or return the already created
1858 ones if the FEATURES is the same.
1859 * arch/arc.c: Implementation of prototypes described above.
1860 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1861 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1862 * arc-tdep.c (*_feature_name): Make feature names consistent.
1863 (arc_register_feature): A new struct to hold information about
1864 registers of a particular target/feature.
1865 (arc_check_tdesc_feature): Check if XML provides registers in
1866 compliance with ARC_REGISTER_FEATURE structs.
1867 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1868 (determine_*_reg_feature_set): Which feature name to look for.
1869 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1870 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1871 to expected ISA enums to be used in arc_gdbarch_features structs.
1872 * features/Makefile (FEATURE_XMLFILES): Add new files.
1873 * gdb/features/arc/v1-aux.c: New file.
1874 * gdb/features/arc/v1-aux.xml: Likewise.
1875 * gdb/features/arc/v1-core.c: Likewise.
1876 * gdb/features/arc/v1-core.xml: Likewise.
1877 * gdb/features/arc/v2-aux.c: Likewise.
1878 * gdb/features/arc/v2-aux.xml: Likewise.
1879 * gdb/features/arc/v2-core.c: Likewise.
1880 * gdb/features/arc/v2-core.xml: Likewise.
1881 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1882
3945d2d7
GM
18832020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1884 Andrew Burgess <andrew.burgess@embecosm.com>
1885
1886 PR m2/26372
fc5d6901 1887 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
1888 an assert. Remove single element array indexing pattern as the
1889 MULTI_SUBSCRIPT support will handle this case too.
1890
2677f2d3
SM
18912020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1892
1893 * value.h (valprint_check_validity): Move declaration from
1894 here...
1895 * valprint.h (valprint_check_validity): ... to here.
1896
c426fddb
SM
18972020-08-24 Simon Marchi <simon.marchi@efficios.com>
1898
1899 * debug.h: New file.
1900 * debug.c (debug_prefixed_vprintf): New function.
1901 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1902 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1903
1eb8556f
SM
19042020-08-24 Simon Marchi <simon.marchi@efficios.com>
1905
1906 * infrun.h (infrun_debug_printf_1): New function declaration.
1907 (infrun_debug_printf): New macro.
1908 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1909 throughout.
1910 (infrun_debug_printf): New function.
1911 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1912 (handle_jit_event): Likewise.
1913
b8fff44e
MW
19142020-08-21 Mark Wielaard <mark@klomp.org>
1915
1916 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1917
d19c3068
SM
19182020-08-22 Simon Marchi <simon.marchi@efficios.com>
1919
1920 * frame.c (enum class frame_id_status): New.
1921 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1922 (fprintf_frame): Update.
1923 (compute_frame_id): Set frame id status to "computing" on entry.
1924 Set it back to "not_computed" on failure and to "computed" on
1925 success.
1926 (get_frame_id): Assert the frame id is not being computed.
1927 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1928 (create_new_frame): Likewise.
1929 (frame_cleanup_after_sniffer): Update assert.
1930
b70e516e
SM
19312020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1932
1933 * regcache.c (pid_ptid_regcache_map): New type.
1934 (target_ptid_regcache_map): Remove.
1935 (target_pid_ptid_regcache_map): New type.
1936 (regcaches): Change type to target_pid_ptid_regcache_map.
1937 (get_thread_arch_aspace_regcache): Update.
1938 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1939 case.
1940 (regcaches_size): Update.
1941 (regcache_count): Update.
1942 (registers_changed_ptid_target_pid_test): New.
1943 (_initialize_regcache): Register new test.
1944
cdd9148a
SM
19452020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1946
1947 * regcache.c (regcache_count): New.
1948 (struct regcache_test_data): New.
1949 (regcache_test_data_up): New.
1950 (populate_regcaches_for_test): New.
1951 (regcaches_test): Remove.
1952 (get_thread_arch_aspace_regcache_test): New.
1953 (registers_changed_ptid_all_test): New.
1954 (registers_changed_ptid_target_test): New.
1955 (registers_changed_ptid_target_ptid_test): New.
1956 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1957 (_initialize_regcache): Register new tests.
1958
dd125343
SM
19592020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1960
1961 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1962 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1963 gdbarch and aspace parameter. Use current inferior's aspace.
1964 Validate regcache's arch value.
1965 (regcaches_test): Update.
1966
3ee93972
SM
19672020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1968
1969 * regcache.c (regcaches_test): Call registers_changed.
1970
33bf4c5c
TBA
19712020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1972
1973 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1974
c2fd7fae
AKS
19752020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1976
1977 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1978 to find the end of prologue for flang compiled binaries.
1979 * arm-tdep.c (arm_skip_prologue): Likewise.
1980 * i386-tdep.c (i386_skip_prologue): Likewise.
1981 * producer.c (producer_is_llvm): New function.
1982 (producer_parsing_tests): Added new tests for clang/flang.
1983 * producer.h (producer_is_llvm): New declaration.
1984
9327494e
SM
19852020-08-18 Simon Marchi <simon.marchi@efficios.com>
1986
1987 * linux-nat.c (linux_nat_debug_printf): New function.
1988 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1989
d138725a
AM
19902020-08-18 Aaron Merey <amerey@redhat.com>
1991
1992 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1993 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1994 (CLIBS): Add DEBUGINFOD_LIBS.
1995
f9b11e6b
ST
19962020-08-17 Sergei Trofimovich <siarheit@google.com>
1997
1998 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1999 'gdbarch_num_regs'.
2000
3ae7ab99
TT
20012020-08-17 Tom Tromey <tromey@adacore.com>
2002
2003 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2004 ada_get_decoded_value returns NULL.
2005
b017825f
TT
20062020-08-17 Tom Tromey <tromey@adacore.com>
2007
2008 * python/py-inferior.c (infpy_search_memory): Use
2009 gdb_py_object_from_ulongest.
2010 * python/py-infevents.c (create_inferior_call_event_object)
2011 (create_memory_changed_event_object): Use
2012 gdb_py_object_from_ulongest.
2013 * python/py-linetable.c (ltpy_entry_get_pc): Use
2014 gdb_py_object_from_ulongest.
2015
7635cf79
SM
20162020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2017
2018 * loc.c (class symbol_needs_eval_context): Fix indentation.
2019
f54be24b
SM
20202020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2021
2022 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2023 bool.
2024
53d5a2a5
TV
20252020-08-17 Tom de Vries <tdevries@suse.de>
2026
2027 PR gdb/26393
2028 * gdbtypes.c (dump_dynamic_prop): New function.
2029 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2030
547ce8f0
TV
20312020-08-15 Tom de Vries <tdevries@suse.de>
2032
2033 PR backtrace/26390
2034 * stack.c (print_frame_args): Temporarily set the selected
2035 frame to FRAME while printing the frame's arguments.
2036
6ea815e7
PFC
20372020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2038
2039 PR breakpoints/26385
2040 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2041 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2042
6e562fa3
PFC
20432020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2044
2045 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2046 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2047 and >= to check return value instead of == -1 and != -1.
2048
d369b608
SM
20492020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2050
2051 * utils.h (class gdb_argv) <as_array_view>: New method.
2052 * utils.c (gdb_argv_as_array_view_test): New.
2053 (_initialize_utils): Register selftest.
2054 * maint.c (maintenance_selftest): Use the new method.
2055
b31488a3
KR
20562020-08-13 Kamil Rytarowski <n54@gmx.com>
2057
2058 * target.h (supports_dumpcore, dumpcore): New
2059 function declarations.
2060 * target.c (supports_dumpcore, dumpcore): New
2061 functions.
2062 * target-delegates.c: Rebuild.
2063 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2064 and target_dumpcore ().
2065
002a3166
AM
20662020-08-13 Aaron Merey <amerey@redhat.com>
2067
2068 * debuginfod-support.c: Replace global variables with user_data.
2069
ece5bc8a
SM
20702020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2071
2072 * maint.c (maintenance_selftest): Split args and pass array_view
2073 to run_tests.
2074
6d8a0a5e
LM
20752020-08-12 Luis Machado <luis.machado@linaro.org>
2076
2077 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2078 type's length.
2079 Use %s and pulongest to print the length.
2080
7cf663a9
PA
20812020-08-12 Pedro Alves <palves@redhat.com>
2082
2083 * NEWS: Move "Multi-target debugging support" item to the
2084 "Changes since GDB 9" section.
2085
27c7b875
PA
20862020-08-12 Pedro Alves <palves@redhat.com>
2087
2088 PR gdb/26336
2089 * progspace.c (program_space::remove_objfile): Invalidate the
2090 frame cache.
2091
1796a2a1
TV
20922020-08-11 Tom de Vries <tdevries@suse.de>
2093
2094 * MAINTAINERS: Mark ms1 as deleted.
2095
f8e3fe0d
LM
20962020-08-10 Luis Machado <luis.machado@linaro.org>
2097
2098 PR gdb/26310
2099
2100 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2101 act accordingly.
2102 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2103 movz/str/stur/stp skipping behavior.
2104
cc308722
LM
21052020-08-10 Luis Machado <luis.machado@linaro.org>
2106
2107 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2108 struct user_sve_header instead of struct sve_context.
2109
041d9819
SM
21102020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2111
2112 * read.h (dwarf2_fetch_die_loc_sect_off,
2113 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2114 `void *` parameter with function_view.
2115 * read.c (dwarf2_fetch_die_loc_sect_off,
2116 dwarf2_fetch_die_loc_cu_off): Likewise.
2117 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2118 (per_cu_dwarf_call): Adjust.
2119 (get_frame_address_in_block_wrapper): Remove.
2120 (indirect_synthetic_pointer): Adjust.
2121 (get_ax_pc): Remove.
2122 (dwarf2_compile_expr_to_ax): Adjust.
2123
38f8aa06
TV
21242020-08-08 Tom de Vries <tdevries@suse.de>
2125
2126 PR build/26344
2127 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2128 constructor.
2129 * regcache.c (get_thread_arch_aspace_regcache): Same.
2130
a52b3ae2
TT
21312020-08-07 Tom Tromey <tromey@adacore.com>
2132
2133 * ravenscar-thread.c
2134 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2135 New method.
2136 (ravenscar_thread_target::wait): Check
2137 runtime_initialized.
2138 (ravenscar_thread_target::prepare_to_store)
2139 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2140 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2141 (ravenscar_thread_target::stopped_by_watchpoint)
2142 (ravenscar_thread_target::stopped_data_address)
2143 (ravenscar_thread_target::core_of_thread): Use
2144 scoped_restore_current_thread and
2145 set_base_thread_from_ravenscar_task.
2146
0e29517d
TT
21472020-08-07 Tom Tromey <tromey@adacore.com>
2148
2149 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2150
592f9bd7
TT
21512020-08-07 Tom Tromey <tromey@adacore.com>
2152
2153 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2154 update_inferior_ptid before update_thread_list.
2155 (temporarily_change_regcache_ptid): New class.
2156 (ravenscar_thread_target::fetch_registers)
2157 (ravenscar_thread_target::store_registers)
2158 (ravenscar_thread_target::prepare_to_store): Use base thread when
2159 forwarding operation.
2160
39e2018a
TT
21612020-08-07 Tom Tromey <tromey@adacore.com>
2162
2163 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2164 "is_pid" case.
2165
2080266b
TT
21662020-08-07 Tom Tromey <tromey@adacore.com>
2167
2168 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2169 New methods.
2170 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2171 first.
2172 (ravenscar_thread_target::add_thread): Rename from
2173 ravenscar_add_thread.
2174 (ravenscar_thread_target::update_thread_list): Use a lambda.
2175 (ravenscar_thread_target::xfer_partial): New method.
2176
78c02f21
TT
21772020-08-07 Tom Tromey <tromey@adacore.com>
2178
2179 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2180 gdb::function_view.
2181 (iterate_over_live_ada_tasks): Change type of argument.
2182 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2183 of argument.
2184
d5d833af
TT
21852020-08-07 Tom Tromey <tromey@adacore.com>
2186
2187 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2188 Remove.
2189 (ravenscar_thread_target::extra_thread_info): Remove.
2190 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2191 defer to target beneath for non-Ravenscar threads.
2192
a8ac85bb
TT
21932020-08-07 Tom Tromey <tromey@adacore.com>
2194
2195 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2196 get_base_thread_from_ravenscar_task>: Now methods.
2197 <m_cpu_map>: New member.
2198 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2199 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2200 (ravenscar_thread_target::task_is_currently_active): Update.
2201 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2202 Now a method.
2203 (ravenscar_thread_target::add_active_thread): Put initial thread
2204 into the m_cpu_map.
2205
550ab58d
TT
22062020-08-07 Tom Tromey <tromey@adacore.com>
2207
2208 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2209 event_ptid.
2210
e9546579
TT
22112020-08-07 Tom Tromey <tromey@adacore.com>
2212
2213 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2214 runtime_initialized.
2215
3d4470e5
TT
22162020-08-07 Tom Tromey <tromey@adacore.com>
2217
2218 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2219 add_active_thread.
2220 (ravenscar_thread_target::add_active_thread): Now public.
2221 (ravenscar_inferior_created): Call add_active_thread after pushing
2222 the target.
2223
888bdb2b
SM
22242020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2225
2226 * regcache.c (ptid_regcache_map): New type.
2227 (target_ptid_regcache_map): New type.
2228 (regcaches): Change type to target_ptid_regcache_map.
2229 (get_thread_arch_aspace_regcache): Update to regcaches' new
2230 type.
2231 (regcache_thread_ptid_changed): Likewise.
2232 (registers_changed_ptid): Likewise.
2233 (regcaches_size): Likewise.
2234 (regcaches_test): Update.
2235 (regcache_thread_ptid_changed): Update.
2236 * regcache.h (regcache_up): New type.
2237 * gdbsupport/ptid.h (hash_ptid): New struct.
2238
b161a60d
SM
22392020-08-07 Simon Marchi <simon.marchi@efficios.com>
2240
2241 * observable.h (thread_ptid_changed): Add parameter
2242 `process_stratum_target *`.
2243 * infrun.c (infrun_thread_ptid_changed): Add parameter
2244 `process_stratum_target *` and use it.
2245 (selftests): New namespace.
2246 (infrun_thread_ptid_changed): New function.
2247 (_initialize_infrun): Register selftest.
2248 * regcache.c (regcache_thread_ptid_changed): Add parameter
2249 `process_stratum_target *` and use it.
2250 (regcache_thread_ptid_changed): New function.
2251 (_initialize_regcache): Register selftest.
2252 * thread.c (thread_change_ptid): Pass target to
2253 thread_ptid_changed observable.
2254
d2854d8d
CT
22552020-08-06 Caroline Tice <cmtice@google.com>
2256
fe4c3d43
SM
2257 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2258 (struct dwp_sections): Update field comments. Add loclists and
2259 rnglists fields.
2260 (struct virtual_v2_dwo_sections): Rename struct to
2261 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2262 size & offset fields for loclists and rnglists.
2263 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2264 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2265 skipping dummy type units.
2266 (create_dwp_hash_table): Update the large comment above the function to
2267 discuss Version 5 DWP files as well, with references. Update all the
2268 version checks in the function to check for version 5 as well. Add new
2269 section at the end to create dwp hash table for version 5.
2270 (create_dwp_v2_section): Rename function to
2271 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2272 Add V5 to error message text.
2273 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2274 into calls to create_dwp_v2_or_v5_section.
2275 (create_dwo_unit_in_dwp_v5): New function.
2276 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2277 check for version2; add else clause to handle version 5.
2278 (open_and_init_dwo_file): Add code to check dwarf version & only call
2279 create_debug_types_hash_table (with sections.types) if version is not 5;
2280 else call create_debug_type_hash_table, with sections.info.
2281 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2282 version 5.
2283 (dwarf2_locate_v5_dwp_sections): New function.
2284 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2285 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2286
159ed7d9
SM
22872020-08-06 Simon Marchi <simon.marchi@efficios.com>
2288
2289 * regcache.h (class regcache): Remove friend
2290 registers_changed_ptid.
2291 <regcache_thread_ptid_changed>: Remove.
2292 <regcaches>: Remove.
2293 * regcache.c (regcache::regcaches): Rename to...
2294 (regcaches): ... this. Make static.
2295 (get_thread_arch_aspace_regcache): Update.
2296 (regcache::regcache_thread_ptid_changed): Rename to...
2297 (regcache_thread_ptid_changed): ... this. Update.
2298 (class regcache_access): Remove.
2299 (regcaches_test): Update.
2300 (_initialize_regcache): Update.
2301 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2302 <forward_list>.
2303
174981ae
SM
23042020-08-06 Simon Marchi <simon.marchi@efficios.com>
2305
2306 * regcache.h (class regcache) <current_regcache>: Rename to...
2307 <regcaches>: ... this. Move doc here.
2308 * regcache.c (regcache::current_regcache) Rename to...
2309 (regcache::regcaches): ... this. Move doc to header.
2310 (get_thread_arch_aspace_regcache): Update.
2311 (regcache::regcache_thread_ptid_changed): Update.
2312 (registers_changed_ptid): Update.
2313 (class regcache_access) <current_regcache_size>: Rename to...
2314 <regcaches_size>: ... this.
2315 (current_regcache_test): Rename to...
2316 (regcaches_test): ... this.
2317 (_initialize_regcache): Update.
2318
ed908db6
VC
23192020-08-06 Victor Collod <vcollod@nvidia.com>
2320
2321 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2322
b5582ab7
KB
23232020-08-05 Kevin Buettner <kevinb@redhat.com>
2324
2325 * corelow.c (core_target::build_file_mappings): Don't output
2326 null pathname in warning.
2327
ea946b86
SM
23282020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2329
2330 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2331 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2332 gdb.dwarf2/dw2-single-line-discriminators.exp,
2333 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2334
57d02173
TT
23352020-08-05 Tom Tromey <tromey@adacore.com>
2336
2337 PR rust/26197:
2338 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2339 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2340 Fix off-by-one and type size errors in ordinary case.
2341
5555c86d
TV
23422020-08-05 Tom de Vries <tdevries@suse.de>
2343
2344 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2345 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2346
97916bfe
SM
23472020-08-04 Simon Marchi <simon.marchi@efficios.com>
2348
2349 * frame.h (frame_id_p): Return bool.
2350 (frame_id_artificial_p): Return bool.
2351 (frame_id_eq): Return bool.
2352 (has_stack_frames): Return bool.
2353 (get_selected_frame): Fix typo in comment.
2354 (get_frame_pc_if_available): Return bool.
2355 (get_frame_address_in_block_if_available): Return bool.
2356 (get_frame_func_if_available): Return bool.
2357 (read_frame_register_unsigned): Return bool.
2358 (get_frame_register_bytes): Return bool.
2359 (safe_frame_unwind_memory): Return bool.
2360 (deprecated_frame_register_read): Return bool.
2361 (frame_unwinder_is): Return bool.
2362 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2363 bool.
2364 <this_id::p>: Likewise.
2365 <prev_p>: Likewise.
2366 (frame_stash_add): Return bool.
2367 (get_frame_id): Use bool.
2368 (frame_id_build_special) Use bool.
2369 (frame_id_build_unavailable_stack): Use bool.
2370 (frame_id_build): Use bool.
2371 (frame_id_p): Return bool, use true/false instead of 1/0.
2372 (frame_id_artificial_p): Likewise.
2373 (frame_id_eq): Likewise.
2374 (frame_id_inner): Likewise.
2375 (get_frame_func_if_available): Likewise.
2376 (read_frame_register_unsigned): Likewise.
2377 (deprecated_frame_register_read): Likewise.
2378 (get_frame_register_bytes): Likewise.
2379 (has_stack_frames): Likewise.
2380 (inside_main_func): Likewise.
2381 (inside_entry_func): Likewise.
2382 (get_frame_pc_if_available): Likewise.
2383 (get_frame_address_in_block_if_available): Likewise.
2384 (frame_unwinder_is): Likewise.
2385 (safe_frame_unwind_memory): Likewise.
2386 (frame_unwind_arch): Likewise.
2387
fedfee88
SM
23882020-08-04 Simon Marchi <simon.marchi@efficios.com>
2389
2390 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2391 type to cached_copy_status.
2392 (fprintf_frame): Adjust.
2393 (get_frame_func_if_available): Adjust.
2394 (frame_cleanup_after_sniffer): Adjust.
2395
6cfa9b59
MW
23962020-08-04 Mark Wielaard <mark@klomp.org>
2397
2398 * MAINTAINERS (Write After Approval): Update email address.
2399
66d6346b
SM
24002020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2401
2402 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2403 dynamic_prop::const_val.
2404
8a6d5e35
SM
24052020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2406
2407 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2408 dynamic_prop::kind.
2409
51d6067d
SM
24102020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2411
2412 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2413
b26e2ae7
JM
24142020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2415
2416 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2417
39791af2
JM
24182020-08-04 Weimin Pan <weimin.pan@oracle.com>
2419 Jose E. Marchesi <jose.marchesi@oracle.com>
2420
2421 * configure.tgt: Add entry for bpf-*-*.
2422 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2423 (ALLDEPFILES): Add bpf-tdep.c.
2424 * bpf-tdep.c: New file.
2425 * MAINTAINERS: Add bpf target and maintainer.
2426 * NEWS: Mention the support for the new target.
2427
521894aa
TV
24282020-08-04 Tom de Vries <tdevries@suse.de>
2429
2430 PR symtab/23270
2431 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2432 Error.
2433
5d6356e9
JB
24342020-08-03 John Baldwin <jhb@FreeBSD.org>
2435
2436 * syscalls/freebsd.xml: Regenerate.
2437
0cf82b81
JB
24382020-08-03 John Baldwin <jhb@FreeBSD.org>
2439
2440 * syscalls/update-freebsd.sh: Fix usage and year range.
2441
8f34b746
TV
24422020-08-03 Tom de Vries <tdevries@suse.de>
2443
2444 PR symtab/26333
2445 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2446 DW_LNE_lo_user/DW_LNE_hi_user range.
2447
5e500d33
SM
24482020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2449
2450 PR ada/26318
2451 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2452 kind.
2453
78319c15
TBA
24542020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2455
2456 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2457
4c55e970
TBA
24582020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2459
2460 * breakpoint.c (set_breakpoint_condition): Update the condition
2461 expressions after checking that the input condition string parses
2462 successfully and does not contain junk at the end.
2463
1e620590
TBA
24642020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2465
2466 * breakpoint.c (set_breakpoint_condition): Update the
2467 condition string after parsing the new condition successfully.
2468
c8693053
RO
24692020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2470
2471 * proc-api.c (_STRUCTURED_PROC): Don't define.
2472 * proc-events.c: Likewise.
2473 * proc-flags.c: Likewise.
2474 * proc-why.c: Likewise.
2475 * procfs.c: Likewise.
2476
2477 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2478 * configure, config.in: Regenerate.
2479
5a99adb8
TV
24802020-07-30 Tom de Vries <tdevries@suse.de>
2481
2482 PR build/26320
2483 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2484 m_red/m_green/m_blue in a union.
2485
8ba83e91
TV
24862020-07-29 Tom de Vries <tdevries@suse.de>
2487
2488 PR tdep/26280
2489 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2490
f75a0693
AB
24912020-07-28 Tom Tromey <tromey@adacore.com>
2492
2493 PR symtab/26270:
2494 * symtab.h (find_pc_partial_function_sym): Declare.
2495 * cli/cli-cmds.c (disassemble_command): Use
2496 find_pc_partial_function_sym. Check asm_demangle.
2497 * blockframe.c (cache_pc_function_sym): New global.
2498 (cache_pc_function_name): Remove.
2499 (clear_pc_function_cache): Update.
2500 (find_pc_partial_function_sym): New function, from
2501 find_pc_partial_function.
2502 (find_pc_partial_function): Rewrite using
2503 find_pc_partial_function_sym.
2504
16f3242c
TT
25052020-07-28 Tom Tromey <tromey@adacore.com>
2506
2507 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2508 help. Add usage.
2509
4888741a
TT
25102020-07-28 Tom Tromey <tromey@adacore.com>
2511
2512 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2513 <DW_OP_GNU_variable_value>: Cast to address type.
2514
4d46f402
KR
25152020-07-28 Kamil Rytarowski <n54@gmx.com>
2516
2517 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2518 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2519 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2520 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2521 (nbsd_get_siginfo_type): New.
2522 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2523 (_initialize_nbsd_tdep): New.
2524
d70f978b
L
25252020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2526
2527 PR binutils/26301
2528 * configure: Regenerated.
2529
377170fa
L
25302020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2531
2532 PR binutils/26301
2533 * configure: Regenerated.
2534
43d5901d
AB
25352020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2536
2537 * python/py-frame.c: Remove 'user-regs.h' include.
2538 (frapy_read_register): Rewrite to make use of
2539 gdbpy_parse_register_id.
2540 * python/py-registers.c (gdbpy_parse_register_id): New function,
2541 moved here from python/py-unwind.c. Updated the return type, and
2542 also accepts register descriptor objects.
2543 * python/py-unwind.c: Remove 'user-regs.h' include.
2544 (pyuw_parse_register_id): Moved to python/py-registers.c.
2545 (unwind_infopy_add_saved_register): Update to use
2546 gdbpy_parse_register_id.
2547 (pending_framepy_read_register): Likewise.
2548 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2549
14fa8fb3
AB
25502020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2551
2552 * python/py-registers.c: Add 'user-regs.h' include.
2553 (register_descriptor_iter_find): New function.
2554 (register_descriptor_iterator_object_methods): New static global
2555 methods array.
2556 (register_descriptor_iterator_object_type): Add pointer to methods
2557 array.
2558
ddce1758
JB
25592020-07-27 John Baldwin <jhb@FreeBSD.org>
2560
2561 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2562 for all architectures on FreeBSD 11.3 and later.
2563
a4089f52
TT
25642020-07-27 Tom Tromey <tromey@adacore.com>
2565
2566 * gcore.h (load_corefile): Don't declare.
2567
95420d30
TV
25682020-07-27 Tom de Vries <tdevries@suse.de>
2569
2570 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2571 * config.in: Regenerate.
2572 * configure: Regenerate.
2573
05a6b8c2
EZ
25742020-07-26 Eli Zaretskii <eliz@gnu.org>
2575
2576 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2577 ws2tcpip.h. When checking whether socklen_t type is defined, use
2578 ws2tcpip.h if it is available and sys/socket.h isn't.
2579 * configure: Regenerate.
2580 * config.in: Regenerate.
2581
e79eb02f
AB
25822020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2583
2584 PR fortran/23051
2585 PR fortran/26139
2586 * valops.c (value_ind): Pass address to
2587 readjust_indirect_value_type.
2588 * value.c (readjust_indirect_value_type): Make parameter
2589 non-const, and add extra address parameter. Resolve original type
2590 before using it.
2591 * value.h (readjust_indirect_value_type): Update function
2592 signature and comment.
2593
876518dd
TV
25942020-07-25 Tom de Vries <tdevries@suse.de>
2595
2596 PR symtab/26243
2597 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2598 entries.
2599
f6720b1c
AM
26002020-07-24 Aaron Merey <amerey@redhat.com>
2601
2602 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2603 * configure: Rebuild.
2604
513487e1
KB
26052020-07-23 Kevin Buettner <kevinb@redhat.com>
2606
2607 PR corefiles/26294
2608 * corelow.c (_initialize_corelow): Add period to help text
2609 for "maintenance print core-file-backed-mappings".
2610
e7bc9db8
PA
26112020-07-23 Pedro Alves <pedro@palves.net>
2612
2613 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2614 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2615 meanwhile.
2616 * frame.c (frame_cache_generation, get_frame_cache_generation):
2617 New.
2618 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2619 (get_prev_frame_if_no_cycle): On exception, don't touch
2620 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2621 * frame.h (get_frame_cache_generation): Declare.
2622
90fcc466
TV
26232020-07-23 Tom de Vries <tdevries@suse.de>
2624
2625 PR tui/26282
2626 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2627 New default constructor.
2628
78344df7
AB
26292020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2630
2631 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2632 exclude non-statement entries.
2633
b089853a
KB
26342020-07-22 Kevin Buettner <kevinb@redhat.com>
2635
2636 * NEWS (New commands): Mention new command
2637 "maintenance print core-file-backed-mappings".
2638
09c2f5d4
KB
26392020-07-22 Kevin Buettner <kevinb@redhat.com>
2640
2641 * corelow.c (gdbcmd.h): Include.
2642 (core_target::info_proc_mappings): New method.
2643 (get_current_core_target): New function.
2644 (maintenance_print_core_file_backed_mappings): New function.
2645 (_initialize_corelow): Add core-file-backed-mappings to
2646 "maint print" commands.
2647
9c5ec5c2 26482020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 2649
9c5ec5c2
KB
2650 * linux-tdep.c (dump_note_entry_p): New function.
2651 (linux_dump_mapping_p_ftype): New typedef.
2652 (linux_find_memory_regions_full): Add new parameter,
2653 should_dump_mapping_p.
2654 (linux_find_memory_regions): Adjust call to
2655 linux_find_memory_regions_full.
2656 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2657 call to linux_find_memory_regions_full.
2658
db082f59
KB
26592020-07-22 Kevin Buettner <kevinb@redhat.com>
2660
2661 * corelow.c (solist.h, unordered_map): Include.
2662 (class core_target): Add field m_core_file_mappings and
2663 method build_file_mappings.
2664 (core_target::core_target): Call build_file_mappings.
2665 (core_target::~core_target): Free memory associated with
2666 m_core_file_mappings.
2667 (core_target::build_file_mappings): New method.
2668 (core_target::xfer_partial): Use m_core_file_mappings
2669 for memory transfers.
2670 * linux-tdep.c (linux_read_core_file_mappings): New
2671 function.
2672 (linux_core_info_proc_mappings): Rewrite to use
2673 linux_read_core_file_mappings.
2674 (linux_init_abi): Register linux_read_core_file_mappings.
2675
7e183d27
KB
26762020-07-22 Kevin Buettner <kevinb@redhat.com>
2677
2678 * arch-utils.c (default_read_core_file_mappings): New function.
2679 * arch-utils.c (default_read_core_file_mappings): Declare.
2680 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2681 * gdbarch.h, gdbarch.c: Regenerate.
2682
2735d421
KB
26832020-07-22 Kevin Buettner <kevinb@redhat.com>
2684
2685 PR corefiles/25631
2686 * corelow.c (core_target:xfer_partial): Revise
2687 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2688 case after first checking the stratum beneath the core
2689 target.
2690 (has_all_memory): Return true.
2691 * target.c (raw_memory_xfer_partial): Revise comment
2692 regarding use of has_all_memory.
2693
e56cb451
KB
26942020-07-22 Kevin Buettner <kevinb@redhat.com>
2695
2696 * exec.h (section_table_xfer_memory): Revise declaration,
2697 replacing section name parameter with an optional callback
2698 predicate.
2699 * exec.c (section_table_xfer_memory): Likewise.
2700 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2701 of section_table_xfer_memory.
2702
32fa152e
TT
27032020-07-22 Tom Tromey <tromey@adacore.com>
2704
2705 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2706 lookup_symbol_search_name.
2707
a67a1c41
AB
27082020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2709
2710 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2711 redundant local variable.
2712 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2713 reference, not pointer, update code accordingly.
2714
a7b4ff4f
SM
27152020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2716 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2717
2718 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2719 * jit.c (jit_breakpoint_re_set_internal): Use the
2720 `skip_jit_symbol_lookup` field.
2721
2340e834
SM
27222020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2723 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2724
2725 * jit.c (jit_read_descriptor): Define the descriptor address once,
2726 use twice.
2727 (jit_breakpoint_deleted): Move the declaration of the loop variable
2728 `iter` into the loop header.
2729 (jit_breakpoint_re_set_internal): Move the declaration of the local
2730 variable `objf_data` to the first point of definition.
2731 (jit_event_handler): Move the declaration of local variables
2732 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2733 Rename `objf` to `jited`.
2734
c1072906
SM
27352020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2736
2737 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2738 Remove.
2739 * jit.c (get_jiter_objfile_data): Update.
2740
c8474dc3
TBA
27412020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2742 Simon Marchi <simon.marchi@polymtl.ca>
2743
2744 * jit.c (struct jit_program_space_data): Remove.
2745 (jit_program_space_key): Remove.
2746 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2747 stuff.
2748 (get_jit_program_space_data): Remove.
2749 (jit_breakpoint_deleted): Iterate on all of the program space's
2750 objfiles.
2751 (jit_inferior_init): Likewise.
2752 (jit_breakpoint_re_set_internal): Likewise. Also change return
2753 type to void.
2754 (jit_breakpoint_re_set): Pass current_program_space to
2755 jit_breakpoint_re_set_internal.
2756
77208eb7
SM
27572020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2758
2759 * jit.h (struct jiter_objfile_data) <cached_code_address,
2760 jit_breakpoint>: Move to here from ...
2761 * jit.c (jit_program_space_data): ... here.
2762 (jiter_objfile_data::~jiter_objfile_data): Update.
2763 (jit_breakpoint_deleted): Update.
2764 (jit_breakpoint_re_set_internal): Update.
2765
8c1c720f
SM
27662020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2767
2768 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2769 checks.
2770 (jit_read_descriptor): Remove NULL check.
2771 (jit_event_handler): Add an assertion.
2772
0e74a041
SM
27732020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2774
2775 * jit.h (struct jit_objfile_data): Split into...
2776 (struct jiter_objfile_data): ... this ...
2777 (struct jited_objfile_data): ... and this.
2778 * objfiles.h (struct objfile) <jit_data>: Remove.
2779 <jiter_data, jited_data>: New fields.
2780 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2781 (jiter_objfile_data::~jiter_objfile_data): ... this.
2782 (get_jit_objfile_data): Rename to ...
2783 (get_jiter_objfile_data): ... this.
2784 (add_objfile_entry): Update.
2785 (jit_read_descriptor): Use get_jiter_objfile_data.
2786 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2787 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2788 (jit_inferior_exit_hook): Use objfile's jited_data field.
2789
238b5c9f
SM
27902020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2791
2792 * jit.h: Forward-declare `struct minimal_symbol`.
2793 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2794 constructor, destructor, and an objfile* field.
2795 * jit.c (jit_objfile_data): Remove.
2796 (struct jit_objfile_data): Migrate from here to jit.h.
2797 (jit_objfile_data::~jit_objfile_data): New destructor
2798 implementation with code moved from free_objfile_data.
2799 (free_objfile_data): Delete.
2800 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2801 (jit_find_objf_with_entry_addr): Ditto.
2802 (jit_inferior_exit_hook): Ditto.
2803 (_initialize_jit): Remove the call to
2804 register_objfile_data_with_cleanup.
2805 * objfiles.h (struct objfile) <jit_data>: New field.
2806
fe053b9e
TBA
28072020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2808
2809 * jit.h: Forward-declare `struct objfile`.
2810 (jit_event_handler): Add a second parameter, the JITer objfile.
2811 * jit.c (jit_read_descriptor): Change the signature to take the
2812 JITer objfile as an argument instead of the jit_program_space_data.
2813 (jit_inferior_init): Update the call to jit_read_descriptor.
2814 (jit_event_handler): Use the new JITer objfile argument when calling
2815 jit_read_descriptor.
2816 * breakpoint.c (handle_jit_event): Update the call to
2817 jit_event_handler to pass the JITer objfile.
2818
4cec0c66
JB
28192020-07-21 John Baldwin <jhb@FreeBSD.org>
2820
2821 * gdbarch.c: Regenerate.
2822 * gdbarch.h: Regenerate.
2823 * gdbarch.sh (handle_segmentation_fault): Remove method.
2824 * infrun.c (handle_segmentation_fault): Remove.
2825 (print_signal_received_reason): Remove call to
2826 handle_segmentation_fault.
2827
0e42f66a
JB
28282020-07-21 John Baldwin <jhb@FreeBSD.org>
2829
2830 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2831 Rename to sparc64_linux_report_signal_info and add siggnal
2832 argument.
2833 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2834 instead of sparc64_linux_handle_segmentation_fault.
2835
77bdfeb2
JB
28362020-07-21 John Baldwin <jhb@FreeBSD.org>
2837
2838 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2839 i386_linux_report_signal_info instead of
2840 i386_linux_handle_segmentation_fault.
2841 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2842 to i386_linux_report_signal_info and add siggnal argument.
2843 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2844 of i386_linux_handle_segmentation_fault.
2845 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2846 to i386_linux_report_signal_info and add siggnal argument.
2847
ad97bfc5
JB
28482020-07-21 John Baldwin <jhb@FreeBSD.org>
2849
2850 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2851 hook if present.
2852
272bb05c
JB
28532020-07-21 John Baldwin <jhb@FreeBSD.org>
2854
2855 * gdbarch.c: Regenerate.
2856 * gdbarch.h: Regenerate.
2857 * gdbarch.sh (report_signal_info): New method.
2858 * infrun.c (print_signal_received_reason): Invoke gdbarch
2859 report_signal_info hook if present.
2860
baf8791e
AB
28612020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2862
2863 * python/py-registers.c : Add 'unordered_map' include.
2864 (gdbpy_new_reggroup): Renamed to...
2865 (gdbpy_get_reggroup): ...this. Update to only create register
2866 group descriptors when needed.
2867 (gdbpy_reggroup_iter_next): Update.
2868
f7306dac
AB
28692020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2870
2871 * python/py-registers.c (gdbpy_register_object_data): New static
2872 global.
2873 (gdbpy_register_object_data_init): New function.
2874 (gdbpy_new_register_descriptor): Renamed to...
2875 (gdbpy_get_register_descriptor): ...this, and update to reuse
2876 existing register descriptors where possible.
2877 (gdbpy_register_descriptor_iter_next): Update.
2878 (gdbpy_initialize_registers): Register new gdbarch data.
2879
05c309a8
SM
28802020-07-21 Simon Marchi <simon.marchi@efficios.com>
2881
2882 * linux-nat.c (stopped_pids): Make static.
2883
d1fd641e
SM
28842020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2885
2886 PR ada/26235
2887 * gdbtypes.c (ada_discrete_type_low_bound,
2888 ada_discrete_type_high_bound): Handle undefined bounds.
2889
1de14d77
KR
28902020-07-21 Kamil Rytarowski <n54@gmx.com>
2891
2892 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2893 declaration.
2894 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2895 function.
2896
ed810cc7
JB
28972020-07-20 John Baldwin <jhb@FreeBSD.org>
2898
2899 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2900 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2901 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2902 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2903 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2904 method.
2905
ae5369e7
LC
29062020-07-20 Ludovic Courtès <ludo@gnu.org>
2907
2908 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2909 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2910 which are deprecated in Guile 3.0.
2911 * configure.ac (try_guile_versions): Add "guile-3.0".
2912 * configure (try_guile_versions): Regenerate.
2913 * NEWS: Update entry.
2914
68cf161c
LC
29152020-07-20 Ludovic Courtès <ludo@gnu.org>
2916 Doug Evans <dje@google.com>
2917
2918 PR gdb/21104
2919 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2920 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2921 USING_GUILE_BEFORE_2_2.
2922 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2923 Change type to 'scm_t_port_type *'.
2924 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2925 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2926 parameter and honor it. Update callers.
2927 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2928 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2929 functions.
2930 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2931 USING_GUILE_BEFORE_2_2.
2932 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2933 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2934 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2935 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2936 and 'SCM_PORT_TYPE'.
2937 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2938 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2939 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2940 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2941 [!USING_GUILE_BEFORE_2_2]: New functions.
2942 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2943 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2944 'gdbscm_memory_port_read'.
2945 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2946 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2947 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2948 function.
2949 (ioscm_init_memory_port): Remove.
2950 (ioscm_init_memory_port_stream): New function
2951 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2952 function.
2953 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2954 Return scm_from_uint (0).
2955 (gdbscm_set_memory_port_read_buffer_size_x)
2956 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2957 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2958 Return scm_from_uint (0).
2959 (gdbscm_set_memory_port_write_buffer_size_x)
2960 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2961 * configure.ac (try_guile_versions): Add "guile-2.2".
2962 * configure: Regenerate.
2963 * NEWS: Add entry.
2964
aee91db3
TT
29652020-07-18 Tom Tromey <tom@tromey.com>
2966
2967 * linux-nat.c (linux_multi_process): Remove.
2968 (linux_nat_target::supports_multi_process): Return true.
2969
0e267416
AB
29702020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2971
2972 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2973 (riscv_lookup_target_description): Return pointer out of
2974 unique_ptr.
2975 * target-descriptions.c (allocate_target_description): Add
2976 comment.
2977 (target_desc_deleter::operator()): Likewise.
2978 * target-descriptions.h (struct target_desc_deleter): Moved to
2979 gdbsupport/tdesc.h.
2980 (target_desc_up): Likewise.
2981
f80c8ec4
TT
29822020-07-17 Tom Tromey <tromey@adacore.com>
2983
2984 * linux-nat.c (linux_nat_target::supports_non_stop)
2985 (linux_nat_target::always_non_stop_p): Use "true".
2986 (linux_nat_target::supports_disable_randomization): Use "true" and
2987 "false".
2988
d0ce17d8
CT
29892020-07-16 Caroline Tice <cmtice@google.com>
2990
2991 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2992 (RNGLIST_HEADER_SIZE64): New constant definition.
2993 (struct dwop_section_names): Add rnglists_dwo.
2994 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2995 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2996 (struct dwo_sections): Add rnglists field.
2997 (read_attribut_reprocess): Add tag parameter.
2998 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2999 (cu_debug_rnglists_section): New function (decl & definition).
3000 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3001 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3002 die whose range is being checked; get rnglist section from
3003 cu_debug_rnglists_section, to get from either objfile or dwo file as
3004 appropriate. Add cases for DW_RLE_base_addressx,
3005 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3006 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3007 test inside if-condition and updating complaint message.
3008 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3009 dwarf2_rnglists_process.
3010 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3011 dwarf2_ranges_process.
3012 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3013 need_ranges_base and update comment appropriately. Also pass die tag
3014 to dwarf2_ranges_read.
3015 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3016 need_ranges_base and update comment appropriately. Also pass die tag
3017 to dwarf2_ranges_process.
3018 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3019 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3020 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3021 need_ranges_base and update comment appropriately. Also pass die tag
3022 to read_attribute_reprocess and dwarf2_ranges_read.
3023 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3024 and update function comment appropriately.
3025 (read_loclist_index): Call read_loclists_rnglists_header instead of
3026 read_loclist_header.
3027 (read_rnglist_index): New function.
3028 (read_attribute_reprocess): Add tag parameter. Add code for
3029 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3030 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3031
3dcc261c
AB
30322020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3033
3034 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3035 being resolved.
3036
ccb9eba6
AB
30372020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3038
3039 * arch-utils.c (show_architecture): Update formatting of messages.
3040
cf88be68
SM
30412020-07-12 Simon Marchi <simon.marchi@efficios.com>
3042
3043 * gdbtypes.h (struct type) <bounds>: Handle array and string
3044 types.
3045 * ada-lang.c (assign_aggregate): Use type::bounds on
3046 array/string type.
3047 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3048 * c-varobj.c (c_number_of_children): Likewise.
3049 (c_describe_child): Likewise.
3050 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3051 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3052 (f_type_print_base): Likewise.
3053 * f-valprint.c (f77_array_offset_tbl): Likewise.
3054 (f77_get_upperbound): Likewise.
3055 (f77_print_array_1): Likewise.
3056 * guile/scm-type.c (gdbscm_type_range): Likewise.
3057 * m2-typeprint.c (m2_array): Likewise.
3058 (m2_is_long_set_of_type): Likewise.
3059 * m2-valprint.c (get_long_set_bounds): Likewise.
3060 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3061 * python/py-type.c (typy_range): Likewise.
3062 * rust-lang.c (rust_internal_print_type): Likewise.
3063 * type-stack.c (type_stack::follow_types): Likewise.
3064 * valarith.c (value_subscripted_rvalue): Likewise.
3065 * valops.c (value_cast): Likewise.
3066
509971ae
SM
30672020-07-12 Simon Marchi <simon.marchi@efficios.com>
3068
3069 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3070 callers to use the equivalent accessor methods.
3071
107406b7
SM
30722020-07-12 Simon Marchi <simon.marchi@efficios.com>
3073
3074 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3075 (struct type) <bit_stride>: New method.
3076 (TYPE_BIT_STRIDE): Remove.
3077 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3078
bb789949
SM
30792020-07-12 Simon Marchi <simon.marchi@efficios.com>
3080
3081 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3082 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3083 callers to use the equivalent accessor methods instead.
3084
39498edb
SM
30852020-07-12 Simon Marchi <simon.marchi@efficios.com>
3086
3087 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3088 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3089 callers to use the equivalent accessor methods instead.
3090
3b606f38
SM
30912020-07-12 Simon Marchi <simon.marchi@efficios.com>
3092
3093 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3094 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3095 to use dynamic_prop::kind.
3096
064d9cb9
SM
30972020-07-12 Simon Marchi <simon.marchi@efficios.com>
3098
3099 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3100 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3101 to get the bound property's kind and check against
3102 PROP_UNDEFINED.
3103
5537ddd0
SM
31042020-07-12 Simon Marchi <simon.marchi@efficios.com>
3105
3106 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3107 all callers to use type::range_bounds followed by
3108 dynamic_prop::{low,high}.
3109
8c2e4e06
SM
31102020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3111
3112 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3113 const_val, set_const_val, baton, set_locexpr, set_loclist,
3114 set_addr_offset, variant_parts, set_variant_parts,
3115 original_type, set_original_type>: New methods.
3116 <kind>: Rename to...
3117 <m_kind>: ... this. Update all users to use the new methods
3118 instead.
3119 <data>: Rename to...
3120 <m_data>: ... this. Update all users to use the new methods
3121 instead.
3122
7c6f2712
SM
31232020-07-12 Simon Marchi <simon.marchi@efficios.com>
3124
3125 * gdbtypes.c (get_discrete_bounds): Return failure if
3126 the range type's bounds are not both defined and constant
3127 values.
3128 (get_array_bounds): Update comment. Remove undefined bound check.
3129
599088e3
SM
31302020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3131
3132 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3133 the type::bounds method directly.
3134
c4dfcb36
SM
31352020-07-12 Simon Marchi <simon.marchi@efficios.com>
3136
3137 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3138 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3139 are used to set the range type's bounds to use set_bounds.
3140
0a278aa7
PW
31412020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3142
3143 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3144
cce20f10
PA
31452020-07-10 Pedro Alves <pedro@palves.net>
3146
3147 * gdbthread.h (inferior_ref): Define.
3148 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3149 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3150 * thread.c
3151 (scoped_restore_current_thread::restore):
3152 Adjust to gdb::ref_ptr.
3153 (scoped_restore_current_thread::~scoped_restore_current_thread):
3154 Remove manual decref handling.
3155 (scoped_restore_current_thread::scoped_restore_current_thread):
3156 Adjust to use
3157 inferior_ref::new_reference/thread_info_ref::new_reference.
3158 Incref the thread before calling get_frame_id instead of after.
3159 Let TARGET_CLOSE_ERROR propagate.
3160
6d7aa592
PA
31612020-07-10 Pedro Alves <pedro@palves.net>
3162
3163 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3164 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3165 NOT_AVAILABLE_ERROR.
3166 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3167 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3168
b3e3a4c1
SM
31692020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3170 Pedro Alves <pedro@palves.net>
3171
3172 PR gdb/26199
3173 * infrun.c (threads_are_resumed_pending_p): Delete.
3174 (do_target_wait): Remove threads_are_executing and
3175 threads_are_resumed_pending_p checks from the inferior_matches
3176 lambda. Update comments.
3177
d6cc5d98
PA
31782020-07-10 Pedro Alves <pedro@palves.net>
3179
3180 PR gdb/26199
3181 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3182 executing threads.
3183
7d3badc6
PA
31842020-07-10 Pedro Alves <pedro@palves.net>
3185
3186 PR gdb/26199
3187 * infrun.c (handle_no_resumed): Handle multiple targets.
3188
42bd97a6
PA
31892020-07-10 Pedro Alves <pedro@palves.net>
3190
3191 PR gdb/26199
3192 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3193 target_is_async_p.
3194
43667cc6
PA
31952020-07-10 Pedro Alves <pedro@palves.net>
3196
3197 PR gdb/26199
3198 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3199 threads, not all threads.
3200
96118d11
PA
32012020-07-10 Pedro Alves <pedro@palves.net>
3202
3203 PR gdb/26199
3204 * remote.c (remote_target::open_1): Pass remote target pointer as
3205 data to create_async_event_handler.
3206 (remote_async_inferior_event_handler): Mark async event handler
3207 before returning if the remote target still has either pending
3208 events or unacknowledged notifications.
3209
54904d81
JB
32102020-07-10 John Baldwin <jhb@FreeBSD.org>
3211
3212 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3213 declaration.
3214 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3215 function.
3216
f37e5866
JB
32172020-07-09 John Baldwin <jhb@FreeBSD.org>
3218
3219 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3220 inferior_ptid.
3221
fc238d4a
JB
32222020-07-09 John Baldwin <jhb@FreeBSD.org>
3223
3224 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3225 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3226 AT_FREEBSD_PS_STRINGS.
3227
6e2469ff
HD
32282020-07-08 Hannes Domani <ssbssa@yahoo.de>
3229
3230 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3231 of debugfile path on Windows.
3232
d1076c41
JB
32332020-07-08 John Baldwin <jhb@FreeBSD.org>
3234
3235 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3236 argument to 'data'.
3237
15f3b077
TT
32382020-07-08 Tom Tromey <tromey@adacore.com>
3239
3240 * ada-lang.c (ada_exception_message_1): Use read_memory.
3241
9fc501fd
AB
32422020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3243
3244 PR python/22748
3245 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3246 special handling for inline frames.
3247 * findvar.c (value_of_register_lazy): Skip inline frames when
3248 creating lazy register values.
3249 * frame.c (frame_id_computed_p): Delete definition.
3250 * frame.h (frame_id_computed_p): Delete declaration.
3251
64cb3757
AB
32522020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3253
3254 * NEWS: Mention additions to Python API.
3255 * python/py-arch.c (archpy_register_groups): New function.
3256 (arch_object_methods): Add 'register_groups' method.
3257 * python/py-registers.c (reggroup_iterator_object): New struct.
3258 (reggroup_object): New struct.
3259 (gdbpy_new_reggroup): New function.
3260 (gdbpy_reggroup_to_string): New function.
3261 (gdbpy_reggroup_name): New function.
3262 (gdbpy_reggroup_iter): New function.
3263 (gdbpy_reggroup_iter_next): New function.
3264 (gdbpy_new_reggroup_iterator): New function
3265 (gdbpy_initialize_registers): Register new types.
3266 (reggroup_iterator_object_type): Define new Python type.
3267 (gdbpy_reggroup_getset): New static global.
3268 (reggroup_object_type): Define new Python type.
3269 * python/python-internal.h
3270
0f767f94
AB
32712020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3272
3273 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3274 * python/py-arch.c (archpy_registers): New function.
3275 (arch_object_methods): Add 'registers' method.
3276 * python/py-registers.c: New file.
3277 * python/python-internal.h
3278 (gdbpy_new_register_descriptor_iterator): Declare.
3279 (gdbpy_initialize_registers): Declare.
3280 * python/python.c (do_start_initialization): Call
3281 gdbpy_initialize_registers.
3282 * NEWS: Mention additions to the Python API.
3283
87dbc774
AB
32842020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3285
3286 * NEWS: Mention new Python API method.
3287 * python/py-unwind.c (pending_framepy_architecture): New function.
3288 (pending_frame_object_methods): Add architecture method.
3289
3bc98c0c
AB
32902020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3291
3292 * gdbarch.c: Regenerate.
3293 * gdbarch.h: Regenerate.
3294 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3295 (gdbarch_data): Use internal_error for the case where
3296 deprecated_set_gdbarch_data was originally needed.
3297 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3298 and use passed in obstack.
3299 (libunwind_frame_set_descr): Should no longer get back NULL from
3300 gdbarch_data.
3301 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3302 type.
3303 * user-regs.c (user_regs_init): Update parameters, and use passed
3304 in obstack.
3305 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3306 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3307
d8cc8af6
TV
33082020-07-06 Tom de Vries <tdevries@suse.de>
3309
3310 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3311 End-Of-Sequence in lte_is_less_than.
3312 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3313 "gdb: Don't reorder line table entries too much when sorting".
3314
947f7597
TV
33152020-07-06 Tom de Vries <tdevries@suse.de>
3316
3317 PR tui/26205
3318 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3319
1e7c1b22
TV
33202020-07-05 Tom de Vries <tdevries@suse.de>
3321
3322 PR build/26187
3323 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3324 std::uncaught_exceptions instead of deprecated
3325 std::uncaught_exception.
3326
a36158ec
SM
33272020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3328
3329 * macroexp.h (macro_stringify): Return
3330 gdb::unique_xmalloc_ptr<char>.
3331 * macroexp.c (macro_stringify): Likewise.
3332 * macrotab.c (fixup_definition): Update.
3333
14d960c8
SM
33342020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3335
3336 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3337 (lex_one_token): Update.
3338 * macroexp.c (struct macro_buffer) <release>: Return
3339 gdb::unique_xmalloc_ptr<char>.
3340 (macro_stringify): Update.
3341 (macro_expand): Update.
3342 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3343 * macroexp.h (macro_expand_next): Likewise.
3344
211d5b1c
SM
33452020-07-02 Simon Marchi <simon.marchi@efficios.com>
3346
3347 * macroexp.h (macro_lookup_ftype): Remove.
3348 (macro_expand, macro_expand_once, macro_expand_next): Remove
3349 lookup function parameters, add scope parameter.
3350 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3351 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3352 * macroscope.h (standard_macro_lookup): Change parameter type
3353 to macro_scope.
3354 * macroscope.c (standard_macro_lookup): Likewise.
3355 * c-exp.y (lex_one_token): Update.
3356 * macrocmd.c (macro_expand_command): Likewise.
3357 (macro_expand_once_command): Likewise.
3358
b1a35af2
SM
33592020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3360
3361 * inf-loop.c (inferior_event_handler): Remove client_data param.
3362 * inf-loop.h (inferior_event_handler): Likewise.
3363 * infcmd.c (step_1): Adjust.
3364 * infrun.c (proceed): Adjust.
3365 (fetch_inferior_event): Remove client_data param.
3366 (infrun_async_inferior_event_handler): Adjust.
3367 * infrun.h (fetch_inferior_event): Remove `void *` param.
3368 * linux-nat.c (handle_target_event): Adjust.
3369 * record-btrace.c (record_btrace_handle_async_inferior_event):
3370 Adjust.
3371 * record-full.c (record_full_async_inferior_event_handler):
3372 Adjust.
3373 * remote.c (remote_async_inferior_event_handler): Adjust.
3374
1cdf9e33
TT
33752020-07-01 Tom Tromey <tom@tromey.com>
3376
3377 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3378 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3379
32c1e210
TT
33802020-07-01 Tom Tromey <tom@tromey.com>
3381
3382 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3383 tui_gen_win_info.
3384 (tui_win_info::make_window): Merge with
3385 tui_gen_win_info::make_window.
3386 (tui_win_info::make_visible): Move from tui_gen_win_info.
3387 * tui/tui-win.c (tui_win_info::max_width): Move from
3388 tui_gen_win_info.
3389 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3390 type.
3391 <window_factory>: Likewise.
3392 * tui/tui-layout.c (tui_win_info::resize): Move from
3393 tui_gen_win_info.
3394 (make_standard_window): Change return type.
3395 (get_locator_window, tui_get_window_by_name): Likewise.
3396 (tui_layout_window::apply): Remove a cast.
3397 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3398 (struct tui_win_info): Merge with tui_gen_win_info.
3399 (struct tui_gen_win_info): Remove.
3400
a30cb6da
TT
34012020-07-01 Tom Tromey <tom@tromey.com>
3402
3403 * tui/tui-stack.h (struct tui_locator_window): Derive from
3404 tui_win_info.
3405 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3406 <can_box>: New method.
3407
1eb2161f
TT
34082020-07-01 Tom Tromey <tom@tromey.com>
3409
3410 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3411
7134f2eb
TT
34122020-07-01 Tom Tromey <tom@tromey.com>
3413
3414 * tui/tui-regs.c (tui_data_window::display_registers_from)
3415 (tui_data_window::display_registers_from)
3416 (tui_data_window::first_data_item_displayed)
3417 (tui_data_window::delete_data_content_windows): Update.
3418 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3419 Remove.
3420 (tui_data_window::check_register_values): Update.
3421 (tui_data_item_window::rerender): Add parameters. Update.
3422 (tui_data_item_window::refresh_window): Remove.
3423 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3424 virtual.
3425 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3426 tui_gen_win_info.
3427 <refresh_window, max_height, min_height>: Remove.
3428 <rerender>: Add parameters.
3429 <x, y, visible>: New members.
3430 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3431 <m_item_width>: New member.
3432
22b7b041
TT
34332020-07-01 Tom Tromey <tom@tromey.com>
3434
3435 * tui/tui-regs.c (tui_data_window::show_register_group)
3436 (tui_data_window::check_register_values): Update.
3437 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3438 from item_no.
3439
c9753adb
TT
34402020-07-01 Tom Tromey <tom@tromey.com>
3441
3442 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3443 useless "if".
3444
9ab26b4a
TT
34452020-07-01 Tom Tromey <tom@tromey.com>
3446
3447 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3448 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3449
e555083f
TT
34502020-07-01 Tom Tromey <tom@tromey.com>
3451
3452 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3453 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3454 (struct tui_line_or_address): Move from tui-data.h.
3455 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3456 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3457 (tui_cmd_window, tui_source_window_base, tui_source_window)
3458 (tui_disasm_window): Don't declare.
3459 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3460 to tui-winsource.h.
3461 (SINGLE_KEY): Move to tui-stack.c.
3462
7a02bab7
TT
34632020-07-01 Tom Tromey <tom@tromey.com>
3464
3465 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3466 std::string.
3467 * tui/tui-regs.c (class tab_expansion_file): New.
3468 (tab_expansion_file::write): New method.
3469 (tui_register_format): Change return type. Use
3470 tab_expansion_file.
3471 (tui_get_register, tui_data_window::display_registers_from)
3472 (tui_data_item_window::rerender): Update.
3473 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3474 * tui/tui-io.c (tui_expand_tabs): Remove.
3475
ea68593b
TT
34762020-07-01 Tom Tromey <tom@tromey.com>
3477
3478 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3479
a8caed5d
FS
34802020-07-01 Fangrui Song <maskray@google.com>
3481
3482 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3483
9cdf9820
AKS
34842020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3485
3486 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3487 forms for DW_AT_associated and DW_AT_allocated attributes,
3488 which is already checked in function attr_to_dynamic_prop.
3489
a1520ad8
TT
34902020-06-30 Tom Tromey <tromey@adacore.com>
3491
3492 * dwarf2/read.c (quirk_rust_enum): Correctly call
3493 alloc_rust_variant for default-less enum.
3494
5ac58899
TT
34952020-06-30 Tom Tromey <tromey@adacore.com>
3496
3497 PR build/26183:
3498 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3499 gdb::to_string.
3500
19b187a9
SM
35012020-06-29 Simon Marchi <simon.marchi@efficios.com>
3502
3503 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3504 * gdbarch.h: Re-generate.
3505
cd4c4c07
TT
35062020-06-28 Tom Tromey <tom@tromey.com>
3507
3508 * command.h (cmd_types): Remove.
3509 (cmd_type): Don't declare.
3510 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3511 typedef.
3512 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3513 * cli/cli-decode.c (cmd_type): Remove.
3514
05779d57
PA
35152020-06-27 Pedro Alves <palves@redhat.com>
3516
3517 * fork-child.c (prefork_hook): Adjust.
3518 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3519 Delete.
3520 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3521 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3522 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3523 Remove declarations.
3524 (struct inferior) <set_tty, tty>: New methods.
3525 (struct inferior) <terminal>: Rename to ...
3526 (struct inferior) <m_terminal>: ... this and make private.
3527 * main.c (captured_main_1): Adjust.
3528 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3529 (mi_cmd_inferior_tty_show): Adjust.
3530 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3531 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3532
1776e3e5
NA
35332020-06-26 Nick Alcock <nick.alcock@oracle.com>
3534
3535 * configure.ac: Add --enable-libctf: handle --disable-static
3536 properly.
3537 * acinclude.m4: sinclude ../config/enable.m4.
3538 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3539 (LIBCTF): Substitute in.
3540 (CTF_DEPS): New, likewise.
3541 (CLIBS): libctf needs symbols from libbfd: move earlier.
3542 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3543 flags.
3544 * ctfread.c: Surround in ENABLE_LIBCTF.
3545 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3546 * configure: Regenerate.
3547 * config.in: Likewise.
3548
58373b80
SM
35492020-06-25 Simon Marchi <simon.marchi@efficios.com>
3550
3551 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3552
277474ee
SM
35532020-06-25 Simon Marchi <simon.marchi@efficios.com>
3554
3555 * inferior.h (struct inferior) <terminal>: Change type to
3556 gdb::unique_xmalloc_ptr<char>.
3557 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3558 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3559 field, adjust to unique pointer.
3560 (get_inferior_io_terminal): Adjust to unique pointer.
3561
6d74da72
AB
35622020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3563
3564 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3565 registers, not just the known core set of registers.
3566
2e52d038
AB
35672020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3568
3569 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3570 fflags, frm, and fcsr registers.
3571 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3572 restore groups.
3573 (riscv_tdesc_unknown_reg): New function.
3574 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3575 tdesc_use_registers.
3576 * riscv-tdep.h (struct gdbarch_tdep): Add
3577 unknown_csrs_first_regnum, unknown_csrs_count,
3578 duplicate_fflags_regnum, duplicate_frm_regnum, and
3579 duplicate_fcsr_regnum fields.
3580
be64fd07
AB
35812020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3582
3583 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3584 callback, use the callback (when not null) to help number unknown
3585 registers.
3586 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3587 (tdesc_use_registers): Add extra parameter to declaration.
3588
3b9fce96
AB
35892020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3590
3591 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3592 in the file.
3593 (class riscv_pending_register_alias): Likewise.
3594 (riscv_register_feature::register_info): Change 'required_p' field
3595 to 'required', and change its type. Add 'check' member function.
3596 (riscv_register_feature::register_info::check): Define new member
3597 function.
3598 (riscv_xreg_feature): Change initialisation of 'required' field.
3599 (riscv_freg_feature): Likewise.
3600 (riscv_virtual_feature): Likewise.
3601 (riscv_csr_feature): Likewise.
3602 (riscv_check_tdesc_feature): Take extra parameter, the csr
3603 tdesc_feature, rewrite the function to use the new
3604 riscv_register_feature::register_info::check function.
3605 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3606
865bad26
AB
36072020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3608
3609 * features/Makefile: Remove all references to the deleted files
3610 below.
3611 * features/riscv/32bit-csr.c: Deleted.
3612 * features/riscv/32bit-csr.xml: Deleted.
3613 * features/riscv/64bit-csr.c: Deleted.
3614 * features/riscv/64bit-csr.xml: Deleted.
3615 * features/riscv/rebuild-csr-xml.sh: Deleted.
3616
ed69cbc8
AB
36172020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3618
3619 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3620 whitespace error for declaration of names member variable.
3621 (struct riscv_register_feature): Add new prefer_first_name member
3622 variable, and fix whitespace error in declaration of registers.
3623 (riscv_xreg_feature): Initialize prefer_first_name field.
3624 (riscv_freg_feature): Likewise.
3625 (riscv_virtual_feature): Likewise.
3626 (riscv_csr_feature): Likewise.
3627 (riscv_register_name): Expand on comments. Remove register name
3628 modifications for CSR and virtual registers.
3629
4445e8f5
AB
36302020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3631
3632 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3633 errors.
3634
767a879e
AB
36352020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3636
3637 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3638 riscv-opc.h.
3639 (class riscv_pending_register_alias): New class.
3640 (riscv_check_tdesc_feature): Take vector of pending aliases and
3641 populate it as appropriate.
3642 (riscv_setup_register_aliases): Delete.
3643 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3644 to riscv_check_tdesc_feature in all cases. Use the vector to
3645 create the register aliases.
3646
bb6e55f3
RO
36472020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3648
3649 * sol2-tdep.c (sol2_static_transform_name): Remove.
3650 (sol2_init_abi): Don't register it.
3651 * gdbarch.sh (static_transform_name): Remove.
3652 * gdbarch.c, gdbarch.h: Regenerate.
3653
3654 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3655 gdbarch_static_transform_name.
3656 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3657 * stabsread.c (define_symbol) <'X'>: Remove.
3658 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3659 handling.
3660 <'V'>: Likewise.
3661 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3662 <'S'>: Remove call to gdbarch_static_transform_name.
3663
c6d36836
RO
36642020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3665
3666 * procfs.c (procfs_pre_trace): New function.
3667 (procfs_target::create_inferior): Pass it to fork_inferior.
3668
a7e6196b
RO
36692020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3670
3671 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3672 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3673 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3674 sol2-tdep.o, sparc-sol2-tdep.o.
3675 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3676 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3677 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3678 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3679
d412e696
RO
36802020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3681
3682 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3683 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3684 Call sol2_init_abi.
3685 Remove calls to set_gdbarch_skip_solib_resolver,
3686 set_gdbarch_core_pid_to_str.
3687 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3688 (i386_sol2_static_transform_name): Remove.
3689 (i386_sol2_init_abi): Call sol2_init_abi.
3690 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3691 set_gdbarch_static_transform_name,
3692 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3693 Use sol2_sigtramp_p.
3694 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3695 (sol2_sigtramp_p): New function.
3696 (sol2_static_transform_name): New function.
3697 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3698 (sol2_init_abi): New function.
3699 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3700 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3701 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3702 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3703 (sparc_sol2_static_transform_name): Remove.
3704 (sparc32_sol2_init_abi): Call sol2_init_abi.
3705 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3706 set_gdbarch_static_transform_name,
3707 set_gdbarch_skip_solib_resolver,
3708 set_gdbarch_core_pid_to_str.
3709 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3710 (sparc_sol2_static_transform_name): Remove
3711 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3712 call sol2_sigtramp_p.
3713 (sparc64_sol2_init_abi): Call sol2_init_abi.
3714 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3715 set_gdbarch_static_transform_name,
3716 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3717
a8654e7d
PW
37182020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3719
3720 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3721 * exec.c (validate_exec_file): If from_tty, set both
3722 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3723 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3724 and from_tty, unconditionally ask a confirmation.
3725
caa7fd04
AB
37262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3727
3728 * target-descriptions.c (tdesc_architecture_name): Protect against
3729 NULL pointer dereference.
3730 (maint_print_xml_tdesc_cmd): New function.
3731 (_initialize_target_descriptions): Register new 'maint print
3732 xml-tdesc' command and give it the filename completer.
3733 * NEWS: Mention new 'maint print xml-tdesc' command.
3734
fbf42f4e
AB
37352020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3736
3737 * target-descriptions.c (class tdesc_compatible_info): New class.
3738 (struct target_desc): Change type of compatible vector.
3739 (tdesc_compatible_p): Update for change in type of
3740 target_desc::compatible.
3741 (tdesc_compatible_info_list): New function.
3742 (tdesc_compatible_info_arch_name): New function.
3743 (tdesc_add_compatible): Update for change in type of
3744 target_desc::compatible.
3745 (print_c_tdesc::visit_pre): Likewise.
3746
20821f4e
AB
37472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3748
3749 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3750 whitespace to underscore.
3751 (maint_print_c_tdesc_cmd): Use fake filename for target
3752 descriptions that came from the target.
3753 (_initialize_target_descriptions): Add filename command completion
3754 for 'maint print c-tdesc'.
3755
1fb5ee62
SM
37562020-06-23 Simon Marchi <simon.marchi@efficios.com>
3757
3758 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3759 lines.
3760
fc3ecb3e
SM
37612020-06-23 Simon Marchi <simon.marchi@efficios.com>
3762
3763 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3764 lines.
3765 (dwarf2_find_location_expression): Likewise.
3766 (call_site_parameter_matches): Likewise.
3767 (dwarf2_compile_expr_to_ax): Likewise.
3768 (disassemble_dwarf_expression): Likewise.
3769 (loclist_describe_location): Likewise.
3770
236ef034
PA
37712020-06-23 Pedro Alves <palves@redhat.com>
3772
3773 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3774 progspace-and-thread.h. Include scoped-mock-context.h instead.
3775 (register_to_value_test): Use scoped_mock_context.
3776 * regcache.c: Include "scoped-mock-context.h".
3777 (cooked_read_test): Don't error out if a target is already pushed.
3778 Use scoped_mock_context. Adjust.
3779 * scoped-mock-context.h: New file.
3780
39e7ecca
AB
37812020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3782
3783 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3784 initializer.
3785 (ada_language::is_string_type_p): New member function.
3786 * c-lang.c (c_language_data): Delete la_is_string_type_p
3787 initializer.
3788 (cplus_language_data): Likewise.
3789 (asm_language_data): Likewise.
3790 (minimal_language_data): Likewise.
3791 * d-lang.c (d_language_data): Likewise.
3792 * f-lang.c (f_is_string_type_p): Delete function, implementation
3793 moved to f_language::is_string_type_p.
3794 (f_language_data): Delete la_is_string_type_p initializer.
3795 (f_language::is_string_type_p): New member function,
3796 implementation from f_is_string_type_p.
3797 * go-lang.c (go_is_string_type_p): Delete function, implementation
3798 moved to go_language::is_string_type_p.
3799 (go_language_data): Delete la_is_string_type_p initializer.
3800 (go_language::is_string_type_p): New member function,
3801 implementation from go_is_string_type_p.
3802 * language.c (language_defn::is_string_type_p): Define new member
3803 function.
3804 (default_is_string_type_p): Make static, add comment copied from
3805 header file.
3806 (unknown_language_data): Delete la_is_string_type_p initializer.
3807 (unknown_language::is_string_type_p): New member function.
3808 (auto_language_data): Delete la_is_string_type_p initializer.
3809 (auto_language::is_string_type_p): New member function.
3810 * language.h (language_data): Delete la_is_string_type_p field.
3811 (language_defn::is_string_type_p): Declare new function.
3812 (default_is_string_type_p): Delete desclaration, move comment to
3813 definition.
3814 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3815 moved to m2_language::is_string_type_p.
3816 (m2_language_data): Delete la_is_string_type_p initializer.
3817 (m2_language::is_string_type_p): New member function,
3818 implementation from m2_is_string_type_p.
3819 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3820 initializer.
3821 * opencl-lang.c (opencl_language_data): Likewise.
3822 * p-lang.c (pascal_is_string_type_p): Delete function,
3823 implementation moved to pascal_language::is_string_type_p.
3824 (pascal_language_data): Delete la_is_string_type_p initializer.
3825 (pascal_language::is_string_type_p): New member function,
3826 implementation from pascal_is_string_type_p.
3827 * rust-lang.c (rust_is_string_type_p): Delete function,
3828 implementation moved to rust_language::is_string_type_p.
3829 (rust_language_data): Delete la_is_string_type_p initializer.
3830 (rust_language::is_string_type_p): New member function,
3831 implementation from rust_is_string_type_p.
3832 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3833 is_string_type_p.
3834
4ffc13fb
AB
38352020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3836
3837 * ada-lang.c (ada_language_data): Delete la_print_typedef
3838 initializer.
3839 (ada_language::print_typedef): New member function.
3840 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3841 (cplus_language_data): Likewise.
3842 (asm_language_data): Likewise.
3843 (minimal_language_data): Likewise.
3844 * d-lang.c (d_language_data): Likewise.
3845 * f-lang.c (f_language_data): Likewise.
3846 (f_language::print_typedef): New member function.
3847 * go-lang.c (go_language_data): Delete la_print_typedef
3848 initializer.
3849 * language.c (language_defn::print_typedef): Define member
3850 function.
3851 (unknown_language_data): Delete la_print_typedef initializer.
3852 (unknown_language::print_typedef): New member function.
3853 (auto_language_data): Delete la_print_typedef initializer.
3854 (auto_language::print_typedef): New member function.
3855 * language.h (language_data): Delete la_print_typedef field.
3856 (language_defn::print_typedef): Declare new member function.
3857 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3858 (default_print_typedef): Delete declaration.
3859 * m2-lang.c (m2_language_data): Delete la_print_typedef
3860 initializer.
3861 (m2_language::print_typedef): New member function.
3862 * objc-lang.c (objc_language_data): Delete la_print_typedef
3863 initializer.
3864 * opencl-lang.c (opencl_language_data): Likewise.
3865 * p-lang.c (pascal_language_data): Likewise.
3866 (pascal_language::print_typedef): New member function.
3867 * rust-lang.c (rust_print_typedef): Delete function,
3868 implementation moved to rust_language::print_typedef.
3869 (rust_language): Delete la_print_typedef initializer.
3870 (rust_language::print_typedef): New member function,
3871 implementation from rust_print_typedef.
3872 * typeprint.c (default_print_typedef): Delete.
3873
d711ee67
AB
38742020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3875
3876 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3877 (ada_language::printstr): New member function.
3878 * c-lang.c (c_language_data): Delete la_printstr initializer.
3879 (cplus_language_data): Likewise.
3880 (asm_language_data): Likewise.
3881 (minimal_language_data): Likewise.
3882 * d-lang.c (d_language_data): Likewise.
3883 * f-lang.c (f_printstr): Rename to f_language::printstr.
3884 (f_language_data): Delete la_printstr initializer.
3885 (f_language::printstr): New member function, implementation from
3886 f_printstr.
3887 * go-lang.c (go_language_data): Delete la_printstr initializer.
3888 * language.c (language_defn::printstr): Define new member
3889 function.
3890 (unk_lang_printstr): Delete.
3891 (unknown_language_data): Delete la_printstr initializer.
3892 (unknown_language::printstr): New member function.
3893 (auto_language_data): Delete la_printstr initializer.
3894 (auto_language::printstr): New member function.
3895 * language.h (language_data): Delete la_printstr field.
3896 (language_defn::printstr): Declare new member function.
3897 (LA_PRINT_STRING): Update call to printstr.
3898 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3899 (m2_language_data): Delete la_printstr initializer.
3900 (m2_language::printstr): New member function, implementation from
3901 m2_printstr.
3902 * objc-lang.c (objc_language_data): Delete la_printstr
3903 initializer.
3904 * opencl-lang.c (opencl_language_data): Likewise.
3905 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3906 (pascal_language_data): Delete la_printstr initializer.
3907 (pascal_language::printstr): New member function, implementation
3908 from pascal_printstr.
3909 * p-lang.h (pascal_printstr): Delete declaration.
3910 * rust-lang.c (rust_printstr): Update header comment.
3911 (rust_language_data): Delete la_printstr initializer.
3912 (rust_language::printstr): New member function.
3913
52b50f2c
AB
39142020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3915
3916 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3917 (ada_language::printchar): New member function.
3918 * c-lang.c (c_language_data): Delete la_printchar initializer.
3919 (cplus_language_data): Likewise.
3920 (asm_language_data): Likewise.
3921 (minimal_language_data): Likewise.
3922 * d-lang.c (d_language_data): Likewise.
3923 * f-lang.c (f_printchar): Rename to f_language::printchar.
3924 (f_language_data): Delete la_printchar initializer.
3925 (f_language::printchar): New member function, implementation from
3926 f_printchar.
3927 * go-lang.c (go_language_data): Delete la_printchar initializer.
3928 * language.c (unk_lang_printchar): Delete.
3929 (language_defn::printchar): Define new member function.
3930 (unknown_language_data): Delete la_printchar initializer.
3931 (unknown_language::printchar): New member function.
3932 (auto_language_data): Delete la_printchar initializer.
3933 (auto_language::printchar): New member function.
3934 * language.h (language_data): Delete la_printchar field.
3935 (language_defn::printchar): Declare new member function.
3936 (LA_PRINT_CHAR): Update call to printchar.
3937 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3938 (m2_language::printchar): New member function.
3939 * objc-lang.c (objc_language_data): Delete la_printchar
3940 initializer.
3941 * opencl-lang.c (opencl_language_data): Likewise.
3942 * p-lang.c (pascal_language_data): Delete la_printchar
3943 initializer.
3944 (pascal_language::printchar): New member function.
3945 * rust-lang.c (rust_printchar): Rename to
3946 rust_language::printchar.
3947 (rust_language_data): Delete la_printchar initializer.
3948 (rust_language::printchar): New member function, implementation
3949 from rust_printchar.
3950
ec8cec5b
AB
39512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3952
3953 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3954 (ada_language_data): Delete la_emitchar initializer.
3955 (ada_language::emitchar): New member function, implementation from
3956 emit_char.
3957 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3958 (cplus_language_data): Likewise.
3959 (asm_language_data): Likewise.
3960 (minimal_language_data): Likewise.
3961 * d-lang.c (d_language_data): Likewise.
3962 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3963 (f_language_data): Delete la_emitchar initializer.
3964 (f_language::emitchar): New member function, implementation from
3965 f_emit_char.
3966 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3967 * language.c (unk_lang_emit_char): Delete.
3968 (language_defn::emitchar): New member function definition.
3969 (unknown_language_data): Delete la_emitchar initializer.
3970 (unknown_language::emitchar): New member function.
3971 (auto_language_data): Delete la_emitchar initializer.
3972 (auto_language::emitchar): New member function.
3973 * language.h (language_data): Delete la_emitchar field.
3974 (language_defn::emitchar): New member field declaration.
3975 (LA_EMIT_CHAR): Update call to emitchar.
3976 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3977 (m2_language_data): Delete la_emitchar initializer.
3978 (m2_language::emitchar): New member function, implementation from
3979 m2_emit_char.
3980 * objc-lang.c (objc_language_data): Delete la_emitchar
3981 initializer.
3982 * opencl-lang.c (opencl_language_data): Likewise.
3983 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3984 (pascal_language_data): Delete la_emitchar initializer.
3985 (pascal_language::emitchar): New member function, implementation
3986 from pascal_emit_char.
3987 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3988 (rust_language_data): Delete la_emitchar initializer.
3989 (rust_language::emitchar): New member function, implementation
3990 from rust_emitchar.
3991
1bf9c363
AB
39922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3993
3994 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3995 (ada_language_data): Delete la_post_parser initializer.
3996 (ada_language::post_parser): New member function.
3997 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3998 (cplus_language_data): Likewise.
3999 (asm_language_data): Likewise.
4000 (minimal_language_data): Likewise.
4001 * d-lang.c (d_language_data): Likewise.
4002 * f-lang.c (f_language_data): Likewise.
4003 * go-lang.c (go_language_data): Likewise.
4004 * language.c (unknown_language_data): Likewise.
4005 (auto_language_data): Likewise.
4006 * language.h (language_data): Delete la_post_parser field.
4007 (language_defn::post_parser): New member function.
4008 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4009 * objc-lang.c (objc_language_data): Likewise.
4010 * opencl-lang.c (opencl_language_data): Likewise.
4011 * p-lang.c (pascal_language_data): Likewise.
4012 * parse.c (parse_exp_in_context): Update call to post_parser.
4013 (null_post_parser): Delete definition.
4014 * parser-defs.h (null_post_parser): Delete declaration.
4015 * rust-lang.c (rust_language_data): Delete la_post_parser
4016 initializer.
4017
87afa652
AB
40182020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4019
4020 * ada-lang.c (parse): Rename to ada_language::parser.
4021 (ada_language_data): Delete la_parser initializer.
4022 (ada_language::parser): New member function, implementation from
4023 parse.
4024 * c-lang.c (c_language_data): Delete la_parser initializer.
4025 (cplus_language_data): Likewise.
4026 (asm_language_data): Likewise.
4027 (minimal_language_data): Likewise.
4028 * d-lang.c (d_language_data): Likewise.
4029 (d_language::parser): New member function.
4030 * f-lang.c (f_language_data): Delete la_parser initializer.
4031 (f_language::parser): New member function.
4032 * go-lang.c (go_language_data): Delete la_parser initializer.
4033 (go_language::parser): New member function.
4034 * language.c (unk_lang_parser): Delete.
4035 (language_defn::parser): Define new member function.
4036 (unknown_language_data): Delete la_parser initializer.
4037 (unknown_language::parser): New member function.
4038 (auto_language_data): Delete la_parser initializer.
4039 (auto_language::parser): New member function.
4040 * language.h (language_data): Delete la_parser field.
4041 (language_defn::parser): Declare new member function.
4042 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4043 (m2_language::parser): New member function.
4044 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4045 * opencl-lang.c (opencl_language_data): Likewise.
4046 * p-lang.c (pascal_language_data): Likewise.
4047 (pascal_language::parser): New member function.
4048 * parse.c (parse_exp_in_context): Update call to parser.
4049 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4050 (rust_language::parser): New member function.
4051
37825800
AB
40522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4053
4054 * top.c (print_gdb_configuration): Print --with-python-libdir
4055 configuration value.
4056
5b860c93
PW
40572020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4058
4059 * NEWS: Mention change to the alias command.
4060
cf00cd6f
PW
40612020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4062
4063 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4064 (alias_command_completer)
4065 (make_alias_options_def_group): New functions.
4066 (alias_opts, alias_option_defs): New struct and array.
4067 (alias_usage_error): Update usage.
4068 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4069 Use option framework.
4070 (_initialize_cli_cmds): Update alias command help.
4071 Update aliases command help.
4072 (show_user):
4073 Add NULL for new default_args lookup_cmd argument.
4074 (valid_command_p): Rename to validate_aliased_command.
4075 Add NULL for new default_args lookup_cmd argument. Verify that the
4076 aliased_command has no default args.
4077 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4078 (lookup_cmd_1, lookup_cmd): New argument default_args.
4079 (add_alias_cmd):
4080 Add NULL for new default_args lookup_cmd argument.
4081 (print_help_for_command): Show default args under the layout
4082 alias some_alias = some_aliased_cmd some_alias_default_arg.
4083 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4084 xfree default_args in destructor.
4085 * cli/cli-script.c (process_next_line, do_define_command):
4086 Add NULL for new default_args lookup_cmd argument.
4087 * command.h: Declare new default_args argument in lookup_cmd
4088 and lookup_cmd_1.
4089 * completer.c (complete_line_internal_1):
4090 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4091 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4092 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4093 Likewise.
4094 * infcmd.c (_initialize_infcmd): Likewise.
4095 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4096 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4097 * python/py-param.c (add_setshow_generic): Likewise.
4098 * remote.c (_initialize_remote): Likewise.
4099 * top.c (execute_command): Prepend default_args if command has some.
4100 (set_verbose):
4101 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4102 * tracepoint.c (validate_actionline, encode_actions_1):
4103 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4104
bd920864
TBA
41052020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4106
4107 * jit.c (jit_read_descriptor): Use bool as the return type.
4108 (jit_breakpoint_re_set_internal): Use bool as the return type.
4109 Invert the return value logic; return true if the jit breakpoint
4110 has been successfully initialized.
4111 (jit_inferior_init): Update the call to
4112 jit_breakpoint_re_set_internal.
4113
f8098322
PA
41142020-06-22 Pedro Alves <palves@redhat.com>
4115
4116 PR gdb/25939
4117 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4118 Use the current inferior instead. Don't return
4119 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4120 wait again.
4121 * sol-thread.c (sol_thread_target::wait): Don't reference
4122 inferior_ptid.
4123 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4124 (sol_update_thread_list_callback): Use the current inferior's pid
4125 instead of inferior_ptid.
4126
196535a6
RO
41272020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4128
4129 * procfs.c: Cleanup many comments.
4130
4131 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4132 (AFTER_WATCHFLAG): Replace by value.
4133
4134 (MAIN_PROC_NAME_FORMAT): Inline ...
4135 (create_procinfo): ... here.
4136
4137 (procfs_debug_inferior): Remove SYS_exec handling.
4138 (syscall_is_exec): Likewise.
4139 (procfs_set_exec_trap): Likewise.
4140
4141 (syscall_is_lwp_exit): Inline in callers.
4142 (syscall_is_exit): Likewise.
4143 (syscall_is_exec): Likewise.
4144 (syscall_is_lwp_create): Likewise.
4145
4146 (invalidate_cache): Remove #if 0 code.
4147
4148 (make_signal_thread_runnable): Remove.
4149 (procfs_target::resume): Remove #if 0 code.
4150
cf6f3e86
RO
41512020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4152
4153 PR gdb/25939
4154 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4155 call ...
4156 (procfs_target::create_inferior): ... here.
4157
48e9cc84
PW
41582020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4159
4160 * exec.c (validate_exec_file): Ensure the build-id is up to
4161 date by calling reopen_exec_file (that checks file timestamp
4162 to decide to re-read the file).
4163
3922b302
PA
41642020-06-18 Pedro Alves <palves@redhat.com>
4165
4166 PR gdb/25412
4167 * gdbthread.h (delete_thread, delete_thread_silent)
4168 (find_thread_ptid): Update comments.
4169 * thread.c (current_thread_): New global.
4170 (is_current_thread): Move higher, and reimplement.
4171 (inferior_thread): Reimplement.
4172 (set_thread_exited): Use bool. Add assertions.
4173 (add_thread_silent): Simplify thread-reuse handling by always
4174 calling delete_thread.
4175 (delete_thread): Remove intro comment.
4176 (find_thread_ptid): Skip exited threads.
4177 (switch_to_thread_no_regs): Write to current_thread_.
4178 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4179 INFERIOR_PTID. Clear current_thread_.
4180
6dbdab44
PA
41812020-06-18 Pedro Alves <palves@redhat.com>
4182
4183 * aix-thread.c (pd_update): Use switch_to_thread.
4184
2da4b788
PA
41852020-06-18 Pedro Alves <palves@redhat.com>
4186
4187 * ravenscar-thread.c (ravenscar_thread_target): Update.
4188 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4189 (ravenscar_thread_target::add_active_thread): ... this. Don't
4190 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4191 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4192
50838d1b
PA
41932020-06-18 Pedro Alves <palves@redhat.com>
4194
4195 * nat/windows-nat.c (current_windows_thread): Remove.
4196 * nat/windows-nat.h (current_windows_thread): Remove.
4197 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4198 Adjust.
4199 (display_selectors): Adjust to fetch the current
4200 windows_thread_info based on inferior_ptid.
4201 (fake_create_process): No longer write to current_windows_thread.
4202 (windows_nat_target::get_windows_debug_event):
4203 Don't set inferior_ptid or current_windows_thread.
4204 (windows_nat_target::wait): Adjust to not rely on
4205 current_windows_thread.
4206 (do_initial_windows_stuff): Now a method of windows_nat_target.
4207 Switch to the last_ptid thread.
4208 (windows_nat_target::attach): Adjust.
4209 (windows_nat_target::detach): Use switch_to_no_thread instead of
4210 writing to inferior_ptid directly.
4211 (windows_nat_target::create_inferior): Adjust.
4212
31ce04e9
PA
42132020-06-18 Pedro Alves <palves@redhat.com>
4214
4215 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4216
1ee1a363
PA
42172020-06-18 Pedro Alves <palves@redhat.com>
4218
4219 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4220 after creating it, instead of writing to inferior_ptid. Don't
4221 write to inferior_ptid.
4222
6d350754
PA
42232020-06-18 Pedro Alves <palves@redhat.com>
4224
4225 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4226
5d971d48
PA
42272020-06-18 Pedro Alves <palves@redhat.com>
4228
4229 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4230 it, instead of writing to inferior_ptid.
4231
86e57d1b
PA
42322020-06-18 Pedro Alves <palves@redhat.com>
4233
4234 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4235 to inferior_ptid.
4236
f2e1c129
PA
42372020-06-18 Pedro Alves <palves@redhat.com>
4238
4239 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4240 instead of writing to inferior_ptid directly.
4241
60db1b85
PA
42422020-06-18 Pedro Alves <palves@redhat.com>
4243
4244 * corelow.c (core_target::close): Use switch_to_no_thread instead
4245 of writing to inferior_ptid directly.
4246 (add_to_thread_list, core_target_open): Use switch_to_thread
4247 instead of writing to inferior_ptid directly.
4248
fe7d6a8d
PA
42492020-06-18 Pedro Alves <palves@redhat.com>
4250
4251 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4252 inferior_ptid.
4253 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4254 inferior_ptid.
4255 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4256 inferior_ptid directly.
4257 (darwin_nat_target::init_thread_list): Switch to thread, instead
4258 of writing to inferior_ptid.
4259 (darwin_nat_target::attach): Don't write to inferior_ptid.
4260 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4261
975f8708
PA
42622020-06-18 Pedro Alves <palves@redhat.com>
4263
4264 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4265 thread.
4266 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4267 Instead use switch_to_thread.
4268 (gnu_nat_target::detach): Use switch_to_no_thread
4269 instead of writing to inferior_ptid directly. Used passed-in
4270 inferior instead of looking up the inferior by pid.
4271
1a204730
PA
42722020-06-18 Pedro Alves <palves@redhat.com>
4273
4274 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4275 inferior_ptid.
4276
ebe84f23
PA
42772020-06-18 Pedro Alves <palves@redhat.com>
4278
4279 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4280 inferior_ptid.
4281 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4282 thread.
4283 (nto_procfs_target::detach): Avoid referencing
4284 inferior_ptid. Use switch_to_no_thread instead of writing to
4285 inferior_ptid directly.
4286 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4287 instead of writing to inferior_ptid directly.
4288 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4289 to thread.
4290
191f02e5
PA
42912020-06-18 Pedro Alves <palves@redhat.com>
4292
4293 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4294 after creating it, instead of writing to inferior_ptid.
4295 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4296 to inferior_ptid directly.
4297 (gdbsim_target::wait): Don't write to inferior_ptid.
4298
0ac55310
PA
42992020-06-18 Pedro Alves <palves@redhat.com>
4300
4301 * remote.c (remote_target::remote_notice_new_inferior): Use
4302 switch_to_thread instead of writing to inferior_ptid directly.
4303 (remote_target::add_current_inferior_and_thread): Use
4304 switch_to_no_thread instead of writing to inferior_ptid directly.
4305 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4306 and switch_to_thread instead of using set_current_inferior or
4307 writing to inferior_ptid directly.
4308
5233f39b
PA
43092020-06-18 Pedro Alves <palves@redhat.com>
4310
4311 * tracectf.c (ctf_target_open): Switch to added thread instead of
4312 writing to inferior_ptid directly.
4313 (ctf_target::close): Use switch_to_no_thread instead of writing to
4314 inferior_ptid directly.
4315
087e161b
PA
43162020-06-18 Pedro Alves <palves@redhat.com>
4317
4318 * tracefile-tfile.c (tfile_target_open): Don't write to
4319 inferior_ptid directly, instead switch to added thread.
4320 (tfile_target::close): Use switch_to_no_thread instead of writing
4321 to inferior_ptid directly.
4322
7fb43e53
PA
43232020-06-18 Pedro Alves <palves@redhat.com>
4324
4325 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4326 (procfs_target::detach): Use switch_to_no_thread
4327 instead of writing to inferior_ptid directly.
4328 (do_attach): Change return type to void. Switch to the added
4329 thread.
4330 (procfs_target::create_inferior): Switch to the added thread.
4331 (procfs_do_thread_registers): Don't write to inferior_ptid.
4332
18493a00
PA
43332020-06-18 Pedro Alves <palves@redhat.com>
4334
4335 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4336 of writing to inferior_ptid.
4337 (scoped_restore_exited_inferior): Delete.
4338 (handle_vfork_child_exec_or_exit): Simplify using
4339 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4340 instead of writing to inferior_ptid.
4341 (THREAD_STOPPED_BY): Delete.
4342 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4343 (thread_stopped_by_hw_breakpoint): Delete.
4344 (save_waitstatus): Use
4345 scoped_restore_current_thread+switch_to_thread, and call
4346 target_stopped_by_watchpoint instead of
4347 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4348 instead of thread_stopped_by_sw_breakpoint, and
4349 target_stopped_by_hw_breakpoint instead of
4350 thread_stopped_by_hw_breakpoint.
4351 (handle_inferior_event)
4352 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4353 inferior_ptid directly, nor
4354 set_current_inferior/set_current_program_space. Use
4355 switch_to_thread / switch_to_inferior_no_thread instead.
4356
a0776b13
PA
43572020-06-18 Pedro Alves <palves@redhat.com>
4358
4359 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4360 instead of writing to inferior_ptid.
4361
6155c136
PA
43622020-06-18 Pedro Alves <palves@redhat.com>
4363
4364 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4365 added thread.
4366 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4367 to the added thread.
4368 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4369 instead of writing to inferior_ptid.
4370
c5316fc6
PA
43712020-06-18 Pedro Alves <palves@redhat.com>
4372
4373 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4374 (register_to_value_test): Mock a program_space too. Heap-allocate
4375 the address space. Don't write to inferior_ptid. Use
4376 switch_to_thread instead.
4377
8df01799
PA
43782020-06-18 Pedro Alves <palves@redhat.com>
4379
4380 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4381 Delete.
4382 (find_signalled_thread()): New, factored out from
4383 linux_make_corefile_notes and adjusted to handle exited threads.
4384 (linux_make_corefile_notes): Adjust to use the new
4385 find_signalled_thread.
4386
41792d68
PA
43872020-06-18 Pedro Alves <palves@redhat.com>
4388
4389 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4390 of saving/restoring inferior_ptid.
4391
612f258a
TT
43922020-06-17 Tom Tromey <tom@tromey.com>
4393
4394 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4395 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4396 declare.
4397 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4398
efb763a5
SM
43992020-06-15 Simon Marchi <simon.marchi@efficios.com>
4400
4401 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4402 of partial symtabs.
4403
2951f6c0
SM
44042020-06-17 Simon Marchi <simon.marchi@efficios.com>
4405
4406 * regformats/reg-arm.dat: Remove.
4407 * regformats/reg-bfin.dat: Remove.
4408 * regformats/reg-cris.dat: Remove.
4409 * regformats/reg-crisv32.dat: Remove.
4410 * regformats/reg-m32r.dat: Remove.
4411 * regformats/reg-tilegx.dat: Remove.
4412 * regformats/reg-tilegx32.dat: Remove.
4413
7d458ea5
SM
44142020-06-17 Simon Marchi <simon.marchi@efficios.com>
4415
4416 * features/Makefile (WHICH): Remove arm files.
4417 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4418 * regformats/arm/arm-with-neon.dat: Remove.
4419 * regformats/arm/arm-with-vfpv2.dat: Remove.
4420 * regformats/arm/arm-with-vfpv3.dat: Remove.
4421
3af96c0d
SM
44222020-06-17 Simon Marchi <simon.marchi@efficios.com>
4423
4424 * features/Makefile (XMLTOC): Remove rx.xml.
4425
b25e22fd
PA
44262020-06-17 Pedro Alves <palves@redhat.com>
4427
4428 * gdbthread.h (thread_control_state) <trap_expected> Update
4429 comments.
4430
a78a19b1
AB
44312020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4432
4433 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4434 ada_language::lookup_symbol_nonlocal.
4435 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4436 (ada_language::lookup_symbol_nonlocal): New member function,
4437 implementation from ada_lookup_symbol_nonlocal.
4438 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4439 initializer.
4440 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4441 initializer.
4442 (cplus_language::lookup_symbol_nonlocal): New member function.
4443 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4444 (minimal_language_data) Likewise.
4445 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4446 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4447 initializer.
4448 (d_language::lookup_symbol_nonlocal): New member function.
4449 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4450 initializer.
4451 (f_language::lookup_symbol_nonlocal): New member function.
4452 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4453 initializer.
4454 * language.c (unknown_language_data): Likewise.
4455 (auto_language_data): Likewise.
4456 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4457 field.
4458 (language_defn::lookup_symbol_nonlocal): New member function.
4459 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4460 initializer.
4461 * objc-lang.c (objc_language_data): Likewise.
4462 * opencl-lang.c (opencl_language_data): Likewise.
4463 * p-lang.c (pascal_language_data): Likewise.
4464 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4465 rust_language::lookup_symbol_nonlocal.
4466 (rust_language_data): Delete la_lookup_symbol_nonlocal
4467 initializer.
4468 (rust_language::lookup_symbol_nonlocal): New member function,
4469 implementation from rust_lookup_symbol_nonlocal.
4470 * symtab.c (lookup_symbol_aux): Update call to
4471 lookup_symbol_nonlocal.
4472 (basic_lookup_symbol_nonlocal): Rename to...
4473 (language_defn::lookup_symbol_nonlocal): ...this, and update
4474 header comment. Remove language_defn parameter, and replace with
4475 uses of `this'.
4476 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4477
ebe2334e
AB
44782020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4479
4480 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4481 initializer.
4482 (ada_language::value_print_inner): New member function.
4483 * c-lang.c (c_language_data): Delete la_value_print_inner
4484 initializer.
4485 (cplus_language_data): Likewise.
4486 (asm_language_data): Likewise.
4487 (minimal_language_data): Likewise.
4488 * d-lang.c (d_language_data): Likewise.
4489 (d_language::value_print_inner): New member function.
4490 * f-lang.c (f_language_data): Delete la_value_print_inner
4491 initializer.
4492 (f_language::value_print_inner): New member function.
4493 * f-lang.h (f_value_print_innner): Rename to...
4494 (f_value_print_inner): ...this (note spelling of 'inner').
4495 * f-valprint.c (f_value_print_innner): Rename to...
4496 (f_value_print_inner): ...this (note spelling of 'inner').
4497 * go-lang.c (go_language_data): Delete la_value_print_inner
4498 initializer.
4499 (go_language::value_print_inner): New member function.
4500 * language.c (language_defn::value_print_inner): Define new member
4501 function.
4502 (unk_lang_value_print_inner): Delete.
4503 (unknown_language_data): Delete la_value_print_inner initializer.
4504 (unknown_language::value_print_inner): New member function.
4505 (auto_language_data): Delete la_value_print_inner initializer.
4506 (auto_language::value_print_inner): New member function.
4507 * language.h (language_data): Delete la_value_print_inner field.
4508 (language_defn::value_print_inner): Delcare new member function.
4509 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4510 initializer.
4511 (m2_language::value_print_inner): New member function.
4512 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4513 initializer.
4514 * opencl-lang.c (opencl_language_data): Likewise.
4515 * p-lang.c (pascal_language_data): Likewise.
4516 (pascal_language::value_print_inner): New member function.
4517 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4518 initializer.
4519 (rust_language::value_print_inner): New member function.
4520 * valprint.c (do_val_print): Update call to value_print_inner.
4521
a1d1fa3e
AB
45222020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4523
4524 * ada-lang.c (ada_language_data): Delete la_value_print
4525 initializer.
4526 (ada_language::value_print): New member function.
4527 * c-lang.c (c_language_data): Delete la_value_print initializer.
4528 (cplus_language_data): Likewise.
4529 (asm_language_data): Likewise.
4530 (minimal_language_data): Likewise.
4531 * d-lang.c (d_language_data): Likewise.
4532 * f-lang.c (f_language_data): Likewise.
4533 * go-lang.c (go_language_data): Likewise.
4534 * language.c (unk_lang_value_print): Delete.
4535 (language_defn::value_print): Define new member function.
4536 (unknown_language_data): Delete la_value_print initializer.
4537 (unknown_language::value_print): New member function.
4538 (auto_language_data): Delete la_value_print initializer.
4539 (auto_language::value_print): New member function.
4540 * language.h (language_data): Delete la_value_print field.
4541 (language_defn::value_print): Declare new member function.
4542 (LA_VALUE_PRINT): Update call to value_print.
4543 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4544 * objc-lang.c (objc_language_data): Likewise.
4545 * opencl-lang.c (opencl_language_data): Likewise.
4546 * p-lang.c (pascal_language_data): Likewise.
4547 (pascal_language::value_print): New member function.
4548 * rust-lang.c (rust_language_data): Delete la_value_print
4549 initializer.
4550
f16a9f57
AB
45512020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4552
4553 * ada-lang.c (ada_watch_location_expression): Rename to
4554 ada_language::watch_location_expression.
4555 (ada_language_data): Delete la_watch_location_expression
4556 initializer.
4557 (ada_language::watch_location_expression): New member function,
4558 implementation from ada_watch_location_expression.
4559 * breakpoint.c (watch_command_1): Update call to
4560 watch_location_expression.
4561 * c-lang.c (c_watch_location_expression): Rename to
4562 language_defn::watch_location_expression.
4563 (c_language_data): Delete la_watch_location_expression
4564 initializer.
4565 (cplus_language_data): Likewise.
4566 (asm_language_data): Likewise.
4567 (minimal_language_data): Likewise.
4568 * c-lang.h (c_watch_location_expression): Delete declaration.
4569 * d-lang.c (d_language_data): Delete la_watch_location_expression
4570 initializer.
4571 * f-lang.c (f_language_data): Likewise.
4572 * go-lang.c (go_language_data): Likewise.
4573 * language.c (language_defn::watch_location_expression): Member
4574 function implementation from c_watch_location_expression.
4575 (unknown_language_data): Delete la_watch_location_expression
4576 initializer.
4577 (auto_language_data): Likewise.
4578 * language.h (language_data): Delete la_watch_location_expression
4579 field.
4580 (language_defn::watch_location_expression): Declare new member
4581 function.
4582 * m2-lang.c (m2_language_data): Delete
4583 la_watch_location_expression initializer.
4584 * objc-lang.c (objc_language_data): Likewise.
4585 * opencl-lang.c (opencl_language_data): Likewise.
4586 * p-lang.c (pascal_language_data): Likewise.
4587 * rust-lang.c (rust_watch_location_expression): Rename to
4588 rust_language::watch_location_expression.
4589 (rust_language_data): Delete la_watch_location_expression
4590 initializer.
4591 (rust_language::watch_location_expression): New member function,
4592 implementation from rust_watch_location_expression.
4593
7e56227d
AB
45942020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4595
4596 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4597 ada_language::collect_symbol_completion_matches.
4598 (ada_language_data): Delete la_collect_symbol_completion_matches
4599 initializer.
4600 (ada_language::collect_symbol_completion_matches): New member
4601 function, implementation from
4602 ada_collect_symbol_completion_matches.
4603 * c-lang.c (c_language_data): Delete
4604 la_collect_symbol_completion_matches initializer.
4605 (cplus_language_data): Likewise.
4606 (asm_language_data): Likewise.
4607 (minimal_language_data): Likewise.
4608 * d-lang.c (d_language_data): Likewise.
4609 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4610 f_language::collect_symbol_completion_matches.
4611 (f_language_data): Delete la_collect_symbol_completion_matches
4612 initializer.
4613 (f_language::collect_symbol_completion_matches) New member
4614 function, implementation from f_collect_symbol_completion_matches.
4615 * go-lang.c (go_language_data): Delete
4616 la_collect_symbol_completion_matches initializer.
4617 * language.c (unknown_language_data): Likewise.
4618 (auto_language_data): Likewise.
4619 * language.h (language_data): Delete
4620 la_collect_symbol_completion_matches field.
4621 (language_defn::collect_symbol_completion_matches): New member
4622 function.
4623 * m2-lang.c (m2_language_data): Delete
4624 la_collect_symbol_completion_matches initializer.
4625 * objc-lang.c (objc_language_data): Likewise.
4626 * opencl-lang.c (opencl_language_data): Likewise.
4627 * p-lang.c (pascal_language_data): Likewise.
4628 * rust-lang.c (rust_language_data): Likewise.
4629 * symtab.c (default_collect_symbol_completion_matches): Delete.
4630 (collect_symbol_completion_matches): Update call to
4631 collect_symbol_completion_matches.
4632 (collect_symbol_completion_matches_type): Likewise.
4633 * symtab.h (default_collect_symbol_completion_matches): Delete
4634 declaration.
4635
53fc67f8
AB
46362020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4637
4638 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4639 (ada_language_data): Delete la_word_break_characters initializer.
4640 (ada_language::word_break_characters): New member function.
4641 * c-lang.c (c_language_data): Delete la_word_break_characters
4642 initializer.
4643 (cplus_language_data): Likewise.
4644 (asm_language_data): Likewise.
4645 (minimal_language_data): Likewise.
4646 * completer.c: Update global comment.
4647 (advance_to_expression_complete_word_point): Update call to
4648 word_break_characters.
4649 (complete_files_symbols): Likewise.
4650 (complete_line_internal_1): Likewise.
4651 (default_completer_handle_brkchars): Likewise.
4652 (skip_quoted_chars): Likewise.
4653 * d-lang.c (d_language_data): Delete la_word_break_characters
4654 initializer.
4655 * f-lang.c (f_word_break_characters): Delete.
4656 (f_language_data): Delete la_word_break_characters initializer.
4657 (f_language::word_break_characters): New member function.
4658 * go-lang.c (go_language_data): Delete la_word_break_characters
4659 initializer.
4660 * language.c (unknown_language_data): Likewise.
4661 (auto_language_data): Likewise.
4662 * language.h (default_word_break_characters): Move declaration to
4663 earlier in the file.
4664 (language_data): Delete la_word_break_characters field.
4665 (language_defn::word_break_characters): New member function.
4666 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4667 initializer.
4668 * objc-lang.c (objc_language_data): Likewise.
4669 * opencl-lang.c (opencl_language_data): Likewise.
4670 * p-lang.c (pascal_language_data): Likewise.
4671 * rust-lang.c (rust_language_data): Likewise.
4672
c9debfb9
AB
46732020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4674
4675 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4676 (ada_language_data): Delete la_get_symbol_name_matcher
4677 initializer.
4678 (language_defn::get_symbol_name_matcher_inner): New member
4679 function.
4680 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4681 initializer.
4682 (cplus_language_data): Likewise.
4683 (cplus_language::get_symbol_name_matcher_inner): New member
4684 function.
4685 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4686 (minimal_language_data): Likewise.
4687 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4688 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4689 initializer.
4690 * dictionary.c (iter_match_first_hashed): Update call to
4691 get_symbol_name_matcher.
4692 (iter_match_next_hashed): Likewise.
4693 (iter_match_next_linear): Likewise.
4694 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4695 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4696 initializer.
4697 (f_language::get_symbol_name_matcher_inner): New member function.
4698 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4699 initializer.
4700 * language.c (default_symbol_name_matcher): Update header comment,
4701 make static.
4702 (language_defn::get_symbol_name_matcher): New definition.
4703 (language_defn::get_symbol_name_matcher_inner): Likewise.
4704 (get_symbol_name_matcher): Delete.
4705 (unknown_language_data): Delete la_get_symbol_name_matcher
4706 initializer.
4707 (auto_language_data): Likewise.
4708 * language.h (language_data): Delete la_get_symbol_name_matcher
4709 field.
4710 (language_defn::get_symbol_name_matcher): New member function.
4711 (language_defn::get_symbol_name_matcher_inner): Likewise.
4712 (default_symbol_name_matcher): Delete declaration.
4713 * linespec.c (find_methods): Update call to
4714 get_symbol_name_matcher.
4715 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4716 initializer.
4717 * minsyms.c (lookup_minimal_symbol): Update call to
4718 get_symbol_name_matcher.
4719 (iterate_over_minimal_symbols): Likewise.
4720 * objc-lang.c (objc_language_data): Delete
4721 la_get_symbol_name_matcher initializer.
4722 * opencl-lang.c (opencl_language_data): Likewise.
4723 * p-lang.c (pascal_language_data): Likewise.
4724 * psymtab.c (psymbol_name_matches): Update call to
4725 get_symbol_name_matcher.
4726 * rust-lang.c (rust_language_data): Delete
4727 la_get_symbol_name_matcher initializer.
4728 * symtab.c (symbol_matches_search_name): Update call to
4729 get_symbol_name_matcher.
4730 (compare_symbol_name): Likewise.
4731
9a49ad8c
AB
47322020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4733
4734 * ada-lang.c (ada_language_data): Delete la_compute_program
4735 initializer.
4736 * c-lang.c (c_language_data): Likewise.
4737 (c_language::compute_program): New member function.
4738 (cplus_language_data): Delete la_compute_program initializer.
4739 (cplus_language::compute_program): New member function.
4740 (asm_language_data): Delete la_compute_program initializer.
4741 (minimal_language_data): Likewise.
4742 * c-lang.h (c_compute_program): Update comment.
4743 (cplus_compute_program): Likewise.
4744 * compile/compile-c-support.c (c_compute_program): Likewise.
4745 (cplus_compute_program): Likewise.
4746 * compile/compile.c (compile_to_object): Update call to
4747 la_compute_program.
4748 * d-lang.c (d_language_data): Delete la_compute_program
4749 initializer.
4750 * f-lang.c (f_language_data): Likewise.
4751 * go-lang.c (go_language_data): Likewise.
4752 * language.c (unknown_language_data): Likewise.
4753 (auto_language_data): Likewise.
4754 * language.h (language_data): Delete la_compute_program field.
4755 (language_defn::compute_program): New member function.
4756 * m2-lang.c (m2_language_data): Delete la_compute_program
4757 initializer.
4758 * objc-lang.c (objc_language_data): Likewise.
4759 * opencl-lang.c (opencl_language_data): Likewise.
4760 * p-lang.c (pascal_language_data): Likewise.
4761 * rust-lang.c (rust_language_data): Likewise.
4762
eff93b4d
AB
47632020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4764
4765 * ada-lang.c (ada_language_data) Delete
4766 la_class_name_from_physname initializer.
4767 * c-lang.c (c_language_data): Likewise.
4768 (cplus_language_data): Likewise.
4769 (cplus_language::class_name_from_physname): New member function.
4770 (asm_language_data): Delete la_class_name_from_physname
4771 initializer.
4772 (minimal_language_data): Likewise.
4773 * d-lang.c (d_language_data): Likewise.
4774 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4775 method on language_defn class.
4776 (guess_full_die_structure_name): Likewise.
4777 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4778 initializer.
4779 * go-lang.c (go_language_data): Likewise.
4780 * language.c (language_class_name_from_physname): Delete.
4781 (unk_lang_class_name): Delete.
4782 (unknown_language_data): Delete la_class_name_from_physname
4783 initializer.
4784 (auto_language_data): Likewise.
4785 * language.h (language_data): Delete la_class_name_from_physname
4786 field.
4787 (language_defn::class_name_from_physname): New function.
4788 (language_class_name_from_physname): Delete declaration.
4789 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4790 initializer.
4791 * objc-lang.c (objc_language_data): Likewise.
4792 * opencl-lang.c (opencl_language_data): Likewise.
4793 * p-lang.c (pascal_language_data): Likewise.
4794 * rust-lang.c (rust_language_data): Likewise.
4795
de543742
TT
47962020-06-16 Tom Tromey <tom@tromey.com>
4797
4798 * tui/tui-data.h (STATUS_NAME): New macro.
4799 * tui/tui-layout.c (tui_remove_some_windows)
4800 (initialize_known_windows, tui_register_window)
4801 (tui_layout_split::remove_windows, initialize_layouts)
4802 (tui_new_layout_command): Don't use hard-coded window names.
4803
a350efd4
TT
48042020-06-16 Tom Tromey <tom@tromey.com>
4805
4806 PR tui/25348:
4807 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4808 tui_initialize_readline. Only run once. Call rl_initialize.
4809 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4810 tui_initialize_readline.
4811 * tui/tui-io.c (tui_setup_io): Call
4812 tui_ensure_readline_initialized.
4813 * tui/tui-interp.c (tui_interp::init): Update.
4814
39ec0490
TT
48152020-06-16 Tom Tromey <tom@tromey.com>
4816
4817 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4818 Also preserve the status window.
4819
d2d1ea20
TT
48202020-06-16 Tom Tromey <tom@tromey.com>
4821
4822 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4823 where m_window==nullptr.
4824
66920317
TT
48252020-06-15 Tom Tromey <tromey@adacore.com>
4826
4827 * windows-nat.c (windows_nat::handle_output_debug_string):
4828 Update.
4829 (windows_nat::handle_ms_vc_exception): Update.
4830 * target.h (target_read_string): Change API.
4831 * target.c (target_read_string): Change API.
4832 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4833 Update.
4834 * solib-frv.c (frv_current_sos): Update.
4835 * solib-dsbt.c (dsbt_current_sos): Update.
4836 * solib-darwin.c (darwin_current_sos): Update.
4837 * linux-thread-db.c (inferior_has_bug): Update.
4838 * expprint.c (print_subexp_standard): Update.
4839 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4840 (ada_exception_message_1): Update.
4841
a5d871dd
TT
48422020-06-15 Tom Tromey <tromey@adacore.com>
4843
4844 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4845
670e35fa
TT
48462020-06-15 Tom Tromey <tromey@adacore.com>
4847
4848 * valprint.c (read_string): Update comment.
4849 * target.c (MIN): Remove.
4850 (target_read_string): Rewrite.
4851
f5272a3b
TT
48522020-06-15 Tom Tromey <tromey@adacore.com>
4853
4854 * corefile.c (read_memory_string): Remove.
4855 * ada-valprint.c (ada_value_print_ptr): Update.
4856 * ada-lang.h (ada_tag_name): Change return type.
4857 * ada-lang.c (type_from_tag): Update.
4858 (ada_tag_name_from_tsd): Change return type. Use
4859 target_read_string.
4860 (ada_tag_name): Likewise.
4861 * gdbcore.h (read_memory_string): Don't declare.
4862
2c074f49
HD
48632020-06-14 Hannes Domani <ssbssa@yahoo.de>
4864
4865 * symtab.c (rbreak_command): Ignore Windows drive colon.
4866
6a17d503
SM
48672020-06-12 Simon Marchi <simon.marchi@efficios.com>
4868
4869 * NEWS: Mention removed GDBserver host support.
4870
453c733f
NC
48712020-06-12 Nelson Chu <nelson.chu@sifive.com>
4872
4873 * features/riscv/rebuild-csr-xml.sh: Updated.
4874
2b4e6a3f
TT
48752020-06-11 Tom Tromey <tom@tromey.com>
4876
4877 PR gdb/18318:
4878 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4879
4412332f
JG
48802020-06-09 Jonny Grant <jg@jguk.org>
48812020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4882
4883 * main.c (captured_main_1): Don't print new line after help.
4884 (print_gdb_help): add mailing list and IRC channel information
4885 to --help. Add new lines between items in the footer. Remove
4886 quotes around bug url.
4887
2f33032a
KS
48882020-06-11 Keith Seitz <keiths@redhat.com>
4889
4890 PR gdb/21356
4891 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4892 Resolve typedefs for type length calculations.
4893
7ab96794
TV
48942020-06-10 Tom de Vries <tdevries@suse.de>
4895
4896 PR ada/24713
4897 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4898 (write_psymbols): Enable .gdb_index for ada.
4899 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4900 ada.
4901
e5f3ece2
TV
49022020-06-10 Tom de Vries <tdevries@suse.de>
4903
4904 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4905 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4906 namei" instead of "const char *name" argument.
4907 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4908 dw2_symtab_iter_init.
4909
940da03e
SM
49102020-06-08 Simon Marchi <simon.marchi@efficios.com>
4911
4912 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4913 to use type::field and field::type instead.
4914
b6cdac4b
SM
49152020-06-08 Simon Marchi <simon.marchi@efficios.com>
4916
4917 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4918 to use field::type instead.
4919
5d14b6e5
SM
49202020-06-08 Simon Marchi <simon.marchi@efficios.com>
4921
4922 * gdbtypes.h (struct field) <type, set_type>: New methods.
4923 Rename `type` field to...
4924 <m_type>: ... this. Change references throughout to use type or
4925 set_type methods.
4926 (FIELD_TYPE): Use field::type. Change call sites that modify
4927 the field's type to use field::set_type instead.
4928
3d967001
SM
49292020-06-08 Simon Marchi <simon.marchi@efficios.com>
4930
4931 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4932 to use type::index_type instead.
4933
262abc0d
SM
49342020-06-08 Simon Marchi <simon.marchi@efficios.com>
4935
4936 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4937 methods.
4938 (TYPE_INDEX_TYPE): Use type::index_type.
4939 * gdbtypes.c (create_array_type_with_stride): Likewise.
4940
82836c92
TT
49412020-06-07 Tom Tromey <tom@tromey.com>
4942
4943 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4944 parameter.
4945 (generic_value_print): Update.
4946
940dace9
AB
49472020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4948
4949 Revert commit 982a38f60b0.
4950 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4951
982a38f6
AB
49522020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4953
4954 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4955 avoid use after free.
4956
82f06518
TV
49572020-06-05 Tom de Vries <tdevries@suse.de>
4958
4959 * NEWS: Fix typos.
4960
f8c41851
SM
49612020-06-04 Simon Marchi <simon.marchi@efficios.com>
4962
4963 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4964 the per_bfd object.
4965 (dwarf2_read_debug_names): Likewise.
4966 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4967 object when re-using a per_bfd object with an index.
4968
f9b5d5ea
TV
49692020-06-03 Tom de Vries <tdevries@suse.de>
4970
4971 PR symtab/26046
4972 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4973 children for C++.
4974 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4975 DW_TAG_subprogram.
4976
f6eee2d0
AB
49772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4978
4979 * ada-lang.c (ada_language_data): Delete skip_trampoline
4980 initializer.
4981 * c-lang.c (c_language_data): Likewise.
4982 (cplus_language_data): Likewise.
4983 (cplus_language::skip_trampoline): New member function.
4984 (asm_language_data): Delete skip_trampoline initializer.
4985 (minimal_language_data): Likewise.
4986 * d-lang.c (d_language_data): Likewise.
4987 * f-lang.c (f_language_data): Likewise.
4988 * go-lang.c (go_language_data): Likewise.
4989 * language.c (unk_lang_trampoline): Delete function.
4990 (skip_language_trampoline): Update.
4991 (unknown_language_data): Delete skip_trampoline initializer.
4992 (auto_language_data): Likewise.
4993 * language.h (language_data): Delete skip_trampoline field.
4994 (language_defn::skip_trampoline): New function.
4995 * m2-lang.c (m2_language_data): Delete skip_trampoline
4996 initializer.
4997 * objc-lang.c (objc_skip_trampoline): Delete function, move
4998 implementation to objc_language::skip_trampoline.
4999 (objc_language_data): Delete skip_trampoline initializer.
5000 (objc_language::skip_trampoline): New member function with
5001 implementation from objc_skip_trampoline.
5002 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5003 initializer.
5004 * p-lang.c (pascal_language_data): Likewise.
5005 * rust-lang.c (rust_language_data): Likewise.
5006
0a50df5d
AB
50072020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5008
5009 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5010 (ada_language::demangle): New member function.
5011 * c-lang.c (c_language_data): Delete la_demangle initializer.
5012 (cplus_language_data): Delete la_demangle initializer.
5013 (cplus_language::demangle): New member function.
5014 (asm_language_data): Delete la_demangle initializer.
5015 (minimal_language_data): Delete la_demangle initializer.
5016 * d-lang.c (d_language_data): Delete la_demangle initializer.
5017 (d_language::demangle): New member function.
5018 * f-lang.c (f_language_data): Delete la_demangle initializer.
5019 (f_language::demangle): New member function.
5020 * go-lang.c (go_language_data): Delete la_demangle initializer.
5021 (go_language::demangle): New member function.
5022 * language.c (language_demangle): Update.
5023 (unk_lang_demangle): Delete.
5024 (unknown_language_data): Delete la_demangle initializer.
5025 (unknown_language::demangle): New member function.
5026 (auto_language_data): Delete la_demangle initializer.
5027 (auto_language::demangle): New member function.
5028 * language.h (language_data): Delete la_demangle field.
5029 (language_defn::demangle): New function.
5030 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5031 * objc-lang.c (objc_language_data): Delete la_demangle
5032 initializer.
5033 (objc_language::demangle): New member function.
5034 * opencl-lang.c (opencl_language_data): Delete la_demangle
5035 initializer.
5036 * p-lang.c (pascal_language_data): Likewise.
5037 * rust-lang.c (rust_language_data): Likewise.
5038 (rust_language::demangle): New member function.
5039
fbfb0a46
AB
50402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5041
5042 * ada-lang.c (ada_language_data): Delete la_print_type
5043 initializer.
5044 (ada_language::print_type): New member function.
5045 * c-lang.c (c_language_data): Delete la_print_type initializer.
5046 (c_language::print_type): New member function.
5047 (cplus_language_data): Delete la_print_type initializer.
5048 (cplus_language::print_type): New member function.
5049 (asm_language_data): Delete la_print_type initializer.
5050 (asm_language::print_type): New member function.
5051 (minimal_language_data): Delete la_print_type initializer.
5052 (minimal_language::print_type): New member function.
5053 * d-lang.c (d_language_data): Delete la_print_type initializer.
5054 (d_language::print_type): New member function.
5055 * f-lang.c (f_language_data): Delete la_print_type initializer.
5056 (f_language::print_type): New member function.
5057 * go-lang.c (go_language_data): Delete la_print_type initializer.
5058 (go_language::print_type): New member function.
5059 * language.c (unk_lang_print_type): Delete.
5060 (unknown_language_data): Delete la_print_type initializer.
5061 (unknown_language::print_type): New member function.
5062 (auto_language_data): Delete la_print_type initializer.
5063 (auto_language::print_type): New member function.
5064 * language.h (language_data): Delete la_print_type field.
5065 (language_defn::print_type): New function.
5066 (LA_PRINT_TYPE): Update.
5067 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5068 (m2_language::print_type): New member function.
5069 * objc-lang.c (objc_language_data): Delete la_print_type
5070 initializer.
5071 (objc_language::print_type): New member function.
5072 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5073 to opencl_language::print_type.
5074 (opencl_language_data): Delete la_print_type initializer.
5075 (opencl_language::print_type): New member function, implementation
5076 from opencl_print_type.
5077 * p-lang.c (pascal_language_data): Delete la_print_type
5078 initializer.
5079 (pascal_language::print_type): New member function.
5080 * rust-lang.c (rust_print_type): Delete, implementation moved to
5081 rust_language::print_type.
5082 (rust_language_data): Delete la_print_type initializer.
5083 (rust_language::print_type): New member function, implementation
5084 from rust_print_type.
5085
6f827019
AB
50862020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5087
5088 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5089 implementation moves to...
5090 (ada_language::sniff_from_mangled_name): ...here. Update return
5091 type.
5092 (ada_language_data): Delete la_sniff_from_mangled_name
5093 initializer.
5094 * c-lang.c (c_language_data): Likewise.
5095 (cplus_language_data): Likewise.
5096 (cplus_language::sniff_from_mangled_name): New member function,
5097 implementation taken from gdb_sniff_from_mangled_name.
5098 (asm_language_data): Delete la_sniff_from_mangled_name
5099 initializer.
5100 (minimal_language_data): Likewise.
5101 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5102 implementation moves to cplus_language::sniff_from_mangled_name.
5103 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5104 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5105 moves to...
5106 (d_language::sniff_from_mangled_name): ...here.
5107 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5108 * f-lang.c (f_language_data): Likewise.
5109 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5110 moves to...
5111 (go_language::sniff_from_mangled_name): ...here.
5112 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5113 * language.c (language_sniff_from_mangled_name): Delete.
5114 (unknown_language_data): Delete la_sniff_from_mangled_name
5115 initializer.
5116 (auto_language_data): Likewise.
5117 * language.h (language_data): Delete la_sniff_from_mangled_name
5118 field.
5119 (language_defn::sniff_from_mangled_name): New function.
5120 (language_sniff_from_mangled_name): Delete declaration.
5121 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5122 field.
5123 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5124 implementation moves to...
5125 (objc_language::sniff_from_mangled_name): ...here.
5126 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5127 * opencl-lang.c (opencl_language_data): Likewise.
5128 * p-lang.c (pascal_language_data): Likewise.
5129 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5130 implementation moves to...
5131 (rust_language::sniff_from_mangled_name): ...here.
5132 (rust_language_data): Delete la_sniff_from_mangled_name
5133 initializer.
5134 * symtab.c (symbol_find_demangled_name): Call
5135 sniff_from_mangled_name member function.
5136
fb8006fd
AB
51372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5138
5139 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5140 initializer.
5141 * c-lang.c (c_language_data): Likewise.
5142 (cplus_language_data): Likewise.
5143 (cplus_language::search_name_hash): New member function.
5144 (asm_language_data): Delete la_search_name_hash initializer.
5145 (minimal_language_data): Likewise.
5146 * d-lang.c (d_language_data): Likewise.
5147 * dictionary.c (default_search_name_hash): Rename to...
5148 (language_defn::search_name_hash): ...this.
5149 * f-lang.c (f_language_data): Likewise.
5150 (f_language::search_name_hash): New member function.
5151 * go-lang.c (go_language_data): Delete la_search_name_hash
5152 initializer.
5153 * language.c (unknown_language_data): Likewise.
5154 (auto_language_data): Likewise.
5155 * language.h (struct language_data): Delete la_search_name_hash
5156 field.
5157 (language_defn::search_name_hash): Declare new member function.
5158 (default_search_name_hash): Delete declaration.
5159 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5160 initializer.
5161 * objc-lang.c (objc_language_data): Likewise.
5162 * opencl-lang.c (opencl_language_data): Likewise.
5163 * p-lang.c (pascal_language_data): Likewise.
5164 * rust-lang.c (rust_language_data): Likewise.
5165 * symtab.c (search_name_hash): Update call.
5166
8e25bafe
AB
51672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5168
5169 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5170 initializer.
5171 * c-lang.c (class compile_instance): Declare.
5172 (c_language_data): Delete la_get_compile_instance initializer.
5173 (c_language::get_compile_instance): New member function.
5174 (cplus_language_data): Delete la_get_compile_instance initializer.
5175 (cplus_language::get_compile_instance): New member function.
5176 (asm_language_data): Delete la_get_compile_instance initializer.
5177 (minimal_language_data): Likewise.
5178 * c-lang.h (c_get_compile_context): Update comment.
5179 (cplus_get_compile_context): Update comment.
5180 * compile/compile.c (compile_to_object): Update calls, don't rely
5181 on function pointer being NULL.
5182 * d-lang.c (d_language_data): Delete la_get_compile_instance
5183 initializer.
5184 * f-lang.c (f_language_data): Likewise.
5185 * go-lang.c (go_language_data): Likewise.
5186 * language.c (unknown_language_data): Likewise.
5187 (auto_language_data): Likewise.
5188 * language.h (language_data): Delete la_get_compile_instance field.
5189 (language_defn::get_compile_instance): New member function.
5190 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5191 initializer.
5192 * objc-lang.c (objc_language_data): Likewise.
5193 * opencl-lang.c (opencl_language_data): Likewise.
5194 * p-lang.c (pascal_language_data): Likewise.
5195 * rust-lang.c (rust_language_data): Likewise.
5196
4009ee92
AB
51972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5198
5199 * ada-lang.c (ada_add_all_symbols): Update comment.
5200 (ada_iterate_over_symbols): Delete, move implementation to...
5201 (ada_language::iterate_over_symbols): ...here, a new member
5202 function, rewrite to use range based for loop.
5203 (ada_language_data): Delete la_iterate_over_symbols initializer.
5204 * c-lang.c (c_language_data): Likewise.
5205 (cplus_language_data): Likewise.
5206 (asm_language_data): Likewise.
5207 (minimal_language_data): Likewise.
5208 * d-lang.c (d_language_data): Likewise.
5209 * f-lang.c (f_language_data): Likewise.
5210 * go-lang.c (go_language_data): Likewise.
5211 * language.c (unknown_language_data): Likewise.
5212 (auto_language_data): Likewise.
5213 * language.h (language_data): Delete la_iterate_over_symbols field.
5214 (language_defn::iterate_over_symbols): New member function.
5215 (LA_ITERATE_OVER_SYMBOLS): Update.
5216 * linespec.c (iterate_over_all_matching_symtabs): Update.
5217 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5218 initializer.
5219 * objc-lang.c (objc_language_data): Likewise.
5220 * opencl-lang.c (opencl_language_data): Likewise.
5221 * p-lang.c (pascal_language_data): Likewise.
5222 * rust-lang.c (rust_language_data): Likewise.
5223
54f4ca46
AB
52242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5225
5226 * ada-lang.c (ada_language_data): Delete
5227 la_lookup_transparent_type initializer.
5228 * c-lang.c (c_language_data): Likewise.
5229 (cplus_language_data): Likewise.
5230 (cplus_language::lookup_transparent_type): New member function.
5231 (asm_language_data): Delete la_lookup_transparent_type
5232 initializer.
5233 (minimal_language_data): Likewise.
5234 * d-lang.c (d_language_data): Likewise.
5235 * f-lang.c (f_language_data): Likewise.
5236 * go-lang.c (go_language_data): Likewise.
5237 * language.c (unknown_language_data): Likewise.
5238 (auto_language_data): Likewise.
5239 * language.h (struct language_data): Delete
5240 la_lookup_transparent_type field.
5241 (language_defn::lookup_transparent_type): New member function.
5242 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5243 initializer.
5244 * objc-lang.c (objc_language_data): Likewise.
5245 * opencl-lang.c (opencl_language_data): Likewise.
5246 * p-lang.c (pascal_language_data): Likewise.
5247 * rust-lang.c (rust_language_data): Likewise.
5248 * symtab.c (symbol_matches_domain): Update call.
5249
1fb314aa
AB
52502020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5251
5252 * ada-lang.c (ada_language_arch_info): Delete function, move
5253 implementation to...
5254 (ada_language::language_arch_info): ...here, a new member
5255 function.
5256 (ada_language_data): Delete la_language_arch_info.
5257 * c-lang.c (c_language_data): Likewise.
5258 (c_language::language_arch_info): New member function.
5259 (cplus_language_arch_info): Delete function, move
5260 implementation to...
5261 (cplus_language::language_arch_info): ...here, a new member
5262 function.
5263 (cplus_language_data): Delete la_language_arch_info.
5264 (asm_language_data): Likewise.
5265 (asm_language::language_arch_info): New member function.
5266 (minimal_language_data): Delete la_language_arch_info.
5267 (minimal_language::language_arch_info): New member function.
5268 * d-lang.c (d_language_arch_info): Delete function, move
5269 implementation to...
5270 (d_language::language_arch_info): ...here, a new member
5271 function.
5272 (d_language_data): Delete la_language_arch_info.
5273 * f-lang.c (f_language_arch_info): Delete function, move
5274 implementation to...
5275 (f_language::language_arch_info): ...here, a new member
5276 function.
5277 (f_language_data): Delete la_language_arch_info.
5278 * go-lang.c (go_language_arch_info): Delete function, move
5279 implementation to...
5280 (go_language::language_arch_info): ...here, a new member
5281 function.
5282 (go_language_data): Delete la_language_arch_info.
5283 * language.c (unknown_language_data): Likewise.
5284 (unknown_language::language_arch_info): New member function.
5285 (auto_language_data): Delete la_language_arch_info.
5286 (auto_language::language_arch_info): New member function.
5287 (language_gdbarch_post_init): Update call to
5288 la_language_arch_info.
5289 * language.h (language_data): Delete la_language_arch_info
5290 function pointer.
5291 (language_defn::language_arch_info): New function.
5292 * m2-lang.c (m2_language_arch_info): Delete function, move
5293 implementation to...
5294 (m2_language::language_arch_info): ...here, a new member
5295 function.
5296 (m2_language_data): Delete la_language_arch_info.
5297 * objc-lang.c (objc_language_arch_info): Delete function, move
5298 implementation to...
5299 (objc_language::language_arch_info): ...here, a new member
5300 function.
5301 (objc_language_data): Delete la_language_arch_info.
5302 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5303 implementation to...
5304 (opencl_language::language_arch_info): ...here, a new member
5305 function.
5306 (opencl_language_data): Delete la_language_arch_info.
5307 * p-lang.c (pascal_language_arch_info): Delete function, move
5308 implementation to...
5309 (pascal_language::language_arch_info): ...here, a new member
5310 function.
5311 (pascal_language_data): Delete la_language_arch_info.
5312 * rust-lang.c (rust_language_arch_info): Delete function, move
5313 implementation to...
5314 (rust_language::language_arch_info): ...here, a new member
5315 function.
5316 (rust_language_data): Delete la_language_arch_info.
5317
48448202
AB
53182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5319
5320 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5321 initializer.
5322 * c-lang.c (c_language_data): Likewise.
5323 (cplus_language_data): Likewise.
5324 (cplus_language::pass_by_reference_info): New method.
5325 (asm_language_data): Delete la_pass_by_reference initializer.
5326 (minimal_language_data): Likewise.
5327 * cp-abi.c (cp_pass_by_reference): Remove use of
5328 default_pass_by_reference.
5329 * d-lang.c (d_language_data): Likewise.
5330 * f-lang.c (f_language_data): Likewise.
5331 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5332 default_pass_by_reference.
5333 * go-lang.c (go_language_data): Likewise.
5334 * language.c (language_pass_by_reference): Update.
5335 (default_pass_by_reference): Delete.
5336 (unknown_language_data): Delete la_pass_by_reference
5337 initializer.
5338 (auto_language_data): Likewise.
5339 * language.h (struct language_data): Delete la_pass_by_reference
5340 field.
5341 (language_defn::pass_by_reference_info): New member function.
5342 (default_pass_by_reference): Delete declaration.
5343 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5344 initializer.
5345 * objc-lang.c (objc_language_data): Likewise.
5346 * opencl-lang.c (opencl_language_data): Likewise.
5347 * p-lang.c (pascal_language_data): Likewise.
5348 * rust-lang.c (rust_language_data): Likewise.
5349
15e5fd35
AB
53502020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5351
5352 * ada-lang.c (ada_read_var_value): Delete function, move
5353 implementation to...
5354 (ada_language::read_var_value): ...here.
5355 (ada_language_data): Delete la_read_var_value initializer.
5356 * c-lang.c (c_language_data): Likewise.
5357 (cplus_language_data): Likewise.
5358 (minimal_language_data): Likewise.
5359 * d-lang.c (d_language_data): Likewise.
5360 * f-lang.c (f_language_data): Likewise.
5361 * findvar.c (default_read_var_value): Rename to...
5362 (language_defn::read_var_value): ...this.
5363 * findvar.c (read_var_value): Update header comment, and change to
5364 call member function instead of function pointer.
5365 * go-lang.c (go_language_data): Likewise.
5366 * language.c (unknown_language_data): Delete la_read_var_value
5367 initializer.
5368 (auto_language_data): Likewise.
5369 * language.h (struct language_data): Delete la_read_var_value
5370 field.
5371 (language_defn::read_var_value): New member function.
5372 (default_read_var_value): Delete declaration.
5373 * m2-lang.c (m2_language_data): Delete la_read_var_value
5374 initializer.
5375 * objc-lang.c (objc_language_data): Likewise.
5376 * opencl-lang.c (opencl_language_data): Likewise.
5377 * p-lang.c (pascal_language_data): Likewise.
5378 * rust-lang.c (rust_language_data): Likewise.
5379 * value.h (default_read_var_value): Delete declaration.
5380
5bd40f2a
AB
53812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5382
5383 * ada-lang.c (ada_print_array_index): Delete function, move
5384 implementation to...
5385 (ada_language::print_array_index): ...here.
5386 (ada_language_data): Delete la_print_array_index initializer.
5387 * c-lang.c (c_language_data): Likewise.
5388 (cplus_language_data): Likewise.
5389 (minimal_language_data): Likewise.
5390 * d-lang.c (d_language_data): Likewise.
5391 * f-lang.c (f_language_data): Likewise.
5392 * go-lang.c (go_language_data): Likewise.
5393 * language.c (default_print_array_index): Delete function, move
5394 implementation to...
5395 (language_defn::print_array_index): ...here.
5396 (unknown_language_data): Delete la_print_array_index initializer.
5397 (auto_language_data): Likewise.
5398 * language.h (struct language_data): Delete la_print_array_index
5399 field.
5400 (language_defn::print_array_index): New member function.
5401 (LA_PRINT_ARRAY_INDEX): Update.
5402 (default_print_array_index): Delete declaration.
5403 * m2-lang.c (m2_language_data): Delete la_print_array_index
5404 initializer.
5405 * objc-lang.c (objc_language_data): Likewise.
5406 * opencl-lang.c (opencl_language_data): Likewise.
5407 * p-lang.c (pascal_language_data): Likewise.
5408 * rust-lang.c (rust_language_data): Likewise.
5409
0874fd07
AB
54102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5411
5412 * gdb/ada-lang.c (ada_language_defn): Convert to...
5413 (ada_language_data): ...this.
5414 (class ada_language): New class.
5415 (ada_language_defn): New static global.
5416 * gdb/c-lang.c (c_language_defn): Convert to...
5417 (c_language_data): ...this.
5418 (class c_language): New class.
5419 (c_language_defn): New static global.
5420 (cplus_language_defn): Convert to...
5421 (cplus_language_data): ...this.
5422 (class cplus_language): New class.
5423 (cplus_language_defn): New static global.
5424 (asm_language_defn): Convert to...
5425 (asm_language_data): ...this.
5426 (class asm_language): New class.
5427 (asm_language_defn): New static global.
5428 (minimal_language_defn): Convert to...
5429 (minimal_language_data): ...this.
5430 (class minimal_language): New class.
5431 (minimal_language_defn): New static global.
5432 * gdb/d-lang.c (d_language_defn): Convert to...
5433 (d_language_data): ...this.
5434 (class d_language): New class.
5435 (d_language_defn): New static global.
5436 * gdb/f-lang.c (f_language_defn): Convert to...
5437 (f_language_data): ...this.
5438 (class f_language): New class.
5439 (f_language_defn): New static global.
5440 * gdb/go-lang.c (go_language_defn): Convert to...
5441 (go_language_data): ...this.
5442 (class go_language): New class.
5443 (go_language_defn): New static global.
5444 * gdb/language.c (unknown_language_defn): Remove declaration.
5445 (current_language): Initialize to nullptr, real initialization is
5446 moved to _initialize_language.
5447 (languages): Delete global.
5448 (language_defn::languages): Define.
5449 (set_language_command): Use language_defn::languages.
5450 (set_language): Likewise.
5451 (range_error): Likewise.
5452 (language_enum): Likewise.
5453 (language_def): Likewise.
5454 (add_set_language_command): Use language_def::languages for the
5455 language list, and language_def to lookup language pointers.
5456 (skip_language_trampoline): Use language_defn::languages.
5457 (unknown_language_defn): Convert to...
5458 (unknown_language_data): ...this.
5459 (class unknown_language): New class.
5460 (unknown_language_defn): New static global.
5461 (auto_language_defn): Convert to...
5462 (auto_language_data): ...this.
5463 (class auto_language): New class.
5464 (auto_language_defn): New static global.
5465 (language_gdbarch_post_init): Use language_defn::languages.
5466 (_initialize_language): Initialize current_language.
5467 * gdb/language.h (struct language_defn): Rename to...
5468 (struct language_data): ...this.
5469 (struct language_defn): New.
5470 (auto_language_defn): Delete.
5471 (unknown_language_defn): Delete.
5472 (minimal_language_defn): Delete.
5473 (ada_language_defn): Delete.
5474 (asm_language_defn): Delete.
5475 (c_language_defn): Delete.
5476 (cplus_language_defn): Delete.
5477 (d_language_defn): Delete.
5478 (f_language_defn): Delete.
5479 (go_language_defn): Delete.
5480 (m2_language_defn): Delete.
5481 (objc_language_defn): Delete.
5482 (opencl_language_defn): Delete.
5483 (pascal_language_defn): Delete.
5484 (rust_language_defn): Delete.
5485 * gdb/m2-lang.c (m2_language_defn): Convert to...
5486 (m2_language_data): ...this.
5487 (class m2_language): New class.
5488 (m2_language_defn): New static global.
5489 * gdb/objc-lang.c (objc_language_defn): Convert to...
5490 (objc_language_data): ...this.
5491 (class objc_language): New class.
5492 (objc_language_defn): New static global.
5493 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5494 (opencl_language_data): ...this.
5495 (class opencl_language): New class.
5496 (opencl_language_defn): New static global.
5497 * gdb/p-lang.c (pascal_language_defn): Convert to...
5498 (pascal_language_data): ...this.
5499 (class pascal_language): New class.
5500 (pascal_language_defn): New static global.
5501 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5502 language pointer, update comment format.
5503 * gdb/rust-lang.c (rust_language_defn): Convert to...
5504 (rust_language_data): ...this.
5505 (class rust_language): New class.
5506 (rust_language_defn): New static global.
5507
1313c56e
AB
55082020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5509
5510 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5511 member variable.
5512 <m_stmt_at_address>: New member variable.
5513 (lnp_state_machine::record_line): Don't record some lines, update
5514 tracking of is_stmt at the same address.
5515 (lnp_state_machine::lnp_state_machine): Initialise new member
5516 variables.
5517
b7ed9f3d
ST
55182020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5519
5520 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5521 "-include gnu-nat-mig.h".
5522 * gnu-nat-mig.h: New file.
5523 * gnu-nat.c: Include "gnu-nat-mig.h".
5524 (exc_server, msg_reply_server, notify_server,
5525 process_reply_server): Remove declarations.
5526
14a8ad62
ST
55272020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5528
5529 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5530 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5531 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5532 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5533 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5534 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5535 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5536 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5537 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5538 to gnu_nat_target class.
5539 * gnu-nat.c: Likewise.
5540 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5541 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5542 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5543 object.
5544 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5545 instead of `gnu_target'.
5546
0af5e106
ST
55472020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5548
5549 * i386-gnu-tdep.c: Include "gdbcore.h"
5550 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5551 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5552 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5553 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5554 i386_gnu_sigcontext_addr): New functions
5555 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5556 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5557 tdep.
5558
078f2fc9
ST
55592020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5560
5561 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5562 before fork_inferior call. Avoid calling it if target_is_pushed returns
5563 true.
5564
53dff92c
ST
55652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5566
5567 * gnu-nat.h (gnu_target): New variable declaration.
5568 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5569 gnu_target.
5570 * gnu-nat.c (gnu_target): New variable.
5571 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5572 add_thread_silent, and add_thread calls.
5573 (gnu_nat_target::create_inferior): Pass gnu_target to
5574 add_thread_silent, thread_change_ptid call.
5575 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5576 call.
5577
5a8b8627
ST
55782020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5579
5580 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5581 (gnu_nat_target::find_memory_regions): Remove unused
5582 `old_address' variable.
5583
366f550a
ST
55842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5585
5586 * gnu-nat.c: Include "gdbarch.h".
5587
f14871bf
ST
55882020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5589
5590 * reply_mig_hack.awk (Error return): Cast function through
5591 void *, to bypass compiler function call check.
5592
c6887cfb
ST
55932020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5594
5595 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5596 $(srcdir)/reply_mig_hack.awk.
5597
6930bffe
ST
55982020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5599
5600 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5601
112c22ed
JG
56022020-05-30 Jonny Grant <jg@jguk.org>
5603
5604 * configure.ac (ACX_BUGURL): change bug URL to https.
5605
f68f85b5
PA
56062020-05-30 Pedro Alves <palves@redhat.com>
5607
5608 * cp-support.c (replace_typedefs_template): New.
5609 (replace_typedefs_qualified_name): Handle
5610 DEMANGLE_COMPONENT_TEMPLATE.
5611
976ca316
SM
56122020-05-29 Simon Marchi <simon.marchi@efficios.com>
5613
5614 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5615 dwarf2/index-cache.h, dwarf2/index-write.c,
5616 dwarf2/index-write.h, dwarf2/line-header.c,
5617 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5618 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5619 variables and fields from `dwarf2_per_objfile` to just
5620 `per_objfile` throughout.
5621
989ade05
SM
56222020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5623
5624 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5625 <push_dwarf_reg_entry_value>: Add comment.
5626
c47bae85
KB
56272020-05-28 Kevin Buettner <kevinb@redhat.com>
5628 Keith Seitz <keiths@redhat.com>
5629
5630 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5631 instead of PyEval_ReleaseLock.
5632 (class gdbpy_gil): Move to earlier in file.
5633 (finalize_python): Set gdb_python_initialized.
5634 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5635 when not initialized.
5636
44486dcf
SM
56372020-05-28 Simon Marchi <simon.marchi@efficios.com>
5638
5639 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5640 <push_dwarf_reg_entry_value>: Remove assert. Override
5641 per_objfile with caller_per_objfile.
5642
f030440d
TV
56432020-05-28 Tom de Vries <tdevries@suse.de>
5644
5645 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5646 PR gold/15646 workaround to symbol kind "type".
5647
f0fbb768
TT
56482020-05-27 Tom Tromey <tromey@adacore.com>
5649
5650 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5651
af0b2a3e
TT
56522020-05-27 Tom Tromey <tromey@adacore.com>
5653
5654 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5655 Use htab_find_with_hash.
5656 <add_abbrev>: Remove "abbrev_number" parameter.
5657 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5658 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5659 (hash_abbrev): Add comment.
5660 (abbrev_table::lookup_abbrev): Move to header file.
5661 (abbrev_table::read): Update.
5662
7d00ffec
TT
56632020-05-27 Tom Tromey <tromey@adacore.com>
5664
5665 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5666 method.
5667 <canonical_name>: New member.
5668 <raw_name>: Rename from "name".
5669 (partial_die_info): Initialize canonical_name.
5670 (scan_partial_symbols): Check raw_name.
5671 (partial_die_parent_scope, partial_die_full_name)
5672 (add_partial_symbol, add_partial_subprogram)
5673 (add_partial_enumeration, load_partial_dies): Use "name" method.
5674 (partial_die_info::name): New method.
5675 (partial_die_info::read, guess_partial_die_structure_name)
5676 (partial_die_info::fixup): Update.
5677
697bba18
TT
56782020-05-27 Tom Tromey <tromey@adacore.com>
5679
5680 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5681 <get_ref_die_offset>: Inline.
5682 <get_ref_die_offset_complaint>: New method.
5683 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5684 (attribute::get_ref_die_offset_complaint): Rename from
5685 get_ref_die_offset. Just issue complaint.
5686
c17ace43
HD
56872020-05-27 Hannes Domani <ssbssa@yahoo.de>
5688
5689 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5690
96445f0b
HD
56912020-05-27 Hannes Domani <ssbssa@yahoo.de>
5692
5693 * exec.c (exec_file_attach): Use errno value of first openp failure.
5694
ac637ec3
HD
56952020-05-27 Hannes Domani <ssbssa@yahoo.de>
5696
5697 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5698 Don't close thread handle.
5699
17ee85fc
TT
57002020-05-27 Tom Tromey <tom@tromey.com>
5701 Simon Marchi <simon.marchi@efficios.com>
5702
5703 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5704 shared_ptr.
5705 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5706 member.
5707 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5708 dwarf2_per_bfd_objfile_data_key>: New globals.
5709 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5710 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5711 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5712 shared.
5713 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5714 short-circuit when sharing.
5715 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5716 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5717
39b16f87
SM
57182020-05-27 Simon Marchi <simon.marchi@efficios.com>
5719
5720 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5721 to...
5722 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5723 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5724
fcf23d5b
SM
57252020-05-27 Simon Marchi <simon.marchi@efficios.com>
5726
5727 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5728 build_name_components, find_name_components_bounds>:
5729 Add per_objfile parameter.
5730 (struct mapped_index) <symbol_name_at>: Likewise.
5731 (struct mapped_debug_names): Remove constructor.
5732 <dwarf2_per_objfile>: Remove field.
5733 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5734 (mapped_index_base::find_name_components_bounds,
5735 mapped_index_base::build_name_components,
5736 dw2_expand_symtabs_matching_symbol): Likewise.
5737 (class mock_mapped_index) <symbol_name_at>: Likewise.
5738 (check_match): Likewise.
5739 (check_find_bounds_finds): Likewise.
5740 (test_mapped_index_find_name_component_bounds): Update.
5741 (CHECK_MATCH): Update.
5742 (dw2_expand_symtabs_matching): Update.
5743 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5744 per_objfile parameter.
5745 <find_vec_in_debug_names>: Likewise.
5746 <m_per_objfile>: New field.
5747 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5748 parameter.
5749 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5750 (dw2_debug_names_iterator::next): Update.
5751 (dw2_debug_names_lookup_symbol): Update.
5752 (dw2_debug_names_expand_symtabs_for_function): Update.
5753 (dw2_debug_names_map_matching_symbols): Update.
5754 (dw2_debug_names_expand_symtabs_matching): Update.
5755 (dwarf2_read_debug_names): Update.
5756
7188ed02
SM
57572020-05-27 Simon Marchi <simon.marchi@efficios.com>
5758
5759 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5760 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5761 move to dwarf2_per_objfile.
5762 <read_in_chain>: Remove.
5763 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5764 remove_all_cus, age_comp_units>: New methods.
5765 <m_dwarf2_cus>: New member.
5766 (struct dwarf2_per_cu_data) <cu>: Remove.
5767 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5768 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5769 moved to methods of dwarf2_per_objfile.
5770 (dwarf2_clear_marks): Remove.
5771 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5772 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5773 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5774 (dwarf2_per_objfile::remove_all_cus): New.
5775 (class free_cached_comp_units) <~free_cached_comp_units>:
5776 Update.
5777 (load_cu): Update.
5778 (dw2_do_instantiate_symtab): Adjust.
5779 (fill_in_sig_entry_from_dwo_entry): Adjust.
5780 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5781 (cutu_reader::cutu_reader): Likewise.
5782 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5783 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5784 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5785 and dwarf2_per_objfile::age_comp_units.
5786 (load_partial_comp_unit): Update.
5787 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5788 (process_queue): Likewise.
5789 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5790 backlink.
5791 (dwarf2_read_addr_index): Likewise.
5792 (follow_die_offset): Likewise.
5793 (dwarf2_fetch_die_loc_sect_off): Likewise.
5794 (dwarf2_fetch_constant_bytes): Likewise.
5795 (dwarf2_fetch_die_type_sect_off): Likewise.
5796 (follow_die_sig_1): Likewise.
5797 (load_full_type_unit): Likewise.
5798 (read_signatured_type): Likewise.
5799 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5800 (dwarf2_cu::~dwarf2_cu): Remove.
5801 (dwarf2_per_objfile::get_cu): New.
5802 (dwarf2_per_objfile::set_cu): New.
5803 (age_cached_comp_units): Rename to...
5804 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5805 to std::unordered_map.
5806 (free_one_cached_comp_unit): Rename to...
5807 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5808 to std::unordered_map.
5809 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5810 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5811 a dwarf2_per_objfile in data.
5812 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5813 (dwarf2_clear_marks): Remove.
5814
2e671100
SM
58152020-05-27 Simon Marchi <simon.marchi@efficios.com>
5816
5817 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5818 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5819 (init_tu_and_read_dwo_dies): Likewise.
5820 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5821 (cutu_reader::cutu_reader): Likewise.
5822 (load_partial_comp_unit): Likewise.
5823 (process_psymtab_comp_unit): Update.
5824 (build_type_psymtabs_1): Update.
5825 (process_skeletonless_type_unit): Update.
5826 (load_full_comp_unit): Update.
5827 (find_partial_die): Update.
5828 (dwarf2_read_addr_index): Update.
5829 (read_signatured_type): Update.
5830
2e6a9f79
SM
58312020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5832
5833 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5834 m_header_read_in>: New fields.
5835 <get_header>: New method.
5836 * dwarf2/read.c (per_cu_header_read_in): Remove.
5837 (dwarf2_per_cu_data::get_header): New.
5838 (dwarf2_per_cu_data::addr_size): Update.
5839 (dwarf2_per_cu_data::offset_size): Update.
5840 (dwarf2_per_cu_data::ref_addr_size): Update.
5841
1b555f17
SM
58422020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5843
5844 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5845 (dw2_do_instantiate_symtab): Update.
5846 (queue_and_load_all_dwo_tus): Change parameter from
5847 dwarf2_per_cu_data to dwarf2_cu.
5848 (dwarf2_fetch_die_loc_sect_off): Update.
5849 (dwarf2_fetch_constant_bytes): Update.
5850 (dwarf2_fetch_die_type_sect_off): Update.
5851
8fc0b21d
SM
58522020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5853
5854 * dwarf2/read.c (process_full_comp_unit,
5855 process_full_type_unit): Remove per_cu, per_objfile paramters.
5856 Add dwarf2_cu parameter.
5857 (process_queue): Update.
5858
168c9250
SM
58592020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5860
5861 * dwarf2/read.c (create_cu_from_index_list): Replace
5862 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5863 (create_cus_from_index_list): Likewise.
5864 (create_cus_from_index): Likewise.
5865 (create_signatured_type_table_from_index): Likewise.
5866 (create_cus_from_debug_names_list): Likewise.
5867 (create_cus_from_debug_names): Likewise.
5868 (dwarf2_read_gdb_index): Update.
5869 (dwarf2_read_debug_names): Update.
5870
e286671b
TT
58712020-05-27 Tom Tromey <tom@tromey.com>
5872 Simon Marchi <simon.marchi@efficios.com>
5873
5874 * dwarf2/read.h (struct dwarf2_per_objfile)
5875 <get_type_for_signatured_type, set_type_for_signatured_type>:
5876 New methods.
5877 <m_type_map>: New member.
5878 (struct signatured_type) <type>: Remove.
5879 * dwarf2/read.c
5880 (dwarf2_per_objfile::get_type_for_signatured_type,
5881 dwarf2_per_objfile::set_type_for_signatured_type): New.
5882 (get_signatured_type): Use new methods.
5883
8adb8487
TT
58842020-05-27 Tom Tromey <tom@tromey.com>
5885 Simon Marchi <simon.marchi@efficios.com>
5886
5887 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5888 (struct dwarf2_per_objfile) <type_units>: New member.
5889 <get_type_unit_group_unshareable>: New method.
5890 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5891 num_symtabs, symtabs>: Remove; move to
5892 type_unit_group_unshareable.
5893 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5894 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5895 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5896
127bbf4b
SM
58972020-05-27 Simon Marchi <simon.marchi@efficios.com>
5898
5899 * dwarf2/read.h (struct dwarf2_per_cu_data):
5900 <dwarf2_per_objfile>: Remove.
5901 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5902 dwarf2_per_objfile.
5903 (create_signatured_type_table_from_index): Likewise.
5904 (create_signatured_type_table_from_debug_names): Likewise.
5905 (create_debug_type_hash_table): Likewise.
5906 (fill_in_sig_entry_from_dwo_entry): Likewise.
5907 (create_type_unit_group): Likewise.
5908 (read_comp_units_from_section): Likewise.
5909 (create_cus_hash_table): Likewise.
5910
f6e649dd
SM
59112020-05-27 Simon Marchi <simon.marchi@efficios.com>
5912
5913 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5914 dwarf2_per_cu_data::dwarf2_per_objfile.
5915 (compute_compunit_symtab_includes): Likewise.
5916 (dwarf2_cu::start_symtab): Likewise.
5917
aa66c379
SM
59182020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5919
5920 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5921 parameter.
5922 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5923 (read_namespace_alias): Update.
5924 (lookup_die_type): Update.
5925 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5926 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5927 Update.
5928 (disassemble_dwarf_expression): Update.
5929
120ce1b5
SM
59302020-05-27 Simon Marchi <simon.marchi@efficios.com>
5931
5932 * dwarf2/read.h (struct dwarf2_queue_item): Add
5933 dwarf2_per_objfile parameter, assign new parameter.
5934 <per_objfile>: New field.
5935 * dwarf2/read.c (free_one_cached_comp_unit): Add
5936 dwarf2_per_objfile parameter.
5937 (queue_comp_unit): Likewise.
5938 (dw2_do_instantiate_symtab): Update.
5939 (process_psymtab_comp_unit): Update.
5940 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5941 (process_imported_unit_die): Update.
5942 (queue_and_load_dwo_tu): Update.
5943 (follow_die_offset): Update.
5944 (follow_die_sig_1): Update.
5945
9f47c707
SM
59462020-05-27 Simon Marchi <simon.marchi@efficios.com>
5947
5948 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5949 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5950 (read_call_site_scope): Assign per_objfile.
5951 (dwarf2_per_cu_data::objfile): Remove.
5952 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5953 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5954 dwarf2_per_objfile parameter.
5955 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5956 dwarf2_per_objfile parameter.
5957 (dwarf_expr_reg_to_entry_parameter): Add output
5958 dwarf2_per_objfile parameter.
5959 (locexpr_get_frame_base): Update.
5960 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5961 <push_dwarf_reg_entry_value>: Update.
5962 <call_site_to_target_addr>: Update.
5963 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5964 parameter.
5965 (value_of_dwarf_reg_entry): Update.
5966 (rw_pieced_value): Update.
5967 (indirect_synthetic_pointer): Update.
5968 (dwarf2_evaluate_property): Update.
5969 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5970 parameter.
5971 (locexpr_read_variable): Update.
5972 (locexpr_get_symbol_read_needs): Update.
5973 (loclist_read_variable): Update.
5974
14095eb3
SM
59752020-05-27 Simon Marchi <simon.marchi@efficios.com>
5976
5977 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5978 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5979 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5980 parameter.
5981 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5982 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5983 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5984 parameter.
5985 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5986 sect_variable_value): Add dwarf2_per_objfile parameter.
5987 (class dwarf_evaluate_loc_desc) <dwarf_call,
5988 dwarf_variable_value>: Update.
5989 (fetch_const_value_from_synthetic_pointer): Add
5990 dwarf2_per_objfile parameter.
5991 (fetch_const_value_from_synthetic_pointer): Update.
5992 (coerced_pieced_ref): Update.
5993 (class symbol_needs_eval_context) <dwarf_call,
5994 dwarf_variable_value>: Update.
5995 (dwarf2_compile_expr_to_ax): Update.
5996
3c3cd3d4
SM
59972020-05-27 Simon Marchi <simon.marchi@efficios.com>
5998
5999 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6000 parameter.
6001 (dwarf2_evaluate_loc_desc_full): Update.
6002
82ca3f51
SM
60032020-05-27 Simon Marchi <simon.marchi@efficios.com>
6004
6005 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6006 parameter.
6007 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6008 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6009 dwarf2_per_objfile parameter.
6010 (decode_debug_loc_dwo_addresses): Likewise.
6011 (dwarf2_find_location_expression): Update.
6012 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6013 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6014 parameter.
6015 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6016 parameter.
6017 (locexpr_describe_location_1): Likewise.
6018 (locexpr_describe_location): Update.
6019
4b167ea1
SM
60202020-05-27 Simon Marchi <simon.marchi@efficios.com>
6021
6022 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6023 Remove.
6024 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6025 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6026 (dwarf2_compile_property_to_c): Update.
6027 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6028 use text offset from objfile.
6029 (locexpr_tracepoint_var_ref): Update.
6030 (locexpr_generate_c_location): Update.
6031 (loclist_describe_location): Update.
6032 (loclist_tracepoint_var_ref): Update.
6033 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6034 dwarf2_per_objfile parameter.
6035 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6036 use text offset from objfile.
6037 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6038
89b07335
SM
60392020-05-27 Simon Marchi <simon.marchi@efficios.com>
6040
6041 * dwarf2/expr.h (struct dwarf_expr_context)
6042 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6043 <offset>: Remove.
6044 <per_objfile>: New member.
6045 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6046 dwarf2_per_objfile parameter. Don't set offset, set
6047 per_objfile.
6048 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6049 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6050 a dwarf2_per_objfile object instead of an offset.
6051 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6052 constructor.
6053 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6054 to dwarf2_expr_executor constructor. Don't set offset.
6055 (dwarf2_fetch_cfa_info): Update.
6056 (struct dwarf2_frame_cache) <text_offset>: Remove.
6057 <per_objfile>: New field.
6058 (dwarf2_frame_cache): Update.
6059 (dwarf2_frame_prev_register): Update.
6060 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6061 <dwarf_evaluate_loc_desc>: Add constructor.
6062 (dwarf2_evaluate_loc_desc_full): Update.
6063 (dwarf2_locexpr_baton_eval): Update.
6064 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6065 Add constructor.
6066 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6067
293e7e51
SM
60682020-05-27 Simon Marchi <simon.marchi@efficios.com>
6069
6070 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6071 addr_sized_int_type>: Move to dwarf2_cu.
6072 <int_type>: Move to dwarf2_per_objfile.
6073 (struct dwarf2_per_objfile) <int_type>: Move here.
6074 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6075 addr_sized_int_type>: Move here.
6076 (read_func_scope): Update.
6077 (read_array_type): Update.
6078 (read_tag_string_type): Update.
6079 (attr_to_dynamic_prop): Update.
6080 (dwarf2_per_cu_data::int_type): Rename to...
6081 (dwarf2_per_objfile::int_type): ... this.
6082 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6083 (dwarf2_cu::addr_sized_int_type): ... this.
6084 (read_subrange_type): Update.
6085 (dwarf2_per_cu_data::addr_type): Rename to...
6086 (dwarf2_cu::addr_type): ... this.
6087 (set_die_type): Update.
6088
64874a40
SM
60892020-05-27 Simon Marchi <simon.marchi@efficios.com>
6090
6091 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6092 data through per_cu->cu.
6093
4ab09049
SM
60942020-05-27 Simon Marchi <simon.marchi@efficios.com>
6095
6096 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6097 dwarf2_per_cu_data parameter fo dwarf2_cu.
6098 (lookup_dwo_type_unit): Likewise.
6099 (read_cutu_die_from_dwo): Likewise.
6100 (lookup_dwo_unit): Likewise.
6101 (open_and_init_dwo_file): Likewise.
6102 (lookup_dwo_cutu): Likewise.
6103 (lookup_dwo_comp_unit): Likewise.
6104 (lookup_dwo_type_unit): Likewise.
6105 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6106 (cutu_reader::cutu_reader): Update.
6107
47b14e86
SM
61082020-05-27 Simon Marchi <simon.marchi@efficios.com>
6109
6110 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6111 parameter.
6112 (process_full_type_unit): Likewise.
6113 (process_queue): Update.
6114
43182c09
SM
61152020-05-27 Simon Marchi <simon.marchi@efficios.com>
6116
6117 * dwarf2/read.c (recursively_compute_inclusions): Add
6118 dwarf2_per_objfile parameter.
6119 (compute_compunit_symtab_includes): Likewise.
6120 (process_cu_includes): Update.
6121
7aa104c4
SM
61222020-05-27 Simon Marchi <simon.marchi@efficios.com>
6123
6124 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6125 parameter.
6126 (create_type_unit_group): Update.
6127 (process_psymtab_comp_unit_reader): Update.
6128 (build_type_psymtabs_reader): Update.
6129
e3beb21d
SM
61302020-05-27 Simon Marchi <simon.marchi@efficios.com>
6131
6132 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6133 object through m_this_cu->cu.
6134
d460f660
SM
61352020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6136
6137 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6138 the info parameter.
6139 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6140
ab432490
SM
61412020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6142
6143 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6144 per_objfile parameter.
6145 (load_full_type_unit): Add per_objfile parameter.
6146 (read_signatured_type): Likewise.
6147 (load_full_comp_unit): Likewise.
6148 (load_cu): Likewise.
6149 (dw2_do_instantiate_symtab): Likewise.
6150 (dw2_get_file_names): Likewise.
6151 (dw2_map_symtabs_matching_filename): Update.
6152 (dw_expand_symtabs_matching_file_matcher): Update.
6153 (dw2_map_symbol_filenames): Update.
6154 (process_psymtab_comp_unit): Add per_objfile parameter.
6155 (build_type_psymtabs_1): Update.
6156 (process_skeletonless_type_unit): Update.
6157 (dwarf2_build_psymtabs_hard): Update.
6158 (load_partial_comp_unit): Add per_objfile parameter.
6159 (scan_partial_symbols): Update.
6160 (load_full_comp_unit): Add per_objfile parameter.
6161 (process_imported_unit_die): Update.
6162 (create_cus_hash_table): Update.
6163 (find_partial_die): Update.
6164 (dwarf2_read_addr_index): Update.
6165 (follow_die_offset): Update.
6166 (dwarf2_fetch_die_loc_sect_off): Update.
6167 (dwarf2_fetch_constant_bytes): Update.
6168 (dwarf2_fetch_die_type_sect_off): Update.
6169 (follow_die_sig_1): Update.
6170 (load_full_type_unit): Add per_objfile parameter.
6171 (read_signatured_type): Likewise.
6172
313bad1b
SM
61732020-05-27 Simon Marchi <simon.marchi@efficios.com>
6174
6175 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6176 of objfile_name.
6177
c3699833
SM
61782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6179
6180 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6181 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6182 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6183 field.
6184 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6185 (create_cus_from_index): Update.
6186 (dwarf2_read_gdb_index): Update.
6187 (create_cus_from_debug_names): Update.
6188 (dwarf2_read_debug_names): Update.
6189 (get_abbrev_section_for_cu): Update.
6190 (create_all_comp_units): Update.
6191 (read_attribute_value): Update.
6192 (get_debug_line_section): Update.
6193 * dwarf2/index-cache.c (index_cache::store): Update.
6194 * dwarf2/index-write.c (save_gdb_index_command): Update.
6195 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6196
1859c670
SM
61972020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6198
6199 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6200 member.
6201 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6202 dwarf2_per_cu_data::per_bfd.
6203 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6204 (create_type_unit_group): Likewise.
6205 (queue_comp_unit): Remove reference to
6206 per_cu->dwarf2_per_objfile.
6207 (maybe_queue_comp_unit): Likewise.
6208 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6209 (create_cus_hash_table): Assign new field.
6210
5e22e966
SM
62112020-05-27 Simon Marchi <simon.marchi@efficios.com>
6212
6213 * dwarf2/read.c: Replace
6214 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6215 dwarf2_cu->per_objfile throughout.
6216
97a1449a
SM
62172020-05-27 Simon Marchi <simon.marchi@efficios.com>
6218
6219 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6220 parameter, don't use per_cu->dwarf2_per_objfile.
6221 (dw2_instantiate_symtab): Likewise.
6222 (dw2_find_last_source_symtab): Update.
6223 (dw2_map_expand_apply): Update.
6224 (dw2_lookup_symbol): Update.
6225 (dw2_expand_symtabs_for_function): Update.
6226 (dw2_expand_all_symtabs): Update.
6227 (dw2_expand_symtabs_with_fullname): Update.
6228 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6229 don't use per_cu->dwarf2_per_objfile.
6230 (dw2_expand_marked_cus): Update.
6231 (dw2_find_pc_sect_compunit_symtab): Update.
6232 (dw2_debug_names_lookup_symbol): Update.
6233 (dw2_debug_names_expand_symtabs_for_function): Update.
6234 (dw2_debug_names_map_matching_symbols): Update.
6235 (dwarf2_psymtab::expand_psymtab): Update.
6236
9e021579
SM
62372020-05-27 Simon Marchi <simon.marchi@efficios.com>
6238
6239 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6240 <per_objfile>: New member.
6241 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6242 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6243 call to dwarf2_cu.
6244 (cutu_reader::cutu_reader): Update.
6245 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6246
ae090bdb
SM
62472020-05-27 Simon Marchi <simon.marchi@efficios.com>
6248
6249 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6250 struct dwarf2_per_objfile.
6251 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6252 dwarf2_per_bfd.
6253 * dwarf2/read.c (set_die_type): Update.
6254 (get_die_type_at_offset): Update.
6255
af758d11
SM
62562020-05-27 Tom Tromey <tom@tromey.com>
6257 Simon Marchi <simon.marchi@efficios.com>
6258
6259 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6260 method.
6261 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6262 get_symtab, set_symtab>: New methods.
6263 <m_symtabs>: New field.
6264 (struct dwarf2_psymtab): Derive from partial_symtab.
6265 <readin_p, get_compunit_symtab>: Declare methods.
6266 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6267 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6268 New methods.
6269 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6270 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6271 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6272 (dw2_symtab_iter_next, dw2_print_stats)
6273 (dw2_expand_symtabs_with_fullname)
6274 (dw2_expand_symtabs_matching_one)
6275 (dw_expand_symtabs_matching_file_matcher)
6276 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6277 (dw2_debug_names_iterator::next)
6278 (dw2_debug_names_map_matching_symbols)
6279 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6280 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6281 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6282 New methods.
6283 (get_compunit_symtab, process_full_comp_unit)
6284 (process_full_type_unit): Update.
6285 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6286
5989a64e
SM
62872020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6288
6289 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6290 then introduce a new dwarf2_per_objfile type.
6291 <read_line_string>: Move to the new dwarf2_per_objfile type.
6292 <objfile>: Likewise.
6293 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6294 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6295 dwarf2_per_objfile->per_bfd.
6296 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6297 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6298 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6299 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6300 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6301 (dwarf2_per_objfile::locate_sections): Rename to...
6302 (dwarf2_per_bfd::locate_sections): ... this.
6303 (dwarf2_per_objfile::get_cutu): Rename to...
6304 (dwarf2_per_bfd::get_cutu): ... this.
6305 (dwarf2_per_objfile::get_cu): Rename to...
6306 (dwarf2_per_bfd::get_cu): ... this.
6307 (dwarf2_per_objfile::get_tu): Rename to...
6308 (dwarf2_per_bfd::get_tu): ... this.
6309 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6310 (dwarf2_per_bfd::allocate_per_cu): ... this.
6311 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6312 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6313 (get_gdb_index_contents_ftype): Change parameter from
6314 dwarf2_per_objfile to dwarf2_per_bfd.
6315 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6316 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6317
a50264ba
TT
63182020-05-27 Tom Tromey <tom@tromey.com>
6319 Simon Marchi <simon.marchi@efficios.com>
6320
6321 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6322 (allocate_piece_closure): Set "per_objfile" member.
6323 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6324 (locexpr_describe_location, loclist_describe_location): Use new
6325 member.
6326 * dwarf2/read.c (read_call_site_scope)
6327 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6328 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6329 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6330 handle_data_member_location): Set per_objfile member.
6331 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6332 member.
6333 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6334
d3473f0c
TT
63352020-05-27 Tom Tromey <tom@tromey.com>
6336
6337 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6338 allocate_signatured_type>: Declare new methods.
6339 <m_num_psymtabs>: New member.
6340 (struct dwarf2_per_cu_data) <index>: New member.
6341 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6342 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6343 (create_cu_from_index_list): Use allocate_per_cu.
6344 (create_signatured_type_table_from_index)
6345 (create_signatured_type_table_from_debug_names)
6346 (create_debug_type_hash_table, add_type_unit)
6347 (read_comp_units_from_section): Use allocate_signatured_type.
6348
5717c425
TT
63492020-05-27 Tom Tromey <tom@tromey.com>
6350
6351 * psymtab.c (partial_map_expand_apply)
6352 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6353 (psym_lookup_global_symbol_language)
6354 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6355 (psym_print_stats, psym_expand_symtabs_for_function)
6356 (psym_map_symbol_filenames, psym_map_matching_symbols)
6357 (psym_expand_symtabs_matching)
6358 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6359 (maintenance_check_psymtabs): Update.
6360 * psympriv.h (struct partial_symtab) <readin_p,
6361 get_compunit_symtab>: Add objfile parameter.
6362 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6363 Likewise.
6364 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6365 get_compunit_symtab>: Likewise.
6366 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6367
45940949
TT
63682020-05-27 Tom Tromey <tom@tromey.com>
6369
6370 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6371 member.
6372 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6373 (create_cu_from_index_list)
6374 (create_signatured_type_table_from_index)
6375 (create_signatured_type_table_from_debug_names)
6376 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6377 (dwarf2_create_include_psymtab)
6378 (create_debug_type_hash_table, add_type_unit)
6379 (create_type_unit_group, read_comp_units_from_section)
6380 (dwarf2_compute_name, create_cus_hash_table)
6381 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6382 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6383 obstack.
6384 (dw2_get_real_path): Likewise. Change argument to
6385 dwarf2_per_objfile.
6386
f8c6d152
LM
63872020-05-27 Luis Machado <luis.machado@linaro.org>
6388
6389 PR tdep/26000
6390 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6391 for ldrd (immediate).
6392
e98d2e6d
PW
63932020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6394
6395 * command.h: Add comment giving the name of class_tui.
6396 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6397 create the fake command for the help for class_tui.
6398
53a47a3e
TT
63992020-05-26 Tom Tromey <tromey@adacore.com>
6400
6401 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6402 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6403 (val_atr): New function.
6404 (value_val_atr): Use it.
6405 * ada-valprint.c (print_optional_low_bound): Change low bound
6406 handling for enums.
6407 (val_print_packed_array_elements): Don't call discrete_position.
6408 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6409 discrete_position for enum types.
6410 * language.c (default_print_array_index): Change type.
6411 * language.h (struct language_defn) <la_print_array_index>: Add
6412 index_type parameter, change type of index_value.
6413 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6414 (default_print_array_index): Update.
6415 * valprint.c (maybe_print_array_index): Don't call
6416 value_from_longest. Update.
6417 (value_print_array_elements): Don't call discrete_position.
6418
0bc2354b
TT
64192020-05-26 Tom Tromey <tromey@adacore.com>
6420
6421 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6422 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6423
1218a4bf
CDA
64242020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6425
6426 PR gdb/13519
6427 * avr-tdep.c (avr_integer_to_address): Return data or code
6428 address accordingly to the second 'type' argument of the
6429 function.
6430
92651b1d
MW
64312020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6432
6433 * infcmd.c, inferior.h: (construct_inferior_arguments):
6434 Moved function from here to gdbsupport/common-inferior.{h,cc}
6435
0a4f5f8c
TT
64362020-05-23 Tom Tromey <tom@tromey.com>
6437
6438 Revert commit eca1f90c:
6439 * NEWS: Remove entry for completion styling.
6440 * completer.c (_rl_completion_prefix_display_length): Move
6441 declaration later.
6442 (gdb_fnprint): Revert.
6443 (gdb_display_match_list_1): Likewise.
6444 * cli/cli-style.c (completion_prefix_style)
6445 (completion_difference_style, completion_suffix_style): Remove.
6446 (_initialize_cli_style): Revert.
6447 * cli/cli-style.h (completion_prefix_style)
6448 (completion_difference_style, completion_suffix_style): Don't
6449 declare.
6450
e08bd6c5
PA
64512020-05-24 Pedro Alves <palves@redhat.com>
6452
6453 * symtab.c (completion_list_add_name): Return boolean indication
6454 of whether the symbol matched.
6455 (completion_list_add_symbol): Don't try to remove C++ aliases if
6456 the symbol didn't match in the first place.
6457 * symtab.h (completion_list_add_name): Return bool.
6458
ceacbf6e
SM
64592020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6460
6461 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6462 type::field.
6463
26f16254
JB
64642020-05-23 Joel Brobecker <brobecker@adacore.com>
6465
6466 GDB 9.2 released.
6467
eca1f90c
TT
64682020-05-23 Tom Tromey <tom@tromey.com>
6469
6470 * NEWS: Add entry for completion styling.
6471 * completer.c (_rl_completion_prefix_display_length): Move
6472 declaration earlier.
6473 (gdb_fnprint): Use completion_style.
6474 (gdb_display_match_list_1): Likewise.
6475 * cli/cli-style.c (completion_prefix_style)
6476 (completion_difference_style, completion_suffix_style): New
6477 globals.
6478 (_initialize_cli_style): Register new globals.
6479 * cli/cli-style.h (completion_prefix_style)
6480 (completion_difference_style, completion_suffix_style): Declare.
6481
51e2cfa2
PA
64822020-05-23 Pedro Alves <palves@redhat.com>
6483
6484 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6485 (parse_escape): Use ISDIGIT instead of isdigit.
6486 (puts_debug): Use gdb_isprint instead of isprint.
6487 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6488 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6489 ISSPACE instead of isspace.
6490 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6491 instead of isspace.
6492 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6493 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6494 instead of isxdigit and ISDIGIT instead of isdigit.
6495
80fc5e77
SM
64962020-05-22 Simon Marchi <simon.marchi@efficios.com>
6497
6498 * gdbtypes.h (struct type) <field>: New method.
6499 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6500 or type::field.
6501
3cabb6b0
SM
65022020-05-22 Simon Marchi <simon.marchi@efficios.com>
6503
6504 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6505 (TYPE_FIELDS): Use type::fields. Change all call sites that
6506 modify the propery to use type::set_fields instead.
6507
1f704f76
SM
65082020-05-22 Simon Marchi <simon.marchi@efficios.com>
6509
6510 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6511 type::num_fields instead.
6512
5e33d5f4
SM
65132020-05-22 Simon Marchi <simon.marchi@efficios.com>
6514
6515 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6516 methods.
6517 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6518 that modify the number of fields to use type::set_num_fields
6519 instead.
6520
9392ebb3
TT
65212020-05-22 Tom Tromey <tromey@adacore.com>
6522
6523 * compile/compile-object-load.h (munmap_list_free): Don't
6524 declare.
6525
7c13f4e8
AB
65262020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6527
6528 * annotate.c (annotate_source_line): Update return type, add call
6529 to update current symtab and line.
6530 * annotate.h (annotate_source_line): Update return type, and
6531 extend header comment.
6532 * source.c (info_line_command): Check annotation_level before
6533 calling annotate_source_line.
6534 * stack.c (print_frame_info): If calling annotate_source_line
6535 returns true, then don't print any other source line information.
6536
aa370940
SM
65372020-05-21 Simon Marchi <simon.marchi@efficios.com>
6538
6539 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6540
84d53fa9
SM
65412020-05-21 Simon Marchi <simon.marchi@efficios.com>
6542
6543 * coffread.c (patch_type): Remove NULL check before xfree.
6544 * corefile.c (set_gnutarget): Likewise.
6545 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6546 * exec.c (build_section_table): Likewise.
6547 * remote.c (remote_target::pass_signals): Likewise.
6548 * utils.c (n_spaces): Likewise.
6549 * cli/cli-script.c (document_command): Likewise.
6550 * i386-windows-tdep.c (core_process_module_section): Likewise.
6551 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6552
9d428aae
SM
65532020-05-20 Simon Marchi <simon.marchi@efficios.com>
6554
6555 * symfile.c (reread_symbols): Clear objfile's section_offsets
6556 vector and section indices, re-compute them by calling
6557 sym_offsets.
6558
250106a7
TT
65592020-05-20 Tom Tromey <tromey@adacore.com>
6560
6561 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6562 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6563
9a0bacfb
TV
65642020-05-20 Tom de Vries <tdevries@suse.de>
6565
6566 PR symtab/25833
6567 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6568
7b958a48
AM
65692020-05-20 Alan Modra <amodra@gmail.com>
6570
6571 PR 25993
6572 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6573 bfd_set_filename.
6574 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6575 passed to bfd_set_filename.
6576 * symfile-mem.c (add_vsyscall_page): Likewise for string
6577 passed to symbol_file_add_from_memory.
6578 (symbol_file_add_from_memory): Make name param a const char* and
6579 don't strdup.
6580
c7e97679
AM
65812020-05-20 Alan Modra <amodra@gmail.com>
6582
6583 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6584 rather than accessing bfd->filename directly.
6585 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6586 and use bfd_section_name.
6587 * dwarf2/frame.c (decode_frame_entry): Likewise.
6588 * exec.c (exec_set_section_address): Likewise.
6589 * solib-aix.c (solib_aix_bfd_open): Likewise.
6590 * stap-probe.c (get_stap_base_address): Likewise.
6591 * symfile.c (reread_symbols): Likewise.
6592
563c591b
TT
65932020-05-19 Tom Tromey <tromey@adacore.com>
6594
6595 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6596
f408d82c
SM
65972020-05-19 Simon Marchi <simon.marchi@efficios.com>
6598
6599 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6600
98c59b52
PA
66012020-05-19 Pedro Alves <palves@redhat.com>
6602
6603 * NEWS (set exec-file-mismatch): Adjust entry.
6604 * exec.c: Include "build-id.h".
6605 (validate_exec_file): Try to match build IDs instead of filenames.
6606 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6607 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6608 and pass down 'warn_if_slow'.
6609 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6610 gdb_bfd_open_closure to pass it down.
6611 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6612
4111f652
PA
66132020-05-19 Pedro Alves <palves@redhat.com>
6614
6615 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6616 * target.c (target_fileio_open_1): Rename to target_fileio_open
6617 and make extern. Use bool.
6618 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6619 (target_fileio_read_alloc_1): Adjust.
6620 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6621 (target_fileio_open_warn_if_slow): Delete declaration.
6622
ad80db5b
PA
66232020-05-19 Pedro Alves <palves@redhat.com>
6624
6625 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6626 Adjust all callers.
6627
1d6ce4d3
YS
66282020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6629
6630 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6631 whether disp is negative.
6632
9005fbbb
SM
66332020-05-19 Simon Marchi <simon.marchi@efficios.com>
6634
6635 * symfile.h (struct symfile_segment_data)
6636 <~symfile_segment_data>: Remove.
6637 <segment_info>: Change to std::vector.
6638 * symfile.c (default_symfile_segments): Update.
6639 * elfread.c (elf_symfile_segments): Update.
6640
68b888ff
SM
66412020-05-19 Simon Marchi <simon.marchi@efficios.com>
6642
6643 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6644 <segments>: New.
6645 <segment_bases, segment_sizes>: Remove.
6646 * symfile.c (default_symfile_segments): Update.
6647 * elfread.c (elf_symfile_segments): Update.
6648 * remote.c (remote_target::get_offsets): Update.
6649 * solib-target.c (solib_target_relocate_section_addresses):
6650 Update.
6651
62982abd
SM
66522020-05-19 Simon Marchi <simon.marchi@efficios.com>
6653
6654 * symfile.h (struct symfile_segment_data): Initialize fields.
6655 <~symfile_segment_data>: Add.
6656 (symfile_segment_data_up): New.
6657 (struct sym_fns) <sym_segments>: Return a
6658 symfile_segment_data_up.
6659 (default_symfile_segments): Return a symfile_segment_data_up.
6660 (free_symfile_segment_data): Remove.
6661 (get_symfile_segment_data): Return a symfile_segment_data_up.
6662 * symfile.c (default_symfile_segments): Likewise.
6663 (get_symfile_segment_data): Likewise.
6664 (free_symfile_segment_data): Remove.
6665 (symfile_find_segment_sections): Update.
6666 * elfread.c (elf_symfile_segments): Return a
6667 symfile_segment_data_up.
6668 * remote.c (remote_target::get_offsets): Update.
6669 * solib-target.c (solib_target_relocate_section_addresses):
6670 Update.
6671 * symfile-debug.c (debug_sym_segments): Return a
6672 symfile_segment_data_up.
6673
7f204339
RO
66742020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6675
e52a0f1b
RO
6676 PR build/25981
6677 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6678 Hardcode register numbers.
6679
7f204339
RO
6680 PR build/25981
6681 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6682 procfs_find_LDT_entry): Remove.
6683 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6684 procfs_find_LDT_entry): Remove.
6685 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6686 Remove.
6687
7f32a4d5
PA
66882020-05-17 Pedro Alves <palves@redhat.com>
6689 Andrew Burgess <andrew.burgess@embecosm.com>
6690 Keno Fischer <keno@juliacomputing.com>
6691
6692 PR gdb/25741
6693 * breakpoint.c (build_target_condition_list): Update comments.
6694 (build_target_command_list): Update comments and skip matching
6695 locations.
6696 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6697 a separate function. Simplify "set breakpoint auto-hw off"
6698 handling.
6699 (insert_breakpoints): Update comment.
6700 (tracepoint_locations_match): New parameter. For breakpoints,
6701 compare location types too, if the caller wants to.
6702 (handle_automatic_hardware_breakpoints): New functions.
6703 (bp_location_is_less_than): Also sort by location type and
6704 hardware breakpoint length.
6705 (update_global_location_list): Handle "set breakpoint auto-hw on"
6706 here.
6707 (update_breakpoint_locations): Ask breakpoint_locations_match to
6708 ignore location types.
6709
7d93a1e0
SM
67102020-05-16 Simon Marchi <simon.marchi@efficios.com>
6711
6712 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6713 type::name instead.
6714
d0e39ea2
SM
67152020-05-16 Simon Marchi <simon.marchi@efficios.com>
6716
6717 * gdbtypes.h (struct type) <name, set_name>: New methods.
6718 (TYPE_CODE): Use type::name. Change all call sites used to set
6719 the name to use type::set_name instead.
6720
2dab0c7b
TT
67212020-05-16 Tom Tromey <tom@tromey.com>
6722
6723 * top.c (quit_force): Update.
6724 * infrun.c (handle_no_resumed): Update.
6725 * top.h (all_uis): New function.
6726 (ALL_UIS): Remove.
6727
59f7bd8d
SM
67282020-05-16 Simon Marchi <simon.marchi@efficios.com>
6729
6730 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6731
9bf058f0
PA
67322020-05-16 Pedro Alves <palves@redhat.com>
6733
6734 * ia64-linux-nat.c
6735 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6736 Declare method.
6737 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6738
8f86ae1a
SM
67392020-05-15 Simon Marchi <simon.marchi@efficios.com>
6740
6741 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6742 (sparc64_adi_info): Likewise.
6743
d6bc0792
TT
67442020-05-15 Tom Tromey <tom@tromey.com>
6745
6746 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6747 block_objfile.
6748 (lookup_objfile_from_block): Remove.
6749 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6750 (lookup_global_symbol): Use block_objfile.
6751 * symtab.h (lookup_objfile_from_block): Don't declare.
6752 * printcmd.c (clear_dangling_display_expressions): Use
6753 block_objfile.
6754 * parse.c (operator_check_standard): Use block_objfile.
6755
8c14c3a3
TT
67562020-05-15 Tom Tromey <tom@tromey.com>
6757
6758 * language.c (language_alloc_type_symbol): Set
6759 SYMBOL_SECTION.
6760 * symtab.c (initialize_objfile_symbol): Remove.
6761 (allocate_symbol): Remove.
6762 (allocate_template_symbol): Remove.
6763 * dwarf2/read.c (fixup_go_packaging): Use "new".
6764 (new_symbol): Use "new".
6765 (read_variable): Don't call initialize_objfile_symbol. Use
6766 "new".
6767 (read_func_scope): Use "new".
6768 * xcoffread.c (process_xcoff_symbol): Don't call
6769 initialize_objfile_symbol.
6770 (SYMBOL_DUP): Remove.
6771 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6772 "new".
6773 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6774 (allocate_template_symbol): Don't declare.
6775 (struct symbol): Add copy constructor. Change defaults.
6776 * jit.c (finalize_symtab): Use "new".
6777 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6778 Use "new".
6779 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6780 (common_block_end): Use "new".
6781 * mdebugread.c (parse_symbol): Use "new".
6782 (new_symbol): Likewise.
6783
5b4a1a8d
PW
67842020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6785
6786 * NEWS: Mention changes to help and apropos.
6787
57b4f16e
PW
67882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6789
6790 * command.h (enum command_class): Improve comments, document
6791 that class_alias is for user-defined aliases, give the class
6792 name for each class, remove unused class_xdb.
6793 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6794 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6795 by a precise class.
6796 * infcmd.c (_initialize_infcmd): Likewise.
6797 * reverse.c (_initialize_reverse): Likewise.
6798 * stack.c (_initialize_stack): Likewise.
6799 * symfile.c (_initialize_symfile): Likewise.
6800 * tracepoint.c (_initialize_tracepoint): Likewise.
6801
7c05caf7
PW
68022020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6803
6804 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6805 when their aliased command is traversed.
6806 (help_cmd): Add fput_command_names_styled call to
6807 output command name and aliases when command has an alias.
6808
3b3aaacb
PW
68092020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6810
6811 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6812 * cli/cli-decode.c (help_cmd_list): Declare as static,
6813 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6814 a command together with the command.
6815 (fput_command_name_styled, fput_command_names_styled): New functions.
6816 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6817 fput_command_name_styled.
6818 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6819 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6820
7aa1b46f
PW
68212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6822
6823 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6824 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6825 * command.h (cmd_show_list): Likewise.
6826 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6827 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6828
89bcba74
PW
68292020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6830
6831 * unittests/command-def-selftests.c (traverse_command_structure):
6832 Verify all commands of a list have the same prefix command and
6833 that only the top cmdlist commands have a null prefix.
6834
3f4d92eb
PW
68352020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6836
6837 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6838 as prefix, not one of its aliases.
6839 (set_cmd_prefix): Remove.
6840 (do_add_cmd): Centralize the setting of the prefix of a command, when
6841 command is defined after its full chain of prefix commands.
6842 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6843 (add_setshow_cmd_full): Likewise.
6844 (update_prefix_field_of_prefixed_commands): New function.
6845 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6846 update_prefix_field_of_prefixed_commands.
6847 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6848 addresses of remote_set_cmdlist and remote_show_cmdlist given
6849 as argument, not the address of an argument.
6850 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6851 * gdb/remote.c (_initialize_remote): Likewise.
6852
0605465f
PW
68532020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6854
6855 * cli/cli-cmds.c (alias_command): Check for an existing alias
6856 using lookup_cmd_composition, as valid_command_p is too strict
6857 and forbids aliases that are the prefix of an existing alias
6858 or command.
6859 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6860 command is properly recognised as a valid command.
6861
58e6ac70
PW
68622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6863
6864 * unittests/help-doc-selftests.c: Rename to
6865 unittests/command-def-selftests.c
6866 * unittests/command-def-selftests.c (help_doc_tests): Update some
6867 comments.
6868 (command_structure_tests, traverse_command_structure): New namespace
6869 and function.
6870 (command_structure_invariants_tests): New function.
6871 (_initialize_command_def_selftests) Renamed from
6872 _initialize_help_doc_selftests, register command_structure_invariants
6873 selftest.
6874
a7b9ceb8
PW
68752020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6876
6877 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6878 an alias of 'show'.
6879
b2188a06
JB
68802020-05-15 Joel Brobecker <brobecker@adacore.com>
6881
6882 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6883 ada_is_fixed_point_type. Update all callers.
6884 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6885 all callers.
6886 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6887 Update all callers.
6888 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6889 print_fixed_point_type. Update all callers.
6890 * ada-valprint.c (ada_value_print_num): Replace call to
6891 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6892
a51951c2
KB
68932020-05-14 Kevin Buettner <kevinb@redhat.com>
6894
6895 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6896 processors.
6897 (cpu_supports_bts): Add CV_AMD case.
6898
29d6859f
LM
68992020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6900 Simon Marchi <simon.marchi@efficios.com>
6901
6902 * infrun.c (stop_all_threads): Collect multiple wait events at
6903 each pass.
6904
78134374
SM
69052020-05-14 Simon Marchi <simon.marchi@efficios.com>
6906
6907 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6908 type::code instead.
6909
67607e24
SM
69102020-05-14 Simon Marchi <simon.marchi@efficios.com>
6911
6912 * gdbtypes.h (struct type) <code, set_code>: New methods.
6913 (TYPE_CODE): Use type::code. Change all call sites used to set
6914 the code to use type::set_code instead.
6915
a05575d3
TBA
69162020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6917 Tom de Vries <tdevries@suse.de>
6918 Pedro Alves <palves@redhat.com>
6919
6920 PR threads/25478
6921 * infrun.c (stop_all_threads): Do NOT ignore
6922 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6923 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6924 received.
6925 (handle_no_resumed): Remove code handling a live inferior with no
6926 threads.
6927 * remote.c (has_single_non_exited_thread): New.
6928 (remote_target::update_thread_list): Do not delete a thread if is
6929 the last thread of the process.
6930 * thread.c (thread_select): Call delete_exited_threads instead of
6931 prune_threads.
6932
6ad82919
TBA
69332020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6934
6935 * infrun.c (stop_all_threads): Enable/disable thread events of all
6936 targets. Move a debug message denoting the end of the function
6937 into the SCOPED_EXIT block.
6938
d890404b
TBA
69392020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6940
6941 * process-stratum-target.h: Include <set>.
6942 (all_non_exited_process_targets, switch_to_target_no_thread): New
6943 function declarations.
6944 * process-stratum-target.c (all_non_exited_process_targets)
6945 (switch_to_target_no_thread): New function implementations.
6946
293b3ebc
TBA
69472020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6948
6949 * infrun.c (handle_inferior_event): Extract out a piece of code
6950 into...
6951 (mark_non_executing_threads): ...this new function.
6952
7ca9b62a
TBA
69532020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6954
6955 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6956 use.
6957
fc75c28b
TBA
69582020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6959
6960 * regcache.c (regcache_read_pc_protected): New function
6961 implementation that returns 0 if the PC cannot read via
6962 'regcache_read_pc'.
6963 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6964 instead of 'regcache_read_pc'.
6965 (keep_going_pass_signal): Ditto.
6966
a89febbd
TT
69672020-05-13 Tom Tromey <tromey@adacore.com>
6968
6969 * ada-lang.c (align_value): Remove.
6970 (ada_template_to_fixed_record_type_1): Use align_up.
6971
f7e23710
TBA
69722020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6973
6974 * async-event.c: Update the copyright year.
6975 * async-event.h: Update the copyright year.
6976
02ff80c2
SM
69772020-05-12 Simon Marchi <simon.marchi@efficios.com>
6978
6979 * objfiles.h (is_addr_in_objfile,
6980 shared_objfile_contains_address_p): Return bool.
6981 * objfile.c (is_addr_in_objfile,
6982 shared_objfile_contains_address_p): Return bool.
6983
4fd6c7e8
TT
69842020-05-11 Tom Tromey <tromey@adacore.com>
6985
6986 * cli/cli-cmds.c (info_command): Restore.
6987 (_initialize_cli_cmds): Use add_prefix_command for "info".
6988 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6989
5eb68a39
TT
69902020-05-11 Tom Tromey <tromey@adacore.com>
6991
6992 * ada-lang.c (ada_value_primitive_field): Now public.
6993 * ada-lang.h (ada_value_primitive_field): Declare.
6994 * ada-valprint.c (print_field_values): Use
6995 ada_value_primitive_field for wrapper fields.
6996
7666722f
TV
69972020-05-11 Tom de Vries <tdevries@suse.de>
6998
6999 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7000 MODULE_DOMAIN.
7001
3ee6bb11
TV
70022020-05-11 Tom de Vries <tdevries@suse.de>
7003
7004 PR symtab/25941
7005 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7006 with length 0, if not gdb-produced.
7007 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7008
43434996
TV
70092020-05-09 Tom de Vries <tdevries@suse.de>
7010
7011 PR gdb/25955
7012 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7013 calculation.
7014
2f78cffc
TT
70152020-05-09 Tom Tromey <tom@tromey.com>
7016
7017 * top.c (server_command): Now bool.
7018 * top.h (server_command): Now bool.
7019
4f7bc5ed
TT
70202020-05-08 Tom Tromey <tromey@adacore.com>
7021
7022 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7023 already being processed.
7024
8be4b118
TT
70252020-05-08 Tom Tromey <tom@tromey.com>
7026
7027 * printcmd.c (struct display) <next>: Remove.
7028 <display>: New constructor.
7029 <exp_string>: Now a std::string.
7030 <enabled_p>: Now a bool.
7031 (display_number): Move definition earlier.
7032 (displays): Rename from display_chain. Now a std::vector.
7033 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7034 (display_command): Update.
7035 (do_one_display, disable_display)
7036 (enable_disable_display_command, do_enable_disable_display):
7037 Update.
7038 (free_display): Remove.
7039 (clear_displays): Rewrite.
7040 (delete_display): Update.
7041 (map_display_numbers): Use function_view. Remove "data"
7042 parameter. Update.
7043 (do_delete_display): Remove.
7044 (undisplay_command): Update.
7045 (do_one_display, do_displays, disable_display)
7046 (info_display_command): Update.
7047 (do_enable_disable_display): Remove.
7048 (enable_disable_display_command)
7049 (clear_dangling_display_expressions): Update.
7050
94c93c35
TT
70512020-05-08 Tom Tromey <tom@tromey.com>
7052
7053 * symtab.c (set_symbol_cache_size)
7054 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7055 (maintenance_print_symbol_cache_statistics): Update.
7056 * symmisc.c (print_symbol_bcache_statistics)
7057 (print_objfile_statistics, maintenance_print_objfiles)
7058 (maintenance_info_symtabs, maintenance_check_symtabs)
7059 (maintenance_expand_symtabs, maintenance_info_line_tables):
7060 Update.
7061 * symfile-debug.c (set_debug_symfile): Update.
7062 * source.c (forget_cached_source_info): Update.
7063 * python/python.c (gdbpy_progspaces): Update.
7064 * psymtab.c (maintenance_info_psymtabs): Update.
7065 * probe.c (parse_probes): Update.
7066 * linespec.c (iterate_over_all_matching_symtabs)
7067 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7068 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7069 * exec.c (exec_target::close): Update.
7070 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7071 * breakpoint.c (print_one_breakpoint_location)
7072 (create_longjmp_master_breakpoint)
7073 (create_std_terminate_master_breakpoint): Update.
7074 * progspace.c (program_spaces): Now a std::vector.
7075 (maybe_new_address_space): Update.
7076 (add_program_space): Remove.
7077 (program_space::program_space): Update.
7078 (remove_program_space): Update.
7079 (number_of_program_spaces): Remove.
7080 (print_program_space, update_address_spaces): Update.
7081 * progspace.h (program_spaces): Change type.
7082 (ALL_PSPACES): Remove.
7083 (number_of_program_spaces): Don't declare.
7084 (struct program_space) <next>: Remove.
7085
a1fd1ac9
TT
70862020-05-08 Tom Tromey <tom@tromey.com>
7087
7088 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7089 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7090 (enable_break): Update.
7091 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7092 (frv_fdpic_find_canonical_descriptor): Update.
7093 (frv_fetch_objfile_link_map): Update.
7094 * progspace.c (program_space::free_all_objfiles): Update.
7095 (program_space::solibs): New method.
7096 * progspace.h (struct program_space) <solibs>: New method.
7097 * solist.h (master_so_list): Don't declare.
7098 (ALL_SO_LIBS): Remove.
7099 * solib.h (so_list_head): Remove.
7100 (update_solib_list): Update comment.
7101 * solib.c (master_so_list): Remove.
7102 (solib_used, update_solib_list, solib_add)
7103 (info_sharedlibrary_command, clear_solib)
7104 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7105
38eae084
TT
71062020-05-08 Tom Tromey <tom@tromey.com>
7107
7108 * extension.c (extension_languages): Now a std::array.
7109 (ALL_EXTENSION_LANGUAGES): Remove.
7110 (get_ext_lang_defn, get_ext_lang_of_file)
7111 (eval_ext_lang_from_control_command): Update.
7112 (finish_ext_lang_initialization)
7113 (auto_load_ext_lang_scripts_for_objfile)
7114 (ext_lang_type_printers::ext_lang_type_printers)
7115 (apply_ext_lang_type_printers)
7116 (ext_lang_type_printers::~ext_lang_type_printers)
7117 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7118 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7119 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7120 (get_matching_xmethod_workers, ext_lang_colorize)
7121 (ext_lang_before_prompt): Update.
7122 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7123
596dc4ad
TT
71242020-05-08 Tom Tromey <tom@tromey.com>
7125
7126 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7127 overload.
7128 <swap_string, m_string>: Remove.
7129 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7130 Update.
7131 * stabsread.c (define_symbol, read_type): Update.
7132 * linespec.c (find_linespec_symbols): Update.
7133 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7134 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7135 * dbxread.c (read_dbx_symtab): Update.
7136 * cp-support.h (cp_canonicalize_string_full)
7137 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7138 Return unique_xmalloc_ptr.
7139 * cp-support.c (inspect_type): Update.
7140 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7141 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7142 Likewise.
7143 * c-typeprint.c (print_name_maybe_canonical): Update.
7144 * break-catch-throw.c (check_status_exception_catchpoint):
7145 Update.
7146
bf4cb9be
TV
71472020-05-08 Tom de Vries <tdevries@suse.de>
7148
7149 * infrun.c (follow_fork): Copy current_line and current_symtab to
7150 child thread.
7151
a1b68f28
SM
71522020-05-07 Simon Marchi <simon.marchi@efficios.com>
7153
7154 * async-event.c (struct async_signal_handler, struct
7155 async_event_handler): Reformat, remove typedef.
7156
98d48915
SM
71572020-05-07 Simon Marchi <simon.marchi@efficios.com>
7158
7159 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7160 access thistype->main_type->dyn_prop_list directly.
7161
7aa91313
SM
71622020-05-07 Simon Marchi <simon.marchi@efficios.com>
7163
7164 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7165 (remove_dyn_prop): Remove. Update all users to use
7166 type::remove_dyn_prop.
7167 * gdbtypes.c (remove_dyn_prop): Rename to...
7168 (type::remove_dyn_prop): ... this.
7169
5c54719c
SM
71702020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7171
7172 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7173 (add_dyn_prop): Remove. Update all users to use
7174 type::add_dyn_prop.
7175 * gdbtypes.c (add_dyn_prop): Rename to...
7176 (type::add_dyn_prop): ... this.
7177
24e99c6c
SM
71782020-05-07 Simon Marchi <simon.marchi@efficios.com>
7179
7180 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7181 (get_dyn_prop): Remove. Update all users to use
7182 type::dyn_prop.
7183 * gdbtypes.c (get_dyn_prop): Rename to...
7184 (type::dyn_prop): ... this.
7185
0d4bf016
SM
71862020-05-06 Simon Marchi <simon.marchi@efficios.com>
7187
7188 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7189
ac4a4f1c
SM
71902020-05-06 Simon Marchi <simon.marchi@efficios.com>
7191
7192 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7193 instruction, skip it if it's there.
7194
a3bbacc1
SM
71952020-05-05 Simon Marchi <simon.marchi@efficios.com>
7196
7197 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7198
c3236f84
SM
71992020-05-04 Simon Marchi <simon.marchi@efficios.com>
7200
7201 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7202 * gdbtypes.c (recursive_dump_type): Remove use of
7203 TYPE_INCOMPLETE.
7204
3b6acaee
TT
72052020-05-03 Tom Tromey <tom@tromey.com>
7206
7207 * breakpoint.c (catch_command, tcatch_command): Remove.
7208 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7209 add_show_prefix_cmd.
7210 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7211 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7212 Remove.
7213 (add_internal_problem_command): Use add_basic_prefix_cmd,
7214 add_show_prefix_cmd.
7215 * mips-tdep.c (set_mipsfpu_command): Remove.
7216 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7217 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7218 (_initialize_index_cache): Use add_basic_prefix_cmd.
7219 * memattr.c (dummy_cmd): Remove.
7220 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7221 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7222 (_initialize_tui_win): Use add_basic_prefix_cmd,
7223 add_show_prefix_cmd.
7224 * cli/cli-logging.c (set_logging_command): Remove.
7225 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7226 add_show_prefix_cmd.
7227 (show_logging_command): Remove.
7228 * target.c (target_command): Remove.
7229 (add_target): Use add_basic_prefix_cmd.
7230
a51119cd
HD
72312020-05-02 Hannes Domani <ssbssa@yahoo.de>
7232
7233 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7234
652fc23a 72352020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7236
652fc23a
PW
7237 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7238 info_command.
7239
117539e6
KR
72402020-04-30 Kamil Rytarowski <n54@gmx.com>
7241
7242 * nbsd-nat.c (nbsd_enable_proc_events)
7243 (nbsd_nat_target::post_startup_inferior): Add.
7244 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7245 (nbsd_nat_target::update_thread_list): Rewrite.
7246 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7247 "PTRACE_LWP_CREATE".
7248 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7249
102e38eb 72502020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7251
102e38eb
PW
7252 * stack.c (_initialize_stack): Remove duplicated creation
7253 of "frame" command and "f" alias.
7254
ee9d1e5f
HD
72552020-04-30 Hannes Domani <ssbssa@yahoo.de>
7256
7257 PR gdb/18706
7258 * gdbtypes.c (check_typedef): Calculate size of array of
7259 stubbed type.
7260
627c7fb8
HD
72612020-04-30 Hannes Domani <ssbssa@yahoo.de>
7262
7263 PR gdb/15559
7264 * i386-tdep.c (i386_push_dummy_call): Call
7265 i386_thiscall_push_dummy_call.
7266 (i386_thiscall_push_dummy_call): New function.
7267 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7268 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7269 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7270
ffc2844e
SM
72712020-04-29 Simon Marchi <simon.marchi@efficios.com>
7272
7273 * gdbarch.sh (do_read): Add shellcheck disable directive for
7274 warning SC2162.
7275
1207375d
SM
72762020-04-29 Simon Marchi <simon.marchi@efficios.com>
7277
7278 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7279 "referenced but not assigned" warning.
7280
9fdb2916
SM
72812020-04-29 Simon Marchi <simon.marchi@efficios.com>
7282
7283 * gdbarch.sh: Remove code that sets fallbackdefault.
7284
759cea5e
SM
72852020-04-29 Simon Marchi <simon.marchi@efficios.com>
7286
7287 * gdbarch.sh: Use shell operators && and || instead of
7288 -a and -o.
7289
cb02ab24
SM
72902020-04-29 Simon Marchi <simon.marchi@efficios.com>
7291
7292 * gdbarch.sh: Use $(...) instead of `...`.
7293
a6fc5ffc
SM
72942020-04-29 Simon Marchi <simon.marchi@efficios.com>
7295
7296 * gdbarch.sh: Use double quotes around variables.
7297
8d113d13
SM
72982020-04-29 Simon Marchi <simon.marchi@efficios.com>
7299
7300 * gdbarch.sh: Use %s with printf, instead of variables in the
7301 format string.
7302
ed6acedd
TT
73032020-04-29 Tom Tromey <tromey@adacore.com>
7304
7305 PR ada/25875:
7306 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7307 type fields here.
7308 (read_enumeration_type): Call
7309 update_enumeration_type_from_children later. Update comments.
7310 (process_enumeration_scope): Don't create type fields.
7311
b68b1b58
KR
73122020-04-29 Kamil Rytarowski <n54@gmx.com>
7313
7314 * nbsd-tdep.c: Include "xml-syscall.h".
7315 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7316
f94b2e03
KR
73172020-04-29 Kamil Rytarowski <n54@gmx.com>
7318
7319 * nbsd-nat.c: Include "sys/wait.h".
7320 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7321 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7322 (nbsd_nat_target::remove_exec_catchpoint)
7323 (nbsd_nat_target::set_syscall_catchpoint): Add.
7324 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7325 (nbsd_nat_target::insert_exec_catchpoint)
7326 (nbsd_nat_target::remove_exec_catchpoint)
7327 (nbsd_nat_target::set_syscall_catchpoint): Add.
7328 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7329 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7330 `nbsd_get_syscall_number'.
7331
fc49bc72
TT
73322020-04-29 Tom Tromey <tom@tromey.com>
7333
7334 * stack.c (print_block_frame_labels): Remove.
7335
d642b692
HD
73362020-04-29 Hannes Domani <ssbssa@yahoo.de>
7337
7338 PR gdb/17320
7339 * ada-valprint.c (val_print_packed_array_elements): Move array
7340 end bracket to new line.
7341 (ada_val_print_string): Remove extra spaces before first array
7342 element.
7343 * c-valprint.c (c_value_print_array): Likewise.
7344 * m2-valprint.c (m2_print_array_contents): Likewise.
7345 (m2_value_print_inner): Likewise.
7346 * p-valprint.c (pascal_value_print_inner): Likewise.
7347 * valprint.c (generic_val_print_array): Likewise.
7348 (value_print_array_elements): Move first array element and array
7349 end bracket to new line.
7350
ea90f227
TV
73512020-04-29 Tom de Vries <tdevries@suse.de>
7352
7353 PR symtab/25889
7354 * linespec.c (find_method): Fix ix calculation.
7355
4498ef4f
KR
73562020-04-28 Kamil Rytarowski <n54@gmx.com>
7357
7358 * syscalls/update-netbsd.sh: New file.
7359 * syscalls/netbsd.xml: Regenerate.
7360 * data-directory/Makefile.in: Register `netbsd.xml' in
7361 `SYSCALLS_FILES'.
7362
a55e30b5
SM
73632020-04-28 Simon Marchi <simon.marchi@efficios.com>
7364
7365 * syscalls/update-freebsd.sh: Add double quotes.
7366
2b2fbab8
TT
73672020-04-28 Tom Tromey <tom@tromey.com>
7368
7369 * NEWS: Update.
7370 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7371 (cmdpy_init): Allow class_tui.
7372
a65189c9
TV
73732020-04-28 Mark Williams <mark@myosotissp.com>
7374
7375 PR gdb/24480
7376 * dwarf2read.c: Add missing assingments to list_in_scope when
7377 start_symtab was already called.
7378
1b95cdb7
SM
73792020-04-28 Simon Marchi <simon.marchi@efficios.com>
7380
7381 PR gdb/25881
7382 * dwarf2/read.c (offset_map_type): Use
7383 gdb:hash_enum<sect_offset> as hash function.
7384
15cd93d0
TV
73852020-04-28 Tom de Vries <tdevries@suse.de>
7386
7387 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7388 with DW_AT_signature.
7389
1eb39914
SM
73902020-04-27 Simon Marchi <simon.marchi@efficios.com>
7391
7392 * configure.ac: Remove check for fs_base/gs_base in
7393 user_regs_struct.
7394 * configure: Re-generate.
7395 * config.in: Re-generate.
7396 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7397 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7398 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7399
991a3e2e
LM
74002020-04-27 Luis Machado <luis.machado@linaro.org>
7401
7402 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7403 problematic inline frame unwinding situation.
7404 * frame.c (frame_id_computed_p): New function.
7405 * frame.h (frame_id_computed_p): New prototype.
7406
361ba0e8
TT
74072020-04-26 Tom Tromey <tom@tromey.com>
7408
7409 * command.h (enum command_class) <class_pseudo>: Remove.
7410
bc3609fd
PW
74112020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7412
7413 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7414 and whitespace.
7415
b9771db7
KR
74162020-04-25 Kamil Rytarowski <n54@gmx.com>
7417
ec16513e
SM
7418 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7419 `PT_GET_PROCESS_STATE' block.
b9771db7 7420
7151c1af
TT
74212020-04-24 Tom Tromey <tom@tromey.com>
7422
7423 * symtab.h (symbol_get_demangled_name): Don't declare.
7424 * symtab.c (symbol_get_demangled_name): Remove.
7425 (general_symbol_info::natural_name)
7426 (general_symbol_info::demangled_name): Update.
7427
906bb4c5
TT
74282020-04-24 Tom Tromey <tom@tromey.com>
7429
7430 PR rust/25025:
7431 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7432
bcfe6157
TT
74332020-04-24 Tom Tromey <tom@tromey.com>
7434
7435 PR symtab/12707:
7436 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7437 exists.
7438 (new_symbol): Likewise.
7439 * compile/compile-object-load.c (get_out_value_type): Use
7440 symbol_matches_search_name.
7441
f049a313
TT
74422020-04-24 Tom Tromey <tom@tromey.com>
7443
7444 * dwarf2/read.c (add_partial_symbol): Do not call
7445 compute_and_set_names.
7446
76e288d1
TT
74472020-04-24 Tom Tromey <tom@tromey.com>
7448
7449 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7450 overload.
7451
2467f4f6
TT
74522020-04-24 Tom Tromey <tom@tromey.com>
7453
7454 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7455 (add_psymbol_to_list): New overload. Make old overload call new
7456 one.
7457 * psympriv.h (add_psymbol_to_list): New overload.
7458
e61108c9
TT
74592020-04-24 Tom Tromey <tom@tromey.com>
7460
7461 * dwarf2/read.c (partial_die_info::read) <case
7462 DW_AT_linkage_name>: Use value_as_string.
7463 (dwarf2_string_attr): Use value_as_string.
7464 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7465 method.
7466 * dwarf2/attribute.c (attribute::value_as_string): New method.
7467
8c87a452
TT
74682020-04-24 Tom Tromey <tom@tromey.com>
7469
7470 * symtab.c (general_symbol_info::natural_name)
7471 (general_symbol_info::demangled_name): Check for language_rust.
7472
787de330
TT
74732020-04-24 Tom Tromey <tom@tromey.com>
7474
7475 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7476 (dwarf2_physname): ... from here.
7477 (partial_die_info::read): Add Rust "{" hack.
7478
ff985671
TT
74792020-04-24 Tom Tromey <tom@tromey.com>
7480
7481 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7482 method.
7483 (symbol_set_demangled_name): Don't declare.
7484 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7485 symbol_set_demangled_name.
7486 (general_symbol_info::set_language)
7487 (general_symbol_info::compute_and_set_names): Update.
7488 * minsyms.c (minimal_symbol_reader::install): Update.
7489 * dwarf2/read.c (new_symbol): Update.
7490
1acda803
TT
74912020-04-24 Tom Tromey <tromey@adacore.com>
7492
7493 PR python/23662:
7494 * python/py-type.c (convert_field): Handle
7495 FIELD_LOC_KIND_DWARF_BLOCK.
7496 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7497 (typy_get_dynamic): Nw function.
7498 (type_object_getset): Add "dynamic".
7499 * NEWS: Add entry.
7500
d656f129
TT
75012020-04-24 Tom Tromey <tromey@adacore.com>
7502
7503 * ada-typeprint.c (print_choices, print_variant_part)
7504 (print_record_field_types_dynamic): New functions.
7505 (print_record_field_types): Use print_record_field_types_dynamic.
7506
7d79de9a
TT
75072020-04-24 Tom Tromey <tromey@adacore.com>
7508
7509 * dwarf2/read.c (handle_data_member_location): New overload.
7510 (dwarf2_add_field): Use it.
7511 (decode_locdesc): Add "computed" parameter. Update comment.
7512 * gdbtypes.c (is_dynamic_type_internal): Also look for
7513 FIELD_LOC_KIND_DWARF_BLOCK.
7514 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7515 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7516 virtual base classes.
7517 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7518 FIELD_LOC_KIND_DWARF_BLOCK.
7519
f8e89861
TT
75202020-04-24 Tom Tromey <tromey@adacore.com>
7521
7522 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7523 * gdbtypes.c (is_dynamic_type_internal): Check
7524 TYPE_HAS_DYNAMIC_LENGTH.
7525 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7526 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7527 New macros.
7528 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7529 constant.
7530
9c6a1327
TT
75312020-04-24 Tom Tromey <tromey@adacore.com>
7532
7533 * dwarf2/read.c (struct variant_field): Rewrite.
7534 (struct variant_part_builder): New.
7535 (struct nextfield): Remove "variant" field. Add "offset".
7536 (struct field_info): Add "current_variant_part" and
7537 "variant_parts".
7538 (alloc_discriminant_info): Remove.
7539 (alloc_rust_variant): New function.
7540 (quirk_rust_enum): Update.
7541 (dwarf2_add_field): Set "offset" member. Don't handle
7542 DW_TAG_variant_part.
7543 (offset_map_type): New typedef.
7544 (convert_variant_range, create_one_variant)
7545 (create_one_variant_part, create_variant_parts)
7546 (add_variant_property): New functions.
7547 (dwarf2_attach_fields_to_type): Call add_variant_property.
7548 (read_structure_type): Don't handle DW_TAG_variant_part.
7549 (handle_variant_part, handle_variant): New functions.
7550 (handle_struct_member_die): Use them.
7551 (process_structure_scope): Don't handle variant parts.
7552 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7553 (struct discriminant_info): Remove.
7554 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7555 (struct main_type) <flag_discriminated_union>: Remove.
7556 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7557 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7558 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7559 Update.
7560 * valops.c (value_union_variant): Remove.
7561 * value.h (value_union_variant): Don't declare.
7562
b249d2c2
TT
75632020-04-24 Tom Tromey <tromey@adacore.com>
7564
7565 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7566 (ada_value_primitive_packed_val): Update.
7567 * ada-valprint.c (ada_value_print_1): Update.
7568 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7569 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7570 just an address. Use evaluate_for_locexpr_baton.
7571 (dwarf2_evaluate_property): Update.
7572 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7573 array_view.
7574 * findvar.c (default_read_var_value): Update.
7575 * gdbtypes.c (compute_variant_fields_inner)
7576 (resolve_dynamic_type_internal): Update.
7577 (resolve_dynamic_type): Change type of valaddr parameter.
7578 * gdbtypes.h (resolve_dynamic_type): Update.
7579 * valarith.c (value_subscripted_rvalue): Update.
7580 * value.c (value_from_contents_and_address): Update.
7581
61122aa9
TT
75822020-04-24 Tom Tromey <tromey@adacore.com>
7583
7584 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7585 "push_initial_value" parameter.
7586 (dwarf2_evaluate_property): Likewise.
7587 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7588
ef83a141
TT
75892020-04-24 Tom Tromey <tromey@adacore.com>
7590
7591 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7592 (variant::matches, compute_variant_fields_recurse)
7593 (compute_variant_fields_inner, compute_variant_fields): New
7594 functions.
7595 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7596 Use resolved_type after type is made.
7597 (operator==): Add new cases.
7598 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7599 (struct discriminant_range, struct variant, struct variant_part):
7600 New.
7601 (union dynamic_prop_data) <variant_parts, original_type>: New
7602 members.
7603 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7604 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7605 constants.
7606 * value.c (unpack_bits_as_long): Now public.
7607 * value.h (unpack_bits_as_long): Declare.
7608
675127ec
TT
76092020-04-24 Tom Tromey <tromey@adacore.com>
7610
7611 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7612 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7613
9852ceef
HD
76142020-04-24 Hannes Domani <ssbssa@yahoo.de>
7615
7616 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7617
7632c6ce
KR
76182020-04-24 Kamil Rytarowski <n54@gmx.com>
7619
7620 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7621 (remove_fork_catchpoint, post_startup_inferior)
7622 (post_attach): Move...
7623 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7624 (remove_fork_catchpoint, post_startup_inferior)
7625 (post_attach): ...here.
7626 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7627 (remove_fork_catchpoint, post_startup_inferior)
7628 (post_attach): Move...
7629 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7630 (remove_fork_catchpoint, post_startup_inferior)
7631 (post_attach): ...here.
7632
7be2bb4f
TT
76332020-04-24 Tom Tromey <tromey@adacore.com>
7634
7635 * nat/windows-nat.h (struct windows_thread_info)
7636 <pc_adjusted>: New member.
7637 * windows-nat.c (windows_fetch_one_register): Check
7638 pc_adjusted.
7639 (windows_nat_target::get_windows_debug_event)
7640 (windows_nat_target::wait): Set pc_adjusted.
7641
f80cb3b4
TV
76422020-04-24 Tom de Vries <tdevries@suse.de>
7643
7644 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7645 Run gdb-add-index inside temp dir.
7646
29514b87
TT
76472020-04-23 Tom Tromey <tromey@adacore.com>
7648
7649 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7650 in loop.
7651
5939967b
LM
76522020-04-23 Luis Machado <luis.machado@linaro.org>
7653
7654 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7655 get_frame_register instead of gdbarch_unwind_pc.
7656
70bc38f5
TV
76572020-04-23 Tom de Vries <tdevries@suse.de>
7658
7659 * symtab.c (lookup_global_symbol): Prefer def over decl.
7660
de82891c
TV
76612020-04-23 Tom de Vries <tdevries@suse.de>
7662
7663 PR symtab/25807
7664 * block.c (best_symbol, better_symbol): Promote to external.
7665 * block.h (best_symbol, better_symbol): Declare.
7666 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7667 decl.
7668
ecc6c606
TT
76692020-04-23 Tom Tromey <tromey@adacore.com>
7670
7671 PR ada/25837:
7672 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7673 "const char *", not a "const std::string &".
7674 <name_and_matcher::operator==>: Update.
7675 * unittests/lookup_name_info-selftests.c: Change type of
7676 "result".
7677
740480b8
TT
76782020-04-23 Tom Tromey <tom@tromey.com>
7679
7680 * inferior.h (iterate_over_inferiors): Don't declare.
7681 * inferior.c (iterate_over_inferiors): Remove.
7682 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7683 Remove.
7684 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7685 use iterate_over_inferiors.
7686 (darwin_resume_inferior_it)
7687 (struct resume_inferior_threads_param)
7688 (darwin_resume_inferior_threads_it): Remove.
7689 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7690
ae3ab1f0
TV
76912020-04-23 Tom de Vries <tdevries@suse.de>
7692
7693 * blockframe.c (find_pc_partial_function): Use
7694 find_pc_sect_compunit_symtab rather than
7695 objfile->sf->qf->find_pc_sect_compunit_symtab.
7696
317d2668
TV
76972020-04-22 Tom de Vries <tdevries@suse.de>
7698
7699 PR symtab/25764
7700 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7701 in psymtabs.
7702
eea9e357
TV
77032020-04-22 Tom de Vries <tdevries@suse.de>
7704
7705 PR symtab/25801
7706 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7707 symtabs.
7708
3d5afab3
TV
77092020-04-22 Tom de Vries <tdevries@suse.de>
7710
7711 PR symtab/25700
7712 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7713 CU if already created.
7714
d43b7a2d
TBA
77152020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7716
7717 * infrun.c (displaced_step_fixup): Switch to the event_thread
7718 before calling displaced_step_restore, not after.
7719
d89edf9b
MM
77202020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7721
7722 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7723 its inferior is not recorded by us.
7724 (record_btrace_target_open): Replace call to
7725 all_non_exited_threads () with call to current_inferior
7726 ()->non_exited_threads ().
7727 (record_btrace_target::stop_recording): Likewise.
7728 (record_btrace_target::close): Likewise.
7729 (record_btrace_target::wait): Likewise.
7730 (record_btrace_target::record_stop_replaying): Likewise.
7731
5897fd49
MM
77322020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7733
7734 * btrace.c (btrace_enable): Throw an error on double enables and
7735 when enabling recording fails.
7736 (btrace_disable): Throw an error if the thread is not recorded.
7737
1a476b6d
MM
77382020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7739
7740 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7741 request if we do not have a thread_info.
7742
4778a5f8
TV
77432020-04-21 Tom de Vries <tdevries@suse.de>
7744
7745 PR gdb/25471
7746 * thread.c
7747 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7748 exception in get_frame_id.
7749
0fa7617d
TT
77502020-04-20 Tom Tromey <tromey@adacore.com>
7751
7752 * python/python.c (struct gdbpy_event): Mark move constructor as
7753 noexcept.
7754 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7755 constructor as noexcept.
7756 * completer.h (struct completion_result): Mark move constructor as
7757 noexcept.
7758 * completer.c (completion_result::completion_result): Use
7759 initialization style. Don't call reset_match_list.
7760
ad23bda0
MS
77612020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7762
7763 * MAINTAINERS (Write After Approval): Add myself.
7764
45e1f031
TT
77652020-04-18 Tom Tromey <tom@tromey.com>
7766
7767 * windows-tdep.c (init_w32_command_list)
7768 (w32_prefix_command_valid): Restore.
7769 (_initialize_windows_tdep): Call init_w32_command_list.
7770
08feed99
TT
77712020-04-18 Tom Tromey <tom@tromey.com>
7772
7773 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7774 * value.c (value_fn_field): Update.
7775 * valops.c (find_function_in_inferior)
7776 (value_allocate_space_in_inferior): Update.
7777 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7778 Update.
7779 * tui/tui-source.c (tui_source_window::set_contents): Update.
7780 * symtab.c (lookup_global_or_static_symbol)
7781 (find_function_start_sal_1, skip_prologue_sal)
7782 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7783 * symmisc.c (dump_msymbols, dump_symtab_1)
7784 (maintenance_print_one_line_table): Update.
7785 * symfile.c (init_entry_point_info, section_is_mapped)
7786 (list_overlays_command, simple_read_overlay_table)
7787 (simple_overlay_update_1): Update.
7788 * stap-probe.c (handle_stap_probe): Update.
7789 * stabsread.c (dbx_init_float_type, define_symbol)
7790 (read_one_struct_field, read_enum_type, read_range_type): Update.
7791 * source.c (info_line_command): Update.
7792 * python/python.c (gdbpy_source_objfile_script)
7793 (gdbpy_execute_objfile_script): Update.
7794 * python/py-type.c (save_objfile_types): Update.
7795 * python/py-objfile.c (py_free_objfile): Update.
7796 * python/py-inferior.c (python_new_objfile): Update.
7797 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7798 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7799 (maintenance_check_psymtabs): Update.
7800 * printcmd.c (info_address_command): Update.
7801 * objfiles.h (struct objfile) <arch>: New method, from
7802 get_objfile_arch.
7803 (get_objfile_arch): Don't declare.
7804 * objfiles.c (get_objfile_arch): Remove.
7805 (filter_overlapping_sections): Update.
7806 * minsyms.c (msymbol_is_function): Update.
7807 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7808 (output_nondebug_symbol): Update.
7809 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7810 (mdebug_expand_psymtab): Update.
7811 * machoread.c (macho_add_oso_symfile): Update.
7812 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7813 Update.
7814 * linux-fork.c (checkpoint_command): Update.
7815 * linespec.c (convert_linespec_to_sals): Update.
7816 * jit.c (finalize_symtab): Update.
7817 * infrun.c (insert_exception_resume_from_probe): Update.
7818 * ia64-tdep.c (ia64_find_unwind_table): Update.
7819 * hppa-tdep.c (internalize_unwinds): Update.
7820 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7821 Update.
7822 * gcore.c (call_target_sbrk): Update.
7823 * elfread.c (record_minimal_symbol, elf_symtab_read)
7824 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7825 (elf_gnu_ifunc_resolve_by_got): Update.
7826 * dwarf2/read.c (create_addrmap_from_index)
7827 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7828 (read_debug_names_from_section)
7829 (process_psymtab_comp_unit_reader, add_partial_symbol)
7830 (add_partial_subprogram, process_full_comp_unit)
7831 (read_file_scope, read_func_scope, read_lexical_block_scope)
7832 (read_call_site_scope, dwarf2_ranges_read)
7833 (dwarf2_record_block_ranges, dwarf2_add_field)
7834 (mark_common_block_symbol_computed, read_tag_pointer_type)
7835 (read_tag_string_type, dwarf2_init_float_type)
7836 (dwarf2_init_complex_target_type, read_base_type)
7837 (partial_die_info::read, partial_die_info::read)
7838 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7839 (dwarf2_fetch_die_loc_sect_off): Update.
7840 * dwarf2/loc.c (dwarf2_find_location_expression)
7841 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7842 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7843 (dwarf2_loc_desc_get_symbol_read_needs)
7844 (locexpr_describe_location_piece, locexpr_describe_location_1)
7845 (loclist_describe_location): Update.
7846 * dwarf2/index-write.c (write_debug_names): Update.
7847 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7848 * dtrace-probe.c (dtrace_process_dof): Update.
7849 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7850 (process_one_symbol): Update.
7851 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7852 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7853 (coff_read_enum_type): Update.
7854 * cli/cli-cmds.c (edit_command, list_command): Update.
7855 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7856 * breakpoint.c (create_overlay_event_breakpoint)
7857 (create_longjmp_master_breakpoint)
7858 (create_std_terminate_master_breakpoint)
7859 (create_exception_master_breakpoint, get_sal_arch): Update.
7860 * block.c (block_gdbarch): Update.
7861 * annotate.c (annotate_source_line): Update.
7862
0743fc83
TT
78632020-04-17 Tom Tromey <tromey@adacore.com>
7864
7865 * auto-load.c (show_auto_load_cmd): Remove.
7866 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7867 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7868 (maintenance_print_arc_command): Remove.
7869 * tui/tui-win.c (tui_command): Remove.
7870 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7871 * tui/tui-layout.c (tui_layout_command): Remove.
7872 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7873 * python/python.c (user_set_python, user_show_python): Remove.
7874 (_initialize_python): Use add_basic_prefix_cmd,
7875 add_show_prefix_cmd.
7876 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7877 (install_gdb_commands): Use add_basic_prefix_cmd,
7878 add_show_prefix_cmd.
7879 (info_guile_command): Remove.
7880 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7881 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7882 add_show_prefix_cmd.
7883 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7884 Remove do_set and do_show parameters.
7885 * cli/cli-style.c (set_style, show_style): Remove.
7886 (_initialize_cli_style): Use add_basic_prefix_cmd,
7887 add_show_prefix_cmd.
7888 (cli_style_option::add_setshow_commands): Remove do_set and
7889 do_show parameters.
7890 (cli_style_option::add_setshow_commands): Use
7891 add_basic_prefix_cmd, add_show_prefix_cmd.
7892 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7893 (set_style_name): Remove.
7894 * cli/cli-dump.c (dump_command, append_command): Remove.
7895 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7896 (tekhex_dump_command, binary_dump_command)
7897 (binary_append_command): Remove.
7898 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7899 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7900 (init_w32_command_list): Remove; move into ...
7901 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7902 * valprint.c (set_print, show_print, set_print_raw)
7903 (show_print_raw): Remove.
7904 (_initialize_valprint): Use add_basic_prefix_cmd,
7905 add_show_prefix_cmd.
7906 * typeprint.c (set_print_type, show_print_type): Remove.
7907 (_initialize_typeprint): Use add_basic_prefix_cmd,
7908 add_show_prefix_cmd.
7909 * record.c (set_record_command, show_record_command): Remove.
7910 (_initialize_record): Use add_basic_prefix_cmd,
7911 add_show_prefix_cmd.
7912 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7913 add_show_prefix_cmd.
7914 (info_command, show_command, set_debug, show_debug): Remove.
7915 * top.h (set_history, show_history): Don't declare.
7916 * top.c (set_history, show_history): Remove.
7917 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7918 (unset_tdesc_cmd): Remove.
7919 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7920 add_show_prefix_cmd.
7921 * symtab.c (info_module_command): Remove.
7922 (_initialize_symtab): Use add_basic_prefix_cmd.
7923 * symfile.c (overlay_command): Remove.
7924 (_initialize_symfile): Use add_basic_prefix_cmd.
7925 * sparc64-tdep.c (info_adi_command): Remove.
7926 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7927 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7928 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7929 add_show_prefix_cmd.
7930 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7931 (_initialize_serial): Use add_basic_prefix_cmd,
7932 add_show_prefix_cmd.
7933 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7934 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7935 add_show_prefix_cmd.
7936 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7937 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7938 add_show_prefix_cmd.
7939 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7940 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7941 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7942 add_show_prefix_cmd.
7943 * remote.c (remote_command, set_remote_cmd): Remove.
7944 (_initialize_remote): Use add_basic_prefix_cmd.
7945 * record-full.c (set_record_full_command)
7946 (show_record_full_command): Remove.
7947 (_initialize_record_full): Use add_basic_prefix_cmd,
7948 add_show_prefix_cmd.
7949 * record-btrace.c (cmd_set_record_btrace)
7950 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7951 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7952 (cmd_show_record_btrace_pt): Remove.
7953 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7954 add_show_prefix_cmd.
7955 * ravenscar-thread.c (set_ravenscar_command)
7956 (show_ravenscar_command): Remove.
7957 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7958 add_show_prefix_cmd.
7959 * mips-tdep.c (show_mips_command, set_mips_command)
7960 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7961 add_show_prefix_cmd.
7962 * maint.c (maintenance_command, maintenance_info_command)
7963 (maintenance_check_command, maintenance_print_command)
7964 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7965 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7966 add_show_prefix_cmd.
7967 (show_per_command_cmd): Remove.
7968 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7969 Remove.
7970 (maintenance_show_test_settings_cmd): Remove.
7971 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7972 add_show_prefix_cmd.
7973 * maint-test-options.c (maintenance_test_options_command):
7974 Remove.
7975 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7976 * macrocmd.c (macro_command): Remove
7977 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7978 * language.c (set_check, show_check): Remove.
7979 (_initialize_language): Use add_basic_prefix_cmd,
7980 add_show_prefix_cmd.
7981 * infcmd.c (unset_command): Remove.
7982 (_initialize_infcmd): Use add_basic_prefix_cmd.
7983 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7984 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7985 add_show_prefix_cmd.
7986 * go32-nat.c (go32_info_dos_command): Remove.
7987 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7988 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7989 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7990 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7991 (_initialize_frame): Use add_basic_prefix_cmd,
7992 add_show_prefix_cmd.
7993 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7994 (_initialize_dcache): Use add_basic_prefix_cmd,
7995 add_show_prefix_cmd.
7996 * cp-support.c (maint_cplus_command): Remove.
7997 (_initialize_cp_support): Use add_basic_prefix_cmd.
7998 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7999 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8000 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8001 add_basic_prefix_cmd, add_show_prefix_cmd.
8002 * breakpoint.c (save_command): Remove.
8003 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8004 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8005 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8006 add_show_prefix_cmd.
8007 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8008 (set_ada_command, show_ada_command): Remove.
8009 (_initialize_ada_language): Use add_basic_prefix_cmd,
8010 add_show_prefix_cmd.
8011 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8012
3557f442
KR
80132020-04-16 Kamil Rytarowski <n54@gmx.com>
8014
8015 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8016 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8017
16197208
SM
80182020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8019
8020 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8021 warning messages.
8022
00ac85d3
SM
80232020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8024
8025 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8026 import table is not at beginning of .idata section.
8027
381ce63f
PA
80282020-04-16 Pedro Alves <palves@redhat.com>
8029
8030 * inferior.c (delete_inferior): Use delete operator directly
8031 instead of delete_program_space.
8032 * progspace.c (add_program_space): New, factored out from
8033 program_space::program_space.
8034 (remove_program_space): New, factored out from
8035 delete_program_space.
8036 (program_space::program_space): Remove intro comment. Rewrite.
8037 (program_space::~program_space): Remove intro comment. Call
8038 remove_program_space.
8039 (delete_program_space): Delete.
8040 * progspace.h (program_space::program_space): Make explicit. Move
8041 intro comment here, adjusted.
8042 (program_space::~program_space): Move intro comment here,
8043 adjusted.
8044 (delete_program_space): Remove.
8045
a010605f
TT
80462020-04-16 Tom Tromey <tromey@adacore.com>
8047
8048 * windows-nat.c (windows_nat::handle_access_violation): New
8049 function.
8050 * nat/windows-nat.h (handle_access_violation): Declare.
8051 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8052 windows-nat.c. Call handle_access_violation.
8053
efba5c23
TV
80542020-04-16 Tom de Vries <tdevries@suse.de>
8055
8056 PR symtab/25791
8057 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8058 CUs without psymtab.
8059
97ed802d
KB
80602020-04-16 Kevin Buettner <kevinb@redhat.com>
8061
8062 * python/python.c (do_start_initialization): Don't call
8063 PyEval_InitThreads for Python 3.9 and beyond.
8064
c7d64809
KR
80652020-04-15 Kamil Rytarowski <n54@gmx.com>
8066
8067 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8068 thread functions.
8069 (obsd_nat_target::wait): Likewise.
8070
ce127a96
TT
80712020-04-15 Tom Tromey <tromey@adacore.com>
8072
8073 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8074 (DEBUG_EXCEPT): Use debug_printf.
8075
99f1bc6a
AB
80762020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8077
8078 * completer.c (class completion_tracker::completion_hash_entry)
8079 <hash_name>: New member function.
8080 (completion_tracker::discard_completions): New callback to hash a
8081 completion_hash_entry, pass this to htab_create_alloc.
8082
a0e9b532
JT
80832016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8084
8085 * windows-nat.c (windows_make_so): Warn rather than stopping with
8086 an error if realpath() fails.
8087
06ca5dd4
KR
80882020-04-14 Kamil Rytarowski <n54@gmx.com>
8089
8090 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8091 (nbsd_nat_target::info_proc): Add do_status.
8092
194d088f
TV
80932020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8094 Tom de Vries <tdevries@suse.de>
8095
8096 PR symtab/25718
8097 * psympriv.h (struct partial_symtab::read_symtab)
8098 (struct partial_symtab::expand_psymtab)
8099 (struct partial_symtab::read_dependencies): Update comments.
8100 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8101 read_symtab for includer.
8102 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8103 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8104 (struct dwarf2_include_psymtab::m_readin): Remove.
8105 (struct dwarf2_include_psymtab::includer): New member function.
8106 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8107
c1a66c06
TV
81082020-04-14 Tom de Vries <tdevries@suse.de>
8109
8110 PR symtab/25720
8111 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8112 with NULL symbol_matcher and lookup_name.
8113 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8114 and lookup_name.
8115 * dwarf2/read.c (dw2_expand_symtabs_matching)
8116 (dw2_debug_names_expand_symtabs_matching): Same.
8117 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8118 Make lookup_name a pointer. Update comment.
8119 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8120 lookup_name being a pointer.
8121 * symfile.c (expand_symtabs_matching): Same.
8122 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8123 * linespec.c (iterate_over_all_matching_symtabs): Same.
8124
400b5eca
TT
81252020-04-13 Tom Tromey <tom@tromey.com>
8126
8127 * run-on-main-thread.c: Update include.
8128 * unittests/main-thread-selftests.c: Update include.
8129 * tui/tui-win.c: Update include.
8130 * tui/tui-io.c: Update include.
8131 * tui/tui-interp.c: Update include.
8132 * tui/tui-hooks.c: Update include.
8133 * top.h: Update include.
8134 * top.c: Update include.
8135 * ser-base.c: Update include.
8136 * remote.c: Update include.
8137 * remote-notif.c: Update include.
8138 * remote-fileio.c: Update include.
8139 * record-full.c: Update include.
8140 * record-btrace.c: Update include.
8141 * python/python.c: Update include.
8142 * posix-hdep.c: Update include.
8143 * mingw-hdep.c: Update include.
8144 * mi/mi-main.c: Update include.
8145 * mi/mi-interp.c: Update include.
8146 * main.c: Update include.
8147 * linux-nat.c: Update include.
8148 * interps.c: Update include.
8149 * infrun.c: Update include.
8150 * inf-loop.c: Update include.
8151 * event-top.c: Update include.
8152 * event-loop.c: Move to ../gdbsupport/.
8153 * event-loop.h: Move to ../gdbsupport/.
8154 * async-event.h: Update include.
8155 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8156
93b54c8e
TT
81572020-04-13 Tom Tromey <tom@tromey.com>
8158
8159 * tui/tui-win.c: Include async-event.h.
8160 * remote.c: Include async-event.h.
8161 * remote-notif.c: Include async-event.h.
8162 * record-full.c: Include async-event.h.
8163 * record-btrace.c: Include async-event.h.
8164 * infrun.c: Include async-event.h.
8165 * event-top.c: Include async-event.h.
8166 * event-loop.h: Move some declarations to async-event.h.
8167 * event-loop.c: Don't include ser-event.h or top.h. Move some
8168 code to async-event.c.
8169 * async-event.h: New file.
8170 * async-event.c: New file.
8171 * Makefile.in (COMMON_SFILES): Add async-event.c.
8172 (HFILES_NO_SRCDIR): Add async-event.h.
8173
c1cd3163
TT
81742020-04-13 Tom Tromey <tom@tromey.com>
8175
8176 * utils.c (flush_streams): New function.
8177 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8178
29f2bf4f
TT
81792020-04-13 Tom Tromey <tom@tromey.com>
8180
8181 * event-loop.c (handle_file_event): Use warning, not
8182 printf_unfiltered.
8183
98029d02
TT
81842020-04-13 Tom Tromey <tom@tromey.com>
8185
8186 * event-loop.c: Include <chrono>.
8187
06cc9596
TT
81882020-04-13 Tom Tromey <tom@tromey.com>
8189
8190 * gdb_select.h: Move to ../gdbsupport/.
8191 * event-loop.c: Update include path.
8192 * top.c: Update include path.
8193 * ser-base.c: Update include path.
8194 * ui-file.c: Update include path.
8195 * ser-tcp.c: Update include path.
8196 * guile/scm-ports.c: Update include path.
8197 * posix-hdep.c: Update include path.
8198 * ser-unix.c: Update include path.
8199 * gdb_usleep.c: Update include path.
8200 * mingw-hdep.c: Update include path.
8201 * inflow.c: Update include path.
8202 * infrun.c: Update include path.
8203 * event-top.c: Update include path.
8204
8ae8e197
TT
82052020-04-13 Tom Tromey <tom@tromey.com>
8206
8207 * configure: Rebuild.
8208 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8209
58cf28e8
TT
82102020-04-13 Tom Tromey <tom@tromey.com>
8211
8212 * event-loop.h (start_event_loop): Don't declare.
8213 * event-loop.c (start_event_loop): Move...
8214 * main.c (start_event_loop): ...here. Now static.
8215
b7f999ae
SDJ
82162020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8217
8218 * MAINTAINERS: Update my email address.
8219
1085dfd4
KR
82202020-04-12 Kamil Rytarowski <n54@gmx.com>
8221
8222 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8223 IP_ALL.
8224
49d1d1f5
KR
82252020-04-12 Kamil Rytarowski <n54@gmx.com>
8226
8227 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8228 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8229
b4848d2a
KR
82302020-04-12 Kamil Rytarowski <n54@gmx.com>
8231
8232 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8233 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8234
51c133d5
KR
82352020-04-12 Kamil Rytarowski <n54@gmx.com>
8236
8237 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8238
54b8cbd0
KR
82392020-04-11 Kamil Rytarowski <n54@gmx.com>
8240
8241 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8242 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8243 (nbsd_nat_target::info_proc): New functions.
8244 * nbsd-nat.c (kinfo_get_vmmap): New function.
8245 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8246 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8247 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8248 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8249 functions.
8250 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8251 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8252 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8253 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8254 (KINFO_VME_FLAG_GROWS_DOWN): New.
8255
cf83625d
AS
82562020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8257
8258 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8259 bit shift.
8260
0c4311ab
TT
82612020-04-10 Tom Tromey <tromey@adacore.com>
8262
8263 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8264
3e65b3e9
TT
82652020-04-10 Tom Tromey <tromey@adacore.com>
8266
8267 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8268 separate debug files.
8269
13302e95
HD
82702020-04-10 Hannes Domani <ssbssa@yahoo.de>
8271
8272 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8273 Move to...
8274 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8275 ... here.
8276 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8277 Check for STATUS_WX86_BREAKPOINT.
8278 (windows_nat_target::wait): Same.
8279
bdfc1e8a
TV
82802020-04-10 Tom de Vries <tdevries@suse.de>
8281
8282 PR cli/25808
8283 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8284
f4460aec
SM
82852020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8286
8287 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8288 (Write After Approval): Remove Tom de Vries.
8289
a25198bb
BE
82902020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8291
8292 revert partially:
8293 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8294
aac66a4c
SM
8295 * buildsym.c (record_line): Fix undefined behavior and preserve
8296 lines at eof.
a25198bb 8297
206c98a6
KR
82982020-04-09 Kamil Rytarowski <n54@gmx.com>
8299
8300 * auxv.h (svr4_auxv_parse): New.
8301 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8302 and generic_auxv_parse.
8303 (svr4_auxv_parse): Add.
8304 * obsd-tdep.c: Include "auxv.h".
8305 (obsd_auxv_parse): Remove.
8306 (obsd_init_abi): Remove comment.
8307 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8308 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8309 * nbsd-tdep.c: Include "auxv.h".
8310 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8311
71fbdbaf
TT
83122020-04-08 Tom Tromey <tromey@adacore.com>
8313
8314 * nat/windows-nat.h (last_wait_event): Don't declare.
8315 (wait_for_debug_event): Update comment.
8316 * nat/windows-nat.c (last_wait_event): Now static.
8317
2c1d95e8
TT
83182020-04-08 Tom Tromey <tromey@adacore.com>
8319
8320 * windows-nat.c (wait_for_debug_event): Move to
8321 nat/windows-nat.c.
8322 * nat/windows-nat.h (wait_for_debug_event): Declare.
8323 * nat/windows-nat.c (wait_for_debug_event): Move from
8324 windows-nat.c. No longer static.
8325
d2977bc4
TT
83262020-04-08 Tom Tromey <tromey@adacore.com>
8327
8328 * windows-nat.c (get_windows_debug_event): Use
8329 fetch_pending_stop.
8330 * nat/windows-nat.h (fetch_pending_stop): Declare.
8331 * nat/windows-nat.c (fetch_pending_stop): New function.
8332
e758e19c
TT
83332020-04-08 Tom Tromey <tromey@adacore.com>
8334
8335 * windows-nat.c (windows_continue): Use matching_pending_stop and
8336 continue_last_debug_event.
8337 * nat/windows-nat.h (matching_pending_stop)
8338 (continue_last_debug_event): Declare.
8339 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8340 (matching_pending_stop, continue_last_debug_event): New
8341 functions.
8342
8d30e395
TT
83432020-04-08 Tom Tromey <tromey@adacore.com>
8344
8345 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8346 (handle_exception_result): Move to nat/windows-nat.h.
8347 (DEBUG_EXCEPTION_SIMPLE): Remove.
8348 (windows_nat::handle_ms_vc_exception): New function.
8349 (handle_exception): Move to nat/windows-nat.c.
8350 (get_windows_debug_event): Update.
8351 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8352 nat/windows-nat.c.
8353 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8354 (handle_exception_result): Move from windows-nat.c.
8355 (handle_exception): Declare.
8356 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8357 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8358 windows-nat.c.
8359
29de418d
TT
83602020-04-08 Tom Tromey <tromey@adacore.com>
8361
8362 * windows-nat.c (exception_count, event_count): Remove.
8363 (handle_exception, get_windows_debug_event)
8364 (do_initial_windows_stuff): Update.
8365
a816ba18
TT
83662020-04-08 Tom Tromey <tromey@adacore.com>
8367
8368 * windows-nat.c (windows_nat::handle_load_dll)
8369 (windows_nat::handle_unload_dll): Rename. No longer static.
8370 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8371 Declare.
8372
a00caa12
TT
83732020-04-08 Tom Tromey <tromey@adacore.com>
8374
8375 * complaints.h (stop_whining): Declare at top-level.
8376 (complaint): Don't declare stop_whining.
8377
d41b524f
TT
83782020-04-08 Tom Tromey <tromey@adacore.com>
8379
8380 * windows-nat.c (windows_nat::handle_output_debug_string):
8381 Rename. No longer static.
8382 * nat/windows-nat.h (handle_output_debug_string): Declare.
8383
3c76026d
TT
83842020-04-08 Tom Tromey <tromey@adacore.com>
8385
8386 * windows-nat.c (current_process_handle, current_process_id)
8387 (main_thread_id, last_sig, current_event, last_wait_event)
8388 (current_windows_thread, desired_stop_thread_id, pending_stops)
8389 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8390 (display_selectors, fake_create_process)
8391 (get_windows_debug_event): Update.
8392 * nat/windows-nat.h (current_process_handle, current_process_id)
8393 (main_thread_id, last_sig, current_event, last_wait_event)
8394 (current_windows_thread, desired_stop_thread_id, pending_stops)
8395 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8396 * nat/windows-nat.c (current_process_handle, current_process_id)
8397 (main_thread_id, last_sig, current_event, last_wait_event)
8398 (current_windows_thread, desired_stop_thread_id, pending_stops)
8399 (siginfo_er): New globals. Move from windows-nat.c.
8400
9d8679cc
TT
84012020-04-08 Tom Tromey <tromey@adacore.com>
8402
8403 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8404 (handle_load_dll): Update.
8405 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8406
28688adf
TT
84072020-04-08 Tom Tromey <tromey@adacore.com>
8408
8409 * windows-nat.c (enum thread_disposition_type): Move to
8410 nat/windows-nat.h.
8411 (windows_nat::thread_rec): Rename from thread_rec. No longer
8412 static.
8413 (windows_add_thread, windows_nat_target::fetch_registers)
8414 (windows_nat_target::store_registers, handle_exception)
8415 (windows_nat_target::resume, get_windows_debug_event)
8416 (windows_nat_target::get_tib_address)
8417 (windows_nat_target::thread_name)
8418 (windows_nat_target::thread_alive): Update.
8419 * nat/windows-nat.h (enum thread_disposition_type): Move from
8420 windows-nat.c.
8421 (thread_rec): Declare.
8422
4834dad0
TT
84232020-04-08 Tom Tromey <tromey@adacore.com>
8424
8425 * windows-nat.c: Add "using namespace".
8426 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8427 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8428
65bafd5b
TT
84292020-04-08 Tom Tromey <tromey@adacore.com>
8430
8431 * nat/windows-nat.h (struct windows_thread_info): Declare
8432 destructor.
8433 * nat/windows-nat.c (~windows_thread_info): New.
8434
0a4afda3
TT
84352020-04-08 Tom Tromey <tromey@adacore.com>
8436
8437 PR gdb/22992
8438 * windows-nat.c (current_event): Update comment.
8439 (last_wait_event, desired_stop_thread_id): New globals.
8440 (struct pending_stop): New.
8441 (pending_stops): New global.
8442 (windows_nat_target) <stopped_by_sw_breakpoint>
8443 <supports_stopped_by_sw_breakpoint>: New methods.
8444 (windows_fetch_one_register): Add assertions. Adjust PC.
8445 (windows_continue): Handle pending stops. Suspend other threads
8446 when stepping. Use last_wait_event
8447 (wait_for_debug_event): New function.
8448 (get_windows_debug_event): Use wait_for_debug_event. Handle
8449 pending stops. Queue spurious stops.
8450 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8451 (windows_nat_target::kill): Use wait_for_debug_event.
8452 * nat/windows-nat.h (struct windows_thread_info)
8453 <stopped_at_software_breakpoint>: New field.
8454 * nat/windows-nat.c (windows_thread_info::resume): Clear
8455 stopped_at_software_breakpoint.
8456
8e61ebec
TT
84572020-04-08 Tom Tromey <tromey@adacore.com>
8458
8459 * windows-nat.c (enum thread_disposition_type): New.
8460 (thread_rec): Replace "get_context" parameter with "disposition";
8461 change type.
8462 (windows_add_thread, windows_nat_target::fetch_registers)
8463 (windows_nat_target::store_registers, handle_exception)
8464 (windows_nat_target::resume, get_windows_debug_event)
8465 (windows_nat_target::get_tib_address)
8466 (windows_nat_target::thread_name)
8467 (windows_nat_target::thread_alive): Update.
8468
98a03287
TT
84692020-04-08 Tom Tromey <tromey@adacore.com>
8470
8471 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8472 (windows_continue): Use windows_continue::resume.
8473 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8474 resume>: Declare new methods.
8475 * nat/windows-nat.c: New file.
8476 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8477
7c7411bc
TT
84782020-04-08 Tom Tromey <tromey@adacore.com>
8479
8480 * windows-nat.c (windows_add_thread, windows_delete_thread)
8481 (windows_nat_target::fetch_registers)
8482 (windows_nat_target::store_registers, fake_create_process)
8483 (windows_nat_target::resume, windows_nat_target::resume)
8484 (get_windows_debug_event, windows_nat_target::wait)
8485 (windows_nat_target::pid_to_str)
8486 (windows_nat_target::get_tib_address)
8487 (windows_nat_target::get_ada_task_ptid)
8488 (windows_nat_target::thread_name)
8489 (windows_nat_target::thread_alive): Use lwp, not tid.
8490
2950fdf7
TT
84912020-04-08 Tom Tromey <tromey@adacore.com>
8492
8493 * windows-nat.c (handle_exception)
8494 (windows_nat_target::thread_name): Update.
8495 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8496 <name>: Now unique_xmalloc_ptr.
8497
62fe396b
TT
84982020-04-08 Tom Tromey <tromey@adacore.com>
8499
8500 * windows-nat.c (thread_rec)
8501 (windows_nat_target::fetch_registers): Update.
8502 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8503 Update comment.
8504 <debug_registers_changed, reload_context>: Now bool.
8505
e9534bd2
TT
85062020-04-08 Tom Tromey <tromey@adacore.com>
8507
8508 * windows-nat.c (windows_add_thread): Use new.
8509 (windows_init_thread_list, windows_delete_thread): Use delete.
8510 (get_windows_debug_event): Update.
8511 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8512 destructor, and initializers.
8513
ae1f8880
TT
85142020-04-08 Tom Tromey <tromey@adacore.com>
8515
8516 * windows-nat.c (struct windows_thread_info): Remove.
8517 * nat/windows-nat.h: New file.
8518
55a1e039
TT
85192020-04-08 Tom Tromey <tromey@adacore.com>
8520
8521 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8522 (thread_rec, windows_add_thread, windows_delete_thread)
8523 (windows_continue): Update.
8524
93366324
TT
85252020-04-08 Tom Tromey <tromey@adacore.com>
8526
8527 * windows-nat.c (struct windows_thread_info): Remove typedef.
8528 (thread_head): Remove.
8529 (thread_list): New global.
8530 (thread_rec, windows_add_thread, windows_init_thread_list)
8531 (windows_delete_thread, windows_continue): Update.
8532
0f2265e2
SM
85332020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8534
8535 * windows-tdep.h (windows_init_abi): Add comment.
8536 (cygwin_init_abi): New declaration.
8537 * windows-tdep.c: Split signal enumeration in two, one for
8538 Windows and one for Cygwin.
8539 (windows_gdb_signal_to_target): Only deal with signal of the
8540 Windows OS ABI.
8541 (cygwin_gdb_signal_to_target): New function.
8542 (windows_init_abi): Rename to windows_init_abi_common, don't set
8543 gdb_signal_to_target gdbarch method. Add new new function with
8544 this name.
8545 (cygwin_init_abi): New function.
8546 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8547 comment. Don't call windows_init_abi.
8548 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8549 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8550 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8551 i386_windows_init_abi_common, don't call windows_init_abi. Add
8552 a new function of this name.
8553 (i386_cygwin_init_abi): New function.
8554 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8555 OS ABI Cygwin.
8556
3810f182
SM
85572020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8558
8559 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8560 parameter.c.
8561 (dwarf2_read_gdb_index): Update.
8562
063f8e80
KR
85632020-04-07 Kamil Rytarowski <n54@gmx.com>
8564
8565 * nbsd-tdep.c: Include "objfiles.h".
8566 (nbsd_skip_solib_resolver): New.
8567 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8568
85a9510c 85692020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8570
8571 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8572 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8573 with DW_LLE_base_addressx are being emitted in DWARFv5.
8574 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8575 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8576 unsigned integer.
8577
9fc3eaae 85782020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8579
8580 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8581 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8582 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8583 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8584 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8585 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8586 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8587
8588
41144253 85892020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8590
8591 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8592 (read_loclist_index): New function definition.
8593 (lookup_loclist_base): New function definition.
8594 (read_loclist_header): New function definition.
8595 (dwarf2_cu): Add loclist_base and loclist_header field.
8596 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8597 (read_full_die_1): Read the value of DW_AT_loclists_base.
8598 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8599 (read_attribute_value): Handle DW_FORM_loclistx.
8600 (skip_one_die): Handle DW_FORM_loclistx.
8601 (loclist_header): New structure declaration.
8602 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8603
9f4e76a4
SM
86042020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8605
8606 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8607 constructor. Remove `addr` parameter from other constructor and
8608 add `per_cu` parameter.
8609 * dwarf2/read.c (create_partial_symtab): Update.
8610
25c11aca
TV
86112020-04-07 Tom de Vries <tdevries@suse.de>
8612
8613 PR symtab/25796
8614 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8615 (partial_die_info::fixup): Inherit has_const_value.
8616
5707e24b
TV
86172020-04-07 Tom de Vries <tdevries@suse.de>
8618
8619 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8620 symbols without address.
8621
05f00e22
KR
86222020-04-06 Kamil Rytarowski <n54@gmx.com>
8623
8624 * nbsd-nat.h (struct thread_info): Add forward declaration.
8625 (nbsd_nat_target::thread_alive): Add.
8626 (nbsd_nat_target::thread_name): Likewise.
8627 (nbsd_nat_target::update_thread_list): Likewise.
8628 (update_thread_list::post_attach): Likewise.
8629 (post_attach::pid_to_str): Likewise.
8630 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8631 (nbsd_thread_lister): Add.
8632 (nbsd_nat_target::thread_alive): Likewise.
8633 (nbsd_nat_target::thread_name): Likewise.
8634 (nbsd_add_threads): Likewise.
8635 (update_thread_list::post_attach): Likewise.
8636 (nbsd_nat_target::update_thread_list): Likewise.
8637 (post_attach::pid_to_str): Likewise.
8638
6ee448cc
TT
86392020-04-06 Tom Tromey <tromey@adacore.com>
8640
8641 * ada-valprint.c (print_variant_part): Extract the variant field.
8642 (print_field_values): Use the field as the outer value when
8643 recursing.
8644
dea34e8c
TT
86452020-04-06 Tom Tromey <tromey@adacore.com>
8646
8647 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8648 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8649 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8650 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8651 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8652
93689ce9
TT
86532020-04-06 Tom Tromey <tromey@adacore.com>
8654
8655 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8656 TYPE_CODE_ERROR.
8657
79743962
KR
86582020-04-06 Kamil Rytarowski <n54@gmx.com>
8659
8660 * nbsd-tdep.c: Include "gdbarch.h".
8661 Define enum with NetBSD signal numbers.
8662 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8663 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8664 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8665 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8666 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8667 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8668 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8669 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8670 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8671 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8672 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8673 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8674
9e7c9a03
HD
86752020-04-03 Hannes Domani <ssbssa@yahoo.de>
8676
8677 PR gdb/25325
8678 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8679
d9e49b61
TT
86802020-04-03 Tom Tromey <tromey@adacore.com>
8681
8682 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8683 Read constant block.
8684
e0fc5c3f
SM
86852020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8686
8687 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8688 (gdb_bfd_get_full_section_contents): New declaration.
8689 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8690 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8691 gdb_bfd_get_full_section_contents.
8692
e2ff18a0
SM
86932020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8694
8695 * exec.c (build_section_table): Replace internal_error with
8696 gdb_assert.
8697 (section_table_xfer_memory_partial): Likewise.
8698 * mdebugread.c (parse_partial_symbols): Likewise.
8699 * psymtab.c (lookup_partial_symbol): Likewise.
8700 * utils.c (wrap_here): Likewise.
8701
0830d301
TT
87022020-04-02 Tom Tromey <tromey@adacore.com>
8703
8704 * f-lang.c (build_fortran_types): Use arch_type to initialize
8705 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8706
e7da7f8f
TT
87072020-04-02 Tom Tromey <tromey@adacore.com>
8708
8709 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8710 of attributes.
8711
c90d28ac
AB
87122020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8713 Bernd Edlinger <bernd.edlinger@hotmail.de>
8714 Tom Tromey <tromey@adacore.com>
8715
8716 * buildsym.c (buildsym_compunit::record_line): Remove
8717 deduplication code.
8718
1aa98955
TV
87192020-04-02 Tom de Vries <tdevries@suse.de>
8720
8721 PR ada/24671
8722 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8723
d3214198
TV
87242020-04-02 Tom de Vries <tdevries@suse.de>
8725
8726 * dwarf2/read.c (dwarf2_gdb_index_functions,
8727 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8728 NULL.
8729 * psymtab.c (psym_lookup_global_symbol_language): New function.
8730 (psym_functions): Init psym_lookup_global_symbol_language with
8731 psym_lookup_global_symbol_language.
8732 * symfile-debug.c (debug_sym_quick_functions): Init
8733 lookup_global_symbol_language with NULL.
8734 * symfile.c (set_initial_language): Remove fixme comment.
8735 * symfile.h (struct quick_symbol_functions): Add
8736 lookup_global_symbol_language.
8737 * symtab.c (find_quick_global_symbol_language): New function.
8738 (find_main_name): Use find_quick_global_symbol_language.
8739
2836752f
SM
87402020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8741
8742 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8743
64dc2d4b
BE
87442020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8745
8746 * buildsym.c (record_line): Fix undefined behavior and preserve
8747 lines at eof.
8748
bbe3dc41
BE
87492020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8750
8751 * buildsym.c (record_line): Fix the resizing condition.
8752
6b4a335b
TT
87532020-04-01 Tom Tromey <tom@tromey.com>
8754
8755 * value.h (value_literal_complex): Add comment.
8756 * valops.c (value_literal_complex): Refer to value.h.
8757
3638a098
TT
87582020-04-01 Tom Tromey <tom@tromey.com>
8759
8760 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8761 (scalar_type): New rule, from typebase.
8762 (typebase): Use scalar_type. Recognize complex types.
8763 (field_name): Handle FLOAT_KEYWORD.
8764 (ident_tokens): Add _Complex and __complex__.
8765
c34e8714
TT
87662020-04-01 Tom Tromey <tom@tromey.com>
8767
8768 PR exp/25299:
8769 * valarith.c (promotion_type, complex_binop): New functions.
8770 (scalar_binop): Handle complex numbers. Use promotion_type.
8771 (value_pos, value_neg, value_complement): Handle complex numbers.
8772
fa649bb7
TT
87732020-04-01 Tom Tromey <tom@tromey.com>
8774
8775 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8776 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8777 (parse_number): Handle complex numbers.
8778
981c08ce
TT
87792020-04-01 Tom Tromey <tom@tromey.com>
8780
8781 * c-valprint.c (c_decorations): Change complex suffix to "i".
8782
4c99290d
TT
87832020-04-01 Tom Tromey <tom@tromey.com>
8784
8785 * valprint.c (generic_value_print_complex): Use accessors.
8786 * value.h (value_real_part, value_imaginary_part): Declare.
8787 * valops.c (value_real_part, value_imaginary_part): New
8788 functions.
8789 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8790
5b930b45
TT
87912020-04-01 Tom Tromey <tom@tromey.com>
8792
8793 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8794 (read_range_type): Update.
8795 * mdebugread.c (basic_type): Update.
8796 * go-lang.c (build_go_types): Use init_complex_type.
8797 * gdbtypes.h (struct main_type) <complex_type>: New member.
8798 (init_complex_type): Update.
8799 (arch_complex_type): Don't declare.
8800 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8801 Make name if none given. Use alloc_type_copy. Look for cached
8802 complex type.
8803 (arch_complex_type): Remove.
8804 (gdbtypes_post_init): Use init_complex_type.
8805 * f-lang.c (build_fortran_types): Use init_complex_type.
8806 * dwarf2/read.c (read_base_type): Update.
8807 * d-lang.c (build_d_types): Use init_complex_type.
8808 * ctfread.c (read_base_type): Update.
8809
53cccef1
TBA
88102020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8811
8812 * infrun.c (stop_all_threads): Update assertion, plus when
8813 stopping threads, take into account that we might be trying
8814 to stop an all-stop target.
8815 (stop_waiting): Call 'stop_all_threads' if there exists a
8816 non-stop target.
8817
a0714d30
TBA
88182020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8819
8820 * target.h (exists_non_stop_target): New function declaration.
8821 * target.c (exists_non_stop_target): New function.
8822
60e22c1e
HD
88232020-04-01 Hannes Domani <ssbssa@yahoo.de>
8824
8825 PR gdb/24789
8826 * eval.c (is_integral_or_integral_reference): New function.
8827 (evaluate_subexp_standard): Allow integer references in
8828 pointer arithmetic.
8829
e139a727
TBA
88302020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8831
8832 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8833 check for no ptid in the stop reply when the target is non-stop.
8834
e0802d59
TT
88352020-04-01 Tom Tromey <tromey@adacore.com>
8836
8837 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8838 "name" parameter to rvalue reference. Initialize m_name_holder.
8839 <lookup_name_info>: New overloads.
8840 <name>: Return gdb::string_view.
8841 <c_str>: New method.
8842 <make_ignore_params>: Update.
8843 <search_name_hash>: Update.
8844 <language_lookup_name>: Return const char *.
8845 <m_name>: Change type.
8846 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8847 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8848 (lookup_name_info::match_any): Update.
8849 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8850 Update.
8851 * minsyms.c (linkage_name_str): Update.
8852 * language.c (default_symbol_name_matcher): Update.
8853 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8854 Update.
8855 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8856 (ada_lookup_name_info::ada_lookup_name_info): Update.
8857 (literal_symbol_name_matcher): Update.
8858
8c072cb6
TT
88592020-04-01 Tom Tromey <tromey@adacore.com>
8860
8861 * psymtab.c (psymtab_search_name): Remove function.
8862 (psym_lookup_symbol): Create search name and lookup name here.
8863 (lookup_partial_symbol): Remove "name" parameter; add
8864 lookup_name.
8865 (psym_expand_symtabs_for_function): Update.
8866
6f29a534
TT
88672020-03-31 Joel Jones <joelkevinjones@gmail.com>
8868
8869 PR tui/25597:
8870 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8871
af62665e
TT
88722020-03-31 Tom Tromey <tromey@adacore.com>
8873
8874 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8875 memcpy.
8876
d1a89da5
NC
88772020-03-30 Nelson Chu <nelson.chu@sifive.com>
8878
8879 * features/riscv/32bit-csr.xml: Regenerated.
8880 * features/riscv/64bit-csr.xml: Regenerated.
8881
d8af9068
TT
88822020-03-30 Tom Tromey <tromey@adacore.com>
8883
8884 * ada-valprint.c (print_variant_part): Update.
8885 * ada-lang.h (ada_which_variant_applies): Update.
8886 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8887 outer_valaddr parameters; replace with "outer" value parameter.
8888 (to_fixed_variant_branch_type): Update.
8889
227c0bf4
PFC
88902020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8891
8892 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8893 <list>. Remove inclusion of observable.h.
8894 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8895 (struct arch_lwp_info): New struct.
8896 (class ppc_linux_dreg_interface): New class.
8897 (struct ppc_linux_process_info): New struct.
8898 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8899 <low_new_clone, low_forget_process, low_prepare_to_resume>
8900 <copy_thread_dreg_state, mark_thread_stale>
8901 <mark_debug_registers_changed, register_hw_breakpoint>
8902 <clear_hw_breakpoint, register_wp, clear_wp>
8903 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8904 <num_memory_accesses, get_trigger_type>
8905 <create_watchpoint_request, hwdebug_point_cmp>
8906 <init_arch_lwp_info, get_arch_lwp_info>
8907 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8908 methods.
8909 <struct ptid_hash>: New inner struct.
8910 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8911 members.
8912 (saved_dabr_value, hwdebug_info, max_slots_number)
8913 (struct hw_break_tuple, struct thread_points, ppc_threads)
8914 (have_ptrace_hwdebug_interface)
8915 (hwdebug_find_thread_points_by_tid)
8916 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8917 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8918 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8919 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8920 use m_dreg_interface.
8921 (hwdebug_point_cmp): Change to...
8922 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8923 reference arguments instead of pointers.
8924 (ppc_linux_nat_target::ranged_break_num_registers): Use
8925 m_dreg_interface.
8926 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8927 m_dreg_interface. Call register_hw_breakpoint.
8928 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8929 m_dreg_interface. Call clear_hw_breakpoint.
8930 (get_trigger_type): Change to...
8931 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8932 comment.
8933 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8934 use m_dreg_interface. Call register_hw_breakpoint.
8935 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8936 use m_dreg_interface. Call clear_hw_breakpoint.
8937 (can_use_watchpoint_cond_accel): Change to...
8938 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8939 method. Update comment, use m_dreg_interface and
8940 m_process_info.
8941 (calculate_dvc): Change to...
8942 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8943 m_dreg_interface.
8944 (num_memory_accesses): Change to...
8945 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8946 (check_condition): Change to...
8947 (ppc_linux_nat_target::check_condition): ...this method.
8948 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8949 comment, use m_dreg_interface.
8950 (create_watchpoint_request): Change to...
8951 (ppc_linux_nat_target::create_watchpoint_request): ...this
8952 method. Use m_dreg_interface.
8953 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8954 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8955 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8956 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8957 (ppc_linux_nat_target::low_forget_process)
8958 (ppc_linux_nat_target::low_new_fork)
8959 (ppc_linux_nat_target::low_new_clone)
8960 (ppc_linux_nat_target::low_delete_thread)
8961 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8962 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8963 only call mark_thread_stale.
8964 (ppc_linux_thread_exit): Remove.
8965 (ppc_linux_nat_target::stopped_data_address): Change to...
8966 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8967 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8968 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8969 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8970 comment. Call low_stopped_data_address.
8971 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8972 m_dreg_interface.
8973 (ppc_linux_nat_target::masked_watch_num_registers): Use
8974 m_dreg_interface.
8975 (ppc_linux_nat_target::copy_thread_dreg_state)
8976 (ppc_linux_nat_target::mark_thread_stale)
8977 (ppc_linux_nat_target::mark_debug_registers_changed)
8978 (ppc_linux_nat_target::register_hw_breakpoint)
8979 (ppc_linux_nat_target::clear_hw_breakpoint)
8980 (ppc_linux_nat_target::register_wp)
8981 (ppc_linux_nat_target::clear_wp)
8982 (ppc_linux_nat_target::init_arch_lwp_info)
8983 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8984 (_initialize_ppc_linux_nat): Remove observer callback.
8985
4db10d8f
PFC
89862020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8987
8988 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8989 (ppc_linux_nat_target::auxv_parse)
8990 (ppc_linux_nat_target::read_description)
8991 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8992 Move up.
8993
1310c1b0
PFC
89942020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8995
8996 * linux-nat.h (low_new_clone): New method.
8997 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8998
69b037c3
SM
89992020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9000
9001 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9002 (dbx_expand_psymtab): ... this.
9003 (start_psymtab): Update.
9004 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9005 (mdebug_expand_psymtab): ... this.
9006 (parse_partial_symbols): Update.
9007 (new_psymtab): Update.
9008 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9009 (xcoff_expand_psymtab): ... this.
9010 (xcoff_start_psymtab): Update.
9011
48993951
SM
90122020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9013
9014 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9015 <expand_dependencies>: ... this.
9016 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9017 (partial_symtab::expand_dependencies): ... this.
9018 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9019 Update.
9020 (dwarf2_psymtab::expand_psymtab): Update.
9021 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9022 * mdebugread.c (psymtab_to_symtab_1): Update.
9023 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9024
3ad83046
SM
90252020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9026
9027 * psympriv.h (discard_psymtab): Remove.
9028 * dbxread.c (dbx_end_psymtab): Update.
9029 * xcoffread.c (xcoff_end_psymtab): Update.
9030
4d1b9ab6
TT
90312020-03-28 Tom Tromey <tom@tromey.com>
9032
9033 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9034 comment.
9035
f1749218
TT
90362020-03-28 Tom Tromey <tom@tromey.com>
9037
9038 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9039
ebea7626
HD
90402020-03-27 Hannes Domani <ssbssa@yahoo.de>
9041
9042 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9043
a879b4d5
JB
90442020-03-26 John Baldwin <jhb@FreeBSD.org>
9045
9046 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9047
0826b30a
TT
90482020-03-26 Tom Tromey <tom@tromey.com>
9049
9050 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9051 (mark_common_block_symbol_computed, read_tag_string_type)
9052 (attr_to_dynamic_prop, read_subrange_type): Update.
9053 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9054 to be methods on struct attribute.
9055 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9056 (read_call_site_scope, partial_die_info::read)
9057 (partial_die_info::read, lookup_die_type, follow_die_ref):
9058 Update.
9059 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9060 from dwarf2_get_ref_die_offset.
9061 (attribute::constant_value): New method, from
9062 dwarf2_get_attr_constant_value.
9063 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9064 Declare method.
9065 <constant_value>: New method.
9066
2b2558bf
TT
90672020-03-26 Tom Tromey <tom@tromey.com>
9068
9069 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9070 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9071 (dwarf_type_encoding_name): Move to stringify.c.
9072 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9073 * dwarf2/stringify.c: New file.
9074 * dwarf2/stringify.h: New file.
9075
eeb64781
TT
90762020-03-26 Tom Tromey <tom@tromey.com>
9077
9078 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9079 Rewrite.
9080
a39fdb41
TT
90812020-03-26 Tom Tromey <tom@tromey.com>
9082
9083 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9084 methods.
9085 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9086 (lookup_ranges_base): Likewise.
9087 (read_cutu_die_from_dwo, read_full_die_1): Update.
9088
436c571c
TT
90892020-03-26 Tom Tromey <tom@tromey.com>
9090
9091 * dwarf2/read.c (read_import_statement, read_file_scope)
9092 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9093 (read_lexical_block_scope, read_call_site_scope)
9094 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9095 (handle_struct_member_die, process_structure_scope)
9096 (update_enumeration_type_from_children)
9097 (process_enumeration_scope, read_array_type, read_common_block)
9098 (read_namespace, read_module, read_subroutine_type): Update.
9099 (sibling_die): Remove.
9100
052c8bb8
TT
91012020-03-26 Tom Tromey <tom@tromey.com>
9102
9103 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9104 (build_type_psymtabs_reader, read_structure_type)
9105 (read_enumeration_type, read_full_die_1): Update.
9106 (dwarf2_attr_no_follow): Move to die.h.
9107 * dwarf2/die.h (struct die_info) <attr>: New method.
9108
2b24b6e4
TT
91092020-03-26 Tom Tromey <tom@tromey.com>
9110
9111 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9112 <base_address>: Now an optional.
9113 (dwarf2_find_base_address, dwarf2_rnglists_process)
9114 (dwarf2_ranges_process, fill_in_loclist_baton)
9115 (dwarf2_symbol_mark_computed): Update.
9116
c2d50fd0
TT
91172020-03-26 Tom Tromey <tom@tromey.com>
9118
9119 * dwarf2/read.c (struct die_info): Move to die.h.
9120 * dwarf2/die.h: New file.
9121
0df7ad3a
TT
91222020-03-26 Tom Tromey <tom@tromey.com>
9123
9124 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9125 * dwarf2/read.c
9126 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9127 Move to line-header.c.
9128 (read_checked_initial_length_and_offset, read_formatted_entries):
9129 Likewise.
9130 (dwarf_decode_line_header): Split into two.
9131 * dwarf2/line-header.c
9132 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9133 Move from read.c.
9134 (read_checked_initial_length_and_offset, read_formatted_entries):
9135 Likewise.
9136 (dwarf_decode_line_header): New function, split from read.c.
9137
86c0bb4c
TT
91382020-03-26 Tom Tromey <tom@tromey.com>
9139
9140 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9141 Declare method.
9142 * dwarf2/read.c (read_attribute_value): Update.
9143 (dwarf2_per_objfile::read_line_string): Rename from
9144 read_indirect_line_string.
9145 (read_formatted_entries): Update.
9146
2ef46c2f
TT
91472020-03-26 Tom Tromey <tom@tromey.com>
9148
9149 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9150 variable.
9151
4f9c1eda
TT
91522020-03-26 Tom Tromey <tom@tromey.com>
9153
9154 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9155 const.
9156 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9157 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9158 parameter const.
9159
5a0e026f
TT
91602020-03-26 Tom Tromey <tom@tromey.com>
9161
9162 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9163 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9164 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9165 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9166
8844c11b
TT
91672020-03-26 Tom Tromey <tom@tromey.com>
9168
9169 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9170 file_names_size, file_full_name, file_file_name>: Use const.
9171 <file_name_at, file_names>: Add const overload.
9172 * dwarf2/line-header.c (line_header::file_file_name)
9173 (line_header::file_full_name): Update.
9174
c90ec28a
TT
91752020-03-26 Tom Tromey <tom@tromey.com>
9176
9177 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9178 (macro_start_file, consume_improper_spaces)
9179 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9180 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9181 (dwarf_decode_macros): Move to macro.c.
9182 * dwarf2/macro.c: New file.
9183 * dwarf2/macro.h: New file.
9184 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9185
4f44ae6c
TT
91862020-03-26 Tom Tromey <tom@tromey.com>
9187
9188 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9189 method.
9190 * dwarf2/section.c: New method. From
9191 read_indirect_string_at_offset_from.
9192 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9193 (read_indirect_string_at_offset_from): Move to section.c.
9194 (read_indirect_string_at_offset): Rewrite.
9195 (read_indirect_line_string_at_offset): Remove.
9196 (read_indirect_string, read_indirect_line_string)
9197 (dwarf_decode_macro_bytes): Update.
9198
a0194fa8
TT
91992020-03-26 Tom Tromey <tom@tromey.com>
9200
9201 * dwarf2/section.h (struct dwarf2_section_info)
9202 <overload_complaint>: Declare.
9203 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9204 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9205 Rename from dwarf2_section_buffer_overflow_complaint.
9206 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9207 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9208
3d27bbdb
TT
92092020-03-26 Tom Tromey <tom@tromey.com>
9210
9211 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9212 Declare.
9213 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9214 Move from read.c.
9215 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9216 to section.c.
9217
9eac9650
TT
92182020-03-26 Tom Tromey <tom@tromey.com>
9219
9220 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9221
bf80d710
TT
92222020-03-26 Tom Tromey <tom@tromey.com>
9223
9224 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9225 "builder".
9226 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9227 parameter.
9228 (dwarf_decode_macros): Update.
9229
0314b390
TT
92302020-03-26 Tom Tromey <tom@tromey.com>
9231
9232 * dwarf2/read.c (read_attribute_value): Update.
9233 (read_indirect_string_from_dwz): Move to dwz.c; change into
9234 method.
9235 (dwarf_decode_macro_bytes): Update.
9236 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9237 * dwarf2/dwz.c: New file.
9238 * Makefile.in (COMMON_SFILES): Add dwz.c.
9239
9fda78b6
TT
92402020-03-26 Tom Tromey <tom@tromey.com>
9241
9242 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9243 * dwarf2/read.c: Add include.
9244 * dwarf2/index-write.c: Add include.
9245 * dwarf2/index-cache.c: Add include.
9246 * dwarf2/dwz.h: New file.
9247
33aa3c10
TT
92482020-03-25 Tom Tromey <tom@tromey.com>
9249
9250 * compile/compile-object-load.c (get_out_value_type): Mention
9251 correct symbol name in error message.
9252
d503b685
HD
92532020-03-25 Hannes Domani <ssbssa@yahoo.de>
9254
9255 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9256
7b1eff95
TV
92572020-03-25 Tom de Vries <tdevries@suse.de>
9258
9259 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9260 * symmisc.c (dump_symtab_1): Print user and includes fields.
9261 (maintenance_info_symtabs): Same.
9262
dd895392
AB
92632020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9264
9265 PR gdb/25534
9266 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9267 (riscv_regcache_cooked_write): New function.
9268 (riscv_push_dummy_call): Use new function.
9269 (riscv_return_value): Likewise.
9270
5ab2fbf1
SM
92712020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9272
9273 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9274 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9275 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9276 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9277 * infrun.c (follow_fork): Likewise.
9278 (follow_fork_inferior): Likewise.
9279 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9280 * linux-nat.h (class linux_nat_target): Likewise.
9281 * remote.c (class remote_target) <follow_fork>: Likewise.
9282 (remote_target::follow_fork): Likewise.
9283 * target-delegates.c: Re-generate.
9284 * target.c (default_follow_fork): Likewise.
9285 (target_follow_fork): Likewise.
9286 * target.h (struct target_ops) <follow_fork>: Likewise.
9287 (target_follow_fork): Likewise.
9288
a64fafb5
TV
92892020-03-24 Tom de Vries <tdevries@suse.de>
9290
9291 * psymtab.c (maintenance_info_psymtabs): Print user field.
9292
fe26d3a3
TT
92932020-03-20 Tom Tromey <tromey@adacore.com>
9294
9295 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9296 const.
9297 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9298 const.
9299
c884cc46
SM
93002020-03-20 Simon Marchi <simon.marchi@efficios.com>
9301
9302 * ptrace.m4: Don't check for ptrace declaration.
9303 * config.in: Re-generate.
9304 * configure: Re-generate.
9305 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9306 not defined.
9307
1ff700c2
KR
93082020-03-20 Kamil Rytarowski <n54@gmx.com>
9309
9310 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9311 `PTRACE_TYPE_RET'.
9312 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9313 * sparc-nat.c (gdb_ptrace): Likewise.
9314 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9315
f7d4f0b1
TT
93162020-03-20 Tom Tromey <tromey@adacore.com>
9317
9318 * c-exp.y (lex_one_token): Fix assert.
9319
f67210ff
TT
93202020-03-20 Tom Tromey <tromey@adacore.com>
9321
9322 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9323 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9324 strncpy call.
9325
1773be9e
TT
93262020-03-20 Tom Tromey <tromey@adacore.com>
9327
9328 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9329
70304be9
TT
93302020-03-20 Tom Tromey <tromey@adacore.com>
9331
9332 * ada-valprint.c (print_variant_part): Remove parameters; switch
9333 to value-based API.
9334 (print_field_values): Likewise.
9335 (ada_val_print_struct_union): Likewise.
9336 (ada_value_print_1): Update.
9337
9faa006d
KR
93382020-03-20 Kamil Rytarowski <n54@gmx.com>
9339
9340 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9341 nbsd_nat_target instead of inf_ptrace_target.
9342 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9343 nbsd_nat_target.
9344
4a90f062
KR
93452020-03-20 Kamil Rytarowski <n54@gmx.com>
9346
9347 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9348 it to the ptrace call.
9349 * (store_registers): Likewise.
9350
93512020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9352
9353 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9354 it to the ptrace call.
9355 * (store_registers): Likewise.
9356
2d07da27
LM
93572020-03-19 Luis Machado <luis.machado@linaro.org>
9358
9359 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9360 valid, fetch vg value from ptrace.
9361
f09db380
KR
93622020-03-19 Kamil Rytarowski <n54@gmx.com>
9363 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9364 * inf-ptrace.c: Likewise.
9365 * (gdb_ptrace): Add.
9366 * (inf_ptrace_target::resume): Update.
9367 * (inf_ptrace_target::xfer_partial): Likewise.
9368 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9369 * (inf_ptrace_peek_poke): Update.
9370
fcc7376e
KR
93712020-03-19 Kamil Rytarowski <n54@gmx.com>
9372
9373 * x86-bsd-nat.c (gdb_ptrace): New.
9374 * (x86bsd_dr_set): Add new argument `ptid'.
9375 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9376 x86bsd_dr_set_addr): Update.
9377
cada5fc9
AB
93782020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9379
9380 * remote.c (remote_target::process_stop_reply): Handle events for
9381 all threads differently.
9382
19a2740f
AB
93832020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9384
9385 * completer.c (completion_tracker::remove_completion): Define new
9386 function.
9387 * completer.h (completion_tracker::remove_completion): Declare new
9388 function.
9389 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9390 when adding a C++ function symbol.
9391
724fd9ba
AB
93922020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9393
9394 * completer.c (completion_tracker::completion_hash_entry): Define
9395 new class.
9396 (advance_to_filename_complete_word_point): Call
9397 recompute_lowest_common_denominator.
9398 (completion_tracker::completion_tracker): Call discard_completions
9399 to setup the hash table.
9400 (completion_tracker::discard_completions): Allow for being called
9401 from the constructor, pass new equal function, and element deleter
9402 when constructing the hash table. Initialise new class member
9403 variables.
9404 (completion_tracker::maybe_add_completion): Remove use of
9405 m_entries_vec, and store more information into m_entries_hash.
9406 (completion_tracker::recompute_lcd_visitor): New function, most
9407 content taken from...
9408 (completion_tracker::recompute_lowest_common_denominator):
9409 ...here, this now just visits each item in the hash calling the
9410 above visitor.
9411 (completion_tracker::build_completion_result): Remove use of
9412 m_entries_vec, call recompute_lowest_common_denominator.
9413 * completer.h (completion_tracker::have_completions): Remove use
9414 of m_entries_vec.
9415 (completion_tracker::completion_hash_entry): Declare new class.
9416 (completion_tracker::recompute_lowest_common_denominator): Change
9417 function signature.
9418 (completion_tracker::recompute_lcd_visitor): Declare new function.
9419 (completion_tracker::m_entries_vec): Delete.
9420 (completion_tracker::m_entries_hash): Initialize to NULL.
9421 (completion_tracker::m_lowest_common_denominator_valid): New
9422 member variable.
9423 (completion_tracker::m_lowest_common_denominator_max_length): New
9424 member variable.
9425
5a82b8a1
KR
94262020-03-17 Kamil Rytarowski <n54@gmx.com>
9427
9428 * regformats/regdef.h: Put reg in gdb namespace.
9429
fb516a69
KR
94302020-03-17 Kamil Rytarowski <n54@gmx.com>
9431
9432 * i386-bsd-nat.c (gdb_ptrace): New.
9433 * (i386bsd_fetch_inferior_registers,
9434 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9435 * (i386bsd_fetch_inferior_registers,
9436 i386bsd_store_inferior_registers) Use gdb_ptrace.
9437
1c0aa1fb
KR
94382020-03-17 Kamil Rytarowski <n54@gmx.com>
9439
9440 * amd64-bsd-nat.c (gdb_ptrace): New.
9441 * (amd64bsd_fetch_inferior_registers,
9442 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9443 * (amd64bsd_fetch_inferior_registers,
9444 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9445
5ccd2fb7
KR
94462020-03-17 Kamil Rytarowski <n54@gmx.com>
9447
9448 * user-regs.c (user_reg::read): Rename to...
9449 (user_reg::xread): ...this.
9450 * (append_user_reg): Rename argument `read' to `xread'.
9451 * (user_reg_add_builtin): Likewise.
9452 * (user_reg_add): Likewise.
9453 * (value_of_user_reg): Likewise.
9454
2108a63a
KR
94552020-03-17 Kamil Rytarowski <n54@gmx.com>
9456
9457 * sparc-nat.c (gdb_ptrace): New.
9458 * sparc-nat.c (sparc_fetch_inferior_registers)
9459 (sparc_store_inferior_registers) Remove obsolete comment.
9460 * sparc-nat.c (sparc_fetch_inferior_registers)
9461 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9462 * sparc-nat.c (sparc_fetch_inferior_registers)
9463 (sparc_store_inferior_registers) Use gdb_ptrace.
9464
a225c9a8
KR
94652020-03-17 Kamil Rytarowski <n54@gmx.com>
9466
9467 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9468 it to the ptrace call.
9469 * sh-nbsd-nat.c (store_registers): Likewise.
9470
98097623
KR
94712020-03-17 Kamil Rytarowski <n54@gmx.com>
9472
9473 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9474 nbsd_nat_target instead of inf_ptrace_target.
9475 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9476 nbsd_nat_target.
9477
9e38d619
KR
94782020-03-17 Kamil Rytarowski <n54@gmx.com>
9479
9480 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9481
a2ecbe9f
KR
94822020-03-17 Kamil Rytarowski <n54@gmx.com>
9483
9484 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9485 <sys/sysctl.h>.
9486 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9487
58990295
TV
94882020-03-17 Tom de Vries <tdevries@suse.de>
9489
9490 PR gdb/23710
9491 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9492 fields.
9493 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9494 fields.
9495 (process_imported_unit_die): Skip import of c++ CUs.
9496
771dd3a8
TT
94972020-03-16 Tom Tromey <tom@tromey.com>
9498
9499 * p-valprint.c (pascal_object_print_value): Initialize
9500 base_value.
9501
817a7585
AK
95022020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9503 Shahab Vahedi <shahab@synopsys.com>
9504
9505 * Makefile.in: Add arch/arc.o
9506 * configure.tgt: Likewise.
9507 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9508 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9509 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9510 * arc-tdep.h (arc_read_description): Add proto type.
9511 * arch/arc.c: New file.
9512 * arch/arc.h: Likewise.
9513 * features/Makefile: Replace old target descriptions with new.
9514 * features/arc-arcompact.c: Remove.
9515 * features/arc-arcompact.xml: Likewise.
9516 * features/arc-v2.c: Likewise
9517 * features/arc-v2.xml: Likewise
9518 * features/arc/aux-arcompact.xml: New file.
9519 * features/arc/aux-v2.xml: Likewise.
9520 * features/arc/core-arcompact.xml: Likewise.
9521 * features/arc/core-v2.xml: Likewise.
9522 * features/arc/aux-arcompact.c: Generate.
9523 * features/arc/aux-v2.c: Likewise.
9524 * features/arc/core-arcompact.c: Likewise.
9525 * features/arc/core-v2.c: Likewise.
9526 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9527
67430cd0
TT
95282020-03-16 Tom Tromey <tromey@adacore.com>
9529
9530 PR gdb/25663:
9531 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9532 putting value into bcache.
9533
30efb6c7
SM
95342020-03-16 Simon Marchi <simon.marchi@efficios.com>
9535
9536 PR gdb/21500
9537 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9538 to...
9539 (amd64_windows_init_abi_common): ... this. Don't set size of
9540 long type.
9541 (amd64_windows_init_abi): New function.
9542 (amd64_cygwin_init_abi): New function.
9543 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9544 the Cygwin OS ABI.
9545 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9546 comment.
9547
8db52437
SM
95482020-03-16 Simon Marchi <simon.marchi@efficios.com>
9549
9550 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9551 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9552 (pe_import_directory_entry): New struct type.
9553 (is_linked_with_cygwin_dll): New function.
9554 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9555 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9556 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9557
5982a56a
SM
95582020-03-16 Simon Marchi <simon.marchi@efficios.com>
9559
9560 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9561 i386_cygwin_core_osabi_sniffer.
9562
7a1998df
SM
95632020-03-16 Simon Marchi <simon.marchi@efficios.com>
9564
9565 * i386-cygwin-tdep.c: Rename to...
9566 * i386-windows-tdep.c: ... this.
9567 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9568 i386-windows-tdep.c.
9569 * configure.tgt: Likewise.
9570
053205cc
SM
95712020-03-16 Simon Marchi <simon.marchi@efficios.com>
9572
9573 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9574 * osabi.c (gdb_osabi_names): Add "Windows".
9575 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9576 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9577 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9578 i386_cygwin_osabi_sniffer.
9579 (_initialize_i386_cygwin_tdep): Register OS ABI
9580 GDB_OSABI_WINDOWS for i386.
9581 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9582 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9583 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9584 for x86-64.
9585 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9586 when the target matches '*-*-mingw*'.
9587
fe4b2ee6
SM
95882020-03-16 Simon Marchi <simon.marchi@efficios.com>
9589
9590 * defs.h (enum gdb_osabi): Move to...
9591 * osabi.h (enum gdb_osabi): ... here.
9592 * gdbarch.sh: Include osabi.h in gdbarch.h.
9593 * gdbarch.h: Re-generate.
9594
cb9b645d
SM
95952020-03-16 Simon Marchi <simon.marchi@efficios.com>
9596
9597 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9598 function.
9599 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9600
3293bbaf
TT
96012020-03-14 Tom Tromey <tom@tromey.com>
9602
9603 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9604 for C++.
9605 (c_type_print_modifier): Likewise. Add "language" parameter.
9606 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9607 (c_type_print_base_1): Update.
9608 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9609 constants.
9610 * type-stack.c (type_stack::insert): Handle tp_atomic and
9611 tp_restrict.
9612 (type_stack::follow_type_instance_flags): Likewise.
9613 (type_stack::follow_types): Likewise. Merge type-following code.
9614 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9615 (space_identifier, cv_with_space_id)
9616 (const_or_volatile_or_space_identifier_noopt)
9617 (const_or_volatile_or_space_identifier): Remove.
9618 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9619 rules.
9620 (ptr_operator, typebase): Update.
9621 (enum token_flag) <FLAG_C>: New constant.
9622 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9623 "_Atomic".
9624 (lex_one_token): Handle FLAG_C.
9625
154151a6
KR
96262020-03-14 Kamil Rytarowski <n54@gmx.com>
9627
9628 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9629 it to the ptrace call.
9630 * m68k-bsd-nat.c (store_registers): Likewise.
9631
bc107784
KR
96322020-03-14 Kamil Rytarowski <n54@gmx.com>
9633
9634 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9635 gdb_byte *.
9636 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9637 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9638 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9639
01a80117
KR
96402020-03-14 Kamil Rytarowski <n54@gmx.com>
9641
9642 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9643 nbsd_nat_target instead of inf_ptrace_target.
9644 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9645 nbsd_nat_target.
9646
f90280ca
KR
96472020-03-14 Kamil Rytarowski <n54@gmx.com>
9648
9649 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9650 register_t.
9651
6def66f1
KR
96522020-03-14 Kamil Rytarowski <n54@gmx.com>
9653
9654 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9655 it to the ptrace call.
9656 * alpha-bsd-nat.c (store_registers): Likewise.
9657
66eaca97
KR
96582020-03-14 Kamil Rytarowski <n54@gmx.com>
9659
9660 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9661 includes.
9662 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9663 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9664 fill_fpregset): Likewise.
9665
4fed520b
KR
96662020-03-14 Kamil Rytarowski <n54@gmx.com>
9667
9668 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9669 nbsd_nat_target instead of inf_ptrace_target.
9670 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9671 nbsd_nat_target.
9672
2190cf06
KR
96732020-03-14 Kamil Rytarowski <n54@gmx.com>
9674
9675 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9676 register_t.
9677
75c56d3d
KR
96782020-03-14 Kamil Rytarowski <n54@gmx.com>
9679
9680 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9681 it to the ptrace call.
9682 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9683 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9684 * arm-nbsd-nat.c (store_register): Likewise.
9685 * arm-nbsd-nat.c (store_regs): Likewise.
9686 * arm-nbsd-nat.c (store_fp_register): Likewise.
9687 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9688
6018d381
KR
96892020-03-14 Kamil Rytarowski <n54@gmx.com>
9690
9691 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9692 nbsd_nat_target instead of inf_ptrace_target.
9693 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9694 nbsd_nat_target.
9695
013f99f0
KR
96962020-03-14 Kamil Rytarowski <n54@gmx.com>
9697
9698 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9699 it to the ptrace call.
9700 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9701
12753073
KR
97022020-03-14 Kamil Rytarowski <n54@gmx.com>
9703
6227b330
KR
9704 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9705 it to the ptrace call.
9706 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9707
97082020-03-14 Kamil Rytarowski <n54@gmx.com>
9709
9710 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9711 gdb_byte *.
12753073
KR
9712 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9713
d5be5fa4
KR
97142020-03-14 Kamil Rytarowski <n54@gmx.com>
9715
9716 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9717 instead of inf_ptrace_target.
9718 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9719 nbsd_nat_target.
9720
8110f842
KR
97212020-03-14 Kamil Rytarowski <n54@gmx.com>
9722
9723 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9724 register_t.
9725
52feded7
KR
97262020-03-14 Kamil Rytarowski <n54@gmx.com>
9727
9728 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9729 register_t.
9730
25567eee
KR
97312020-03-14 Kamil Rytarowski <n54@gmx.com>
9732
9733 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9734 register_t.
9735
426a9c18
TT
97362020-03-13 Tom Tromey <tom@tromey.com>
9737
9738 * value.h (val_print): Don't declare.
9739 * valprint.h (val_print_array_elements)
9740 (val_print_scalar_formatted, generic_val_print): Don't declare.
9741 * valprint.c (generic_val_print_array): Take a struct value.
9742 (generic_val_print_ptr, generic_val_print_memberptr)
9743 (generic_val_print_bool, generic_val_print_int)
9744 (generic_val_print_char, generic_val_print_complex)
9745 (generic_val_print): Remove.
9746 (generic_value_print): Update.
9747 (do_val_print): Remove unused parameters. Don't call
9748 la_val_print.
9749 (val_print): Remove.
9750 (common_val_print): Update. Don't call value_check_printable.
9751 (val_print_scalar_formatted, val_print_array_elements): Remove.
9752 * rust-lang.c (rust_val_print): Remove.
9753 (rust_language_defn): Update.
9754 * p-valprint.c (pascal_val_print): Remove.
9755 (pascal_value_print_inner): Update.
9756 (pascal_object_print_val_fields, pascal_object_print_val):
9757 Remove.
9758 (pascal_object_print_static_field): Update.
9759 * p-lang.h (pascal_val_print): Don't declare.
9760 * p-lang.c (pascal_language_defn): Update.
9761 * opencl-lang.c (opencl_language_defn): Update.
9762 * objc-lang.c (objc_language_defn): Update.
9763 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9764 * m2-lang.h (m2_val_print): Don't declare.
9765 * m2-lang.c (m2_language_defn): Update.
9766 * language.h (struct language_defn) <la_val_print>: Remove.
9767 * language.c (unk_lang_value_print_inner): Rename. Change
9768 argument types.
9769 (unknown_language_defn, auto_language_defn): Update.
9770 * go-valprint.c (go_val_print): Remove.
9771 * go-lang.h (go_val_print): Don't declare.
9772 * go-lang.c (go_language_defn): Update.
9773 * f-valprint.c (f_val_print): Remove.
9774 * f-lang.h (f_value_print): Don't declare.
9775 * f-lang.c (f_language_defn): Update.
9776 * d-valprint.c (d_val_print): Remove.
9777 * d-lang.h (d_value_print): Don't declare.
9778 * d-lang.c (d_language_defn): Update.
9779 * cp-valprint.c (cp_print_value_fields)
9780 (cp_print_value_fields_rtti, cp_print_value): Remove.
9781 (cp_print_static_field): Update.
9782 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9783 (c_val_print_struct, c_val_print_union, c_val_print_int)
9784 (c_val_print_memberptr, c_val_print): Remove.
9785 * c-lang.h (c_val_print_array, cp_print_value_fields)
9786 (cp_print_value_fields_rtti): Don't declare.
9787 * c-lang.c (c_language_defn, cplus_language_defn)
9788 (asm_language_defn, minimal_language_defn): Update.
9789 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9790 (ada_val_print_enum): Take a struct value.
9791 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9792 (ada_val_print): Remove.
9793 (ada_value_print_1): Update.
9794 (printable_val_type): Remove.
9795 * ada-lang.h (ada_val_print): Don't declare.
9796 * ada-lang.c (ada_language_defn): Update.
9797
42331a1e
TT
97982020-03-13 Tom Tromey <tom@tromey.com>
9799
9800 * valprint.c (do_val_print): Update.
9801 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9802 a struct value.
9803 (value_to_value_object_no_release): Declare.
9804 * python/py-value.c (value_to_value_object_no_release): New
9805 function.
9806 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9807 struct value.
9808 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9809 function.
9810 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9811 a struct value.
9812 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9813 Declare.
9814 (gdbscm_apply_val_pretty_printer): Take a struct value.
9815 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9816 value.
9817 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9818 value.
9819 * extension-priv.h (struct extension_language_ops)
9820 <apply_val_pretty_printer>: Take a struct value.
9821 * cp-valprint.c (cp_print_value): Create a struct value.
9822 (cp_print_value): Update.
9823
3a916a97
TT
98242020-03-13 Tom Tromey <tom@tromey.com>
9825
9826 * ada-valprint.c (print_field_values): Call common_val_print.
9827
b59eac37
TT
98282020-03-13 Tom Tromey <tom@tromey.com>
9829
9830 * ada-valprint.c (val_print_packed_array_elements): Remove
9831 bitoffset and val parameters. Call common_val_print.
9832 (ada_val_print_string): Remove offset, address, and original_value
9833 parameters.
9834 (ada_val_print_array): Update.
9835 (ada_value_print_array): New function.
9836 (ada_value_print_1): Call it.
9837
03371129
TT
98382020-03-13 Tom Tromey <tom@tromey.com>
9839
9840 * ada-valprint.c (ada_value_print): Use common_val_print.
9841
2e088f8b
TT
98422020-03-13 Tom Tromey <tom@tromey.com>
9843
9844 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9845
39ef85a8
TT
98462020-03-13 Tom Tromey <tom@tromey.com>
9847
9848 * ada-valprint.c (ada_value_print_num): New function.
9849 (ada_value_print_1): Use it.
9850
b9fa6e07
TT
98512020-03-13 Tom Tromey <tom@tromey.com>
9852
9853 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9854
416595d6
TT
98552020-03-13 Tom Tromey <tom@tromey.com>
9856
9857 * ada-valprint.c (ada_value_print_ptr): New function.
9858 (ada_value_print_1): Use it.
9859
5b5e15ec
TT
98602020-03-13 Tom Tromey <tom@tromey.com>
9861
9862 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9863 call common_val_print.
9864 (ada_val_print_1): Update.
9865 (ada_value_print_1): New function.
9866 (ada_value_print_inner): Rewrite.
9867
fbf54e75
TT
98682020-03-13 Tom Tromey <tom@tromey.com>
9869
9870 * cp-valprint.c (cp_print_value_fields): Update.
9871 (cp_print_value): New function.
9872
64b653ca
TT
98732020-03-13 Tom Tromey <tom@tromey.com>
9874
9875 * m2-valprint.c (m2_value_print_inner): Use
9876 cp_print_value_fields.
9877 * cp-valprint.c (cp_print_value_fields): New function.
9878 * c-valprint.c (c_value_print_struct): New function.
9879 (c_value_print_inner): Use c_value_print_struct.
9880 * c-lang.h (cp_print_value_fields): Declare.
9881
6999f067
TT
98822020-03-13 Tom Tromey <tom@tromey.com>
9883
9884 * c-valprint.c (c_value_print_array): New function.
9885 (c_value_print_inner): Use it.
9886
ce80b8bd
TT
98872020-03-13 Tom Tromey <tom@tromey.com>
9888
9889 * c-valprint.c (c_value_print_memberptr): New function.
9890 (c_value_print_inner): Use it.
9891
2faac269
TT
98922020-03-13 Tom Tromey <tom@tromey.com>
9893
9894 * c-valprint.c (c_value_print_int): New function.
9895 (c_value_print_inner): Use it.
9896
da3e2c29
TT
98972020-03-13 Tom Tromey <tom@tromey.com>
9898
9899 * c-valprint.c (c_value_print_ptr): New function.
9900 (c_value_print_inner): Use it.
9901
50836231
TT
99022020-03-13 Tom Tromey <tom@tromey.com>
9903
9904 * c-valprint.c (c_value_print_inner): Rewrite.
9905
4f412b6e
TT
99062020-03-13 Tom Tromey <tom@tromey.com>
9907
9908 * valprint.c (generic_value_print_complex): New function.
9909 (generic_value_print): Use it.
9910
f5354008
TT
99112020-03-13 Tom Tromey <tom@tromey.com>
9912
9913 * valprint.c (generic_val_print_float): Don't call
9914 val_print_scalar_formatted.
9915 (generic_val_print, generic_value_print): Update.
9916
3eec3b05
TT
99172020-03-13 Tom Tromey <tom@tromey.com>
9918
9919 * valprint.c (generic_value_print_char): New function
9920 (generic_value_print): Use it.
9921
fdddfccb
TT
99222020-03-13 Tom Tromey <tom@tromey.com>
9923
9924 * valprint.c (generic_value_print_int): New function.
9925 (generic_value_print): Use it.
9926
6dde7521
TT
99272020-03-13 Tom Tromey <tom@tromey.com>
9928
9929 * valprint.c (generic_value_print_bool): New function.
9930 (generic_value_print): Use it.
9931
4112d2e6
TT
99322020-03-13 Tom Tromey <tom@tromey.com>
9933
9934 * valprint.c (generic_val_print_func): Simplify.
9935 (generic_val_print, generic_value_print): Update.
9936
65786af6
TT
99372020-03-13 Tom Tromey <tom@tromey.com>
9938
9939 * valprint.c (generic_val_print_flags): Remove.
9940 (generic_val_print, generic_value_print): Update.
9941 (val_print_type_code_flags): Add original_value parameter.
9942
40f3ce18
TT
99432020-03-13 Tom Tromey <tom@tromey.com>
9944
9945 * valprint.c (generic_val_print): Update.
9946 (generic_value_print): Update.
9947 * valprint.c (generic_val_print_enum): Don't call
9948 val_print_scalar_formatted.
9949
2a5b130b
TT
99502020-03-13 Tom Tromey <tom@tromey.com>
9951
9952 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9953 * valprint.c (generic_value_print_ptr): New function.
9954
abc66ce9
TT
99552020-03-13 Tom Tromey <tom@tromey.com>
9956
9957 * valprint.c (generic_value_print): Rewrite.
9958
07a32858
TT
99592020-03-13 Tom Tromey <tom@tromey.com>
9960
9961 * p-valprint.c (pascal_object_print_value_fields)
9962 (pascal_object_print_value): New functions.
9963
64d64d3a
TT
99642020-03-13 Tom Tromey <tom@tromey.com>
9965
9966 * p-valprint.c (pascal_value_print_inner): Rewrite.
9967
6a95a1f5
TT
99682020-03-13 Tom Tromey <tom@tromey.com>
9969
9970 * f-valprint.c (f_value_print_innner): Rewrite.
9971
59fcdac6
TT
99722020-03-13 Tom Tromey <tom@tromey.com>
9973
9974 * m2-valprint.c (m2_print_unbounded_array): New overload.
9975 (m2_print_unbounded_array): Update.
9976 (m2_print_array_contents): Take a struct value.
9977 (m2_value_print_inner): Rewrite.
9978
d133c3e1
TT
99792020-03-13 Tom Tromey <tom@tromey.com>
9980
9981 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9982 (d_value_print_inner): New function.
9983 * d-lang.h (d_value_print_inner): Declare.
9984 * d-lang.c (d_language_defn): Use d_value_print_inner.
9985
23b0f06b
TT
99862020-03-13 Tom Tromey <tom@tromey.com>
9987
9988 * go-valprint.c (go_value_print_inner): New function.
9989 * go-lang.h (go_value_print_inner): Declare.
9990 * go-lang.c (go_language_defn): Use go_value_print_inner.
9991
5f56f7cb
TT
99922020-03-13 Tom Tromey <tom@tromey.com>
9993
9994 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9995 API.
9996 (rust_val_print): Rewrite.
9997 (rust_value_print_inner): New function, from rust_val_print.
9998 (rust_language_defn): Use rust_value_print_inner.
9999
26792ee0
TT
100002020-03-13 Tom Tromey <tom@tromey.com>
10001
10002 * ada-valprint.c (ada_value_print_inner): New function.
10003 * ada-lang.h (ada_value_print_inner): Declare.
10004 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10005
24051bbe
TT
100062020-03-13 Tom Tromey <tom@tromey.com>
10007
10008 * f-valprint.c (f_value_print_innner): New function.
10009 * f-lang.h (f_value_print_innner): Declare.
10010 * f-lang.c (f_language_defn): Use f_value_print_innner.
10011
c0941be6
TT
100122020-03-13 Tom Tromey <tom@tromey.com>
10013
10014 * p-valprint.c (pascal_value_print_inner): New function.
10015 * p-lang.h (pascal_value_print_inner): Declare.
10016 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10017
62c4663d
TT
100182020-03-13 Tom Tromey <tom@tromey.com>
10019
10020 * m2-valprint.c (m2_value_print_inner): New function.
10021 * m2-lang.h (m2_value_print_inner): Declare.
10022 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10023
62182190
TT
100242020-03-13 Tom Tromey <tom@tromey.com>
10025
10026 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10027 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10028 * c-valprint.c (c_value_print_inner): New function.
10029 * c-lang.h (c_value_print_inner): Declare.
10030 * c-lang.c (c_language_defn, cplus_language_defn)
10031 (asm_language_defn, minimal_language_defn): Use
10032 c_value_print_inner.
10033
1e592a8a
TT
100342020-03-13 Tom Tromey <tom@tromey.com>
10035
10036 * p-valprint.c (pascal_object_print_value_fields): Now static.
10037 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10038
7fe471e9
TT
100392020-03-13 Tom Tromey <tom@tromey.com>
10040
10041 * c-valprint.c (c_val_print_array): Simplify.
10042
d121c6ce
TT
100432020-03-13 Tom Tromey <tom@tromey.com>
10044
10045 * valprint.c (value_print_array_elements): New function.
10046 * valprint.h (value_print_array_elements): Declare.
10047
4dba70ee
TT
100482020-03-13 Tom Tromey <tom@tromey.com>
10049
10050 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10051 * mips-tdep.c (mips_print_register): Use
10052 value_print_scalar_formatted.
10053
4f9ae810
TT
100542020-03-13 Tom Tromey <tom@tromey.com>
10055
10056 * valprint.h (value_print_scalar_formatted): Declare.
10057 * valprint.c (value_print_scalar_formatted): New function.
10058
156bfec9
TT
100592020-03-13 Tom Tromey <tom@tromey.com>
10060
10061 * valprint.h (generic_value_print): Declare.
10062 * valprint.c (generic_value_print): New function.
10063
2b4e573d
TT
100642020-03-13 Tom Tromey <tom@tromey.com>
10065
10066 * valprint.c (do_val_print): Call la_value_print_inner, if
10067 available.
10068 * rust-lang.c (rust_language_defn): Update.
10069 * p-lang.c (pascal_language_defn): Update.
10070 * opencl-lang.c (opencl_language_defn): Update.
10071 * objc-lang.c (objc_language_defn): Update.
10072 * m2-lang.c (m2_language_defn): Update.
10073 * language.h (struct language_defn) <la_value_print_inner>: New
10074 member.
10075 * language.c (unknown_language_defn, auto_language_defn): Update.
10076 * go-lang.c (go_language_defn): Update.
10077 * f-lang.c (f_language_defn): Update.
10078 * d-lang.c (d_language_defn): Update.
10079 * c-lang.c (c_language_defn, cplus_language_defn)
10080 (asm_language_defn, minimal_language_defn): Update.
10081 * ada-lang.c (ada_language_defn): Update.
10082
a1f6a07c
TT
100832020-03-13 Tom Tromey <tom@tromey.com>
10084
10085 * c-valprint.c (c_value_print): Use common_val_print.
10086
410cf315
TT
100872020-03-13 Tom Tromey <tom@tromey.com>
10088
10089 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10090
72a45c93
TT
100912020-03-13 Tom Tromey <tom@tromey.com>
10092
10093 * f-valprint.c (f77_print_array_1, f_val_print): Use
10094 common_val_print.
10095
040f66bd
TT
100962020-03-13 Tom Tromey <tom@tromey.com>
10097
10098 * riscv-tdep.c (riscv_print_one_register_info): Use
10099 common_val_print.
10100
a6e05a6c
TT
101012020-03-13 Tom Tromey <tom@tromey.com>
10102
10103 * mi/mi-main.c (output_register): Use common_val_print.
10104
3444c526
TT
101052020-03-13 Tom Tromey <tom@tromey.com>
10106
10107 * infcmd.c (default_print_one_register_info): Use
10108 common_val_print.
10109
c2a44efe
TT
101102020-03-13 Tom Tromey <tom@tromey.com>
10111
10112 * valprint.h (common_val_print_checked): Declare.
10113 * valprint.c (common_val_print_checked): New function.
10114 * stack.c (print_frame_arg): Use common_val_print_checked.
10115
b0c26e99
TT
101162020-03-13 Tom Tromey <tom@tromey.com>
10117
10118 * valprint.c (do_val_print): New function, from val_print.
10119 (val_print): Use do_val_print.
10120 (common_val_print): Use do_val_print.
10121
ce3acbe9
TT
101222020-03-13 Tom Tromey <tom@tromey.com>
10123
10124 * valprint.c (value_print): Use scoped_value_mark.
10125
96c7f873
TV
101262020-03-13 Tom de Vries <tdevries@suse.de>
10127
10128 PR symtab/25646
10129 * psymtab.c (partial_symtab::partial_symtab): Don't set
10130 globals_offset and statics_offset. Push element onto
10131 current_global_psymbols and current_static_psymbols stacks.
10132 (concat): New function.
10133 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10134 element from current_global_psymbols and current_static_psymbols
10135 stacks. Concat popped elements to global_psymbols and
10136 static_symbols.
10137 (add_psymbol_to_list): Use current_global_psymbols and
10138 current_static_psymbols stacks.
10139 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10140 current_static_psymbols fields.
10141
6ba0a321
CB
101422020-03-12 Christian Biesinger <cbiesinger@google.com>
10143
10144 * corelow.c (sniff_core_bfd): Remove.
10145 (class core_target) <m_core_vec>: Remove.
10146 (core_target::core_target): Update.
10147 (core_file_fns): Remove.
10148 (deprecated_add_core_fns): Remove.
10149 (default_core_sniffer): Remove.
10150 (sniff_core_bfd): Remove.
10151 (default_check_format): Remove.
10152 (gdb_check_format): Remove.
10153 (core_target_open): Update.
10154 (core_target::get_core_register_section): Update.
10155 (get_core_registers_cb): Update.
10156 (core_target::fetch_registers): Update.
10157 * gdbcore.h (struct core_fns): Remove.
10158 (deprecated_add_core_fns): Remove.
10159 (default_core_sniffer): Remove.
10160 (default_check_format): Remove.
10161
227031b2
TT
101622020-03-12 Tom Tromey <tom@tromey.com>
10163
10164 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10165 CORE_ADDR.
10166 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10167
53807e9f
TT
101682020-03-12 Tom Tromey <tom@tromey.com>
10169
10170 * remote.c (remote_target::download_tracepoint)
10171 (remote_target::enable_tracepoint)
10172 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10173 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10174 sprintf_vma.
10175
64f25102
TT
101762020-03-12 Tom Tromey <tom@tromey.com>
10177
10178 * symfile-mem.c: Update CORE_ADDR size assert.
10179
272cd5a3
SM
101802020-03-12 Simon Marchi <simon.marchi@efficios.com>
10181
10182 * selftest.m4: Move to gdbsupport/.
10183 * acinclude.m4: Update path to selftest.m4.
10184
74cd3f9d
SM
101852020-03-12 Simon Marchi <simon.marchi@efficios.com>
10186
10187 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10188 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10189 gdbarch-selfselftests.c and selftest-arch.c.
10190 (SUBDIR_UNITTESTS_OBS): Rename to...
10191 (SELFTESTS_OBS): ... this.
10192 (COMMON_SFILES): Remove disasm-selftests.c and
10193 gdbarch-selftests.c.
10194 * configure.ac: Don't add selftest-arch.{c,o} to
10195 CONFIG_{SRCS,OBS}.
10196 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10197 preprocessor conditions.
10198
db6878ac
SM
101992020-03-12 Simon Marchi <simon.marchi@efficios.com>
10200
10201 * configure.ac: Don't source bfd/development.sh.
10202 * selftest.m4: Modify comment.
10203 * configure: Re-generate.
10204
4d696a5c
SM
102052020-03-12 Simon Marchi <simon.marchi@efficios.com>
10206
10207 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10208 not "true" or "false".
10209 * configure: Re-generate.
10210
8dd8e1c7
CB
102112020-03-12 Christian Biesinger <cbiesinger@google.com>
10212
10213 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10214 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10215 renamed to arm_nbsd_supply_gregset.
10216 (fetch_register): Update to call arm_nbsd_supply_gregset.
10217 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10218 (arm_netbsd_nat_target::fetch_registers): Update.
10219 (fetch_elfcore_registers): Removed.
10220 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10221 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10222 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10223 not require NetBSD system headers.
10224 (arm_nbsd_regset): New struct.
10225 (arm_nbsd_iterate_over_regset_sections): New function.
10226 (arm_netbsd_init_abi_common): Updated to call
10227 set_gdbarch_iterate_over_regset_sections.
10228 * arm-nbsd-tdep.h: New file.
10229
dd69bf7a
KB
102302020-03-11 Kevin Buettner <kevinb@redhat.com>
10231
10232 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10233 recursion.
10234
a0761e34
SM
102352020-03-11 Simon Marchi <simon.marchi@efficios.com>
10236
10237 * configure: Re-generate.
10238
e7a82140
TT
102392020-03-11 Tom Tromey <tromey@adacore.com>
10240
10241 * ada-typeprint.c (print_choices): Fix comment.
10242
dcc050c8
AB
102432020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10244
10245 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10246 previous item in the list, when the list has no items.
10247
1c33af77
TV
102482020-03-11 Tom de Vries <tdevries@suse.de>
10249
10250 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10251 PROP_LOCLIST handling code.
10252
8c95582d
AB
102532020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10254
10255 * buildsym-legacy.c (record_line): Pass extra parameter to
10256 record_line.
10257 * buildsym.c (buildsym_compunit::record_line): Take an extra
10258 parameter, reduce duplication in the line table, and record the
10259 is_stmt flag in the line table.
10260 * buildsym.h (buildsym_compunit::record_line): Add extra
10261 parameter.
10262 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10263 non-statement lines.
10264 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10265 this to the symtab builder.
10266 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10267 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10268 through to dwarf_record_line_1.
10269 * infrun.c (process_event_stop_test): When stepping, don't stop at
10270 a non-statement instruction, and only refresh the step info when
10271 we land in the middle of a line's range. Also add an extra
10272 comment.
10273 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10274 field.
10275 * record-btrace.c (btrace_find_line_range): Only record lines
10276 marked as is-statement.
10277 * stack.c (frame_show_address): Show the frame address if we are
10278 in a non-statement sal.
10279 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10280 (maintenance_print_one_line_table): Print a header for the is_stmt
10281 column, and include is_stmt information in the output.
10282 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10283 preference to non-statements.
10284 (find_pcs_for_symtab_line): Prefer is-statement entries.
10285 (find_line_common): Likewise.
10286 * symtab.h (struct linetable_entry): Add is_stmt field.
10287 (struct symtab_and_line): Likewise.
10288 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10289 arranging the line table.
10290
e4003a34
TV
102912020-03-07 Tom de Vries <tdevries@suse.de>
10292
10293 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10294 DIE.
10295
e8932576
TT
102962020-03-07 Tom Tromey <tom@tromey.com>
10297
10298 * valops.c (value_literal_complex): Remove obsolete comment.
10299 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10300 comment.
10301
29734269
SM
103022020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10303
10304 * infrun.h: Forward-declare thread_info.
10305 (set_step_info): Add thread_info parameter, add doc.
10306 * infrun.c (set_step_info): Add thread_info parameter, move doc
10307 to header.
10308 * infrun.c (process_event_stop_test): Pass thread to
10309 set_step_info call.
10310 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10311 set_step_info.
10312 (prepare_one_step): Add thread_info parameter, pass it to
10313 set_step_frame and prepare_one_step (recursive) call.
10314 (step_1): Pass thread to prepare_one_step call.
10315 (step_command_fsm::should_stop): Pass thread to
10316 prepare_one_step.
10317 (until_next_fsm): Pass thread to set_step_frame call.
10318 (finish_command): Pass thread to set_step_info call.
10319
b7d64b29
HD
103202020-03-06 Hannes Domani <ssbssa@yahoo.de>
10321
10322 * windows-tdep.c (windows_solib_create_inferior_hook):
10323 Check if inferior is running.
10324
09f2921c
TV
103252020-03-06 Tom de Vries <tdevries@suse.de>
10326
10327 * NEWS: Fix "the the".
10328 * ctfread.c: Same.
10329
fd760e79
TV
103302020-03-06 Tom de Vries <tdevries@suse.de>
10331
10332 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10333
20ea4a60
AB
103342020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10335
10336 * .dir-locals.el: Add a comment referencing the other copies of
10337 this file.
10338
0afbabf0
JB
103392020-03-05 John Baldwin <jhb@FreeBSD.org>
10340
10341 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10342 psargs.
10343
842806cb
TBA
103442020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10345
10346 * .gitattributes: New file.
10347
be1e3d3e
TT
103482020-03-04 Tom Tromey <tom@tromey.com>
10349
10350 * symmisc.c (print_symbol_bcache_statistics)
10351 (print_objfile_statistics): Update.
10352 * symfile.c (allocate_symtab): Use intern.
10353 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10354 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10355 macro_cache>: Remove.
10356 <string_cache>: New member.
10357 (struct objfile) <intern>: New methods.
10358 * elfread.c (elf_symtab_read): Use intern.
10359 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10360 (dwarf2_compute_name, dwarf2_physname)
10361 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10362 names.
10363 (guess_partial_die_structure_name): Update.
10364 (partial_die_info::fixup): Intern name.
10365 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10366 name.
10367 (dwarf2_name): Intern name. Update.
10368 * buildsym.c (buildsym_compunit::get_macro_table): Use
10369 string_cache.
10370
4e7625fd
TT
103712020-03-04 Tom Tromey <tom@tromey.com>
10372
10373 * jit.c (bfd_open_from_target_memory): Make "target" const.
10374 * corefile.c (gnutarget): Now const.
10375 * gdbcore.h (gnutarget): Now const.
10376
46f9f931
HD
103772020-03-04 Hannes Domani <ssbssa@yahoo.de>
10378
10379 * NEWS: Mention support for WOW64 processes.
10380 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10381 (amd64_windows_segment_register_p): Remove static.
10382 (_initialize_amd64_windows_nat): Update.
10383 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10384 * i386-windows-nat.c (context_offset): Update.
10385 (i386_mappings): Rename and remove static.
10386 (i386_windows_segment_register_p): Remove static.
10387 (_initialize_i386_windows_nat): Update.
10388 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10389 (STATUS_WX86_SINGLE_STEP): New macro.
10390 (EnumProcessModulesEx): New macro.
10391 (Wow64SuspendThread): New macro.
10392 (Wow64GetThreadContext): New macro.
10393 (Wow64SetThreadContext): New macro.
10394 (Wow64GetThreadSelectorEntry): New macro.
10395 (windows_set_context_register_offsets): Add static.
10396 (windows_set_segment_register_p): Likewise.
10397 (windows_add_thread): Adapt for WOW64 processes.
10398 (windows_fetch_one_register): Likewise.
10399 (windows_nat_target::fetch_registers): Likewise.
10400 (windows_store_one_register): Likewise.
10401 (display_selector): Likewise.
10402 (display_selectors): Likewise.
10403 (handle_exception): Likewise.
10404 (windows_continue): Likewise.
10405 (windows_nat_target::resume): Likewise.
10406 (windows_add_all_dlls): Likewise.
10407 (do_initial_windows_stuff): Likewise.
10408 (windows_nat_target::attach): Likewise.
10409 (windows_get_exec_module_filename): Likewise.
10410 (windows_nat_target::create_inferior): Likewise.
10411 (windows_xfer_siginfo): Likewise.
10412 (_initialize_loadable): Initialize Wow64SuspendThread,
10413 Wow64GetThreadContext, Wow64SetThreadContext,
10414 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10415 * windows-nat.h (windows_set_context_register_offsets):
10416 Remove declaration.
10417 (windows_set_segment_register_p): Likewise.
10418 (i386_windows_segment_register_p): Add declaration.
10419 (amd64_windows_segment_register_p): Likewise.
10420
440cf44e
LM
104212020-03-04 Luis Machado <luis.machado@linaro.org>
10422
10423 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10424 in "info registers" for AArch64/ARM.
10425
10426 The change caused "info registers" to not print GPR's.
10427
10428 gdb/ChangeLog:
10429
10430 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10431
10432 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10433 when reg->group is empty and reggroup is not.
10434
1009d92f
TT
104352020-03-03 Tom Tromey <tromey@adacore.com>
10436
10437 * dwarf2/frame.c (struct dwarf2_frame_cache)
10438 <checked_tailcall_bottom, entry_cfa_sp_offset,
10439 entry_cfa_sp_offset_p>: Remove members.
10440 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10441 (dwarf2_frame_prev_register): Don't call
10442 dwarf2_tailcall_sniffer_first.
10443 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10444 * frame-unwind.c (add_unwinder): New fuction.
10445 (frame_unwind_init): Use it. Add tailcall unwinder.
10446
5e5d66b6
AB
104472020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10448 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10449
10450 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10451 value should be printed as true.
10452
584cf46d
HD
104532020-03-03 Hannes Domani <ssbssa@yahoo.de>
10454
10455 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10456 (windows_init_abi): Set and use windows_so_ops.
10457
7b973adc
SDJ
104582020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10459
10460 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10461 when verifying if dealing with a convenience variable.
10462
bb7b70ab
LM
104632020-03-03 Luis Machado <luis.machado@linaro.org>
10464
10465 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10466
9822cb57
SM
104672020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10468
10469 * infrun.c (gdbarch_supports_displaced_stepping): New.
10470 (use_displaced_stepping): Break up conditions in smaller pieces.
10471 Use gdbarch_supports_displaced_stepping.
10472 (displaced_step_prepare_throw): Use
10473 gdbarch_supports_displaced_stepping.
10474
63e163f2
AB
104752020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10476
10477 * NEWS: Mention new behaviour of the history filename.
10478 * top.c (write_history_p): Add comment.
10479 (show_write_history_p): Add header comment, give a different
10480 message when history writing is on, but the history filename is
10481 empty.
10482 (history_filename): Add comment.
10483 (history_filename_empty): New function.
10484 (show_history_filename): Add header comment, give a different
10485 message when the filename is empty.
10486 (init_history): Compare history_filename against nullptr, and only
10487 read history if the filename is not empty.
10488 (set_history_filename): Add header comment, and only make
10489 non-empty filenames absolute.
10490 (init_main): Make the filename argument to 'set history filename'
10491 optional.
10492
81b86b97
CB
104932020-03-02 Christian Biesinger <cbiesinger@google.com>
10494
10495 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10496 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10497 (fetch_fp_register): Update.
10498 (fetch_fp_regs): Update.
10499 (store_fp_register): Update.
10500 (store_fp_regs): Update.
10501 (arm_netbsd_nat_target::read_description): New function.
10502 (fetch_elfcore_registers): Update.
10503
24ed6739
AB
105042020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10505
10506 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10507 general_thread if the stop reply is missing a thread-id.
10508 (remote_target::process_stop_reply): Use the first non-exited
10509 thread if the target didn't pass a thread-id.
10510 * infrun.c (do_target_wait): Move call to
10511 switch_to_inferior_no_thread to ....
10512 (do_target_wait_1): ... here.
10513
a84bb2a0
JT
105142020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10515
10516 * debuginfod-support.c: Include defs.h first.
10517
658dadf0
TV
105182020-02-28 Tom de Vries <tdevries@suse.de>
10519
10520 * symfile.c (set_initial_language): Use default language for lookup.
10521
4ebe4877
SM
105222020-02-28 Simon Marchi <simon.marchi@efficios.com>
10523
10524 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10525 reader variable, pass `this` to read_cutu_die_from_dwo.
10526
e5da1139
AM
105272020-02-27 Aaron Merey <amerey@redhat.com>
10528
10529 * source.c (open_source_file): Check for nullptr when computing
10530 srcpath.
10531
317f7127
TT
105322020-02-27 Tom Tromey <tromey@adacore.com>
10533
10534 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10535 member.
10536 (dwarf2_add_field): Don't update nfields.
10537 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10538
3104d9ee
AB
105392020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10540
10541 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10542 abs.
10543
b83470bf
TT
105442020-02-26 Tom Tromey <tom@tromey.com>
10545
10546 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10547 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10548 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10549 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10550 per_cu_data.
10551
edfe0a0c
TT
105522020-02-26 Tom Tromey <tom@tromey.com>
10553
10554 * dwarf2/index-write.c (psym_index_map): Change type.
10555 (add_address_entry_worker, write_one_signatured_type)
10556 (recursively_count_psymbols, recursively_write_psymbols)
10557 (class debug_names, psyms_seen_size, write_gdbindex)
10558 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10559
0d79cdc4
AM
105602020-02-26 Aaron Merey <amerey@redhat.com>
10561
10562 * Makefile.in: Handle optional debuginfod support.
10563 * NEWS: Update.
10564 * README: Add --with-debuginfod summary.
10565 * config.in: Regenerate.
10566 * configure: Regenerate.
10567 * configure.ac: Handle optional debuginfod support.
10568 * debuginfod-support.c: debuginfod helper functions.
10569 * debuginfod-support.h: Ditto.
10570 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10571 summary.
10572 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10573 when a dwz file cannot be found.
10574 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10575 debuginfo file cannot be found.
10576 * source.c (open_source_file): Query debuginfod servers when a
10577 source file cannot be found.
10578 * top.c (print_gdb_configuration): Include
10579 --{with,without}-debuginfod in the output.
10580
b65ce565
JG
105812020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10582
10583 * thread.c (thr_try_catch_cmd): Print thread name.
10584
d4c9a4f8
SM
105852020-02-26 Simon Marchi <simon.marchi@efficios.com>
10586
10587 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10588 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10589 dwarf2_fetch_die_type_sect_off): Move to...
10590 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10591 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10592 dwarf2_fetch_die_type_sect_off): ... here.
10593 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10594 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10595 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10596
0dce4280
TV
105972020-02-26 Tom de Vries <tdevries@suse.de>
10598
10599 PR gdb/25603
10600 * symfile.c (set_initial_language): Exit-early if
10601 language_mode == language_mode_manual.
10602
450a1bfc
SM
106032020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10604
10605 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10606 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10607 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10608
9e80cfa1
AB
106092020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10610
10611 * gdbtypes.c (create_array_type_with_stride): Handle negative
10612 array strides.
10613 * valarith.c (value_subscripted_rvalue): Likewise.
10614
09624f1f
LM
106152020-02-25 Luis Machado <luis.machado@linaro.org>
10616
10617 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10618
8cb5117c
SM
106192020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10620
10621 * loc.h (dwarf2_get_die_type): Move to...
10622 * read.h (dwarf2_get_die_type): ... here.
10623 * read.c (dwarf2_get_die_type): Move doc to header.
10624
c325c44e
JB
106252020-02-25 Joel Brobecker <brobecker@adacore.com>
10626
10627 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10628 'gnulib/Makefile.in' to the list.
10629
4ac93832
TT
106302020-02-24 Tom Tromey <tom@tromey.com>
10631
10632 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10633 Remove.
10634 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10635 XOBNEWVEC.
10636
197400e8
TT
106372020-02-24 Tom Tromey <tom@tromey.com>
10638
10639 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10640 New method.
10641 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10642 (dw2_do_instantiate_symtab, dw2_get_file_names)
10643 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10644
76935768
TT
106452020-02-24 Tom Tromey <tom@tromey.com>
10646
10647 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10648 make_scoped_restore.
10649 (dwarf2_psymtab::read_symtab): Don't clear
10650 reading_partial_symbols.
10651
a88ef40d
TV
106522020-02-24 Tom de Vries <tdevries@suse.de>
10653
10654 PR gdb/25592
10655 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10656
c9af6521
TV
106572020-02-24 Tom de Vries <tdevries@suse.de>
10658
10659 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10660 commands layout next/prev/regs.
10661
5707a07a
TT
106622020-02-22 Tom Tromey <tom@tromey.com>
10663
10664 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10665 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10666
3b0fb49e
TT
106672020-02-22 Tom Tromey <tom@tromey.com>
10668
10669 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10670
283be8bf
TT
106712020-02-22 Tom Tromey <tom@tromey.com>
10672
10673 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10674 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10675 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10676 * tui/tui.c (_initialize_tui): Add usage text.
10677
ca793b96
TT
106782020-02-22 Tom Tromey <tom@tromey.com>
10679
10680 * tui/tui-win.c (tui_set_focus_command)
10681 (tui_set_win_height_command): Use error_no_arg.
10682 (_initialize_tui_win): Update help text.
10683 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10684
432b5c40
TT
106852020-02-22 Tom Tromey <tom@tromey.com>
10686
10687 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10688 * tui/tui-disasm.h (struct tui_disasm_window)
10689 <display_start_addr>: Declare.
10690 * tui/tui-source.h (struct tui_source_window)
10691 <display_start_addr>: Declare.
10692 * tui/tui-winsource.h (struct tui_source_window_base)
10693 <show_source_line, display_start_addr>: New methods.
10694 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10695 Rename and move to protected section.
10696 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10697 (tui_source_window_base::do_erase_source_content): Update.
10698 (tui_source_window_base::show_source_line): Now a method.
10699 (tui_source_window_base::show_source_content)
10700 (tui_source_window_base::tui_source_window_base)
10701 (tui_source_window_base::rerender)
10702 (tui_source_window_base::refill)
10703 (tui_source_window_base::do_scroll_horizontal)
10704 (tui_source_window_base::set_is_exec_point_at)
10705 (tui_source_window_base::update_breakpoint_info)
10706 (tui_source_window_base::update_exec_info): Update.
10707 * tui/tui-source.c (tui_source_window::set_contents)
10708 (tui_source_window::showing_source_p)
10709 (tui_source_window::do_scroll_vertical)
10710 (tui_source_window::location_matches_p)
10711 (tui_source_window::line_is_displayed): Update.
10712 (tui_source_window::display_start_addr): New method.
10713 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10714 (tui_disasm_window::do_scroll_vertical)
10715 (tui_disasm_window::location_matches_p): Update.
10716 (tui_disasm_window::display_start_addr): New method.
10717
01b1af32
TT
107182020-02-22 Tom Tromey <tom@tromey.com>
10719
10720 * NEWS: Add entry for gdb.register_window_type.
10721 * tui/tui-layout.h (window_factory): New typedef.
10722 (tui_register_window): Declare.
10723 * tui/tui-layout.c (saved_tui_windows): New global.
10724 (tui_apply_current_layout): Use it.
10725 (tui_register_window): New function.
10726 * python/python.c (do_start_initialization): Call
10727 gdbpy_initialize_tui.
10728 (python_GdbMethods): Add "register_window_type" function.
10729 * python/python-internal.h (gdbpy_register_tui_window)
10730 (gdbpy_initialize_tui): Declare.
10731 * python/py-tui.c: New file.
10732 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10733
fc96d20b
TT
107342020-02-22 Tom Tromey <tom@tromey.com>
10735
10736 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10737
935c78c0
TT
107382020-02-22 Tom Tromey <tom@tromey.com>
10739
10740 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10741 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10742 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10743 (tui_set_win_focus_to): Move from tui-win.c.
10744
0240c8f1
TT
107452020-02-22 Tom Tromey <tom@tromey.com>
10746
10747 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10748 functions.
10749 (known_window_types): New global.
10750 (tui_get_window_by_name): Reimplement.
10751 (initialize_known_windows): New function.
10752 (validate_window_name): Rewrite.
10753 (_initialize_tui_layout): Call initialize_known_windows.
10754
fdb01f0c
TT
107552020-02-22 Tom Tromey <tom@tromey.com>
10756
10757 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10758 Remove constants.
10759 * tui/tui-winsource.h (struct tui_source_window_base)
10760 <tui_source_window_base>: Remove parameter.
10761 * tui/tui-winsource.c
10762 (tui_source_window_base::tui_source_window_base): Remove
10763 parameter.
10764 (tui_source_window_base::refill): Update.
10765 * tui/tui-stack.h (struct tui_locator_window)
10766 <tui_locator_window>: Update.
10767 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10768 Default the constructor.
10769 * tui/tui-regs.h (struct tui_data_item_window)
10770 <tui_data_item_window>: Default the constructor.
10771 (struct tui_data_window) <tui_data_window>: Likewise.
10772 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10773 Default the constructor.
10774 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10775 Default the constructor.
10776 <type>: Remove.
10777 (struct tui_win_info) <tui_win_info>: Default the constructor.
10778 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10779 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10780 Default the constructor.
10781
865a5aec
TT
107822020-02-22 Tom Tromey <tom@tromey.com>
10783
10784 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10785 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10786 * tui/tui-win.c (tui_resize_all): Don't call
10787 tui_delete_invisible_windows.
10788 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10789 done.
10790 (tui_set_layout): Update.
10791 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10792 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10793 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10794
e098d18c
TT
107952020-02-22 Tom Tromey <tom@tromey.com>
10796
10797 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10798 correctly.
10799
eb9c8874
TT
108002020-02-22 Tom Tromey <tom@tromey.com>
10801
10802 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10803
7eed1a8e
TT
108042020-02-22 Tom Tromey <tom@tromey.com>
10805
10806 * tui/tui-winsource.h (struct tui_source_window_iterator)
10807 <inner_iterator>: New etytypedef.
10808 <tui_source_window_iterator>: Take "end" parameter.
10809 <tui_source_window_iterator>: Take iterator.
10810 <operator*, advance>: Update.
10811 <m_iter>: Change type.
10812 <m_end>: New field.
10813 (struct tui_source_windows) <begin, end>: Update.
10814 * tui/tui-layout.c (tui_windows): New global.
10815 (tui_apply_current_layout): Clear tui_windows.
10816 (tui_layout_window::apply): Update tui_windows.
10817 * tui/tui-data.h (tui_windows): Declare.
10818 (all_tui_windows): Now inline function.
10819 (class tui_window_iterator, struct all_tui_windows): Remove.
10820
7c043ba6
TT
108212020-02-22 Tom Tromey <tom@tromey.com>
10822
10823 PR tui/17850:
10824 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10825 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10826 "height" argument.
10827 (class tui_layout_window) <get_sizes>: Likewise.
10828 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10829 argument.
10830 <get_sizes>: Add "height" argument.
10831 <m_vertical>: New field.
10832 * tui/tui-layout.c (tui_layout_split::clone): Update.
10833 (tui_layout_split::get_sizes): Add "height" argument.
10834 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10835 (tui_new_layout_command): Parse "-horizontal".
10836 (_initialize_tui_layout): Update help string.
10837 (tui_layout_split::specification): Add "-horizontal" when needed.
10838 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10839 argument.
10840 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10841 New methods.
10842
6bc56648
TT
108432020-02-22 Tom Tromey <tom@tromey.com>
10844
10845 * tui/tui-layout.h (enum tui_adjust_result): New.
10846 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10847 (class tui_layout_window) <adjust_size>: Return
10848 tui_adjust_result. Rewrite.
10849 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10850 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10851
c22fef7e
TT
108522020-02-22 Tom Tromey <tom@tromey.com>
10853
10854 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10855 parameter and return types.
10856 (class tui_layout_base) <specification>: Add "depth".
10857 (class tui_layout_window) <specification>: Add "depth".
10858 (class tui_layout_split) <specification>: Add "depth".
10859 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10860 and return types.
10861 (tui_new_layout_command): Parse sub-layouts.
10862 (_initialize_tui_layout): Update help string.
10863 (tui_layout_window::specification): Add "depth".
10864 (add_layout_command): Update.
10865
ee325b61
TT
108662020-02-22 Tom Tromey <tom@tromey.com>
10867
10868 * NEWS: Add "tui new-layout" item.
10869 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10870 Add new-layout command to help text.
10871 (validate_window_name): New function.
10872 (tui_new_layout_command): New function.
10873 (_initialize_tui_layout): Register "new-layout".
10874 (tui_layout_window::specification): New method.
10875 (tui_layout_window::specification): New method.
10876 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10877 method.
10878 (class tui_layout_window) <specification>: New method.
10879 (class tui_layout_split) <specification>: New method.
10880
416eb92d
TT
108812020-02-22 Tom Tromey <tom@tromey.com>
10882
10883 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10884 * tui/tui-win.c (window_name_completer): Update comment.
10885 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10886 Declare method.
10887 (class tui_layout_window) <replace_window>: Likewise.
10888 (class tui_layout_split) <replace_window>: Likewise.
10889 (tui_set_layout): Don't declare.
10890 (tui_set_initial_layout): Declare function.
10891 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10892 (asm_regs_layout): New globals.
10893 (tui_current_layout, show_layout): Remove.
10894 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10895 (find_layout, tui_apply_layout): New function.
10896 (layout_completer): Remove.
10897 (tui_next_layout): Reimplement.
10898 (tui_next_layout_command): New function.
10899 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10900 (tui_regs_layout): Reimplement.
10901 (tui_regs_layout_command): New function.
10902 (extract_display_start_addr): Rewrite.
10903 (next_layout, prev_layout): Remove.
10904 (tui_layout_window::replace_window): New method.
10905 (tui_layout_split::replace_window): New method.
10906 (destroy_layout): New function.
10907 (layout_list): New global.
10908 (add_layout_command): New function.
10909 (initialize_layouts): Update.
10910 (tui_layout_command): New function.
10911 (_initialize_tui_layout): Install "layout" commands.
10912 * tui/tui-data.h (enum tui_layout_type): Remove.
10913 (tui_current_layout): Don't declare.
10914
0dbc2fc7
TT
109152020-02-22 Tom Tromey <tom@tromey.com>
10916
10917 * tui/tui-regs.c (tui_reg_layout): Remove.
10918 (tui_reg_command): Use tui_regs_layout.
10919 * tui/tui-layout.h (tui_reg_command): Declare.
10920 * tui/tui-layout.c (tui_reg_command): New function.
10921
5afe342e
TT
109222020-02-22 Tom Tromey <tom@tromey.com>
10923
10924 * tui/tui.c (tui_rl_delete_other_windows): Call
10925 tui_remove_some_windows.
10926 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10927 Declare method.
10928 (class tui_layout_window) <remove_windows>: New method.
10929 (class tui_layout_split) <remove_windows>: Declare.
10930 (tui_remove_some_windows): Declare.
10931 * tui/tui-layout.c (tui_remove_some_windows): New function.
10932 (tui_layout_split::remove_windows): New method.
10933
427326a8
TT
109342020-02-22 Tom Tromey <tom@tromey.com>
10935
10936 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10937 * tui/tui-layout.h (tui_next_layout): Declare.
10938 * tui/tui-layout.c (tui_next_layout): New function.
10939
3fe12b6d
TT
109402020-02-22 Tom Tromey <tom@tromey.com>
10941
10942 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10943 correct coordinates.
10944
59b8b5d2
TT
109452020-02-22 Tom Tromey <tom@tromey.com>
10946
10947 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10948 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10949 DATA_WIN case.
10950
2a3d458b
TT
109512020-02-22 Tom Tromey <tom@tromey.com>
10952
10953 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10954 TUI_DISASM_WIN, not tui_win_list.
10955
3f0cbb04
TT
109562020-02-22 Tom Tromey <tom@tromey.com>
10957
10958 * valprint.c (generic_val_print_enum_1)
10959 (val_print_type_code_flags): Style member names.
10960 * rust-lang.c (val_print_struct, rust_print_enum)
10961 (rust_print_struct_def, rust_internal_print_type): Style member
10962 names.
10963 * p-valprint.c (pascal_object_print_value_fields): Style member
10964 names. Only call fprintf_symbol_filtered for static members.
10965 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10966 * f-valprint.c (f_val_print): Style member names.
10967 * f-typeprint.c (f_type_print_base): Style member names.
10968 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10969 call fprintf_symbol_filtered for static members.
10970 (cp_print_class_member): Style member names.
10971 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10972 member names.
10973 * ada-valprint.c (ada_print_scalar): Style enum names.
10974 (ada_val_print_enum): Likewise.
10975 * ada-typeprint.c (print_enum_type): Style enum names.
10976
d4d947ae
TT
109772020-02-21 Tom Tromey <tom@tromey.com>
10978
10979 * psympriv.h (struct partial_symtab): Update comment.
10980
e94e944b
TT
109812020-02-21 Tom Tromey <tromey@adacore.com>
10982
10983 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10984 type is CORE_ADDR.
10985
1eb73179
TV
109862020-02-21 Tom de Vries <tdevries@suse.de>
10987
10988 PR gdb/25534
10989 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10990 if dependencies[i]->user != NULL.
10991
4f180d53
AT
109922020-02-21 Ali Tamur <tamur@google.com>
10993
10994 * dwarf2/read.c (dwarf2_name): Add null check.
10995
22b6cd70
TT
109962020-02-20 Tom Tromey <tom@tromey.com>
10997
10998 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10999 ">=", in binary search.
11000 (dwarf2_find_containing_comp_unit): New overload.
11001 (run_test): New self-test.
11002 (_initialize_dwarf2_read): Register new test.
11003
bd0cf5a6
NC
110042020-02-20 Nelson Chu <nelson.chu@sifive.com>
11005
11006 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11007 * riscv-tdep.h: Likewise.
11008 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11009 rv32-only CSR.
11010 * features/riscv/64bit-csr.xml: Regenerated.
11011
3f702acd
SDJ
110122020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11013 Tom Tromey <tom@tromey.com>
11014
11015 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11016 of 'fputc_unfiltered'.
11017 (putchar_unfiltered): Call 'fputc_unfiltered'.
11018 (fputc_unfiltered): Call 'fputs_unfiltered'.
11019
d13c7322
AB
110202020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11021
11022 * config.in: Regenerate.
11023 * configure: Regenerate.
11024 * configure.ac: Add --with-python-libdir option.
11025 * main.c: Use WITH_PYTHON_LIBDIR.
11026
869d8950
TT
110272020-02-19 Tom Tromey <tom@tromey.com>
11028
11029 * symtab.c (general_symbol_info::compute_and_set_names): Use
11030 obstack_strndup. Simplify call to symbol_set_demangled_name.
11031
298e9637
SM
110322020-02-19 Simon Marchi <simon.marchi@efficios.com>
11033
11034 * dwarf2/read.c (allocate_signatured_type_table,
11035 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11036 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11037 Remove objfile parameter, update all callers.
11038
08410482
DE
110392020-02-19 Doug Evans <dje@google.com>
11040
11041 PR rust/25535
11042 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11043 rust_enum_variant calculation.
11044
dfdeeca1
TT
110452020-02-19 Tom Tromey <tromey@adacore.com>
11046
11047 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11048
2ef5453b
TT
110492020-02-19 Tom Tromey <tromey@adacore.com>
11050
11051 * ada-lang.c (cache_symbol): Use obstack_strdup.
11052
9f1528a1
AB
110532020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11054
11055 * configure: Regenerate.
11056
d3c22fa8
TT
110572020-02-19 Tom Tromey <tromey@adacore.com>
11058
11059 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11060 NULL check.
11061
bf84f706
MR
110622020-02-19 Maciej W. Rozycki <macro@wdc.com>
11063
11064 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11065
d1c9b20f
AB
110662020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11067
11068 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11069 if GDBSERVER is not defined.
11070 (riscv_tdesc_cache): Likewise, also store const target_desc.
11071 (STATIC_IN_GDB): Define.
11072 (riscv_create_target_description): Update declaration with
11073 STATIC_IN_GDB.
11074 (riscv_lookup_target_description): New function, only define if
11075 GDBSERVER is not defined.
11076 * arch/riscv.h (riscv_create_target_description): Declare only
11077 when GDBSERVER is defined.
11078 (riscv_lookup_target_description): New declaration when GDBSERVER
11079 is not defined.
11080 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11081 (riscv_linux_read_features): ...this, and return
11082 riscv_gdbarch_features instead of target_desc.
11083 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11084 (riscv_linux_read_description): Rename to...
11085 (riscv_linux_read_features): ...this.
11086 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11087 Update to use riscv_gdbarch_features and
11088 riscv_lookup_target_description.
11089 * riscv-tdep.c (riscv_find_default_target_description): Use
11090 riscv_lookup_target_description instead of
11091 riscv_create_target_description.
11092
373d7ac0
SM
110932020-02-18 Simon Marchi <simon.marchi@efficios.com>
11094
11095 * valprint.c (generic_val_print_enum_1): When printing a flag
11096 enum with value 0 and there is no enumerator with value 0, print
11097 just "0" instead of "(unknown: 0x0)".
11098
b29a2df0
SM
110992020-02-18 Simon Marchi <simon.marchi@efficios.com>
11100
11101 * valprint.c (generic_val_print_enum_1): Print unknown part of
11102 flag enum in hex.
11103
6740f0cc
SM
111042020-02-18 Simon Marchi <simon.marchi@efficios.com>
11105
11106 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11107 flag enums to contain duplicate enumerators.
11108 * valprint.c (generic_val_print_enum_1): Update comment.
11109
edd45eb0
SM
111102020-02-18 Simon Marchi <simon.marchi@efficios.com>
11111
11112 * dwarf2/read.c: Include "count-one-bits.h".
11113 (update_enumeration_type_from_children): If an enumerator has
11114 multiple bits set, don't treat the enumeration as a "flag enum".
11115 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11116 of flag enums have 0 or 1 bit set.
11117
6d0cf446
BE
111182020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11119
11120 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11121 conversion.
11122 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11123 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11124 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11125 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11126 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11127
7001c1b7
SM
111282020-02-18 Simon Marchi <simon.marchi@efficios.com>
11129
11130 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11131
fdb61c6c
SM
111322020-02-14 Simon Marchi <simon.marchi@efficios.com>
11133
11134 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11135 displaced_step_closure_up.
11136 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11137 (struct displaced_step_closure_up):
11138 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11139 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11140 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11141 Likewise.
11142 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11143 * gdbarch.c, gdbarch.h: Re-generate.
11144 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11145 displaced_step_closure_up.
11146 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11147 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11148 * infrun.h (displaced_step_closure_up): New type alias.
11149 (struct displaced_step_inferior_state) <step_closure>: Change
11150 type to displaced_step_closure_up.
11151 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11152 displaced_step_closure_up.
11153 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11154
a4a38eb4
TT
111552020-02-14 Tom Tromey <tom@tromey.com>
11156
11157 * minidebug.c (gnu_debug_key): New global.
11158 (find_separate_debug_file_in_section): Use it.
11159
e8217e61
SM
111602020-02-14 Simon Marchi <simon.marchi@efficios.com>
11161
11162 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11163 std::unique_ptr.
11164 * gdbarch.c: Re-generate.
11165 * gdbarch.h: Re-generate.
11166 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11167 change.
11168 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11169 type to std::unique_ptr.
11170 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11171 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11172 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11173 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11174 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11175 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11176 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11177 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11178 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11179
d8d83535
SM
111802020-02-14 Simon Marchi <simon.marchi@efficios.com>
11181
11182 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11183 std::unique_ptr.
11184 (displaced_step_clear): Rename to...
11185 (displaced_step_reset): ... this. Just call displaced->reset ().
11186 (displaced_step_clear_cleanup): Rename to...
11187 (displaced_step_reset_cleanup): ... this.
11188 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11189 (displaced_step_fixup): Likewise.
11190 (resume_1): Likewise.
11191 (handle_inferior_event): Restore child's memory before calling
11192 displaced_step_fixup on the parent.
11193 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11194 to std::unique_ptr.
11195 <step_closure>: Change type to std::unique_ptr.
11196
5f661e03
SM
111972020-02-14 Simon Marchi <simon.marchi@efficios.com>
11198
11199 * arm-tdep.c: Include count-one-bits.h.
11200 (cleanup_block_store_pc): Use count_one_bits.
11201 (cleanup_block_load_pc): Use count_one_bits.
11202 (arm_copy_block_xfer): Use count_one_bits.
11203 (thumb2_copy_block_xfer): Use count_one_bits.
11204 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11205 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11206 (thumb_get_next_pcs_raw): Use count_one_bits.
11207 (arm_get_next_pcs_raw): Use count_one_bits_l.
11208 * arch/arm.c (bitcount): Remove.
11209 * arch/arm.h (bitcount): Remove.
11210
8084e579
TT
112112020-02-14 Tom Tromey <tromey@adacore.com>
11212
11213 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11214 Update.
11215 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11216 * dwarf2/loc.c (call_site_find_chain_1): Return
11217 unique_xmalloc_ptr.
11218 (call_site_find_chain): Likewise.
11219
258bf0ee
RB
112202020-02-14 Richard Biener <rguenther@suse.de>
11221
11222 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11223 on expression with division operators.
11224
f98a8458
AKS
112252020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11226
11227 * MAINTAINERS (Write After Approval): Adding myself.
11228
d1437c0e
TT
112292020-02-12 Tom Tromey <tom@tromey.com>
11230
11231 * event-loop.c (event_data, gdb_event, event_handler_func):
11232 Remove.
11233
3d4560f7
TT
112342020-02-12 Tom Tromey <tom@tromey.com>
11235
11236 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11237 (dwarf2_frame_objfile_data): Add comment.
11238 (find_comp_unit, set_comp_unit): New functions.
11239 (dwarf2_frame_find_fde): Use find_comp_unit.
11240 (dwarf2_build_frame_info): Use set_comp_unit.
11241
21982304
TT
112422020-02-12 Tom Tromey <tom@tromey.com>
11243
11244 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11245 (comp_unit): Don't initialize objfile.
11246 (execute_cfa_program): Add text_offset parameter.
11247 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11248 (dwarf2_frame_cache): Update.
11249 (dwarf2_build_frame_info): Don't set "objfile" member.
11250
4debb237
TT
112512020-02-12 Tom Tromey <tom@tromey.com>
11252
11253 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11254 (decode_frame_entry): Likewise.
11255 (dwarf2_build_frame_info): Update.
11256
0d404d44
TT
112572020-02-12 Tom Tromey <tom@tromey.com>
11258
11259 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11260 (decode_frame_entry_1): Use the comp_unit obstack.
11261
a7a3ae5c
TT
112622020-02-12 Tom Tromey <tom@tromey.com>
11263
11264 * dwarf2/frame.c (struct comp_unit): Add initializers and
11265 constructor.
11266 (dwarf2_frame_objfile_data): Store a comp_unit.
11267 (dwarf2_frame_find_fde): Update.
11268 (dwarf2_build_frame_info): Use "new".
11269
a9d65418
TT
112702020-02-12 Tom Tromey <tom@tromey.com>
11271
11272 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11273 (dwarf2_fde_table): Typedef for std::vector.
11274 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11275 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11276 (decode_frame_entry): Update.
11277 (dwarf2_build_frame_info): Use "new".
11278
7559c217
CB
112792020-02-12 Christian Biesinger <cbiesinger@google.com>
11280
11281 * arm-tdep.c (arm_gdbarch_init): Update.
11282 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11283 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11284 have_neon, is_m>: Change to bool.
11285
aeefc73c
CB
112862020-02-12 Christian Biesinger <cbiesinger@google.com>
11287
11288 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11289
d27b8e5f
TT
112902020-02-12 Tom Tromey <tom@tromey.com>
11291
11292 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11293
cd5900f3
HD
112942020-02-12 Hannes Domani <ssbssa@yahoo.de>
11295
11296 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11297 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11298
f056b22b
TT
112992020-02-11 Tom Tromey <tom@tromey.com>
11300
11301 * psymtab.h: Update comment.
11302
f92ff6b5
TT
113032020-02-11 Tom Tromey <tom@tromey.com>
11304
11305 * gdb_obstack.h (struct auto_obstack): Use
11306 DISABLE_COPY_AND_ASSIGN.
11307
3fd6912b
TT
113082020-02-11 Tom Tromey <tom@tromey.com>
11309
11310 * dwarf2/frame.h (struct objfile): Don't forward declare.
11311
69ed9b74
CB
113122020-02-11 Christian Biesinger <cbiesinger@google.com>
11313
11314 * cris-tdep.c (cris_supply_gregset): Change signature to match
11315 what struct regset expects.
11316 (cris_regset): New struct.
11317 (fetch_core_registers): Remove.
11318 (cris_iterate_over_regset_sections): New function.
11319 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11320 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11321
bda874f6
CB
113222020-02-11 Christian Biesinger <cbiesinger@google.com>
11323
11324 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11325 registers.
11326
754e1564
CB
113272020-02-11 Christian Biesinger <cbiesinger@google.com>
11328
11329 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11330
8ddd8e0e
SM
113312020-02-11 Simon Marchi <simon.marchi@efficios.com>
11332
11333 * configure: Re-generate.
11334
898e7f60
SM
113352020-02-11 Simon Marchi <simon.marchi@efficios.com>
11336
11337 * configure: Re-generate.
11338
58df732b
SM
113392020-02-11 Simon Marchi <simon.marchi@efficios.com>
11340
11341 * acinclude: Update warning.m4 path.
11342 * warning.m4: Move to gdbsupport.
11343
da5bd37e
TT
113442020-02-11 Tom Tromey <tromey@adacore.com>
11345
11346 * remote.c (remote_console_output): Update.
11347 * printcmd.c (printf_command): Update.
11348 * event-loop.c (gdb_wait_for_event): Update.
11349 * linux-nat.c (sigchld_handler): Update.
11350 * remote-sim.c (gdb_os_write_stdout): Update.
11351 (gdb_os_flush_stdout): Update.
11352 (gdb_os_flush_stderr): Update.
11353 (gdb_os_write_stderr): Update.
11354 * exceptions.c (print_exception): Update.
11355 * remote-fileio.c (remote_fileio_func_read): Update.
11356 (remote_fileio_func_write): Update.
11357 * tui/tui.c (tui_enable): Update.
11358 * tui/tui-interp.c (tui_interp::init): Update.
11359 * utils.c (init_page_info): Update.
11360 (putchar_unfiltered, fputc_unfiltered): Update.
11361 (gdb_flush): Update.
11362 (emit_style_escape): Update.
11363 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11364 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11365 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11366 (stderr_file::write): Update.
11367 (stderr_file::puts): Update.
11368 * ui-file.h (ui_file_isatty, ui_file_write)
11369 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11370 (ui_file_puts): Don't declare.
11371
85f0dd3c
TV
113722020-02-10 Tom de Vries <tdevries@suse.de>
11373
11374 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11375 sentinel to char *.
11376
2e927613
TV
113772020-02-09 Tom de Vries <tdevries@suse.de>
11378
11379 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11380 filename if it matches "<artificial>".
11381
6bafc845
HD
113822020-02-09 Hannes Domani <ssbssa@yahoo.de>
11383
11384 * windows-tdep.c (struct enum_value_name): New struct.
11385 (create_enum): New function.
11386 (windows_get_siginfo_type): Create and use enum types.
11387
7928d571
HD
113882020-02-09 Hannes Domani <ssbssa@yahoo.de>
11389
11390 * NEWS: Mention $_siginfo support for Windows.
11391 * windows-nat.c (handle_exception): Set siginfo_er.
11392 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11393 (windows_xfer_siginfo): New function.
11394 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11395 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11396 (init_windows_gdbarch_data): New function.
11397 (get_windows_gdbarch_data): New function.
11398 (windows_get_siginfo_type): New function.
11399 (windows_init_abi): Register windows_get_siginfo_type.
11400 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11401
6751ebae
TT
114022020-02-08 Tom Tromey <tom@tromey.com>
11403
11404 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11405 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11406 <keep>: Declare method.
11407 <m_keep>: Remove member.
11408 <~cutu_reader>: Remove.
11409 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11410 (cutu_reader::cutu_reader): Update.
11411 (cutu_reader::keep): Rename from ~cutu_reader.
11412 (process_psymtab_comp_unit, build_type_psymtabs_1)
11413 (process_skeletonless_type_unit, load_partial_comp_unit)
11414 (load_full_comp_unit, dwarf2_read_addr_index)
11415 (read_signatured_type): Update.
11416
135f5437
TT
114172020-02-08 Tom Tromey <tom@tromey.com>
11418
11419 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11420 "want_partial_unit" parameter.
11421 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11422 Inline check for DW_TAG_partial_unit.
11423 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11424
9f66ff1c
TT
114252020-02-08 Tom Tromey <tom@tromey.com>
11426
11427 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11428 read.c.
11429 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11430 read.c.
11431
c8a7a66f
TT
114322020-02-08 Tom Tromey <tom@tromey.com>
11433
11434 * dwarf2/read.c (read_address): Move to comp-unit.c.
11435 (dwarf2_rnglists_process, dwarf2_ranges_process)
11436 (read_attribute_value, dwarf_decode_lines_1)
11437 (var_decode_location, decode_locdesc): Update.
11438 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11439 read.c. Remove "cu" parameter.
11440 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11441 method.
11442
8266302d
TT
114432020-02-08 Tom Tromey <tom@tromey.com>
11444
11445 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11446 (read_indirect_line_string): Update.
11447 * dwarf2/comp-unit.c (read_offset): Remove.
11448 (read_comp_unit_head): Update.
11449 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11450 method.
11451 (read_offset): Don't declare.
11452
4057dfde
TT
114532020-02-08 Tom Tromey <tom@tromey.com>
11454
11455 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11456 * dwarf2/read.c (struct comp_unit_head): Move to
11457 dwarf2/comp-unit.h.
11458 (enum class rcuh_kind): Move to comp-unit.h.
11459 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11460 (read_comp_unit_head, error_check_comp_unit_head)
11461 (read_and_check_comp_unit_head): Move to comp-unit.c.
11462 (read_offset, dwarf_unit_type_name): Likewise.
11463 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11464 (cutu_reader::cutu_reader, read_call_site_scope)
11465 (find_partial_die, follow_die_offset): Update.
11466 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11467
24aa364d
TT
114682020-02-08 Tom Tromey <tom@tromey.com>
11469
11470 * dwarf2/read.c (read_offset_1): Move to leb.c.
11471 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11472 (dwarf_decode_macro_bytes): Update.
11473 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11474 * dwarf2/leb.h (read_offset): Declare.
11475
2c7d5afc
TT
114762020-02-08 Tom Tromey <tom@tromey.com>
11477
11478 * dwarf2/read.c (dwarf2_section_size): Remove.
11479 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11480 Update.
11481 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11482
4075cb26
TT
114832020-02-08 Tom Tromey <tom@tromey.com>
11484
11485 * dwarf2/read.c (read_initial_length): Move to leb.c.
11486 * dwarf2/leb.h (read_initial_length): Declare.
11487 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11488 handle_nonstd parameter.
11489 * dwarf2/frame.c (read_initial_length): Remove.
11490 (decode_frame_entry_1): Update.
11491
09ba997f
TT
114922020-02-08 Tom Tromey <tom@tromey.com>
11493
11494 * dwarf2/loc.c (dwarf2_find_location_expression)
11495 (dwarf_evaluate_loc_desc::get_tls_address)
11496 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11497 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11498 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11499 (dwarf2_compile_property_to_c)
11500 (dwarf2_loc_desc_get_symbol_read_needs)
11501 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11502 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11503 (loclist_describe_location, loclist_tracepoint_var_ref)
11504 (loclist_generate_c_location): Update.
11505 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11506 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11507 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11508 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11509 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11510 (dwarf2_per_cu_data::addr_size)
11511 (dwarf2_per_cu_data::ref_addr_size)
11512 (dwarf2_per_cu_data::text_offset)
11513 (dwarf2_per_cu_data::addr_type): Now methods.
11514 (per_cu_header_read_in): Make per_cu "const".
11515 (dwarf2_version): Remove.
11516 (dwarf2_per_cu_data::int_type): Now a method.
11517 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11518 (set_die_type, read_array_type, read_subrange_index_type)
11519 (read_tag_string_type, read_subrange_type): Update.
11520 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11521 offset_size, ref_addr_size, text_offset, addr_type, version,
11522 objfile, int_type, addr_sized_int_type>: Declare methods.
11523
96c738c0
TT
115242020-02-08 Tom Tromey <tom@tromey.com>
11525
11526 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11527 Move earlier.
11528
8fdd972c
TT
115292020-02-08 Tom Tromey <tom@tromey.com>
11530
11531 * dwarf2/read.h (dwarf_line_debug): Declare.
11532 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11533 * dwarf2/read.c: Move line_header code to new files.
11534 (dwarf_line_debug): No longer static.
11535 * dwarf2/line-header.c: New file.
11536 * dwarf2/line-header.h: New file.
11537
03075812
TT
115382020-02-08 Tom Tromey <tom@tromey.com>
11539
11540 * dwarf2/read.c (struct line_header) <file_full_name,
11541 file_file_name>: Return unique_xmalloc_ptr.
11542 (line_header::file_file_name): Update.
11543 (line_header::file_full_name): Update.
11544 (dw2_get_file_names_reader): Update.
11545 (macro_start_file): Update.
11546
bb822404
TT
115472020-02-08 Tom Tromey <tom@tromey.com>
11548
11549 * dwarf2/read.c (struct line_header) <file_full_name,
11550 file_file_name>: Declare methods.
11551 (dw2_get_file_names_reader): Update.
11552 (file_file_name): Now a method.
11553 (file_full_name): Likewise.
11554 (macro_start_file): Update.
11555
009b64fc
TT
115562020-02-08 Tom Tromey <tom@tromey.com>
11557
11558 * dwarf2/read.c (dwarf_always_disassemble)
11559 (show_dwarf_always_disassemble): Move to loc.c.
11560 (_initialize_dwarf2_read): Move "always-disassemble" registration
11561 to loc.c.
11562 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11563 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11564 static.
11565 (show_dwarf_always_disassemble): Move from read.c.
11566 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11567
5895093f
TT
115682020-02-08 Tom Tromey <tom@tromey.com>
11569
11570 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11571 (create_quick_file_names_table): Return htab_up.
11572 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11573 Update.
11574 * dwarf2/read.h (struct dwarf2_per_objfile)
11575 <quick_file_names_table>: Now htab_up.
11576
b3b32279
TT
115772020-02-08 Tom Tromey <tom@tromey.com>
11578
11579 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11580
1d33d811
TT
115812020-02-08 Tom Tromey <tom@tromey.com>
11582
11583 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11584 Rewrite.
11585 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11586 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11587 (abbrev_table::abbrev_table): No longer inline.
11588 (ABBREV_HASH_SIZE): Remove.
11589 (abbrev_table::m_abbrevs): Now an htab_up.
11590
86de1d91
TT
115912020-02-08 Tom Tromey <tom@tromey.com>
11592
11593 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11594 (cutu_reader): Update.
11595 (build_type_psymtabs_1): Update.
11596 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11597 (abbrev_table::alloc_abbrev): Update.
11598 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11599 (abbrev_table::read): New static method, renamed from
11600 abbrev_table_read_table.
11601 (abbrev_table::alloc_abbrev)
11602 (abbrev_table::add_abbrev): Now private.
11603 (abbrev_table::abbrev_table): Now private.
11604 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11605
0335378b
TT
116062020-02-08 Tom Tromey <tom@tromey.com>
11607
11608 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11609 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11610 htab_up.
11611
48b490f2
TT
116122020-02-08 Tom Tromey <tom@tromey.com>
11613
11614 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11615 htab_up.
11616 (lookup_dwo_unit_in_dwp): Update.
11617 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11618 on obstack.
11619
bc68fb19
TT
116202020-02-08 Tom Tromey <tom@tromey.com>
11621
11622 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11623 obstack.
11624
d15acc42
TT
116252020-02-08 Tom Tromey <tom@tromey.com>
11626
11627 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11628 line_header_hash.
11629 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11630 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11631 Change type to htab_up.
11632
eaa5fa8b
TT
116332020-02-08 Tom Tromey <tom@tromey.com>
11634
11635 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11636 htab_up. Don't allocate on obstack.
11637 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11638 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11639 Change type to htab_up.
11640
b0b6a987
TT
116412020-02-08 Tom Tromey <tom@tromey.com>
11642
11643 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11644 Change type to htab_up.
11645 * dwarf2/read.c (create_signatured_type_table_from_index)
11646 (create_signatured_type_table_from_debug_names)
11647 (create_all_type_units, add_type_unit)
11648 (lookup_dwo_signatured_type, lookup_signatured_type)
11649 (process_skeletonless_type_unit): Update.
11650 (create_debug_type_hash_table, create_debug_types_hash_table):
11651 Change type of types_htab.
11652 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11653 htab_up. Don't allocate on obstack.
11654 (create_cus_hash_table): Change type of cus_htab parameter.
11655 (struct dwo_file) <cus, tus>: Now htab_up.
11656 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11657 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11658 (queue_and_load_all_dwo_tus): Update.
11659 * dwarf2/index-write.c (write_gdbindex): Update.
11660 (write_debug_names): Update.
11661
39856def
TT
116622020-02-08 Tom Tromey <tom@tromey.com>
11663
11664 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11665 dwarf2/read.c. Remove "next" member. Add constructor ntad
11666 destructor.
11667 (struct dwarf2_per_objfile) <queue>: New member.
11668 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11669 dwarf2/read.h.
11670 (dwarf2_queue, dwarf2_queue_tail): Remove.
11671 (class dwarf2_queue_guard): Add parameter to constructor. Use
11672 DISABLE_COPY_AND_ASSIGN.
11673 <m_per_objfile>: New member.
11674 <~dwarf2_queue_guard>: Rewrite.
11675 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11676 Update.
11677 (~dwarf2_queue_item): New.
11678
3e225074
TT
116792020-02-08 Tom Tromey <tom@tromey.com>
11680
11681 * dwarf2/read.c (struct die_info) <has_children>: New member.
11682 (dw2_get_file_names_reader): Remove has_children.
11683 (dw2_get_file_names): Update.
11684 (read_cutu_die_from_dwo): Remove has_children.
11685 (cutu_reader::init_tu_and_read_dwo_dies)
11686 (cutu_reader::cutu_reader): Update.
11687 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11688 Remove has_children.
11689 (build_type_psymtabs_1, process_skeletonless_type_unit)
11690 (load_partial_comp_unit, load_full_comp_unit): Update.
11691 (create_dwo_cu_reader): Remove has_children.
11692 (create_cus_hash_table, read_die_and_children): Update.
11693 (read_full_die_1,read_full_die): Remove has_children.
11694 (read_signatured_type): Update.
11695 (class cutu_reader) <has_children>: Remove.
11696
82ca8957
TT
116972020-02-08 Tom Tromey <tom@tromey.com>
11698
11699 * dwarf2/expr.c: Rename from dwarf2expr.c.
11700 * dwarf2/expr.h: Rename from dwarf2expr.h.
11701 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11702 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11703 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11704 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11705 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11706 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11707 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11708 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11709 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11710 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11711 * dwarf2/loc.c: Rename from dwarf2loc.c.
11712 * dwarf2/loc.h: Rename from dwarf2loc.h.
11713 * dwarf2/read.c: Rename from dwarf2read.c.
11714 * dwarf2/read.h: Rename from dwarf2read.h.
11715 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11716 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11717 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11718 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11719 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11720 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11721 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11722 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11723 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11724 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11725 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11726 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11727 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11728 Update.
11729 * Makefile.in (COMMON_SFILES): Update.
11730 (HFILES_NO_SRCDIR): Update.
11731
9e35d499
TT
117322020-02-08 Tom Tromey <tom@tromey.com>
11733
11734 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11735 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11736
1eba2311
TT
117372020-02-08 Tom Tromey <tom@tromey.com>
11738
11739 * dwarf2read.h (struct die_info): Don't declare.
11740
e41c2da2
TT
117412020-02-08 Tom Tromey <tom@tromey.com>
11742
11743 * dwarf2read.h (die_info_ptr): Remove typedef.
11744
4fc6c0d5
TT
117452020-02-08 Tom Tromey <tom@tromey.com>
11746
11747 * dwarf2read.c (read_call_site_scope)
11748 (handle_data_member_location, dwarf2_add_member_fn)
11749 (mark_common_block_symbol_computed, read_common_block)
11750 (attr_to_dynamic_prop, partial_die_info::read)
11751 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11752 (dwarf2_symbol_mark_computed, set_die_type): Update.
11753 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11754 method.
11755 (attr_form_is_block): Don't declare.
11756 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11757
cd6c91b4
TT
117582020-02-08 Tom Tromey <tom@tromey.com>
11759
11760 * dwarf2read.c (dwarf2_find_base_address, )
11761 (read_call_site_scope, rust_containing_type)
11762 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11763 (handle_data_member_location, dwarf2_add_member_fn)
11764 (get_alignment, read_structure_type, process_structure_scope)
11765 (mark_common_block_symbol_computed, read_common_block)
11766 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11767 (partial_die_info::read, read_attribute_value, new_symbol)
11768 (lookup_die_type, dwarf2_get_ref_die_offset)
11769 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11770 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11771 (dwarf2_symbol_mark_computed): Update.
11772 * dwarf2/attribute.h (struct attribute) <value_as_address,
11773 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11774 methods.
11775 (value_as_address, attr_form_is_section_offset)
11776 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11777 * dwarf2/attribute.c (attribute::value_as_address)
11778 (attribute::form_is_section_offset, attribute::form_is_constant)
11779 (attribute::form_is_ref): Now methods.
11780
162dce55
TT
117812020-02-08 Tom Tromey <tom@tromey.com>
11782
11783 * dwarf2read.c (struct attribute, DW_STRING)
11784 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11785 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11786 (attr_form_is_block, attr_form_is_section_offset)
11787 (attr_form_is_constant, attr_form_is_ref): Move.
11788 * dwarf2/attribute.h: New file.
11789 * dwarf2/attribute.c: New file, from dwarf2read.c.
11790 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11791
3054dd54
TT
117922020-02-08 Tom Tromey <tom@tromey.com>
11793
11794 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11795 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11796 Move.
11797 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11798 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11799 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11800 abbrev.c.
11801 * dwarf2/abbrev.h: New file.
11802 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11803 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11804
96b79293
TT
118052020-02-08 Tom Tromey <tom@tromey.com>
11806
11807 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11808 (dwarf2_section_size, dwarf2_get_section_info)
11809 (create_signatured_type_table_from_debug_names)
11810 (create_addrmap_from_aranges, read_debug_names_from_section)
11811 (get_gdb_index_contents_from_section, read_comp_unit_head)
11812 (error_check_comp_unit_head, read_abbrev_offset)
11813 (create_debug_type_hash_table, init_cu_die_reader)
11814 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11815 (read_comp_units_from_section, create_cus_hash_table)
11816 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11817 (create_dwp_v2_section, dwarf2_rnglists_process)
11818 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11819 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11820 (read_indirect_string_from_dwz, read_addr_index_1)
11821 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11822 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11823 (fill_in_loclist_baton): Update.
11824 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11825 get_containing_section, get_bfd_owner, get_bfd_section,
11826 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11827 (dwarf2_read_section, get_section_name, get_section_file_name)
11828 (get_containing_section, get_section_bfd_owner)
11829 (get_section_bfd_section, get_section_name, get_section_file_name)
11830 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11831 declare.
11832 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11833 (dwarf2_section_info::get_bfd_owner)
11834 (dwarf2_section_info::get_bfd_section)
11835 (dwarf2_section_info::get_name)
11836 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11837 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11838 (dwarf2_section_info::read): Now methods.
11839 * dwarf-index-write.c (class debug_names): Update.
11840
2c86cff9
TT
118412020-02-08 Tom Tromey <tom@tromey.com>
11842
11843 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11844 Move to dwarf2/section.h.
11845 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11846 (get_section_bfd_section, get_section_name)
11847 (get_section_file_name, get_section_id, get_section_flags)
11848 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11849 dwarf2/section.c.
11850 * dwarf2/section.h: New file.
11851 * dwarf2/section.c: New file, from dwarf2read.c.
11852 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11853
f4382c45
TT
118542020-02-08 Tom Tromey <tom@tromey.com>
11855
11856 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11857 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11858 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11859 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11860 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11861 * dwarf2/leb.h: New file, from dwarf2read.c.
11862 * dwarf2/leb.c: New file, from dwarf2read.c.
11863 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11864 Remove.
11865 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11866 (COMMON_SFILES): Add dwarf2/leb.c.
11867
01840b7a
JB
118682020-02-08 Joel Brobecker <brobecker@adacore.com>
11869
11870 GDB 9.1 released.
11871
dfcb27e4
IB
118722020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11873
11874 PR gdb/25190:
aac66a4c
SM
11875 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11876 * gdb/remote.c (remote_console_output): Update.
11877 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11878 (ui_file_puts): ...this.
11879 * gdb/ui-file.h (ui_file_puts): Add declaration.
11880 * gdb/utils.c (emit_style_escape): Update.
11881 (flush_wrap_buffer): Update.
11882 (fputs_maybe_filtered): Update.
11883 (fputs_unfiltered): Add function.
dfcb27e4 11884
faa17681
IB
118852020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11886
aac66a4c
SM
11887 * gdb/event-loop.c (gdb_wait_for_event): Update.
11888 * gdb/printcmd.c (printf_command): Update.
11889 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11890 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11891 (gdb_os_flush_stderr): Update.
11892 * gdb/remote.c (remote_console_output): Update.
11893 * gdb/ui-file.c (gdb_flush): Rename to...
11894 (ui_file_flush): ...this.
11895 (stderr_file::write): Update.
11896 (stderr_file::puts): Update.
11897 * gdb/ui-file.h (gdb_flush): Rename to...
11898 (ui_file_flush): ...this.
11899 * gdb/utils.c (gdb_flush): Add function.
11900 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 11901
5abbbe1d
TT
119022020-02-07 Tom Tromey <tromey@adacore.com>
11903
11904 PR breakpoints/24915:
11905 * source.c (find_and_open_source): Do not check basenames_may_differ.
11906
919adfe8
TT
119072020-02-07 Tom Tromey <tom@tromey.com>
11908
11909 * README: Update gdbserver documentation.
11910 * gdbserver: Move to top level.
11911 * configure.tgt (build_gdbserver): Remove.
11912 * configure.ac: Remove --enable-gdbserver.
11913 * configure: Rebuild.
11914 * Makefile.in (distclean): Don't mention gdbserver.
11915
1d5d29e7
SV
119162020-02-06 Shahab Vahedi <shahab@synopsys.com>
11917
11918 * source-cache.c (source_cache::ensure): Surround
11919 get_plain_source_lines with a try/catch.
11920 (source_cache::get_line_charpos): Get rid of try/catch
11921 and only check for the return value of "ensure".
11922 * tui/tui-source.c (tui_source_window::set_contents):
11923 Simplify "nlines" calculation.
11924
6eb1129c
SV
119252020-02-06 Shahab Vahedi <shahab@synopsys.com>
11926
11927 * MAINTAINERS (Write After Approval): Add myself.
11928
c6a42d11
CB
119292020-02-05 Christian Biesinger <cbiesinger@google.com>
11930
11931 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11932 function call.
11933
c8ecdda6
CB
119342020-02-05 Christian Biesinger <cbiesinger@google.com>
11935
11936 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11937
f6480e70
MR
119382020-02-05 Maciej W. Rozycki <macro@wdc.com>
11939
11940 * nat/riscv-linux-tdesc.h: New file.
11941 * nat/riscv-linux-tdesc.c: New file, taking code from...
11942 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11943 ... here.
11944 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11945 NATDEPFILES.
11946
dcc9fbc6
AB
119472020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11948
11949 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11950 we don't set the fake simulator ptid to the null_ptid.
11951
719546c4
SM
119522020-02-03 Simon Marchi <simon.marchi@efficios.com>
11953
11954 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11955 * gdbthread.h (class thread_info) <resumed>: Likewise.
11956 * infrun.c (resume_1): Likewise.
11957 (proceed): Likewise.
11958 (infrun_thread_stop_requested): Likewise.
11959 (stop_all_threads): Likewise.
11960 (handle_inferior_event): Likewise.
11961 (restart_threads): Likewise.
11962 (finish_step_over): Likewise.
11963 (keep_going_stepped_thread): Likewise.
11964 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11965 (linux_handle_extended_wait): Likewise.
11966 * record-btrace.c (get_thread_current_frame_id): Likewise.
11967 * record-full.c (record_full_wait_1): Likewise.
11968 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11969 * target.c (target_resume): Likewise.
11970 * thread.c (set_running_thread): Likewise.
11971
e409c542
AKS
119722020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11973
11974 * f-valprint.c (f77_print_array_1): Changed datatype of index
11975 variable to LONGEST from int to enable it to contain bound
11976 values correctly.
11977
ee98c0da
MR
119782020-02-03 Maciej W. Rozycki <macro@wdc.com>
11979
11980 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11981 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11982 offsets according to FLEN determined.
11983 (riscv_linux_nat_target::read_description): Determine FLEN
11984 dynamically.
11985 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11986 according to FLEN determined.
11987 (riscv_linux_nat_target::store_registers): Likewise.
11988
aa66aac4
SV
119892020-02-01 Shahab Vahedi <shahab@synopsys.com>
11990
11991 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11992 when reg->group is empty and reggroup is not.
11993
fd9faca8
TT
119942020-01-31 Tom Tromey <tromey@adacore.com>
11995
11996 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11997 Call beneath target's mourn_inferior after unpushing.
11998
42330a68
AB
119992020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12000
12001 PR tui/9765
12002 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12003 have enough lines to fill the screen, still return the lowest
12004 address we found.
12005
7a27a45b
AB
120062020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12007
12008 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12009 '-', '<', and '>' commands.
12010
c47f70e2
PA
120112020-01-29 Pedro Alves <palves@redhat.com>
12012 Sergio Durigan Junior <sergiodj@redhat.com>
12013
12014 * infcmd.c (construct_inferior_arguments): Assert that
12015 'argc' is greater than 0.
12016
5133a315
LM
120172020-01-29 Luis Machado <luis.machado@linaro.org>
12018
12019 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12020 (BRK_INSN_MASK): Define to 0xd4200000.
12021 (aarch64_program_breakpoint_here_p): New function.
12022 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12023 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12024 breakpoint.c.
12025 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12026 breakpoint.h
12027 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12028 call gdbarch_program_breakpoint_here_p.
12029 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12030 default_program_breakpoint_here_p, changed return type to bool and
12031 simplified.
12032 * breakpoint.h (program_breakpoint_here): Moved prototype to
12033 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12034 return type to bool.
12035 * gdbarch.c: Regenerate.
12036 * gdbarch.h: Regenerate.
12037 * gdbarch.sh (program_breakpoint_here_p): New method.
12038 * infrun.c (handle_signal_stop): Call
12039 gdbarch_program_breakpoint_here_p.
12040
168f8c6b
TT
120412020-01-26 Tom Tromey <tom@tromey.com>
12042
12043 * ctfread.c (struct ctf_fp_info): Reindent.
12044 (_initialize_ctfread): Remove.
12045
128a391f
TT
120462020-01-26 Tom Tromey <tom@tromey.com>
12047
12048 * psymtab.c (partial_map_expand_apply)
12049 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12050 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12051 (psym_print_stats, psym_expand_symtabs_for_function)
12052 (psym_map_symbol_filenames, psym_map_matching_symbols)
12053 (psym_expand_symtabs_matching)
12054 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12055 (maintenance_check_psymtabs): Use new methods.
12056 * psympriv.h (struct partial_symtab) <readin_p,
12057 get_compunit_symtab>: New methods.
12058 <readin, compunit_symtab>: Remove members.
12059 (struct standard_psymtab): New.
12060 (struct legacy_psymtab): Derive from standard_psymtab.
12061 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12062 standard_psymtab.
12063 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12064
0494dbec
TT
120652020-01-26 Tom Tromey <tom@tromey.com>
12066
12067 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12068 read_dependencies. Add assert.
12069 * psymtab.c (partial_symtab::read_dependencies): New method.
12070 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12071 method.
12072 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12073 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12074 read_dependencies.
12075 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12076 Add assert.
12077
8566b89b
TT
120782020-01-26 Tom Tromey <tom@tromey.com>
12079
12080 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12081 Call expand_psymtab.
12082 (xcoff_read_symtab): Call expand_psymtab.
12083 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12084 legacy_expand_psymtab.
12085 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12086 method.
12087 (struct legacy_psymtab) <expand_psymtab>: Implement.
12088 <legacy_expand_psymtab>: New member.
12089 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12090 (parse_partial_symbols): Set legacy_expand_psymtab.
12091 (psymtab_to_symtab_1): Change argument order. Call
12092 expand_psymtab.
12093 (new_psymtab): Set legacy_expand_psymtab.
12094 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12095 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12096 expand_psymtab.
12097 (dwarf2_psymtab::expand_psymtab): Rename from
12098 psymtab_to_symtab_1. Call expand_psymtab.
12099 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12100 (dbx_end_psymtab): Likewise.
12101 (dbx_psymtab_to_symtab_1): Change argument order. Call
12102 expand_psymtab.
12103 (dbx_read_symtab): Call expand_psymtab.
12104 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12105 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12106 (ctf_psymtab::read_symtab): Call expand_psymtab.
12107
077cbab2
TT
121082020-01-26 Tom Tromey <tom@tromey.com>
12109
12110 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12111 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12112 messages.
12113 * mdebugread.c (mdebug_read_symtab): Remove prints.
12114 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12115 assert.
12116 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12117
891813be
TT
121182020-01-26 Tom Tromey <tom@tromey.com>
12119
12120 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12121 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12122 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12123 legacy_symtab.
12124 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12125 * psymtab.c (psymtab_to_symtab): Call method.
12126 (dump_psymtab): Update.
12127 * psympriv.h (struct partial_symtab): Add virtual destructor.
12128 <read_symtab>: New method.
12129 (struct legacy_symtab): New.
12130 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12131 (struct pst_map) <pst>: Now a legacy_psymtab.
12132 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12133 (new_psymtab): Use legacy_psymtab.
12134 * dwarf2read.h (struct dwarf2_psymtab): New.
12135 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12136 * dwarf2read.c (dwarf2_create_include_psymtab)
12137 (dwarf2_build_include_psymtabs, create_type_unit_group)
12138 (create_partial_symtab, process_psymtab_comp_unit_reader)
12139 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12140 (set_partial_user): Use dwarf2_psymtab.
12141 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12142 (psymtab_to_symtab_1, process_full_comp_unit)
12143 (process_full_type_unit, dwarf2_ranges_read)
12144 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12145 (dwarf_decode_lines): Use dwarf2_psymtab.
12146 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12147 (add_address_entry_worker, write_one_signatured_type)
12148 (recursively_count_psymbols, recursively_write_psymbols)
12149 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12150 (write_debug_names): Likewise.
12151 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12152 <pst>: Now a legacy_psymtab.
12153 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12154 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12155 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12156 * ctfread.c (struct ctf_psymtab): New.
12157 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12158 ctf_psymtab.
12159 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12160 (create_partial_symtab): Return a ctf_psymtab.
12161 (scan_partial_symbols): Update.
12162
c3693a1d
TT
121632020-01-26 Tom Tromey <tom@tromey.com>
12164
12165 * xcoffread.c (xcoff_start_psymtab): Use new.
12166 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12167 renamed from start_psymtab_common.
12168 * psympriv.h (struct partial_symtab): Add new constructor.
12169 (start_psymtab_common): Don't declare.
12170 * mdebugread.c (parse_partial_symbols): Use new.
12171 * dwarf2read.c (create_partial_symtab): Use new.
12172 * dbxread.c (start_psymtab): Use new.
12173 * ctfread.c (create_partial_symtab): Use new.
12174
32caafd0
TT
121752020-01-26 Tom Tromey <tom@tromey.com>
12176
12177 * xcoffread.c (xcoff_end_psymtab): Use new.
12178 * psymtab.c (start_psymtab_common): Use new.
12179 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12180 Update.
12181 * psympriv.h (struct partial_symtab): Add parameters to
12182 constructor. Don't inline.
12183 (allocate_psymtab): Don't declare.
12184 * mdebugread.c (new_psymtab): Use new.
12185 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12186 * dbxread.c (dbx_end_psymtab): Use new.
12187
abaa2f23
TT
121882020-01-26 Tom Tromey <tom@tromey.com>
12189
12190 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12191 allocate_psymtab. Update documentation.
12192 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12193 allocate_psymtab. Do not use new.
12194 (allocate_psymtab): Use new. Update.
12195
6d94535f
TT
121962020-01-26 Tom Tromey <tom@tromey.com>
12197
12198 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12199 * psymtab.c (psym_print_stats): Update.
12200 * psympriv.h (struct partial_symtab) <readin,
12201 psymtabs_addrmap_supported, anonymous>: Now bool.
12202 * mdebugread.c (psymtab_to_symtab_1): Update.
12203 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12204 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12205 (process_full_comp_unit, process_full_type_unit): Update.
12206 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12207 * ctfread.c (psymtab_to_symtab): Update.
12208
6f17252b
TT
122092020-01-26 Tom Tromey <tom@tromey.com>
12210
12211 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12212 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12213 * psymtab.c (psymtab_storage): Delete psymtabs.
12214 (psymtab_storage::allocate_psymtab): Use new.
12215 (psymtab_storage::discard_psymtab): Use delete.
12216 * psympriv.h (struct partial_symtab): Add constructor and
12217 initializers.
12218
f6f1cebc
TT
122192020-01-26 Tom Tromey <tom@tromey.com>
12220
12221 * machoread.c: Do not include psympriv.h.
12222
e47e48f6
PW
122232020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12224
12225 * NEWS: Mention the new option and the set/show commands.
12226
a2fedca9
PW
122272020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12228
12229 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12230 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12231 (validate_exec_file): New variables, enums, functions.
12232 (exec_file_locate_attach, print_section_info): Style the filenames.
12233 (_initialize_exec): Install show_exec_file_mismatch_command and
12234 set_exec_file_mismatch_command.
12235 * gdbcore.h (validate_exec_file): Declare.
12236 * infcmd.c (attach_command): Call validate_exec_file.
12237 * remote.c ( remote_target::remote_add_inferior): Likewise.
12238
7ffa82e1
AB
122392020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12240
12241 * frame.c (find_frame_sal): Move call to get_next_frame into more
12242 inner scope.
12243 * inline-frame.c (inilne_state) <inline_state>: Update argument
12244 types.
12245 (inilne_state) <skipped_symbol>: Rename to...
12246 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12247 (skip_inline_frames): Build vector of skipped symbols and use this
12248 to reate the inline_state.
12249 (inline_skipped_symbol): Add a comment and some assertions, fetch
12250 skipped symbol from the list.
12251
3d92a3e3
AB
122522020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12253
12254 * buildsym.c (lte_is_less_than): Delete.
12255 (buildsym_compunit::end_symtab_with_blockvector): Create local
12256 lambda function to sort line table entries, and use
12257 std::stable_sort instead of std::sort.
12258 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12259 markers when looking for a previous line.
12260
94a72be7
AB
122612020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12262
12263 * dwarf2read.c (lnp_state_machine::record_line): Include
12264 end_sequence parameter in debug print out. Record the line if we
12265 are at an end_sequence marker even if it's not the start of a
12266 statement.
12267 * symmisc.c (maintenance_print_one_line_table): Print end of
12268 sequence markers with 'END' not '0'.
12269
53af73bf
PA
122702020-01-24 Pedro Alves <palves@redhat.com>
12271
12272 PR gdb/25410
12273 * thread.c (scoped_restore_current_thread::restore): Use
12274 switch_to_inferior_no_thread.
12275 * exec.c: Include "progspace-and-thread.h".
12276 (add_target_sections, remove_target_sections):
12277 scoped_restore_current_pspace_and_thread instead of
12278 scoped_restore_current_thread.
12279 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12280 and aspace to the inferior before calling clone_program_space.
12281 Remove stale comment.
12282
3050c6f4
CB
122832020-01-24 Christian Biesinger <cbiesinger@google.com>
12284
12285 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12286 (arm_netbsd_nat_target::fetch_registers): ...this.
12287 (arm_nbsd_nat_target::store_registers): Rename to...
12288 (arm_netbsd_nat_target::store_registers): ...this.
12289
73685c7e
CB
122902020-01-24 Christian Biesinger <cbiesinger@google.com>
12291
12292 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12293 register_t.
12294
89203d40
CB
122952020-01-24 Christian Biesinger <cbiesinger@google.com>
12296
12297 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12298 Update comment.
12299 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12300 Likewise.
12301 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12302 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12303 the correct replacement (iterate_over_regset_sections).
12304 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12305 Update comment.
12306
1ba1ac88
AB
123072020-01-24 Graham Markall <graham.markall@embecosm.com>
12308
12309 PR gdb/23718
12310 * gdb/python/python.c (execute_gdb_command): Call
12311 async_enable_stdin in catch block.
12312
f3364a6d
AB
123132020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12314
12315 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12316 SWITCH_THRU_ALL_UIS.
12317
733d0a67
AB
123182020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12319
12320 PR tui/9765
12321 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12322 comment, add extra parameter, and update to store previous symbol
12323 when appropriate.
12324 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12325 add extra parameter.
12326 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12327 remove unneeded parameter, add try/catch around gdb_print_insn,
12328 rewrite to add items to asm_lines vector.
12329 (tui_find_backward_disassembly_start_address): New function.
12330 (tui_find_disassembly_address): Updated throughout.
12331 (tui_disasm_window::set_contents): Update for changes to
12332 tui_disassemble.
12333 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12334 number of lines to scroll.
12335
b3b3bada
SM
123362020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12337
12338 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12339 (SECT_OFF_DATA): Likewise.
12340 (SECT_OFF_RODATA): Likewise.
12341 (SECT_OFF_TEXT): Likewise.
12342 (SECT_OFF_BSS): Likewise.
12343 (struct objfile) <text_section_offset, data_section_offset>: New
12344 methods.
12345 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12346 objfile::text_section_offset.
12347 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12348 * coffread.c (coff_symtab_read): Likewise.
12349 (enter_linenos): Likewise.
12350 (process_coff_symbol): Likewise.
12351 * ctfread.c (get_objfile_text_range): Likewise.
12352 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12353 Use objfile::data_section_offset.
12354 * dwarf2-frame.c (execute_cfa_program): Use
12355 objfile::text_section_offset.
12356 (dwarf2_frame_find_fde): Likewise.
12357 * dwarf2read.c (create_addrmap_from_index): Likewise.
12358 (create_addrmap_from_aranges): Likewise.
12359 (dw2_find_pc_sect_compunit_symtab): Likewise.
12360 (process_psymtab_comp_unit_reader): Likewise.
12361 (add_partial_symbol): Likewise.
12362 (add_partial_subprogram): Likewise.
12363 (process_full_comp_unit): Likewise.
12364 (read_file_scope): Likewise.
12365 (read_func_scope): Likewise.
12366 (read_lexical_block_scope): Likewise.
12367 (read_call_site_scope): Likewise.
12368 (dwarf2_rnglists_process): Likewise.
12369 (dwarf2_ranges_process): Likewise.
12370 (dwarf2_ranges_read): Likewise.
12371 (dwarf_decode_lines_1): Likewise.
12372 (new_symbol): Likewise.
12373 (dwarf2_fetch_die_loc_sect_off): Likewise.
12374 (dwarf2_per_cu_text_offset): Likewise.
12375 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12376 * hppa-tdep.c (read_unwind_info): Likewise.
12377 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12378 * psympriv.h (struct partial_symtab): Likewise.
12379 * psymtab.c (find_pc_sect_psymtab): Likewise.
12380 * solib-svr4.c (enable_break): Likewise.
12381 * stap-probe.c (relocate_address): Use
12382 objfile::data_section_offset.
12383 * xcoffread.c (enter_line_range): Use
12384 objfile::text_section_offset.
12385 (read_xcoff_symtab): Likewise.
12386
ab53f382
SM
123872020-01-23 Simon Marchi <simon.marchi@efficios.com>
12388
12389 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12390 declaration to narrower scopes.
12391
e7eee665
SM
123922020-01-23 Simon Marchi <simon.marchi@efficios.com>
12393
12394 * darwin-nat.h (struct darwin_exception_msg, enum
12395 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12396 Move up.
12397 (class darwin_nat_target) <wait_1, check_new_threads,
12398 decode_exception_message, decode_message, stop_inferior,
12399 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12400 * darwin-nat.c (darwin_check_new_threads): Rename to...
12401 (darwin_nat_target::check_new_threads): ... this.
12402 (darwin_suspend_inferior_it): Remove.
12403 (darwin_decode_exception_message): Rename to...
12404 (darwin_nat_target::decode_exception_message): ... this.
12405 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12406 (darwin_decode_message): Rename to...
12407 (darwin_nat_target::decode_message): ... this.
12408 (cancel_breakpoint): Rename to...
12409 (darwin_nat_target::cancel_breakpoint): ... this.
12410 (darwin_wait): Rename to...
12411 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12412 instead of iterate_over_inferiors.
12413 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12414 (darwin_stop_inferior): Rename to...
12415 (darwin_nat_target::stop_inferior): ... this.
12416 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12417 (darwin_init_thread_list): Rename to...
12418 (darwin_nat_target::init_thread_list): ... this.
12419 (darwin_ptrace_him): Rename to...
12420 (darwin_nat_target::ptrace_him): ... this.
12421 (darwin_nat_target::create_inferior): Pass lambda function to
12422 fork_inferior.
12423 (darwin_nat_target::detach): Call stop_inferior instead of
12424 darwin_stop_inferior.
12425 * fork-inferior.h (fork_inferior): Change init_trace_fun
12426 parameter to gdb::function_view.
12427 * fork-inferior.c (fork_inferior): Likewise.
12428
c162ed3e
HD
124292020-01-23 Hannes Domani <ssbssa@yahoo.de>
12430
12431 * i386-cygwin-tdep.c (core_process_module_section): Update.
12432 * windows-nat.c (struct lm_info_windows): Add text_offset.
12433 (windows_xfer_shared_libraries): Update.
12434 * windows-tdep.c (windows_xfer_shared_library):
12435 Add text_offset_cached argument.
12436 * windows-tdep.h (windows_xfer_shared_library): Update.
12437
a1237872
SM
124382020-01-21 Simon Marchi <simon.marchi@efficios.com>
12439
12440 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12441
b3ee6dd9
SM
124422020-01-21 Simon Marchi <simon.marchi@efficios.com>
12443
12444 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12445 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12446 replace with range-based for.
12447 (gdbsim_interrupt_inferior): Remove.
12448 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12449 with a range-based for. Inline code from
12450 gdbsim_interrupt_inferior.
12451
f9fac3c8
SM
124522020-01-21 Simon Marchi <simon.marchi@efficios.com>
12453
12454 * infrun.c (proceed): Fix indentation.
12455
f6474de9
TT
124562020-01-21 Tom Tromey <tromey@adacore.com>
12457
12458 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12459 * python/python.c (python_extension_ops): Update.
12460 (gdbpy_colorize): New function.
12461 * python/lib/gdb/__init__.py (colorize): New function.
12462 * extension.h (ext_lang_colorize): Declare.
12463 * extension.c (ext_lang_colorize): New function.
12464 * extension-priv.h (struct extension_language_ops) <colorize>: New
12465 member.
12466 * cli/cli-style.c (_initialize_cli_style): Update help text.
12467
f0c702d4
LM
124682020-01-21 Luis Machado <luis.machado@linaro.org>
12469
12470 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12471 <cond>: Change type to bool.
12472 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12473 (aarch64_displaced_step_cb): Likewise.
12474 (aarch64_displaced_step_tb): Likewise.
12475
1ab139e5
LM
124762020-01-21 Luis Machado <luis.machado@linaro.org>
12477
12478 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12479 output.
12480
0c271889
LM
124812020-01-21 Luis Machado <luis.machado@linaro.org>
12482
12483 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12484 <pc_adjust>: Adjust the documentation.
12485 (aarch64_displaced_step_fixup): Check if PC really moved before
12486 adjusting it.
12487
4d89c1c7
TT
124882020-01-19 Tom Tromey <tom@tromey.com>
12489
12490 * disasm.c (~gdb_disassembler): New destructor.
12491 (gdb_buffered_insn_length): Call disassemble_free_target.
12492 * disasm.h (class gdb_disassembler): Declare destructor. Use
12493 DISABLE_COPY_AND_ASSIGN.
12494
c0ab21c2
TT
124952020-01-19 Tom Tromey <tom@tromey.com>
12496
12497 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12498 (die_reader_func_ftype): Remove.
12499 (cutu_reader): New class.
12500 (dw2_get_file_names_reader): Remove "data" parameter.
12501 (dw2_get_file_names): Use cutu_reader.
12502 (create_debug_type_hash_table): Update.
12503 (read_cutu_die_from_dwo): Update comment.
12504 (lookup_dwo_unit): Add dwo_name parameter.
12505 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12506 die_reader_func_ftype and data parameters.
12507 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12508 Remove die_reader_func_ftype and data parameters.
12509 (~cutu_reader): New; from init_cutu_and_read_dies.
12510 (cutu_reader::cutu_reader): Rename from
12511 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12512 and data parameters.
12513 (init_cutu_and_read_dies_simple): Remove.
12514 (struct process_psymtab_comp_unit_data): Remove.
12515 (process_psymtab_comp_unit_reader): Remove data parameter; add
12516 want_partial_unit and pretend_language parameters.
12517 (process_psymtab_comp_unit): Use cutu_reader.
12518 (build_type_psymtabs_reader): Remove data parameter.
12519 (build_type_psymtabs_1): Use cutu_reader.
12520 (process_skeletonless_type_unit): Likewise.
12521 (load_partial_comp_unit_reader): Remove.
12522 (load_partial_comp_unit): Use cutu_reader.
12523 (load_full_comp_unit_reader): Remove.
12524 (load_full_comp_unit): Use cutu_reader.
12525 (struct create_dwo_cu_data): Remove.
12526 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12527 dwo_unit parameters.
12528 (create_cus_hash_table): Use cutu_reader.
12529 (struct dwarf2_read_addr_index_data): Remove.
12530 (dwarf2_read_addr_index_reader): Remove.
12531 (dwarf2_read_addr_index): Use cutu_reader.
12532 (read_signatured_type_reader): Remove.
12533 (read_signatured_type): Use cutu_reader.
12534
45bbae5c
TT
125352020-01-19 Tom Tromey <tom@tromey.com>
12536
12537 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12538 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12539 (tui_wrefresh): Declare.
12540 * tui/tui-wingeneral.c (suppress_output): New global.
12541 (tui_suppress_output, ~tui_suppress_output): New constructor and
12542 destructor.
12543 (tui_wrefresh): New function.
12544 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12545 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12546 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12547 method.
12548 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12549 tui_wrefresh.
12550 (tui_data_window::no_refresh): New method.
12551 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12552 (tui_reg_command): Use tui_suppress_output
12553 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12554 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12555 method.
12556 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12557
4f13c1c0
TT
125582020-01-19 Tom Tromey <tom@tromey.com>
12559
12560 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12561 Handle case where symtab is null.
12562
fa47e446
SM
125632020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12564
12565 * linux-fork.c (one_fork_p): Simplify.
12566
26f42329
SM
125672020-01-17 Simon Marchi <simon.marchi@efficios.com>
12568
12569 * top.c (struct qt_args): Remove.
12570 (kill_or_detach): Change return type to void, replace `void *`
12571 parameter with a proper one.
12572 (print_inferior_quit_action): Likewise.
12573 (quit_confirm): Use range-based for loop to iterate over inferiors.
12574 (quit_force): Likewise.
12575
a9ac81b1
SM
125762020-01-17 Simon Marchi <simon.marchi@efficios.com>
12577
12578 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12579 `void *` parameter with proper parameters.
12580 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12581 (print_one_inferior): Change return type to void, replace `void *`
12582 parameter with proper parameters.
12583 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12584 inferiors.
12585 (get_other_inferior): Remove.
12586 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12587 inferiors.
12588
788eca49
SM
125892020-01-17 Simon Marchi <simon.marchi@efficios.com>
12590
12591 * mi/mi-interp.c (report_initial_inferior): Remove.
12592 (mi_interp::init): Use range-based for to iterate over inferiors.
12593
d9bc85b6
SM
125942020-01-17 Simon Marchi <simon.marchi@efficios.com>
12595
12596 * python/py-inferior.c (build_inferior_list): Remove.
12597 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12598
40c94099
CB
125992020-01-16 Christian Biesinger <cbiesinger@google.com>
12600
12601 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12602 (btrace_stitch_trace): Likewise.
12603 * charset.c (intermediate_encoding): Likewise (vaild).
12604 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12605 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12606 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12607
e0cdfe3c
HD
126082020-01-16 Hannes Domani <ssbssa@yahoo.de>
12609
12610 * windows-tdep.c (windows_get_tlb_type):
12611 Add rtl_user_process_parameters type.
12612
790f1718 126132020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12614 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12615
12616 PR build/24805
12617 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12618 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12619 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12620 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12621 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12622 (ps_plog): Redeclare exported functions with default visibility.
12623
3112ed97
NA
126242020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12625
12626 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12627 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12628
8dc3273e
SM
126292020-01-15 Simon Marchi <simon.marchi@efficios.com>
12630
12631 * infcmd.c (post_create_inferior): Use get_thread_regcache
12632 instead of get_current_regcache.
12633
ff47f4f0
TT
126342020-01-14 Tom Tromey <tom@tromey.com>
12635
12636 PR symtab/12535:
12637 * python/python.c (gdbpy_decode_line): Treat empty string the same
12638 as no argument.
12639
975f45b7
TT
126402020-01-14 Tom Tromey <tom@tromey.com>
12641
12642 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12643
25e57356
TT
126442020-01-14 Tom Tromey <tom@tromey.com>
12645
12646 * nat/linux-btrace.c: Don't include <config.h>.
12647 * nat/linux-ptrace.c: Don't include <config.h>.
12648 * nat/x86-linux-dregs.c: Don't include <config.h>.
12649
05ea2a05
TT
126502020-01-14 Tom Tromey <tom@tromey.com>
12651
12652 * configure: Rebuild.
12653 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12654
01027315
TT
126552020-01-14 Tom Tromey <tom@tromey.com>
12656
12657 * nat/x86-linux-dregs.c: Include configh.h.
12658 * nat/linux-ptrace.c: Include configh.h.
12659 * nat/linux-btrace.c: Include configh.h.
12660 * defs.h: Include config.h, bfd.h.
12661 * configure.ac: Don't source common.host.
12662 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12663 * configure: Rebuild.
12664 * acinclude.m4: Update path.
12665 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12666 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12667 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12668 (CLIBS): Add LIBSUPPORT.
12669 (CDEPS): Likewise.
12670 (COMMON_SFILES): Remove gdbsupport files.
12671 (HFILES_NO_SRCDIR): Likewise.
12672 (stamp-version): Update path to create-version.sh.
12673 (ALLDEPFILES): Remove gdbsupport files.
12674
b2ceabe8
TT
126752020-01-14 Tom Tromey <tom@tromey.com>
12676
12677 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12678 USE_WIN32API when needed.
12679 * configure.ac (USE_WIN32API): Don't define.
12680 (WIN32LIBS): Use WIN32APILIBS.
12681 * configure: Rebuild.
12682
25c51f71
TT
126832020-01-14 Tom Tromey <tom@tromey.com>
12684
12685 * configure: Rebuild.
12686 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12687
717c684d
BE
126882020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12689
12690 * skip.c (skip_function_command): Make skip w/o arguments use the
12691 name of the inlined function if pc is inside any inlined function.
12692
7da6a5b9
LM
126932020-01-14 Luis Machado <luis.machado@linaro.org>
12694
12695 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12696 * infrun.c (resume_1): Likewise.
12697 (handle_inferior_event): Remove stale comment.
12698 * linux-nat.c (linux_nat_target::resume): Update comments.
12699 (save_stop_reason): Likewise.
12700 (linux_nat_filter_event): Likewise.
12701 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12702
44e4c775
AB
127032020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12704
12705 * elfread.c (record_minimal_symbol): Set section index to 0 for
12706 non-allocatable sections.
12707
18a8505e
AT
12708
127092020-01-13 Ali Tamur <tamur@google.com>
12710
12711 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12712 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12713 to gdb::optional. Update comments.
12714 (dwo_file): Update comments.
12715 (read_attribute): Update API to take an additional out parameter,
12716 need_reprocess. This is used to mark attributes that need other
12717 attributes (e.g. str_offsets_base) for correct computation which may not
12718 have been read yet.
12719 (read_attribute_reprocess): New function declaration.
12720 (read_addr_index): Likewise.
12721 (read_dwo_str_index): Likewise.
12722 (read_stub_str_index): Likewise.
12723 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12724 (lookup_addr_base): New function definition.
12725 (lookup_ranges_base): Likewise.
12726 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12727 lookup_ranges_base.
12728 (init_cutu_and_read_dies): Update comments.
12729 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12730 unit. This is used to inherit parent's str_offsets_base and addr_base.
12731 Update comments.
12732 (init_cutu_and_read_dies_simple): Reflect API changes.
12733 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12734 (create_cus_hash_table): Change API to take parent compile unit.
12735 Reflect API changes.
12736 (open_and_init_dwo_file): Reflect API changes.
12737 (dwarf2_get_pc_bounds): Update comments.
12738 (dwarf2_record_block_ranges): Likewise.
12739 (read_full_die_1): Change implementation to reprocess attributes that
12740 need str_offsets_base and addr_base.
12741 (partial_die_info::read): Likewise.
12742 (read_attribute_reprocess): New function definition.
12743 (read_attribute_value): Change API to take an additional out parameter,
12744 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12745 when a non-dwo compile unit has index based attributes.
12746 (read_attribute): Reflect API changes.
12747 (read_addr_index_1): Reflect API changes. Update comments.
12748 (dwarf2_read_addr_index_data): Reflect API changes.
12749 (dwarf2_read_addr_index): Likewise.
12750 (read_str_index): Change API and implementation. This becomes a helper
12751 to be used by the new string index related methods. Update error
12752 message and comments.
12753 (read_dwo_str_index): New function definition.
12754 (read_stub_str_index): Likewise.
12755 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12756 * symfile.h (dwarf2_debug_sections): Likewise.
12757 * xcoffread.c (dwarf2_debug_sections): Likewise.
12758
0cac9354
SM
127592020-01-13 Simon Marchi <simon.marchi@efficios.com>
12760
12761 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12762 core_reg_sect type to gdb_byte *.
12763 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12764 * cris-tdep.c (fetch_core_registers): Likewise.
12765 * corelow.c (core_target::get_core_register_section): Change
12766 type of `contents` to gdb::byte_vector.
12767
9a6d629c
AB
127682020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12769
12770 * tui/tui-wingeneral.c (box_win): Position the title in the center
12771 of the border.
12772
d8b2f9e3
SM
127732020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12774
12775 * corelow.c (core_target::get_core_register_section): Use
12776 std::vector instead of alloca.
12777
bb564c58
SM
127782020-01-13 Simon Marchi <simon.marchi@efficios.com>
12779
12780 * warning.m4: Add -Wmissing-declarations to build_warnings.
12781 * configure: Re-generate.
12782
6b366111
SM
127832020-01-13 Simon Marchi <simon.marchi@efficios.com>
12784
12785 * python/python.c (init__gdb_module): Add declaration.
12786
6c265988
SM
127872020-01-13 Simon Marchi <simon.marchi@efficios.com>
12788
12789 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12790 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12791 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12792 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12793 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12794 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12795 * ada-exp.y (_initialize_ada_exp): Add declaration.
12796 * ada-lang.c (_initialize_ada_language): Add declaration.
12797 * ada-tasks.c (_initialize_tasks): Add declaration.
12798 * agent.c (_initialize_agent): Add declaration.
12799 * aix-thread.c (_initialize_aix_thread): Add declaration.
12800 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12801 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12802 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12803 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12804 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12805 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12806 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12807 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12808 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12809 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12810 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12811 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12812 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12813 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12814 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12815 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12816 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12817 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12818 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12819 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12820 * annotate.c (_initialize_annotate): Add declaration.
12821 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12822 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12823 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12824 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12825 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12826 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12827 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12828 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12829 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12830 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12831 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12832 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12833 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12834 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12835 * auto-load.c (_initialize_auto_load): Add declaration.
12836 * auxv.c (_initialize_auxv): Add declaration.
12837 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12838 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12839 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12840 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12841 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12842 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12843 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12844 * breakpoint.c (_initialize_breakpoint): Add declaration.
12845 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12846 * btrace.c (_initialize_btrace): Add declaration.
12847 * charset.c (_initialize_charset): Add declaration.
12848 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12849 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12850 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12851 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12852 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12853 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12854 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12855 * coffread.c (_initialize_coffread): Add declaration.
12856 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12857 * compile/compile.c (_initialize_compile): Add declaration.
12858 * complaints.c (_initialize_complaints): Add declaration.
12859 * completer.c (_initialize_completer): Add declaration.
12860 * copying.c (_initialize_copying): Add declaration.
12861 * corefile.c (_initialize_core): Add declaration.
12862 * corelow.c (_initialize_corelow): Add declaration.
12863 * cp-abi.c (_initialize_cp_abi): Add declaration.
12864 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12865 * cp-support.c (_initialize_cp_support): Add declaration.
12866 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12867 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12868 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12869 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12870 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12871 * ctfread.c (_initialize_ctfread): Add declaration.
12872 * d-lang.c (_initialize_d_language): Add declaration.
12873 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12874 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12875 * dbxread.c (_initialize_dbxread): Add declaration.
12876 * dcache.c (_initialize_dcache): Add declaration.
12877 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12878 * disasm.c (_initialize_disasm): Add declaration.
12879 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12880 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12881 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12882 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12883 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12884 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12885 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12886 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12887 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12888 * elfread.c (_initialize_elfread): Add declaration.
12889 * exec.c (_initialize_exec): Add declaration.
12890 * extension.c (_initialize_extension): Add declaration.
12891 * f-lang.c (_initialize_f_language): Add declaration.
12892 * f-valprint.c (_initialize_f_valprint): Add declaration.
12893 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12894 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12895 * filesystem.c (_initialize_filesystem): Add declaration.
12896 * findcmd.c (_initialize_mem_search): Add declaration.
12897 * findvar.c (_initialize_findvar): Add declaration.
12898 * fork-child.c (_initialize_fork_child): Add declaration.
12899 * frame-base.c (_initialize_frame_base): Add declaration.
12900 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12901 * frame.c (_initialize_frame): Add declaration.
12902 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12903 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12904 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12905 * gcore.c (_initialize_gcore): Add declaration.
12906 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12907 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12908 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12909 * gdbarch.c (_initialize_gdbarch): Add declaration.
12910 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12911 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12912 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12913 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12914 * go-lang.c (_initialize_go_language): Add declaration.
12915 * go32-nat.c (_initialize_go32_nat): Add declaration.
12916 * guile/guile.c (_initialize_guile): Add declaration.
12917 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12918 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12919 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12920 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12921 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12922 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12923 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12924 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12925 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12926 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12927 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12928 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12929 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12930 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12931 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12932 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12933 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12934 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12935 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12936 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12937 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12938 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12939 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12940 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12941 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12942 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12943 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12944 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12945 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12946 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12947 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12948 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12949 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12950 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12951 * infcall.c (_initialize_infcall): Add declaration.
12952 * infcmd.c (_initialize_infcmd): Add declaration.
12953 * inflow.c (_initialize_inflow): Add declaration.
12954 * infrun.c (_initialize_infrun): Add declaration.
12955 * interps.c (_initialize_interpreter): Add declaration.
12956 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12957 * jit.c (_initialize_jit): Add declaration.
12958 * language.c (_initialize_language): Add declaration.
12959 * linux-fork.c (_initialize_linux_fork): Add declaration.
12960 * linux-nat.c (_initialize_linux_nat): Add declaration.
12961 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12962 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12963 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12964 * m2-lang.c (_initialize_m2_language): Add declaration.
12965 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12966 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12967 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12968 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12969 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12970 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12971 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12972 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12973 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12974 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12975 * machoread.c (_initialize_machoread): Add declaration.
12976 * macrocmd.c (_initialize_macrocmd): Add declaration.
12977 * macroscope.c (_initialize_macroscope): Add declaration.
12978 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12979 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12980 * maint.c (_initialize_maint_cmds): Add declaration.
12981 * mdebugread.c (_initialize_mdebugread): Add declaration.
12982 * memattr.c (_initialize_mem): Add declaration.
12983 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12984 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12985 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12986 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12987 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12988 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12989 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12990 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12991 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12992 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12993 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12994 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12995 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12996 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12997 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12998 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12999 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13000 * mipsread.c (_initialize_mipsread): Add declaration.
13001 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13002 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13003 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13004 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13005 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13006 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13007 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13008 * nto-procfs.c (_initialize_procfs): Add declaration.
13009 * objc-lang.c (_initialize_objc_language): Add declaration.
13010 * observable.c (_initialize_observer): Add declaration.
13011 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13012 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13013 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13014 * osabi.c (_initialize_gdb_osabi): Add declaration.
13015 * osdata.c (_initialize_osdata): Add declaration.
13016 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13017 * parse.c (_initialize_parse): Add declaration.
13018 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13019 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13020 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13021 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13022 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13023 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13024 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13025 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13026 * printcmd.c (_initialize_printcmd): Add declaration.
13027 * probe.c (_initialize_probe): Add declaration.
13028 * proc-api.c (_initialize_proc_api): Add declaration.
13029 * proc-events.c (_initialize_proc_events): Add declaration.
13030 * proc-service.c (_initialize_proc_service): Add declaration.
13031 * procfs.c (_initialize_procfs): Add declaration.
13032 * producer.c (_initialize_producer): Add declaration.
13033 * psymtab.c (_initialize_psymtab): Add declaration.
13034 * python/python.c (_initialize_python): Add declaration.
13035 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13036 * record-btrace.c (_initialize_record_btrace): Add declaration.
13037 * record-full.c (_initialize_record_full): Add declaration.
13038 * record.c (_initialize_record): Add declaration.
13039 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13040 * regcache.c (_initialize_regcache): Add declaration.
13041 * reggroups.c (_initialize_reggroup): Add declaration.
13042 * remote-notif.c (_initialize_notif): Add declaration.
13043 * remote-sim.c (_initialize_remote_sim): Add declaration.
13044 * remote.c (_initialize_remote): Add declaration.
13045 * reverse.c (_initialize_reverse): Add declaration.
13046 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13047 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13048 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13049 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13050 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13051 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13052 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13053 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13054 Add declaration.
13055 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13056 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13057 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13058 * rust-exp.y (_initialize_rust_exp): Add declaration.
13059 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13060 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13061 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13062 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13063 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13064 * score-tdep.c (_initialize_score_tdep): Add declaration.
13065 * ser-go32.c (_initialize_ser_dos): Add declaration.
13066 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13067 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13068 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13069 * ser-uds.c (_initialize_ser_socket): Add declaration.
13070 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13071 * serial.c (_initialize_serial): Add declaration.
13072 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13073 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13074 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13075 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13076 * skip.c (_initialize_step_skip): Add declaration.
13077 * sol-thread.c (_initialize_sol_thread): Add declaration.
13078 * solib-aix.c (_initialize_solib_aix): Add declaration.
13079 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13080 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13081 * solib-frv.c (_initialize_frv_solib): Add declaration.
13082 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13083 * solib-target.c (_initialize_solib_target): Add declaration.
13084 * solib.c (_initialize_solib): Add declaration.
13085 * source-cache.c (_initialize_source_cache): Add declaration.
13086 * source.c (_initialize_source): Add declaration.
13087 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13088 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13089 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13090 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13091 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13092 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13093 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13094 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13095 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13096 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13097 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13098 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13099 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13100 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13101 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13102 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13103 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13104 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13105 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13106 * stabsread.c (_initialize_stabsread): Add declaration.
13107 * stack.c (_initialize_stack): Add declaration.
13108 * stap-probe.c (_initialize_stap_probe): Add declaration.
13109 * std-regs.c (_initialize_frame_reg): Add declaration.
13110 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13111 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13112 * symfile.c (_initialize_symfile): Add declaration.
13113 * symmisc.c (_initialize_symmisc): Add declaration.
13114 * symtab.c (_initialize_symtab): Add declaration.
13115 * target.c (_initialize_target): Add declaration.
13116 * target-connection.c (_initialize_target_connection): Add
13117 declaration.
13118 * target-dcache.c (_initialize_target_dcache): Add declaration.
13119 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13120 * thread.c (_initialize_thread): Add declaration.
13121 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13122 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13123 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13124 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13125 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13126 * tracectf.c (_initialize_ctf): Add declaration.
13127 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13128 * tracefile.c (_initialize_tracefile): Add declaration.
13129 * tracepoint.c (_initialize_tracepoint): Add declaration.
13130 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13131 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13132 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13133 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13134 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13135 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13136 * tui/tui.c (_initialize_tui): Add declaration.
13137 * typeprint.c (_initialize_typeprint): Add declaration.
13138 * ui-style.c (_initialize_ui_style): Add declaration.
13139 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13140 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13141 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13142 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13143 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13144 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13145 * unittests/filtered_iterator-selftests.c
13146 (_initialize_filtered_iterator_selftests): Add declaration.
13147 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13148 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13149 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13150 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13151 * unittests/main-thread-selftests.c
13152 (_initialize_main_thread_selftests): Add declaration.
13153 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13154 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13155 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13156 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13157 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13158 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13159 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13160 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13161 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13162 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13163 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13164 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13165 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13166 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13167 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13168 declaration.
13169 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13170 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13171 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13172 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13173 * user-regs.c (_initialize_user_regs): Add declaration.
13174 * utils.c (_initialize_utils): Add declaration.
13175 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13176 * valops.c (_initialize_valops): Add declaration.
13177 * valprint.c (_initialize_valprint): Add declaration.
13178 * value.c (_initialize_values): Add declaration.
13179 * varobj.c (_initialize_varobj): Add declaration.
13180 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13181 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13182 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13183 * windows-nat.c (_initialize_windows_nat): Add declaration.
13184 (_initialize_check_for_gdb_ini): Add declaration.
13185 (_initialize_loadable): Add declaration.
13186 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13187 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13188 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13189 * xcoffread.c (_initialize_xcoffread): Add declaration.
13190 * xml-support.c (_initialize_xml_support): Add declaration.
13191 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13192 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13193 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13194 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13195
e2de1eec
SM
131962020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13197
13198 * regformats/regdat.sh: Generate declaration for init function.
13199
e0037b4c
SM
132002020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13201
13202 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13203 up.
13204 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13205 close_one_inferior>: New methods.
13206 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13207 pass down target to find_inferior_pid.
13208 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13209 Pass down target to find_inferior_ptid.
13210 (gdbsim_target::create_inferior): Pass down target to
13211 add_thread_silent.
13212 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13213 target down to find_inferior_ptid and switch_to_thread.
13214 (gdbsim_target::close): Update to call close_one_inferior.
13215 (struct resume_data): Remove.
13216 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13217 directly, rather than through a void pointer.
13218 (gdbsim_target::resume): Update to call resume_one_inferior.
13219
58920b5b
SM
132202020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13221
13222 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13223
4ec89149
PA
132242020-01-12 Pedro Alves <palves@redhat.com>
13225
13226 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13227 directly for the current inferior instead of
13228 discard_all_inferiors.
13229 (discard_all_inferiors): Delete.
13230
7c392d1d
TT
132312020-01-11 Tom Tromey <tom@tromey.com>
13232
13233 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13234 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13235 deprecated_safe_get_selected_frame.
13236
d9ebdab7
TBA
132372020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13238
13239 * inferior.c (print_inferior): Switch inferior before printing it.
13240
f3c469b9
PA
132412020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13242 Pedro Alves <palves@redhat.com>
13243
13244 * progspace-and-thread.c (switch_to_program_space_and_thread):
13245 Assert there's an inferior for PSPACE. Use
13246 switch_to_inferior_no_thread to switch the inferior too.
13247 * progspace.c (program_space::~program_space): Call
13248 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13249 (program_space::free_all_objfiles): Don't call clear_symtab_users
13250 here.
13251 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13252
65c574f6
PA
132532020-01-10 Pedro Alves <palves@redhat.com>
13254
13255 * NEWS: Mention multi-target debugging, "info connections", and
13256 "add-inferior -no-connection".
13257
2f4fcf00
PA
132582020-01-10 Pedro Alves <palves@redhat.com>
13259
13260 * infrun.c: Include "target-connection.h".
13261 (check_multi_target_resumption): New.
13262 (proceed): Call it.
13263 * target-connection.c (make_target_connection_string): Make
13264 extern.
13265 * target-connection.h (make_target_connection_string): Declare.
13266
121b3efd
PA
132672020-01-10 Pedro Alves <palves@redhat.com>
13268
13269 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13270 * inferior.c (uiout_field_connection): New function.
13271 (print_inferior): Add new "connection-id" column.
13272 (add_inferior_command): Show connection number/string of added
13273 inferior.
13274 * process-stratum-target.h
13275 (process_stratum_target::connection_string): New virtual method.
13276 (process_stratum_target::connection_number): New field.
13277 * remote.c (remote_target::connection_string): New override.
13278 * target-connection.c: New file.
13279 * target-connection.h: New file.
13280 * target.c (decref_target): Remove process_stratum targets from
13281 the connection list.
13282 (target_stack::push): Add process_stratum targets to the
13283 connection list.
13284
4f837581
PA
132852020-01-10 Pedro Alves <palves@redhat.com>
13286
13287 Revert:
13288 2016-04-12 Pedro Alves <palves@redhat.com>
13289 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13290 Remove references to name.
13291 * serial.h (struct serial) <name>: Delete.
13292
f4ec508e
PA
132932020-01-10 Pedro Alves <palves@redhat.com>
13294
13295 * gdbarch-selftests.c (register_to_value_test): Remove "target
13296 already pushed" check.
13297
5b6d1e4f
PA
132982020-01-10 Pedro Alves <palves@redhat.com>
13299 John Baldwin <jhb@FreeBSD.org>
13300
13301 * aarch64-linux-nat.c
13302 (aarch64_linux_nat_target::thread_architecture): Adjust.
13303 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13304 (task_command_1): Likewise.
13305 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13306 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13307 (aix_thread_target::store_registers)
13308 (aix_thread_target::thread_alive): Adjust.
13309 * amd64-fbsd-tdep.c: Include "inferior.h".
13310 (amd64fbsd_get_thread_local_address): Pass down target.
13311 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13312 thread's gdbarch instead of target_gdbarch.
13313 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13314 get_last_target_status.
13315 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13316 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13317 inferiors.
13318 (update_inserted_breakpoint_locations): Skip if inferiors with no
13319 execution.
13320 (update_global_location_list): When handling moribund locations,
13321 find representative inferior for location's pspace, and use thread
13322 count of its process_stratum target.
13323 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13324 * bsd-uthread.c (bsd_uthread_target::wait): Use
13325 as_process_stratum_target and adjust thread_change_ptid and
13326 add_thread calls.
13327 (bsd_uthread_target::update_thread_list): Use
13328 as_process_stratum_target and adjust find_thread_ptid,
13329 thread_change_ptid and add_thread calls.
13330 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13331 find_thread_ptid call.
13332 * corelow.c (add_to_thread_list): Adjust add_thread call.
13333 (core_target_open): Adjust add_thread_silent and thread_count
13334 calls.
13335 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13336 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13337 * event-top.c (async_disconnect): Pop targets from all inferiors.
13338 * exec.c (add_target_sections): Push exec target on all inferiors
13339 sharing the program space.
13340 (remove_target_sections): Remove the exec target from all
13341 inferiors sharing the program space.
13342 (exec_on_vfork): New.
13343 * exec.h (exec_on_vfork): Declare.
13344 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13345 Pass it down.
13346 (fbsd_nat_target::update_thread_list): Adjust.
13347 (fbsd_nat_target::resume): Adjust.
13348 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13349 down.
13350 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13351 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13352 get_thread_arch_regcache call.
13353 * fork-child.c (gdb_startup_inferior): Pass target down to
13354 startup_inferior and set_executing.
13355 * gdbthread.h (struct process_stratum_target): Forward declare.
13356 (add_thread, add_thread_silent, add_thread_with_info)
13357 (in_thread_list): Add process_stratum_target parameter.
13358 (find_thread_ptid(inferior*, ptid_t)): New overload.
13359 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13360 parameter.
13361 (all_threads()): Delete overload.
13362 (all_threads, all_non_exited_threads): Add process_stratum_target
13363 parameter.
13364 (all_threads_safe): Use brace initialization.
13365 (thread_count): Add process_stratum_target parameter.
13366 (set_resumed, set_running, set_stop_requested, set_executing)
13367 (threads_are_executing, finish_thread_state): Add
13368 process_stratum_target parameter.
13369 (switch_to_thread): Use is_current_thread.
13370 * i386-fbsd-tdep.c: Include "inferior.h".
13371 (i386fbsd_get_thread_local_address): Pass down target.
13372 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13373 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13374 have_inferiors check.
13375 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13376 (inf_ptrace_target::attach): Adjust.
13377 * infcall.c (run_inferior_call): Adjust.
13378 * infcmd.c (run_command_1): Pass target to
13379 scoped_finish_thread_state.
13380 (proceed_thread_callback): Skip inferiors with no execution.
13381 (continue_command): Rename 'all_threads' local to avoid hiding
13382 'all_threads' function. Adjust get_last_target_status call.
13383 (prepare_one_step): Adjust set_running call.
13384 (signal_command): Use user_visible_resume_target. Compare thread
13385 pointers instead of inferior_ptid.
13386 (info_program_command): Adjust to pass down target.
13387 (attach_command): Mark target's 'thread_executing' flag.
13388 (stop_current_target_threads_ns): New, factored out from ...
13389 (interrupt_target_1): ... this. Switch inferior before making
13390 target calls.
13391 * inferior-iter.h
13392 (struct all_inferiors_iterator, struct all_inferiors_range)
13393 (struct all_inferiors_safe_range)
13394 (struct all_non_exited_inferiors_range): Filter on
13395 process_stratum_target too. Remove explicit.
13396 * inferior.c (inferior::inferior): Push dummy target on target
13397 stack.
13398 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13399 Add process_stratum_target parameter, and pass it down.
13400 (have_live_inferiors): Adjust.
13401 (switch_to_inferior_and_push_target): New.
13402 (add_inferior_command, clone_inferior_command): Handle
13403 "-no-connection" parameter. Use
13404 switch_to_inferior_and_push_target.
13405 (_initialize_inferior): Mention "-no-connection" option in
13406 the help of "add-inferior" and "clone-inferior" commands.
13407 * inferior.h: Include "process-stratum-target.h".
13408 (interrupt_target_1): Use bool.
13409 (struct inferior) <push_target, unpush_target, target_is_pushed,
13410 find_target_beneath, top_target, process_target, target_at,
13411 m_stack>: New.
13412 (discard_all_inferiors): Delete.
13413 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13414 (all_inferiors, all_non_exited_inferiors): Add
13415 process_stratum_target parameter.
13416 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13417 (target_last_proc_target): New global.
13418 (follow_fork_inferior): Push target on new inferior. Pass target
13419 to add_thread_silent. Call exec_on_vfork. Handle target's
13420 reference count.
13421 (follow_fork): Adjust get_last_target_status call. Also consider
13422 target.
13423 (follow_exec): Push target on new inferior.
13424 (struct execution_control_state) <target>: New field.
13425 (user_visible_resume_target): New.
13426 (do_target_resume): Call target_async.
13427 (resume_1): Set target's threads_executing flag. Consider resume
13428 target.
13429 (commit_resume_all_targets): New.
13430 (proceed): Also consider resume target. Skip threads of inferiors
13431 with no execution. Commit resumtion in all targets.
13432 (start_remote): Pass current inferior to wait_for_inferior.
13433 (infrun_thread_stop_requested): Consider target as well. Pass
13434 thread_info pointer to clear_inline_frame_state instead of ptid.
13435 (infrun_thread_thread_exit): Consider target as well.
13436 (random_pending_event_thread): New inferior parameter. Use it.
13437 (do_target_wait): Rename to ...
13438 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13439 down.
13440 (threads_are_resumed_pending_p, do_target_wait): New.
13441 (prepare_for_detach): Adjust calls.
13442 (wait_for_inferior): New inferior parameter. Handle it. Use
13443 do_target_wait_1 instead of do_target_wait.
13444 (fetch_inferior_event): Adjust. Switch to representative
13445 inferior. Pass target down.
13446 (set_last_target_status): Add process_stratum_target parameter.
13447 Save target in global.
13448 (get_last_target_status): Add process_stratum_target parameter and
13449 handle it.
13450 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13451 (context_switch): Check inferior_ptid == null_ptid before calling
13452 inferior_thread().
13453 (get_inferior_stop_soon): Pass down target.
13454 (wait_one): Rename to ...
13455 (poll_one_curr_target): ... this.
13456 (struct wait_one_event): New.
13457 (wait_one): New.
13458 (stop_all_threads): Adjust.
13459 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13460 event's target.
13461 (switch_back_to_stepped_thread): Also consider target.
13462 (print_stop_event): Update.
13463 (normal_stop): Update. Also consider the resume target.
13464 * infrun.h (wait_for_inferior): Remove declaration.
13465 (user_visible_resume_target): New declaration.
13466 (get_last_target_status, set_last_target_status): New
13467 process_stratum_target parameter.
13468 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13469 process_stratum_target parameter, and use it.
13470 (clear_inline_frame_state (thread_info*)): New.
13471 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13472 process_stratum_target parameter.
13473 (clear_inline_frame_state (thread_info*)): Declare.
13474 * linux-fork.c (delete_checkpoint_command): Pass target down to
13475 find_thread_ptid.
13476 (checkpoint_command): Adjust.
13477 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13478 instead of just tweaking inferior_ptid.
13479 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13480 (exit_lwp): Pass target down to find_thread_ptid.
13481 (attach_proc_task_lwp_callback): Pass target down to
13482 add_thread/set_running/set_executing.
13483 (linux_nat_target::attach): Pass target down to
13484 thread_change_ptid.
13485 (get_detach_signal): Pass target down to find_thread_ptid.
13486 Consider last target status's target.
13487 (linux_resume_one_lwp_throw, resume_lwp)
13488 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13489 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13490 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13491 (linux_nat_target::async_wait_fd): New.
13492 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13493 target down.
13494 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13495 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13496 * linux-thread-db.c (struct thread_db_info::process_target): New
13497 field.
13498 (add_thread_db_info): Save target.
13499 (get_thread_db_info): New process_stratum_target parameter. Also
13500 match target.
13501 (delete_thread_db_info): New process_stratum_target parameter.
13502 Also match target.
13503 (thread_from_lwp): Adjust to pass down target.
13504 (thread_db_notice_clone): Pass down target.
13505 (check_thread_db_callback): Pass down target.
13506 (try_thread_db_load_1): Always push the thread_db target.
13507 (try_thread_db_load, record_thread): Pass target down.
13508 (thread_db_target::detach): Pass target down. Always unpush the
13509 thread_db target.
13510 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13511 target down. Always unpush the thread_db target.
13512 (find_new_threads_callback, thread_db_find_new_threads_2)
13513 (thread_db_target::update_thread_list): Pass target down.
13514 (thread_db_target::pid_to_str): Pass current inferior down.
13515 (thread_db_target::get_thread_local_address): Pass target down.
13516 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13517 target down.
13518 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13519 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13520 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13521 (procfs_init_inferior): Rename to ...
13522 (procfs_target::procfs_init_inferior): ... this and adjust.
13523 (procfs_target::create_inferior, procfs_notice_thread)
13524 (procfs_do_thread_registers): Adjust.
13525 * ppc-fbsd-tdep.c: Include "inferior.h".
13526 (ppcfbsd_get_thread_local_address): Pass down target.
13527 * proc-service.c (ps_xfer_memory): Switch current inferior and
13528 program space as well.
13529 (get_ps_regcache): Pass target down.
13530 * process-stratum-target.c
13531 (process_stratum_target::thread_address_space)
13532 (process_stratum_target::thread_architecture): Pass target down.
13533 * process-stratum-target.h
13534 (process_stratum_target::threads_executing): New field.
13535 (as_process_stratum_target): New.
13536 * ravenscar-thread.c
13537 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13538 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13539 down.
13540 * record-btrace.c (record_btrace_target::info_record): Adjust.
13541 (record_btrace_target::record_method)
13542 (record_btrace_target::record_is_replaying)
13543 (record_btrace_target::fetch_registers)
13544 (get_thread_current_frame_id, record_btrace_target::resume)
13545 (record_btrace_target::wait, record_btrace_target::stop): Pass
13546 target down.
13547 * record-full.c (record_full_wait_1): Switch to event thread.
13548 Pass target down.
13549 * regcache.c (regcache::regcache)
13550 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13551 process_stratum_target parameter and handle it.
13552 (current_thread_target): New global.
13553 (get_thread_regcache): Add process_stratum_target parameter and
13554 handle it. Switch inferior before calling target method.
13555 (get_thread_regcache): Pass target down.
13556 (get_thread_regcache_for_ptid): Pass target down.
13557 (registers_changed_ptid): Add process_stratum_target parameter and
13558 handle it.
13559 (registers_changed_thread, registers_changed): Pass target down.
13560 (test_get_thread_arch_aspace_regcache): New.
13561 (current_regcache_test): Define a couple local test_target_ops
13562 instances and use them for testing.
13563 (readwrite_regcache): Pass process_stratum_target parameter.
13564 (cooked_read_test, cooked_write_test): Pass mock_target down.
13565 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13566 (get_thread_arch_aspace_regcache): Add process_stratum_target
13567 parameter.
13568 (regcache::target): New method.
13569 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13570 (regcache::registers_changed_ptid): Add process_stratum_target
13571 parameter.
13572 (regcache::m_target): New field.
13573 (registers_changed_ptid): Add process_stratum_target parameter.
13574 * remote.c (remote_state::supports_vCont_probed): New field.
13575 (remote_target::async_wait_fd): New method.
13576 (remote_unpush_and_throw): Add remote_target parameter.
13577 (get_current_remote_target): Adjust.
13578 (remote_target::remote_add_inferior): Push target.
13579 (remote_target::remote_add_thread)
13580 (remote_target::remote_notice_new_inferior)
13581 (get_remote_thread_info): Pass target down.
13582 (remote_target::update_thread_list): Skip threads of inferiors
13583 bound to other targets. (remote_target::close): Don't discard
13584 inferiors. (remote_target::add_current_inferior_and_thread)
13585 (remote_target::process_initial_stop_replies)
13586 (remote_target::start_remote)
13587 (remote_target::remote_serial_quit_handler): Pass down target.
13588 (remote_target::remote_unpush_target): New remote_target
13589 parameter. Unpush the target from all inferiors.
13590 (remote_target::remote_unpush_and_throw): New remote_target
13591 parameter. Pass it down.
13592 (remote_target::open_1): Check whether the current inferior has
13593 execution instead of checking whether any inferior is live. Pass
13594 target down.
13595 (remote_target::remote_detach_1): Pass down target. Use
13596 remote_unpush_target.
13597 (extended_remote_target::attach): Pass down target.
13598 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13599 (remote_target::append_resumption): Pass down target.
13600 (remote_target::append_pending_thread_resumptions)
13601 (remote_target::remote_resume_with_hc, remote_target::resume)
13602 (remote_target::commit_resume): Pass down target.
13603 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13604 (remote_target::interrupt_query)
13605 (remote_target::remove_new_fork_children)
13606 (remote_target::check_pending_events_prevent_wildcard_vcont)
13607 (remote_target::remote_parse_stop_reply)
13608 (remote_target::process_stop_reply): Pass down target.
13609 (first_remote_resumed_thread): New remote_target parameter. Pass
13610 it down.
13611 (remote_target::wait_as): Pass down target.
13612 (unpush_and_perror): New remote_target parameter. Pass it down.
13613 (remote_target::readchar, remote_target::remote_serial_write)
13614 (remote_target::getpkt_or_notif_sane_1)
13615 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13616 down target.
13617 (remote_target::mourn_inferior): Pass down target. Use
13618 remote_unpush_target.
13619 (remote_target::core_of_thread)
13620 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13621 (remote_target::pid_to_exec_file)
13622 (remote_target::thread_handle_to_thread_info): Pass down target.
13623 (remote_target::async_wait_fd): New.
13624 * riscv-fbsd-tdep.c: Include "inferior.h".
13625 (riscv_fbsd_get_thread_local_address): Pass down target.
13626 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13627 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13628 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13629 Adjust.
13630 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13631 * solib-svr4.c (enable_break): Pass down target.
13632 * spu-multiarch.c (parse_spufs_run): Pass down target.
13633 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13634 * target-delegates.c: Regenerate.
13635 * target.c (g_target_stack): Delete.
13636 (current_top_target): Return the current inferior's top target.
13637 (target_has_execution_1): Refer to the passed-in inferior's top
13638 target.
13639 (target_supports_terminal_ours): Check whether the initial
13640 inferior was already created.
13641 (decref_target): New.
13642 (target_stack::push): Incref/decref the target.
13643 (push_target, push_target, unpush_target): Adjust.
13644 (target_stack::unpush): Defref target.
13645 (target_is_pushed): Return bool. Adjust to refer to the current
13646 inferior's target stack.
13647 (dispose_inferior): Delete, and inline parts ...
13648 (target_preopen): ... here. Only dispose of the current inferior.
13649 (target_detach): Hold strong target reference while detaching.
13650 Pass target down.
13651 (target_thread_name): Add assertion.
13652 (target_resume): Pass down target.
13653 (target_ops::beneath, find_target_at): Adjust to refer to the
13654 current inferior's target stack.
13655 (get_dummy_target): New.
13656 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13657 has a thread running.
13658 (initialize_targets): Rename to ...
13659 (_initialize_target): ... this.
13660 * target.h: Include "gdbsupport/refcounted-object.h".
13661 (struct target_ops): Inherit refcounted_object.
13662 (target_ops::shortname, target_ops::longname): Make const.
13663 (target_ops::async_wait_fd): New method.
13664 (decref_target): Declare.
13665 (struct target_ops_ref_policy): New.
13666 (target_ops_ref): New typedef.
13667 (get_dummy_target): Declare function.
13668 (target_is_pushed): Return bool.
13669 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13670 (all_matching_threads_iterator::all_matching_threads_iterator):
13671 Handle filter target.
13672 * thread-iter.h (struct all_matching_threads_iterator, struct
13673 all_matching_threads_range, class all_non_exited_threads_range):
13674 Filter by target too. Remove explicit.
13675 * thread.c (threads_executing): Delete.
13676 (inferior_thread): Pass down current inferior.
13677 (clear_thread_inferior_resources): Pass down thread pointer
13678 instead of ptid_t.
13679 (add_thread_silent, add_thread_with_info, add_thread): Add
13680 process_stratum_target parameter. Use it for thread and inferior
13681 searches.
13682 (is_current_thread): New.
13683 (thread_info::deletable): Use it.
13684 (find_thread_ptid, thread_count, in_thread_list)
13685 (thread_change_ptid, set_resumed, set_running): New
13686 process_stratum_target parameter. Pass it down.
13687 (set_executing): New process_stratum_target parameter. Pass it
13688 down. Adjust reference to 'threads_executing'.
13689 (threads_are_executing): New process_stratum_target parameter.
13690 Adjust reference to 'threads_executing'.
13691 (set_stop_requested, finish_thread_state): New
13692 process_stratum_target parameter. Pass it down.
13693 (switch_to_thread): Also match inferior.
13694 (switch_to_thread): New process_stratum_target parameter. Pass it
13695 down.
13696 (update_threads_executing): Reimplement.
13697 * top.c (quit_force): Pop targets from all inferior.
13698 (gdb_init): Don't call initialize_targets.
13699 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13700 Declare.
13701 (windows_add_thread, windows_delete_thread): Adjust.
13702 (get_windows_debug_event): Rename to ...
13703 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13704 * tracefile-tfile.c (tfile_target_open): Pass down target.
13705 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13706 Forward declare.
13707 (switch_to_thread): Add process_stratum_target parameter.
13708 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13709 parameter. Use it.
13710 (mi_on_resume): Pass target down.
13711 * nat/fork-inferior.c (startup_inferior): Add
13712 process_stratum_target parameter. Pass it down.
13713 * nat/fork-inferior.h (startup_inferior): Add
13714 process_stratum_target parameter.
13715 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13716
75c6c844
PA
137172020-01-10 Pedro Alves <palves@redhat.com>
13718
13719 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13720 directly. Instead find the first thread in the thread list and
13721 use switch_to_thread.
13722
78f2c40a
PA
137232020-01-10 Pedro Alves <palves@redhat.com>
13724
13725 * remote.c (remote_target::remote_add_inferior): Don't bind a
13726 process to the current inferior if the current inferior is already
13727 bound to a process.
13728
e7af6c70
TBA
137292020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13730 Pedro Alves <palves@redhat.com>
13731
13732 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13733 If no process is specified, return null_ptid instead of
13734 inferior_ptid.
13735 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13736 TARGET_WAITKIND_SIGNALLED with no pid.
13737
31ba933e
PA
137382020-01-10 Pedro Alves <palves@redhat.com>
13739
13740 * remote.c (first_remote_resumed_thread): New.
13741 (remote_target::wait_as): Use it as default event_ptid instead of
13742 inferior_ptid.
13743
735fc2ca
PA
137442020-01-10 Pedro Alves <palves@redhat.com>
13745
13746 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13747
c17e02e1
PA
137482020-01-10 Pedro Alves <palves@redhat.com>
13749
13750 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13751 not -1.
13752
ab1ddbcf
PA
137532020-01-10 Pedro Alves <palves@redhat.com>
13754
13755 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13756 ptid to get_last_target_status.
13757 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13758 ptid to get_last_target_status.
13759 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13760 get_last_target_status.
13761 (info_program_command): Don't pass a target_waitstatus to
13762 get_last_target_status.
13763 * infrun.c (init_wait_for_inferior): Use
13764 nullify_last_target_wait_ptid.
13765 (get_last_target_status): Handle nullptr arguments.
13766 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13767 (print_stop_event): Don't pass a ptid to get_last_target_status.
13768 (normal_stop): Don't pass a ptid to get_last_target_status.
13769 * infrun.h (get_last_target_status, set_last_target_status): Move
13770 comments here and update.
13771 (nullify_last_target_wait_ptid): Declare.
13772 * linux-fork.c (fork_load_infrun_state): Remove local extern
13773 declaration of nullify_last_target_wait_ptid.
13774 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13775 to get_last_target_status.
13776
f3f8ece4
PA
137772020-01-10 Pedro Alves <palves@redhat.com>
13778
13779 * gdbthread.h (scoped_restore_current_thread)
13780 <dont_restore, restore, m_dont_restore>: Declare.
13781 * thread.c (thread_alive): Add assertion. Return bool.
13782 (switch_to_thread_if_alive): New.
13783 (prune_threads): Switch inferior/thread.
13784 (print_thread_info_1): Switch thread before calling target methods.
13785 (scoped_restore_current_thread::restore): New, factored out from
13786 ...
13787 (scoped_restore_current_thread::~scoped_restore_current_thread):
13788 ... this.
13789 (scoped_restore_current_thread::scoped_restore_current_thread):
13790 Add assertion.
13791 (thread_apply_all_command, thread_select): Use
13792 switch_to_thread_if_alive.
13793 * infrun.c (proceed, restart_threads, handle_signal_stop)
13794 (switch_back_to_stepped_thread): Switch current thread before
13795 calling target methods.
13796
db2d40f7
PA
137972020-01-10 Pedro Alves <palves@redhat.com>
13798
13799 * inferior.c (switch_to_inferior_no_thread): New function,
13800 factored out from ...
13801 (inferior_command): ... here.
13802 * inferior.h (switch_to_inferior_no_thread): Declare.
13803 * mi/mi-main.c (run_one_inferior): Use
13804 switch_to_inferior_no_thread.
13805
bd420a2d
PA
138062020-01-10 Pedro Alves <palves@redhat.com>
13807
13808 * infcmd.c (kill_command): Remove dead code.
13809
ddf5db90
PA
138102020-01-10 Pedro Alves <palves@redhat.com>
13811
13812 * remote.c (remote_target::mourn_inferior): No longer check
13813 whether the target is running.
13814
5018ce90
PA
138152020-01-10 Pedro Alves <palves@redhat.com>
13816
13817 * corelow.c (core_target::has_execution): Change parameter type to
13818 inferior pointer.
13819 * inferior.c (number_of_live_inferiors): Use
13820 inferior::has_execution instead of target_has_execution_1.
13821 * inferior.h (inferior::has_execution): New.
13822 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13823 inferior::has_execution instead of target_has_execution_1.
13824 * process-stratum-target.c
13825 (process_stratum_target::has_execution): Change parameter type to
13826 inferior pointer. Check the inferior's PID instead of
13827 inferior_ptid.
13828 * process-stratum-target.h
13829 (process_stratum_target::has_execution): Change parameter type to
13830 inferior pointer.
13831 * record-full.c (record_full_core_target::has_execution): Change
13832 parameter type to inferior pointer.
13833 * target.c (target_has_execution_1): Change parameter type to
13834 inferior pointer.
13835 (target_has_execution_current): Adjust.
13836 * target.h (target_ops::has_execution): Change parameter type to
13837 inferior pointer.
13838 (target_has_execution_1): Change parameter type to inferior
13839 pointer. Change return type to bool.
13840 * tracefile.h (tracefile_target::has_execution): Change parameter
13841 type to inferior pointer.
13842
74375d18
PA
138432020-01-10 Pedro Alves <palves@redhat.com>
13844
13845 * exceptions.c (print_flush): Remove current_top_target() check.
13846
acdf84a6
PA
138472020-01-10 Pedro Alves <palves@redhat.com>
13848
13849 * remote.c (show_remote_exec_file): Show the current inferior's
13850 exec-file instead of the command variable's value.
13851
ec506636
PA
138522020-01-10 Pedro Alves <palves@redhat.com>
13853
13854 * record-full.c (record_full_resume_ptid): New global.
13855 (record_full_target::resume): Set it.
13856 (record_full_wait_1): Use record_full_resume_ptid instead of
13857 inferior_ptid.
13858
873657b9
PA
138592020-01-10 Pedro Alves <palves@redhat.com>
13860
13861 * gdbthread.h (scoped_restore_current_thread)
13862 <dont_restore, restore, m_dont_restore>: Declare.
13863 * thread.c (thread_alive): Add assertion. Return bool.
13864 (switch_to_thread_if_alive): New.
13865 (prune_threads): Switch inferior/thread.
13866 (print_thread_info_1): Switch thread before calling target methods.
13867 (scoped_restore_current_thread::restore): New, factored out from
13868 ...
13869 (scoped_restore_current_thread::~scoped_restore_current_thread):
13870 ... this.
13871 (scoped_restore_current_thread::scoped_restore_current_thread):
13872 Add assertion.
13873 (thread_apply_all_command, thread_select): Use
13874 switch_to_thread_if_alive.
13875
7f0ae84c
GB
138762020-01-10 George Barrett <bob@bob131.so>
13877
13878 * stap-probe.c (stap_modify_semaphore): Don't check for null
13879 semaphores.
13880 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13881 for null semaphores.
13882
f5a7c406
AB
138832020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13884
13885 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13886 all source windows, and maintain horizontal scroll status while
13887 doing so.
13888
9ae6bf64
TT
138892020-01-09 Tom Tromey <tom@tromey.com>
13890
13891 PR tui/18932:
13892 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13893 update_source_window, not print_source_lines.
13894
b2efe70c
AB
138952020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13896
13897 * tui/tui.c (tui_enable): Register tui hooks after calling
13898 tui_display_main.
13899
5f23a082
CB
139002020-01-09 Christian Biesinger <cbiesinger@google.com>
13901
13902 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13903
3061113b
SM
139042020-01-08 Simon Marchi <simon.marchi@efficios.com>
13905
13906 * thread.c (print_thread_info_1): Fix indentation.
13907
57d75002
CB
139082020-01-09 Christian Biesinger <cbiesinger@google.com>
13909
13910 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13911 unique_xmalloc_ptr outside the if to always free the demangled name.
13912
6a053cb1
TT
139132020-01-08 Tom Tromey <tromey@adacore.com>
13914
13915 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13916 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13917 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13918 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13919 Remove.
13920 (section_offsets): New typedef.
13921 * symtab.c (fixup_section, get_msymbol_address): Update.
13922 * symmisc.c (dump_msymbols): Update.
13923 * symfile.h (relative_addr_info_to_section_offsets)
13924 (symfile_map_offsets_to_segments): Update.
13925 * symfile.c (build_section_addr_info_from_objfile)
13926 (init_objfile_sect_indices): Update.
13927 (struct place_section_arg): Change type of "offsets".
13928 (place_section): Update.
13929 (relative_addr_info_to_section_offsets): Change type of
13930 "section_offsets". Remove "num_sections" parameter.
13931 (default_symfile_offsets, syms_from_objfile_1)
13932 (set_objfile_default_section_offset): Update.
13933 (reread_symbols): No need to preserve section offsets by hand.
13934 (symfile_map_offsets_to_segments): Change type of "offsets".
13935 * stap-probe.c (relocate_address): Update.
13936 * stabsread.h (process_one_symbol): Update.
13937 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13938 (solib_target_relocate_section_addresses): Update.
13939 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13940 Update.
13941 * solib-frv.c (frv_relocate_main_executable): Update.
13942 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13943 * solib-aix.c (solib_aix_get_section_offsets): Change return
13944 type.
13945 (solib_aix_solib_create_inferior_hook): Update.
13946 * remote.c (remote_target::get_offsets): Update.
13947 * psymtab.c (find_pc_sect_psymtab): Update.
13948 * psympriv.h (struct partial_symbol) <address, text_low,
13949 text_high>: Update.
13950 * objfiles.h (obj_section_offset): Update.
13951 (struct objfile) <section_offsets>: Change type.
13952 <num_sections>: Remove.
13953 (objfile_relocate): Update.
13954 * objfiles.c (entry_point_address_query): Update
13955 (relocate_one_symbol): Change type of "section_offsets".
13956 (objfile_relocate1, objfile_relocate1): Change type of
13957 "new_offsets".
13958 (objfile_rebase1): Update.
13959 * mipsread.c (mipscoff_symfile_read): Update.
13960 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13961 parameter.
13962 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13963 (parse_external, psymtab_to_symtab_1): Update.
13964 * machoread.c (macho_symfile_offsets): Update.
13965 * ia64-tdep.c (ia64_find_unwind_table): Update.
13966 * hppa-tdep.c (read_unwind_info): Update.
13967 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13968 * dwarf2read.c (create_addrmap_from_index)
13969 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13970 (process_psymtab_comp_unit_reader, add_partial_symbol)
13971 (add_partial_subprogram, process_full_comp_unit)
13972 (read_file_scope, read_func_scope, read_lexical_block_scope)
13973 (read_call_site_scope, dwarf2_rnglists_process)
13974 (dwarf2_ranges_process, dwarf2_ranges_read)
13975 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13976 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13977 Update.
13978 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13979 Update.
13980 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13981 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13982 (process_one_symbol): Change type of "section_offsets".
13983 * ctfread.c (get_objfile_text_range): Update.
13984 * coffread.c (coff_symtab_read, enter_linenos)
13985 (process_coff_symbol): Update.
13986 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13987 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13988
456e800a
TT
139892020-01-08 Tom Tromey <tromey@adacore.com>
13990
13991 * dwarf2read.c (parse_macro_definition): Use std::string.
13992 (parse_macro_definition): Likewise.
13993
6dfa2fc2
TT
139942020-01-08 Tom Tromey <tromey@adacore.com>
13995
13996 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13997 (ATTR_ALLOC_CHUNK): Remove.
13998
421d1616
TT
139992020-01-08 Tom Tromey <tromey@adacore.com>
14000
14001 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14002
43816ebc
TT
140032020-01-08 Tom Tromey <tromey@adacore.com>
14004
14005 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14006 (dwarf2_compute_name, open_dwo_file): Likewise.
14007 (process_enumeration_scope): Use std::vector.
14008 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14009 (partial_die_info::fixup, dwarf2_start_subfile)
14010 (guess_full_die_structure_name, dwarf2_name): Likewise.
14011 (determine_prefix): Update.
14012 (guess_full_die_structure_name): Make return type const.
14013 (partial_die_full_name): Return unique_xmalloc_ptr.
14014 (DW_FIELD_ALLOC_CHUNK): Remove.
14015
4212d509
TT
140162020-01-07 Tom Tromey <tromey@adacore.com>
14017
14018 PR build/24937:
14019 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14020
06a6207a
JT
140212020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14022
14023 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14024
153d79c4
AB
140252020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14026
14027 * stack.c (print_frame_info): Move disassemble_next_line code
14028 inside source_print block.
14029
66182876
EZ
140302020-01-06 Eli Zaretskii <eliz@gnu.org>
14031
14032 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14033 gdb/signals.h, as we are now using native signal symbols.
14034
cbfa8581
SV
140352020-01-06 Shahab Vahedi <shahab@synopsys.com>
14036
14037 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14038 overflow by an early check of content vs threshold.
aac66a4c 14039 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14040 Likewise.
14041
3f602821
EZ
140422020-01-06 Eli Zaretskii <eliz@gnu.org>
14043
14044 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14045
a08c904d
JT
140462020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14047
14048 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14049 export table if no section contains it's RVA.
14050
89a65580
EZ
140512020-01-06 Eli Zaretskii <eliz@gnu.org>
14052
14053 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14054
8b7fcda2
HD
140552020-01-06 Hannes Domani <ssbssa@yahoo.de>
14056
14057 * source.c (print_source_lines_base): Set last_line_listed.
14058
a61b4f69
SV
140592020-01-06 Shahab Vahedi <shahab@synopsys.com>
14060
14061 * tui/tui-disasm.c: Remove trailing spaces.
14062
559e7e50
EZ
140632020-01-06 Eli Zaretskii <eliz@gnu.org>
14064 Pedro Alves <palves@redhat.com>
14065
14066 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14067 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14068 (windows_gdb_signal_to_target): New function, uses the above
14069 enumeration to convert GDB internal signal codes to equivalent
14070 Windows codes.
14071 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14072 * windows-nat.c: Include "gdb_wait.h".
14073 (get_windows_debug_event): Extract the fatal exception from the
14074 exit status and convert to the equivalent Posix signal number.
14075 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14076 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14077 * gdbsupport/gdb_wait.c: New file, implements
14078 windows_status_to_termsig.
14079 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14080 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14081
f2302a34
AB
140822020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14083
14084 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14085 show_layout.
14086
6a5206eb
LM
140872020-01-05 Luis Machado <luis.machado@linaro.org>
14088
14089 * aarch64-linux-nat.c
14090 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14091 and bfd_mach_aarch64.
14092
6ec1d75e
PW
140932020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14094
14095 * ui-file.c (stdio_file::can_emit_style_escape)
14096 (tee_file::can_emit_style_escape): Ensure style is used also on
14097 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14098 to gdb_stdout.
14099 * main.c (set_gdb_data_directory): Use file style to output the
14100 warning that the given pathname is not a directory.
14101 * top.c (show_history_filename, gdb_safe_append_history)
14102 (show_gdb_datadir): Use file style.
14103
44f81a76
HD
141042020-01-03 Hannes Domani <ssbssa@yahoo.de>
14105
14106 * solib-target.c (struct lm_info_target):
14107 Change offsets to be a unique_xmalloc_ptr.
14108 (solib_target_relocate_section_addresses): Update.
14109
25057eb0
HD
141102020-01-03 Hannes Domani <ssbssa@yahoo.de>
14111
14112 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14113
6e2118f5
BE
141142020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14115
14116 * MAINTAINERS (Write After Approval): Add myself.
14117
8133c7dc
LM
141182020-01-02 Luis Machado <luis.machado@linaro.org>
14119
14120 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14121 Cell BE architecture.
14122 * target.h (struct target_ops) <thread_architecture>: Likewise.
14123
48189bec
HD
141242020-01-01 Hannes Domani <ssbssa@yahoo.de>
14125
14126 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14127
ead1063b
HD
141282020-01-01 Hannes Domani <ssbssa@yahoo.de>
14129
14130 * MAINTAINERS (Write After Approval): Add myself.
14131
e5d78223
JB
141322020-01-01 Joel Brobecker <brobecker@adacore.com>
14133
14134 * gdbarch.sh: Update copyright year range of generated files.
14135
b811d2c2
JB
141362020-01-01 Joel Brobecker <brobecker@adacore.com>
14137
14138 Update copyright year range in all GDB files.
14139
5f4def5c
JB
141402020-01-01 Joel Brobecker <brobecker@adacore.com>
14141
14142 * copyright.py: Convert to Python 3.
14143
51fd4002
JB
141442020-01-01 Joel Brobecker <brobecker@adacore.com>
14145
14146 * copyright.py: Adapt after move of gnulib directory from gdb
14147 directory to toplevel directory.
14148
5fb651f2
JB
141492020-01-01 Joel Brobecker <brobecker@adacore.com>
14150
14151 * copyright.py (main): Exit if run from the wrong directory.
14152
5dd8bf88
JB
141532020-01-01 Joel Brobecker <brobecker@adacore.com>
14154
14155 * top.c (print_gdb_version): Change copyright year to 2020.
14156
9f71dacb 141572020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14158
9f71dacb 14159 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14160
9f71dacb 14161For older changes see ChangeLog-2019.
c906108c
SS
14162\f
14163Local Variables:
14164mode: change-log
14165left-margin: 8
14166fill-column: 74
14167version-control: never
57da7796 14168coding: utf-8
c906108c 14169End:
This page took 6.261738 seconds and 4 git commands to generate.