]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Use gdb_bfd_sections in gcore_memory_sections
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f4f2b85f
TT
12020-09-19 Tom Tromey <tom@tromey.com>
2
3 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
4 (gcore_copy_callback): Likewise.
5 (gcore_memory_sections): Use foreach.
6
b35c1d1c
TT
72020-09-19 Tom Tromey <tom@tromey.com>
8
9 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
10 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
11 parameters.
12 (generic_elf_osabi_sniffer): Use foreach.
13 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
14 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
15
5bb6e9dd
TT
162020-09-19 Tom Tromey <tom@tromey.com>
17
18 * dwarf2/read.c (locate_dwz_sections): Change parameters.
19 (dwarf2_get_dwz_file): Use foreach.
20 (dwarf2_locate_dwo_sections): Change parameters.
21 (open_and_init_dwo_file): Use foreach.
22 (dwarf2_locate_common_dwp_sections): Change parameters.
23 (open_and_init_dwp_file): Use foreach.
24
ad7277da
TT
252020-09-19 Tom Tromey <tom@tromey.com>
26
27 * symfile.h: (find_lowest_section): Don't declare.
28 * symfile.c (find_lowest_section): Now static. Change
29 parameters.
30 (struct place_section_arg): Remove.
31 (place_section): Change parameters.
32 (addr_info_make_relative): Use foreach.
33 (symfile_dummy_outputs): Remove.
34 (default_symfile_relocate): Use foreach.
35
cb814f2e
TT
362020-09-19 Tom Tromey <tom@tromey.com>
37
38 * objfiles.c (add_to_objfile_sections): Rename from
39 add_to_objfile_sections_full.
40 (add_to_objfile_sections): Remove.
41 (build_objfile_section_table): Use foreach.
42
3cabfd26
TT
432020-09-19 Tom Tromey <tom@tromey.com>
44
45 * stap-probe.c (get_stap_base_address_1): Remove.
46 (get_stap_base_address): Use foreach.
47
1ce51eb5
TT
482020-09-19 Tom Tromey <tom@tromey.com>
49
50 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
51 parameters.
52 (gdb_bfd_close_or_warn): Use foreach.
53
a190fabb
TT
542020-09-19 Tom Tromey <tom@tromey.com>
55
56 * corelow.c (add_to_thread_list): Change parameters.
57 (core_target_open): Use foreach.
58
cafb0d81
TT
592020-09-19 Tom Tromey <tom@tromey.com>
60
61 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
62 existing function.
63
c8d5abea
AB
642020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
65
66 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
67 for arrays.
68
6d816919
AB
692020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
70
71 * eval.c: Remove 'f-lang.h' include.
72 (value_f90_subarray): Moved to f-lang.c.
73 (eval_call): Renamed to...
74 (evaluate_subexp_do_call): ...this, is no longer static, header
75 comment moved into header file.
76 (evaluate_funcall): Update call to eval_call.
77 (skip_undetermined_arglist): Moved to f-lang.c.
78 (fortran_value_subarray): Likewise.
79 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
80 moved to evaluate_subexp_f.
81 (calc_f77_array_dims): Moved to f-lang.c
82 * expprint.c (print_subexp_funcall): New function.
83 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
84 moved to print_subexp_f, OP_FUNCALL uses new function.
85 (dump_subexp_body_funcall): New function.
86 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
87 moved to dump_subexp_f, OP_FUNCALL uses new function.
88 * expression.h (evaluate_subexp_do_call): Declare.
89 * f-lang.c (value_f90_subarray): Moved from eval.c.
90 (skip_undetermined_arglist): Likewise.
91 (calc_f77_array_dims): Likewise.
92 (fortran_value_subarray): Likewise.
93 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
94 (operator_length_f): Likewise.
95 (print_subexp_f): Likewise.
96 (dump_subexp_body_f): Likewise.
97 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
98 declaration of this operation to here.
99 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
100 support moved to operator_length_f.
101 * parser-defs.h (dump_subexp_body_funcall): Declare.
102 (print_subexp_funcall): Declare.
103 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
104 fortran-operator.def.
105
8c37706a
AB
1062020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
107
108 * eval.c (fortran_value_subarray): New function, content is taken
109 from...
110 (evaluate_subexp_standard): ...here, in two places. Now arrays
111 and strings both call the new function.
112 (calc_f77_array_dims): Add header comment, handle strings.
113
14f9473c
VC
1142020-09-18 Victor Collod <vcollod@nvidia.com>
115
116 PR gdb/26635
117 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
118 (i386_analyze_prologue): Call i386_skip_endbr.
119
b60cea74
TT
1202020-09-18 Tom Tromey <tromey@adacore.com>
121
122 * windows-nat.c (struct windows_nat_target) <wait>: Update.
123 (windows_nat_target::wait): Update.
124 * target/wait.h (enum target_wait_flag): New. Use
125 DEF_ENUM_FLAGS_TYPE.
126 * target/target.h (target_wait): Change type of options.
127 * target.h (target_options_to_string, default_target_wait):
128 Update.
129 (struct target_ops) <wait>: Change type of options.
130 * target.c (target_wait, default_target_wait, do_option): Change
131 type of "options".
132 (target_options_to_string): Likewise.
133 * target-delegates.c: Rebuild.
134 * target-debug.h (target_debug_print_target_wait_flags): Rename
135 from target_debug_print_options.
136 * sol-thread.c (class sol_thread_target) <wait>: Update.
137 (sol_thread_target::wait): Update.
138 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
139 (rs6000_nat_target::wait): Update.
140 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
141 Update.
142 (remote_target::wait_ns, remote_target::wait_as): Change type of
143 "options".
144 (remote_target::wait): Update.
145 * remote-sim.c (struct gdbsim_target) <wait>: Update.
146 (gdbsim_target::wait): Update.
147 * record-full.c (class record_full_base_target) <wait>: Update.
148 (record_full_wait_1): Change type of "options".
149 (record_full_base_target::wait): Update.
150 * record-btrace.c (class record_btrace_target) <wait>: Update.
151 (record_btrace_target::wait): Update.
152 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
153 Update.
154 (ravenscar_thread_target::wait): Update.
155 * procfs.c (class procfs_target) <wait>: Update.
156 (procfs_target::wait): Update.
157 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
158 * obsd-nat.c (obsd_nat_target::wait): Update.
159 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
160 (nto_procfs_target::wait): Update.
161 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
162 * nbsd-nat.c (nbsd_wait): Change type of "options".
163 (nbsd_nat_target::wait): Update.
164 * linux-thread-db.c (class thread_db_target) <wait>: Update.
165 (thread_db_target::wait): Update.
166 * linux-nat.h (class linux_nat_target) <wait>: Update.
167 * linux-nat.c (linux_nat_target::wait): Update.
168 (linux_nat_wait_1): Update.
169 * infrun.c (do_target_wait_1, do_target_wait): Change type of
170 "options".
171 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
172 * inf-ptrace.c (inf_ptrace_target::wait): Update.
173 * go32-nat.c (struct go32_nat_target) <wait>: Update.
174 (go32_nat_target::wait): Update.
175 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
176 * gnu-nat.c (gnu_nat_target::wait): Update.
177 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
178 * fbsd-nat.c (fbsd_nat_target::wait): Update.
179 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
180 * darwin-nat.c (darwin_nat_target::wait): Update.
181 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
182 (bsd_uthread_target::wait): Update.
183 * aix-thread.c (class aix_thread_target) <wait>: Update.
184 (aix_thread_target::wait): Update.
185
0295dde6
AB
1862020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
187
188 * compile/compile-object-run.c (create_copied_type_recursive): New
189 function.
190 (compile_object_run): Use new function.
191
d3483b43
JT
1922020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
193
194 * NEWS: Mention x86_64 Cygwin core file support.
195
e7d612ad
JT
1962020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
197
198 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
199 (core_process_module_section): Handle NOTE_INFO_MODULE64.
200
aff9d387
JT
2012020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
202
62a5151b
JT
203 * windows-tdep.h: Add prototypes.
204 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
205 (i386_windows_core_pid_to_str): Move and rename ...
206 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
207 (windows_core_pid_to_str): ... and here.
208 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
209
2102020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
211 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
212 (amd64_windows_init_abi_common): ... and register.
213
7d155da3
JT
2142020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
215
216 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
217 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
218
e8ef12b9
PA
2192020-09-18 Pedro Alves <pedro@palves.net>
220
221 PR gdb/26631
222 * thread.c (thread_find_command): Switch inferior before calling
223 target methods.
224
c1e1314d
TT
2252020-09-17 Tom Tromey <tromey@adacore.com>
226
227 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
228 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
229 (tdesc_arch_data_up): New typedef.
230 (tdesc_use_registers, tdesc_data_alloc): Update.
231 (tdesc_data_cleanup): Don't declare.
232 * target-descriptions.c (tdesc_data_alloc): Return a
233 tdesc_arch_data_up.
234 (tdesc_arch_data_deleter::operator()): Rename from
235 tdesc_data_cleanup. Change argument type.
236 (tdesc_use_registers): Change early_data to an rvalue reference.
237 (tdesc_use_registers): Don't use delete.
238 * sparc-tdep.c (sparc32_gdbarch_init): Update.
239 * s390-tdep.c (s390_gdbarch_init): Update.
240 * rx-tdep.c (rx_gdbarch_init): Update.
241 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
242 * riscv-tdep.c (riscv_gdbarch_init): Update.
243 * or1k-tdep.c (or1k_gdbarch_init): Update.
244 * nios2-tdep.c (nios2_gdbarch_init): Update.
245 * nds32-tdep.c (nds32_gdbarch_init): Update.
246 * mips-tdep.c (mips_gdbarch_init): Update.
247 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
248 * m68k-tdep.c (m68k_gdbarch_init): Update.
249 * i386-tdep.c (i386_gdbarch_init): Update.
250 * arm-tdep.c (arm_gdbarch_init): Update.
251 * arc-tdep.c (arc_tdesc_init): Update.
252 (arc_gdbarch_init): Update.
253 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
254
0363df3d
HD
2552020-09-17 Hannes Domani <ssbssa@yahoo.de>
256
257 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
258 for WOW64 processes.
259
280a9412
TT
2602020-09-17 Tom Tromey <tom@tromey.com>
261
262 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
263
6108fd18
TT
2642020-09-17 Tom Tromey <tom@tromey.com>
265
266 * value.c (preserve_values): Update.
267 * python/py-type.c (save_objfile_types): Update.
268 * guile/scm-type.c (save_objfile_types): Update.
269 * gdbtypes.h (create_copied_types_hash): Return htab_up.
270 * gdbtypes.c (create_copied_types_hash): Return htab_up.
271 * compile/compile-object-run.c (compile_object_run): Update.
272
fa9b1164
TT
2732020-09-17 Tom Tromey <tom@tromey.com>
274
275 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
276 Remove.
277 <m_table>: Now htab_up.
278 * typeprint.c (typedef_hash_table::recursively_update)
279 (typedef_hash_table::add_template_parameters)
280 (typedef_hash_table::typedef_hash_table): Update.
281 (typedef_hash_table::~typedef_hash_table): Remove.
282 (typedef_hash_table::typedef_hash_table)
283 (typedef_hash_table::find_global_typedef)
284 (typedef_hash_table::find_typedef): Update.
285
eb53f105
TT
2862020-09-17 Tom Tromey <tom@tromey.com>
287
288 * target-descriptions.c (tdesc_use_registers): Use htab_up.
289
7a8a5d47
TT
2902020-09-17 Tom Tromey <tom@tromey.com>
291
292 * linespec.c (class decode_compound_collector)
293 <~decode_compound_collector>: Remove.
294 <m_unique_syms>: Now htab_up.
295 (decode_compound_collector::operator ()): Update.
296 (class symtab_collector) <~symtab_collector>: Remove.
297 <m_symtab_table>: Now htab_up.
298 (symtab_collector::operator ()): Update.
299
99032cfc
TT
3002020-09-17 Tom Tromey <tom@tromey.com>
301
302 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
303 (filename_seen_cache::clear): Update.
304 (~filename_seen_cache): Remove.
305 (filename_seen_cache::seen): Update.
306 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
307 htab_up.
308 <~filename_seen_cache>: Remove.
309 <traverse>: Update.
310
32580f6d
TT
3112020-09-17 Tom Tromey <tom@tromey.com>
312
313 * completer.c (completion_tracker::discard_completions)
314 (completion_tracker::~completion_tracker)
315 (completion_tracker::maybe_add_completion)
316 (completion_tracker::remove_completion)
317 (completion_tracker::recompute_lowest_common_denominator)
318 (completion_tracker::build_completion_result): Update.
319 * completer.h (class completion_tracker) <have_completions>:
320 Update.
321 <m_entries_hash>: Now htab_up.
322
c1fb9836
TT
3232020-09-17 Tom Tromey <tom@tromey.com>
324
325 * breakpoint.c (ambiguous_names_p): Use htab_up.
326
88f07206
TT
3272020-09-17 Tom Tromey <tom@tromey.com>
328
329 * auto-load.c (struct auto_load_pspace_info)
330 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
331 <loaded_script_files, loaded_script_texts>: Change type to
332 htab_up.
333 (~auto_load_pspace_info) Remove.
334 (init_loaded_scripts_info, maybe_add_script_file)
335 (maybe_add_script_text, auto_load_info_scripts): Update.
336
9519b2ee
TT
3372020-09-17 Tom Tromey <tromey@adacore.com>
338
339 * c-exp.y (name_obstack): Now static.
340
d2cd4113
CC
3412020-09-17 Chungyi Chi <demonic@csie.io>
342
343 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
344
b650a282
SM
3452020-09-16 Simon Marchi <simon.marchi@efficios.com>
346
347 * breakpoint.h (init_catchpoint): Change int parameter to bool.
348 (add_solib_catchpoint): Likewise.
349 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
350 to bool.
351 (add_solib_catchpoint): Change int parameter/variable to bool.
352 (catch_load_or_unload): Likewise.
353 (init_catchpoint): Likewise.
354 (create_fork_vfork_event_catchpoint): Likewise.
355 (catch_fork_command_1): Likewise.
356 (catch_exec_command_1): Likewise.
357
4d0bcfcf
SM
3582020-09-16 Simon Marchi <simon.marchi@efficios.com>
359
360 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
361 Change instance_flags to m_instance_flags.
362
fe830662
TT
3632020-09-16 Tom Tromey <tromey@adacore.com>
364
365 PR gdb/26598:
366 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
367
fe5ddfc3
JB
3682020-09-16 John Baldwin <jhb@FreeBSD.org>
369
370 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
371 PL_FLAG_EXEC.
372 (fbsd_nat_target::insert_exec_catchpoint)
373 (fbsd_nat_target::remove_exec_catchpoint): Always define.
374 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
375 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
376
e911c666
JB
3772020-09-16 John Baldwin <jhb@FreeBSD.org>
378
379 * configure.ac: Remove check for kinfo_getvmmap().
380 * configure, config.in: Regenerate.
381 * fbsd-nat.c (fbsd_read_mapping): Remove
382 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
383 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
384 kinfo_get_vmmap() are always present.
385
1f17d372
JB
3862020-09-16 John Baldwin <jhb@FreeBSD.org>
387
388 * fbsd-nat.c: Always include support for
389 TARGET_OBJECT_SIGNAL_INFO.
390
bcb1da7f
JB
3912020-09-16 John Baldwin <jhb@FreeBSD.org>
392
393 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
394 sysctl and remove procfs fallback.
395
5515f729
JB
3962020-09-16 John Baldwin <jhb@FreeBSD.org>
397
398 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
399 * fbsd-nat.h: Likewise.
400
da1df1db
TBA
4012020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
402
403 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
404 argument.
405
0e25e767
AB
4062020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
407
408 * ada-lang.c (ada_language_data): Delete.
409 (ada_language): Remove references to ada_language_data.
410 * c-lang.c (c_language_data): Delete.
411 (c_language): Remove references to c_language_data.
412 (cplus_language_data): Delete.
413 (cplus_language): Remove references to cplus_language_data.
414 (asm_language_data): Delete.
415 (asm_language): Remove references to asm_language_data.
416 (minimal_language_data): Delete.
417 (minimal_language): Remove references to minimal_language_data.
418 * d-lang.c (d_language_data): Delete.
419 (d_language): Remove references to d_language_data.
420 * f-lang.c (f_language_data): Delete.
421 (f_language): Remove references to f_language_data.
422 * go-lang.c (go_language_data): Delete.
423 (go_language): Remove references to go_language_data.
424 * language.c (unknown_language_data): Delete.
425 (unknown_language): Remove references to unknown_language_data.
426 (auto_language_data): Delete.
427 (auto_language): Remove references to auto_language_data.
428 * language.h (language_data): Delete struct.
429 (language_defn): No longer inherit from language_data.
430 * m2-lang.c (m2_language_data): Delete.
431 (m2_language): Remove references to m2_language_data.
432 * objc-lang.c (objc_language_data): Delete.
433 (objc_language): Remove references to objc_language_data.
434 * opencl-lang.c (opencl_language_data): Delete.
435 (opencl_language): Remove references to opencl_language_data.
436 * p-lang.c (pascal_language_data): Delete.
437 (pascal_language): Remove references to pascal_language_data.
438 * rust-lang.c (rust_language_data): Delete.
439 (rust_language): Remove references to rust_language_data.
440
b7c6e27d
AB
4412020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
442
443 * ada-lang.c (ada_language_data): Remove la_op_print_tab
444 initializer.
445 (ada_language::opcode_print_table): New member function.
446 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
447 (c_language::opcode_print_table): New member function.
448 (cplus_language_data): Remove la_op_print_tab initializer.
449 (cplus_language::opcode_print_table): New member function.
450 (asm_language_data): Remove la_op_print_tab initializer.
451 (asm_language::opcode_print_table): New member function.
452 (minimal_language_data): Remove la_op_print_tab initializer.
453 (minimal_language::opcode_print_table): New member function.
454 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
455 (d_language::opcode_print_table): New member function.
456 * expprint.c (print_subexp_standard): Update call to
457 opcode_print_table.
458 (op_string): Likewise.
459 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
460 (f_language::opcode_print_table): New member function.
461 * go-lang.c (go_language_data): Remove la_op_print_tab
462 initializer.
463 (go_language::opcode_print_table): New member function.
464 * language.c (unknown_language_data): Remove la_op_print_tab
465 initializer.
466 (unknown_language::opcode_print_table): New member function.
467 (auto_language_data): Remove la_op_print_tab initializer.
468 (auto_language::opcode_print_table): New member function.
469 * language.h (language_data): Remove la_op_print_tab field.
470 (language_defn::opcode_print_table): Declare new member function.
471 * m2-lang.c (m2_language_data): Remove la_op_print_tab
472 initializer.
473 (m2_language::opcode_print_table): New member function.
474 * objc-lang.c (objc_language_data): Remove la_op_print_tab
475 initializer.
476 (objc_language::opcode_print_table): New member function.
477 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
478 initializer.
479 (opencl_language::opcode_print_table): New member function.
480 * p-lang.c (pascal_language_data): Remove la_op_print_tab
481 initializer.
482 (pascal_language::opcode_print_table): New member function.
483 * rust-lang.c (rust_language_data): Remove la_op_print_tab
484 initializer.
485 (rust_language::opcode_print_table): New member function.
486
5aba6ebe
AB
4872020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
488
489 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
490 (ada_language::expression_ops): New member function.
491 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
492 (c_language::expression_ops): New member function.
493 (cplus_language_data): Remove la_exp_desc initializer.
494 (cplus_language::expression_ops): New member function.
495 (asm_language_data): Remove la_exp_desc initializer.
496 (asm_language::expression_ops): New member function.
497 (minimal_language_data): Remove la_exp_desc initializer.
498 (minimal_language::expression_ops): New member function.
499 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
500 (d_language::expression_ops): New member function.
501 * eval.c (evaluate_subexp): Update call to expression_ops.
502 * expprint.c (print_subexp): Likewise.
503 (op_name): Likewise.
504 (dump_subexp_body): Likewise.
505 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
506 (f_language::expression_ops): New member function.
507 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
508 (go_language::expression_ops): New member function.
509 * language.c (language_defn::expression_ops): New function.
510 (unknown_language_data): Remove la_exp_desc initializer.
511 (auto_language_data): Likewise.
512 * language.h (language_data): Remove la_exp_desc field.
513 (language_defn::expression_ops): Declare new member function.
514 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
515 (m2_language::expression_ops): New member function.
516 * objc-lang.c (objc_language_data): Remove la_exp_desc
517 initializer.
518 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
519 initializer.
520 (opencl_language::expression_ops): New member function.
521 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
522 * parse.c (operator_length): Update call to expression_ops.
523 (exp_iterate): Likewise.
524 * rust-lang.c (rust_language_data): Remove la_exp_desc
525 initializer.
526 (ruse_language::expression_ops): New member function.
527
b63a3f3f
AB
5282020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
529
530 * ada-lang.c (ada_language_data): Remove la_varobj_ops
531 initializer.
532 (ada_language::varobj_ops): New member function.
533 * c-lang.c (c_language_data): Remove la_varobj_ops
534 initializer.
535 (cplus_language_data): Likewise.
536 (cplus_language::varobj_ops): New member function.
537 (asm_language_data): Remove la_varobj_ops initializer.
538 (minimal_language_data): Likewise.
539 * d-lang.c (d_language_data): Likewise.
540 * f-lang.c (f_language_data): Likewise.
541 * go-lang.c (go_language_data): Likewise.
542 * language.c (language_defn::varobj_ops): New function.
543 (unknown_language_data): Remove la_varobj_ops
544 initializer.
545 (auto_language_data): Likewise.
546 * language.h (language_data): Remove la_varobj_ops field.
547 (language_defn::varobj_ops): Declare new member function.
548 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
549 * objc-lang.c (objc_language_data): Likewise.
550 * opencl-lang.c (opencl_language_data): Likewise.
551 * p-lang.c (pascal_language_data): Likewise.
552 * rust-lang.c (rust_language_data): Likewise.
553 * varobj.c (varobj_create): Update call to varobj_ops.
554 * varobj.h (default_varobj_ops): Delete define.
555
1ac14a04
AB
5562020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
557
558 * ada-lang.c (ada_language_data): Remove la_macro_expansion
559 initializer.
560 * c-lang.c (c_language_data): Likewise.
561 (c_language::macro_expansion): New member function.
562 (cplus_language_data): Likewise.
563 (cplus_language::macro_expansion): New member function.
564 (asm_language_data): Likewise.
565 (asm_language::macro_expansion): New member function.
566 (minimal_language_data): Likewise.
567 (minimal_language::macro_expansion): New member function.
568 * d-lang.c (d_language_data): Remove la_macro_expansion
569 initializer.
570 * f-lang.c (f_language_data): Likewise.
571 * go-lang.c (go_language_data): Likewise.
572 * language.c (unknown_language_data): Likewise.
573 (auto_language_data): Likewise.
574 * language.h (language_data): Remove la_macro_expansion field.
575 (language_defn::macro_expansion): New member function.
576 * m2-lang.c (m2_language_data): Remove la_macro_expansion
577 initializer.
578 * objc-lang.c (objc_language_data): Likewise.
579 (objc_language::macro_expansion): New member function.
580 * opencl-lang.c (opencl_language_data): Likewise.
581 (opencl_language::macro_expansion): New member function.
582 * p-lang.c (pascal_language_data): Remove la_macro_expansion
583 initializer.
584 * rust-lang.c (rust_language_data): Likewise.
585 * symtab.c (default_collect_symbol_completion_matches_break_on):
586 Update call to macro_expansion.
587
3a3440fb
AB
5882020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
589
590 * ada-lang.c (ada_language_data): Remove la_array_ordering
591 initializer.
592 * c-lang.c (c_language_data): Likewise.
593 (cplus_language_data): Likewise.
594 (asm_language_data): Likewise.
595 (minimal_language_data): Likewise.
596 * d-lang.c (d_language_data): Likewise.
597 * dwarf2/read.c (read_array_order): Update for call to
598 array_ordering.
599 * f-lang.c (f_language_data): Remove la_array_ordering
600 initializer.
601 (f_language::array_ordering): New member function.
602 * go-lang.c (go_language_data): Remove la_array_ordering
603 initializer.
604 * language.c (unknown_language_data): Likewise.
605 (auto_language_data): Likewise.
606 * language.h (language_data): Delete la_array_ordering field.
607 (language_defn::array_ordering): New member function.
608 * m2-lang.c (m2_language_data): Remove la_array_ordering
609 initializer.
610 * objc-lang.c (objc_language_data): Likewise.
611 * opencl-lang.c (opencl_language_data): Likewise.
612 * p-lang.c (pascal_language_data): Likewise.
613 * rust-lang.c (rust_language_data): Likewise.
614
0d201fa4
AB
6152020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
616
617 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
618 initializer.
619 * c-lang.c (c_language_data): Likewise.
620 (cplus_language_data): Likewise.
621 (asm_language_data): Likewise.
622 (minimal_language_data): Likewise.
623 * d-lang.c (d_language_data): Likewise.
624 * f-lang.c (f_language_data): Likewise.
625 (f_language::case_sensitivity): New member function.
626 * go-lang.c (go_language_data): Remove la_case_sensitivity
627 initializer.
628 * language.c (enum case_mode): Moved here from language.h.
629 (case_mode): Make static.
630 (show_case_command): Update for case_sensitivity being a method.
631 (set_case_command): Likewise.
632 (set_range_case): Likewise.
633 (unknown_language_data): Remove la_case_sensitivity initializer.
634 (auto_language_data): Likewise.
635 * language.h (case_mode): Delete, move enum declaration to
636 language.c.
637 (language_data): Delete la_case_sensitivity field.
638 (language_defn::case_sensitivity): New member function.
639 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
640 initializer.
641 * objc-lang.c (objc_language_data): Likewise.
642 * opencl-lang.c (opencl_language_data): Likewise.
643 * p-lang.c (pascal_language_data): Likewise.
644 * rust-lang.c (rust_language_data): Likewise.
645
efdf6a73
AB
6462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
647
648 * ada-lang.c (ada_language_data): Remove la_range_check
649 initializer.
650 * c-lang.c (c_language_data): Likewise.
651 (cplus_language_data): Likewise.
652 (asm_language_data): Likewise.
653 (minimal_language_data): Likewise.
654 * d-lang.c (d_language_data): Likewise.
655 * f-lang.c (f_language_data): Likewise.
656 (f_language::range_checking_on_by_default): New member function.
657 * go-lang.c (go_language_data): Remove la_range_check initializer.
658 * language.c (enum range_mode): Moved here from language.h.
659 (range_mode): Made static.
660 (show_range_command): Update to use
661 range_checking_on_by_default.
662 (set_range_command): Likewise.
663 (set_range_case): Likewise.
664 (unknown_language_data): Remove la_range_check initializer.
665 (auto_language_data): Likewise.
666 * language.h (range_mode): Delete. Enum definition moved to
667 language.c.
668 (language_data): Remove la_range_check field.
669 (language_defn::range_checking_on_by_default): New member
670 function.
671 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
672 (m2_language::range_checking_on_by_default): New member function.
673 * objc-lang.c (objc_language_data): Remove la_range_check
674 initializer.
675 * opencl-lang.c (opencl_language_data): Likewise.
676 * p-lang.c (pascal_language_data): Likewise.
677 (pascal_language::range_checking_on_by_default): New member
678 function.
679 * rust-lang.c (rust_language_data): Remove la_range_check
680 initializer.
681 (rust_language::range_checking_on_by_default): New member
682 function.
683
bf92aec5
AB
6842020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
685
686 * dwarf2/read.c (dwarf2_physname): Remove special case for
687 language_go.
688 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
689 member function.
690
d3355e4d
AB
6912020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
692
693 * ada-lang.c (ada_language_data): Remove
694 la_store_sym_names_in_linkage_form_p initializer.
695 (ada_language::store_sym_names_in_linkage_form_p): New member
696 function.
697 * c-lang.c (c_language_data): Remove
698 la_store_sym_names_in_linkage_form_p initializer.
699 (c_language::store_sym_names_in_linkage_form_p): New member
700 function.
701 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
702 initializer.
703 (asm_language_data): Likewise.
704 (asm_language::store_sym_names_in_linkage_form_p): New member
705 function.
706 (minimal_language_data): Remove
707 la_store_sym_names_in_linkage_form_p initializer.
708 (minimal_language::store_sym_names_in_linkage_form_p): New member
709 function.
710 * d-lang.c (d_language_data): Remove
711 la_store_sym_names_in_linkage_form_p initializer.
712 * dwarf2/read.c (dwarf2_physname): Update call to
713 store_sym_names_in_linkage_form_p.
714 * f-lang.c (f_language_data): Remove
715 la_store_sym_names_in_linkage_form_p initializer.
716 * go-lang.c (go_language_data): Remove
717 la_store_sym_names_in_linkage_form_p initializer.
718 * language.c (unknown_language_data): Remove
719 la_store_sym_names_in_linkage_form_p initializer.
720 (unknown_language::store_sym_names_in_linkage_form_p): New member
721 function.
722 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
723 initializer.
724 (auto_language::store_sym_names_in_linkage_form_p): New member
725 function.
726 * language.h (language_data): Remove
727 la_store_sym_names_in_linkage_form_p member variable.
728 (language_defn::store_sym_names_in_linkage_form_p): New member
729 function.
730 * m2-lang.c (m2_language_data): Remove
731 la_store_sym_names_in_linkage_form_p initializer.
732 * objc-lang.c (objc_language_data): Likewise.
733 * opencl-lang.c (opencl_language_data): Likewise.
734 * p-lang.c (pascal_language_data): Likewise.
735 * rust-lang.c (rust_language_data): Likewise.
736
22c12a6c
AB
7372020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
738
739 * ada-lang.c (ada_language_data): Remove string_lower_bound
740 initializer.
741 * c-lang.c (c_language_data): Likewise.
742 (cplus_language_data): Likewise.
743 (asm_language_data): Likewise.
744 (minimal_language_data): Likewise.
745 * d-lang.c (d_language_data): Likewise.
746 * f-lang.c (f_language_data): Likewise.
747 * go-lang.c (go_language_data): Likewise.
748 * language.c (unknown_language_data): Likewise.
749 (auto_language_data): Likewise.
750 * language.h (language_data): Remove string_lower_bound field.
751 (language_defn::string_lower_bound): New member function.
752 * m2-lang.c (m2_language_data): Remove string_lower_bound
753 initializer.
754 (m2_language::string_lower_bound): New member function.
755 * objc-lang.c (objc_language_data): Remove string_lower_bound
756 initializer.
757 * opencl-lang.c (opencl_language_data): Likewise.
758 * p-lang.c (pascal_language_data): Likewise.
759 * rust-lang.c (rust_language_data): Likewise.
760 * valops.c (value_cstring): Update call to string_lower_bound.
761 (value_string): Likewise.
762 * value.c (allocate_repeated_value): Likewise.
763
1c236ddd
AB
7642020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
765
766 * valops.c (value_repeat): Fix incorrect argument name in comment.
767
67bd3fd5
AB
7682020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
769
770 * ada-lang.c (ada_language_data): Remove c_style_arrays
771 initializer.
772 (ada_language::c_style_arrays_p): New member fuction.
773 * c-lang.c (c_language_data): Remove c_style_arrays
774 initializer.
775 (cplus_language_data): Likewise.
776 (asm_language_data): Likewise.
777 (minimal_language_data): Likewise.
778 * d-lang.c (d_language_data): Likewise.
779 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
780 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
781 (f_language::c_style_arrays_p): New member function.
782 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
783 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
784 * language.c (unknown_language_data): Remove c_style_arrays
785 initializer.
786 (auto_language_data): Likewise.
787 * language.h (language_data): Remove c_style_arrays field.
788 (language_defn::c_style_arrays_p): New member function.
789 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
790 (m2_language::c_style_arrays_p): New member function.
791 * objc-lang.c (objc_language_data): Remove c_style_arrays
792 initializer.
793 * opencl-lang.c (opencl_language_data): Likewise.
794 * p-lang.c (pascal_language_data): Likewise.
795 * rust-lang.c (rust_language_data): Likewise.
796 * valarith.c (value_subscript): Update call to c_style_arrays_p,
797 and update local variable to a bool.
798 * valops.c (value_cast): Update call to c_style_arrays_p.
799 (value_array): Likewise.
800 * value.c (coerce_array): Likewise.
801
85967615
AB
8022020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
803
804 * ada-lang.c (ada_language_data): Remove la_language initializer.
805 * c-lang.c (c_language_data): Likewise.
806 (cplus_language_data): Likewise.
807 (asm_language_data): Likewise.
808 (minimal_language_data): Likewise.
809 * d-lang.c (d_language_data): Likewise.
810 * f-lang.c (f_language_data): Likewise.
811 * go-lang.c (go_language_data): Likewise.
812 * language.c (unknown_language_data): Likewise.
813 (auto_language_data): Likewise.
814 * language.h (language_data): Remove la_language field.
815 (language_defn::language_defn): Initialise la_language field.
816 (language_defn::la_language): New member variable.
817 * m2-lang.c (m2_language_data): Remove la_language field.
818 * objc-lang.c (objc_language_data): Likewise.
819 * opencl-lang.c (opencl_language_data): Likewise.
820 * p-lang.c (pascal_language_data): Likewise.
821 * rust-lang.c (rust_language_data): Likewise.
822
e171d6f1
AB
8232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
824
825 * ada-lang.c (ada_extensions): Delete, moved into
826 ada_language::filename_extensions.
827 (ada_language_data): Remove la_filename_extensions initializer.
828 (ada_language::filename_extensions): New member function.
829 * c-lang.c (c_extensions): Delete, moved into
830 c_language::filename_extensions.
831 (c_language_data): Remove la_filename_extensions initializer.
832 (c_language::filename_extensions): New member function.
833 (cplus_extensions): Delete, moved into
834 cplus_language::filename_extensions.
835 (cplus_language_data): Remove la_filename_extensions initializer.
836 (cplus_language::filename_extensions): New member function.
837 (asm_extensions): Delete, moved into
838 asm_language::filename_extensions.
839 (asm_language_data): Remove la_filename_extensions initializer.
840 (asm_language::filename_extensions): New member function.
841 (minimal_language_data): Remove la_filename_extensions
842 initializer.
843 * d-lang.c (d_extensions): Delete, moved into
844 d_language::filename_extensions.
845 (d_language_data): Remove la_filename_extensions initializer.
846 (d_language::filename_extensions): New member function.
847 * f-lang.c (f_extensions): Delete, moved into
848 f_language::filename_extensions.
849 (f_language_data): Remove la_filename_extensions initializer.
850 (f_language::filename_extensions): New member function.
851 * go-lang.c (go_language_data): Remove la_filename_extensions
852 initializer.
853 * language.c (add_set_language_command): Update now that
854 filename_extensions returns a vector.
855 (unknown_language_data): Remove la_filename_extensions
856 initializer.
857 (auto_language_data): Likewise.
858 * language.h (language_data): Remove la_filename_extensions field.
859 (language_defn::filename_extensions): New member function.
860 * m2-lang.c (m2_language_data): Remove la_filename_extensions
861 initializer.
862 * objc-lang.c (objc_extensions): Delete, moved into
863 objc_language::filename_extensions.
864 (objc_language_data): Remove la_filename_extensions initializer.
865 (objc_language::filename_extensions): New member function.
866 * opencl-lang.c (opencl_language_data): Remove
867 la_filename_extensions initializer.
868 * p-lang.c (pascal_extensions): Delete, moved into
869 pascal_language::filename_extensions.
870 (pascal_language_data): Remove la_filename_extensions initializer.
871 (pascal_language::filename_extensions): New member function.
872 * rust-lang.c (rust_extensions): Delete, moved into
873 rust_language::filename_extensions.
874 (rust_language_data): Remove la_filename_extensions initializer.
875 (rust_language::filename_extensions): New member function.
876 * symfile.c (add_filename_language): Add new assert.
877
6f7664a9
AB
8782020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
879
880 * ada-lang.c (ada_language_data): Remove la_name and
881 la_natural_name initializers.
882 (ada_language::name): New member function.
883 (ada_language::natural_name): New member function.
884 * c-lang.c (c_language_data): Remove la_name and
885 la_natural_name initializers.
886 (c_language::name): New member function.
887 (c_language::natural_name): New member function.
888 (cplus_language_data): Remove la_name and
889 la_natural_name initializers.
890 (cplus_language::name): New member function.
891 (cplus_language::natural_name): New member function.
892 (asm_language_data): Remove la_name and
893 la_natural_name initializers.
894 (asm_language::name): New member function.
895 (asm_language::natural_name): New member function.
896 (minimal_language_data): Remove la_name and
897 la_natural_name initializers.
898 (minimal_language::name): New member function.
899 (minimal_language::natural_name): New member function.
900 * compile/compile.c (compile_to_object): Update call to
901 lanugage_defn::name.
902 * d-lang.c (d_language_data): Remove la_name and
903 la_natural_name initializers.
904 (d_language::name): New member function.
905 (d_language::natural_name): New member function.
906 * expprint.c (print_subexp_standard): Update call to
907 language_defn::name.
908 (dump_raw_expression): Likewise
909 (dump_prefix_expression): Likewise.
910 * f-lang.c (f_language_data): Remove la_name and
911 la_natural_name initializers.
912 (f_language::name): New member function.
913 (f_language::natural_name): New member function.
914 * go-lang.c (go_language_data): Remove la_name and
915 la_natural_name initializers.
916 (go_language::name): New member function.
917 (go_language::natural_name): New member function.
918 * language.c (show_language_command): Update call to
919 language_defn::name.
920 (set_language_command): Likewise.
921 (language_enum): Likewise.
922 (language_str): Likewise.
923 (add_set_language_command): Likewise, use
924 language_defn::natural_name in the doc string.
925 (unknown_language_data): Remove la_name and
926 la_natural_name initializers.
927 (unknown_language::name): New member function.
928 (unknown_language::natural_name): New member function.
929 (auto_language_data): Remove la_name and
930 la_natural_name initializers.
931 (auto_language::name): New member function.
932 (auto_language::natural_name): New member function.
933 (language_lookup_primitive_type_as_symbol): Update call to
934 language_defn::name.
935 * language.h (language_data): Remove la_name and la_natural_name
936 member variables.
937 (language_defn::name): New member function.
938 (language_defn::natural_name): New member function.
939 * m2-lang.c (m2_language_data): Remove la_name and
940 la_natural_name initializers.
941 (m2_language::name): New member function.
942 (m2_language::natural_name): New member function.
943 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
944 language_defn::natural_name.
945 * objc-lang.c (objc_language_data): Remove la_name and
946 la_natural_name initializers.
947 (objc_language::name): New member function.
948 (objc_language::natural_name): New member function.
949 * opencl-lang.c (opencl_language_data): Remove la_name and
950 la_natural_name initializers.
951 (opencl_language::name): New member function.
952 (opencl_language::natural_name): New member function.
953 * p-lang.c (pascal_language_data): Remove la_name and
954 la_natural_name initializers.
955 (pascal_language::name): New member function.
956 (pascal_language::natural_name): New member function.
957 * rust-lang.c (rust_language_data): Remove la_name and
958 la_natural_name initializers.
959 (rust_language::name): New member function.
960 (rust_language::natural_name): New member function.
961 * symtab.c (lookup_language_this): Update call to
962 language_defn::name.
963
5bae7c4e
AB
9642020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
965
966 * ada-lang.c (ada_language_data): Remove la_name_of_this
967 initializer.
968 * ax-gdb.c (gen_expr): Update call to name_of_this.
969 * c-exp.y (classify_name): Likewise.
970 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
971 (cplus_language_data): Likewise.
972 (cplus_language::name_of_this): New member function.
973 (asm_language_data): Remove la_name_of_this initializer.
974 (minimal_language_data): Likewise.
975 * d-lang.c (d_language_data): Likewise.
976 (d_language::name_of_this): New member function.
977 * expprint.c (print_subexp_standard): Update call to name_of_this.
978 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
979 * go-lang.c (go_language_data): Likewise.
980 * language.c (unknown_language_data): Likewise.
981 (unknown_language::name_of_this): New member function.
982 (auto_language_data): Remove la_name_of_this initializer.
983 (auto_language::name_of_this): New member function.
984 * language.h (language_data): Delete la_name_of_this member
985 variable.
986 (language_defn::name_of_this): New member function.
987 * m2-lang.c (m2_language_data): Remove la_name_of_this
988 initializer.
989 * objc-lang.c (objc_language_data): Likewise.
990 (objc_language::name_of_this): New member function.
991 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
992 initializer.
993 * p-lang.c (pascal_language_data): Likewise.
994 (pascal_language::name_of_this): New member function.
995 * rust-lang.c (rust_language_data): Remove la_name_of_this
996 initializer.
997 * symtab.c (lookup_language_this): Update call to name_of_this.
998 (lookup_symbol_aux): Likewise.
999 * valops.c (value_of_this): Likewise.
1000
22e3f3ed
AB
10012020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1002
1003 * ada-lang.c (ada_language_data): Remove
1004 la_struct_too_deep_ellipsis initializer.
1005 (ada_language::struct_too_deep_ellipsis): New member function.
1006 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1007 initializer.
1008 (cplus_language_data): Likewise.
1009 (asm_language_data): Likewise.
1010 (minimal_language_data): Likewise.
1011 * cp-valprint.c (cp_print_value): Update call to
1012 struct_too_deep_ellipsis.
1013 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1014 initializer.
1015 * f-lang.c (f_language_data): Likewise.
1016 (f_language::struct_too_deep_ellipsis): New member function.
1017 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1018 initializer.
1019 * language.c (unknown_language_data): Likewise.
1020 (auto_language_data): Likewise.
1021 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1022 member variable.
1023 (language_defn::struct_too_deep_ellipsis): New member function.
1024 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1025 initializer.Q
1026 * objc-lang.c (objc_language_data): Likewise.
1027 * opencl-lang.c (opencl_language_data): Likewise.
1028 * p-lang.c (pascal_language_data): Likewise.
1029 * rust-lang.c (rust_language_data): Likewise.
1030 * valprint.c (val_print_check_max_depth): Update call to
1031 struct_too_deep_ellipsis.
1032
ed29e1c7
FW
10332020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1034
1035 * MAINTAINERS (Write After Approval): Add myself.
1036
12d8f940
TT
10372020-09-15 Tom Tromey <tom@tromey.com>
1038
1039 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1040 Remove.
1041
6b5a7bc7
TT
10422020-09-15 Tom Tromey <tom@tromey.com>
1043
1044 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1045 and TYPE_CODE_METHODPTR cases.
1046 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1047 (c_value_print_inner): Update.
1048 * valprint.c (generic_value_print_memberptr): New function, from
1049 c_value_print_memberptr.
1050 (generic_value_print): Use it. Call cplus_print_method_ptr.
1051
47f0e2ff
TT
10522020-09-15 Tom Tromey <tromey@adacore.com>
1053
1054 * python/python-internal.h (PyInt_FromLong): Remove define.
1055 * python/py-value.c (convert_value_from_python): Use
1056 gdb_py_object_from_longest.
1057 * python/py-type.c (typy_get_code): Use
1058 gdb_py_object_from_longest.
1059 * python/py-symtab.c (salpy_get_line): Use
1060 gdb_py_object_from_longest.
1061 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1062 gdb_py_object_from_longest.
1063 * python/py-record.c (recpy_gap_reason_code): Use
1064 gdb_py_object_from_longest.
1065 * python/py-record-btrace.c (recpy_bt_insn_size)
1066 (recpy_bt_func_level, btpy_list_count): Use
1067 gdb_py_object_from_longest.
1068 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1069 gdb_py_object_from_longest. Fix error handling.
1070 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1071 gdb_py_object_from_longest.
1072 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1073 gdb_py_object_from_longest.
1074 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1075 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1076 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1077
512116ce
TT
10782020-09-15 Tom Tromey <tromey@adacore.com>
1079
1080 * python/python.c (gdbpy_parameter_value): Use
1081 gdb_py_object_from_ulongest.
1082
4ab1029c
TT
10832020-09-15 Tom Tromey <tromey@adacore.com>
1084
1085 * python/py-infevents.c (create_register_changed_event_object):
1086 Use gdb_py_object_from_longest.
1087 * python/py-exitedevent.c (create_exited_event_object): Use
1088 gdb_py_object_from_longest.
1089
062534d4
TT
10902020-09-15 Tom Tromey <tromey@adacore.com>
1091
1092 * python/python.c (gdbpy_parameter_value): Use
1093 gdb_py_object_from_longest.
1094 * python/py-type.c (convert_field, typy_range): Use
1095 gdb_py_object_from_longest.
1096 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1097 gdb_py_object_from_longest.
1098 * python/py-lazy-string.c (stpy_get_length): Use
1099 gdb_py_object_from_longest.
1100 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1101 gdb_py_object_from_longest.
1102 * python/py-infevents.c (create_memory_changed_event_object): Use
1103 gdb_py_object_from_longest.
1104 * python/py-inferior.c (infpy_get_num): Use
1105 gdb_py_object_from_longest.
1106 (infpy_get_pid): Likewise.
1107
d1cab987
TT
11082020-09-15 Tom Tromey <tromey@adacore.com>
1109
1110 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1111 defines.
1112 * python/py-value.c (valpy_long): Use
1113 gdb_py_object_from_ulongest.
1114 * python/py-symtab.c (salpy_get_pc): Use
1115 gdb_py_object_from_ulongest.
1116 (salpy_get_last): Likewise.
1117 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1118 gdb_py_object_from_ulongest.
1119 * python/py-lazy-string.c (stpy_get_address): Use
1120 gdb_py_object_from_ulongest.
1121 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1122 * python/py-arch.c (archpy_disassemble): Use
1123 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1124 error handling.
1125
4bde49dc
TT
11262020-09-15 Tom Tromey <tromey@adacore.com>
1127
1128 * python/python-internal.h (gdb_py_long_from_longest): Remove
1129 defines.
1130 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1131 * python/py-type.c (convert_field, typy_get_sizeof): Use
1132 gdb_py_object_from_longest.
1133 * python/py-record-btrace.c (btpy_list_index): Use
1134 gdb_py_object_from_longest.
1135
37431074
TT
11362020-09-15 Tom Tromey <tromey@adacore.com>
1137
1138 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1139 * python/py-record.c (recpy_element_number): Use
1140 gdb_py_object_from_longest.
1141 (recpy_gap_number): Likewise.
1142
cbe25684
TT
11432020-09-15 Tom Tromey <tromey@adacore.com>
1144
1145 * top.c (ui::ui): Update.
1146 (highest_ui_num): Remove.
1147 * top.h (struct ui) <num>: Remove.
1148
db92ac45
TT
11492020-09-15 Tom Tromey <tromey@adacore.com>
1150
1151 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1152 * ui-style.c (ansi_regex_text): Now array.
1153 * rust-exp.y (number_regex_text): Now array.
1154 * linespec.c (linespec_quote_characters): Now array.
1155 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1156 Now arrays.
1157
d2b31b67
SM
11582020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1159
1160 * debuginfod-support.c (debuginfod_client_deleter): New.
1161 (debuginfod_client_up): New.
1162 (debuginfod_init): Return debuginfod_client_up.
1163 (debuginfod_source_query): Adjust.
1164 (debuginfod_debuginfo_query): Adjust.
1165
3246bd8e
SM
11662020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1167
1168 * debuginfod-support.c (debuginfod_source_query): Use
1169 make_unique_xstrdup.
1170
10242f36
SM
11712020-09-14 Simon Marchi <simon.marchi@efficios.com>
1172
1173 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1174 with `type::instance_flags`.
1175
e1044e6a
MM
11762020-09-14 Michael Mullin <masmullin@gmail.com>
1177
1178 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1179 Remove baton parameter.
1180
04902b09
PA
11812020-09-14 Pedro Alves <pedro@palves.net>
1182
1183 * Makefile.in (SELFTESTS_SRCS): Add
1184 unittests/enum-flags-selftests.c.
1185 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1186 btrace_function_flags instead of enum btrace_function_flag.
1187 * compile/compile-c-types.c (convert_qualified): Use
1188 enum_flags::raw.
1189 * compile/compile-cplus-symbols.c (convert_one_symbol)
1190 (convert_symbol_bmsym):
1191 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1192 (compile_cplus_convert_struct_or_union_methods)
1193 (compile_cplus_instance::convert_qualified_base):
1194 * go-exp.y (parse_string_or_char): Add cast to int.
1195 * unittests/enum-flags-selftests.c: New file.
1196 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1197 type to btrace_thread_flags from btrace_thread_flag.
1198 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1199 local's type to btrace_thread_flags from btrace_thread_flag. Add
1200 cast in DEBUG call.
1201
69896a2c
PA
12022020-09-14 Pedro Alves <pedro@palves.net>
1203
1204 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1205 * gdbtypes.c (address_space_name_to_int): Rename to ...
1206 (address_space_name_to_type_instance_flags): ... this.
1207 (address_space_int_to_name): Rename to ...
1208 (address_space_type_instance_flags_to_name): ... this.
1209 * gdbtypes.h (address_space_name_to_int): Rename to ...
1210 (address_space_name_to_type_instance_flags): ... this.
1211 (address_space_int_to_name): Rename to ...
1212 (address_space_type_instance_flags_to_name): ... this.
1213 * type-stack.c (type_stack::insert): Adjust to rename.
1214 * type-stack.h (type_stack::insert): Likewise.
1215
314ad88d
PA
12162020-09-14 Pedro Alves <pedro@palves.net>
1217 Andrew Burgess <andrew.burgess@embecosm.com>
1218
1219 * avr-tdep.c (avr_address_class_type_flags): Return
1220 type_instance_flags.
1221 (avr_address_class_type_flags_to_name): Take a
1222 type_instance_flags.
1223 (avr_address_class_name_to_type_flags): Return bool and take a
1224 type_instance_flags.
1225 * d-lang.c (build_d_types): Use type::set_instance_flags.
1226 * ft32-tdep.c (ft32_address_class_type_flags): Return
1227 type_instance_flags.
1228 (ft32_address_class_type_flags_to_name): Take a
1229 type_instance_flags.
1230 (ft32_address_class_name_to_type_flags): Return bool and take a
1231 type_instance_flags.
1232 (ft32_gdbarch_init): Use type::set_instance_flags.
1233 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1234 * gdbarch.h, gdbarch.c: Regenerate.
1235 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1236 (address_class_name_to_type_flags): Use type_instance_flags and
1237 bool.
1238 * gdbtypes.c (address_space_name_to_int)
1239 (address_space_int_to_name, make_qualified_type): Use
1240 type_instance_flags.
1241 (make_qualified_type): Use type_instance_flags and
1242 type::set_instance_flags.
1243 (make_type_with_address_space, make_cv_type, make_vector_type)
1244 (check_typedef): Use type_instance_flags.
1245 (recursive_dump_type): Cast type_instance_flags to unsigned for
1246 printing.
1247 (copy_type_recursive): Use type::set_instance_flags.
1248 (gdbtypes_post_init): Use type::set_instance_flags.
1249 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1250 <m_instance_flags>: ... this.
1251 <instance_flags, set_instance_flags>: New methods.
1252 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1253 (SET_TYPE_INSTANCE_FLAGS): New.
1254 (address_space_name_to_int, address_space_int_to_name)
1255 (make_type_with_address_space): Pass flags using
1256 type_instance_flags instead of int.
1257 * stabsread.c (cleanup_undefined_types_noname): Use
1258 type::set_instance_flags.
1259 * s390-tdep.c (s390_address_class_type_flags): Return
1260 type_instance_flags.
1261 (s390_address_class_type_flags_to_name): Take a
1262 type_instance_flags.
1263 (s390_address_class_name_to_type_flags): Return bool and take a
1264 type_instance_flags.
1265 * type-stack.c (type_stack::follow_types): Use
1266 type_instance_flags.
1267 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1268
27087b7f
TT
12692020-09-14 Tom Tromey <tromey@adacore.com>
1270
1271 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1272 * x86-tdep.c (x86_is_thunk_register_name)
1273 (x86_in_indirect_branch_thunk): Update.
1274 * sparc64-tdep.c (sparc64_fpu_register_names)
1275 (sparc64_cp0_register_names, sparc64_register_names)
1276 (sparc64_pseudo_register_names): Now const.
1277 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1278 cp0_registers_num>: Now const.
1279 * sparc-tdep.c (sparc_core_register_names)
1280 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1281 (sparc32_pseudo_register_names): Now const.
1282 (validate_tdesc_registers): Update.
1283 * rust-lang.c (rust_extensions): Now const.
1284 * p-lang.c (p_extensions): Now const.
1285 * objc-lang.c (objc_extensions): Now const.
1286 * nto-tdep.c (nto_thread_state_str): Now const.
1287 * moxie-tdep.c (moxie_register_names): Now const.
1288 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1289 Now const.
1290 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1291 (mips_linux_reg_names): Now const.
1292 (mips_gdbarch_init): Update.
1293 * microblaze-tdep.c (microblaze_register_names): Now const.
1294 * m68k-tdep.c (m68k_register_names): Now const.
1295 * m32r-tdep.c (m32r_register_names): Now const.
1296 * ia64-tdep.c (ia64_register_names): Now const.
1297 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1298 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1299 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1300 ymm_avx512_register_names, pkeys_register_names>: Now const.
1301 * i386-tdep.c (i386_register_names, i386_zmm_names)
1302 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1303 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1304 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1305 * f-lang.c (f_extensions): Now const.
1306 * d-lang.c (d_extensions): Now const.
1307 * csky-tdep.c (csky_register_names): Now const.
1308 * charset.c (default_charset_names, charset_enum): Now const.
1309 (_initialize_charset): Update.
1310 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1311 const.
1312 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1313 (bsd_uthread_solib_loaded): Update.
1314 (bsd_uthread_state): Now const.
1315 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1316 (amd64_ymm_avx512_names, amd64_ymmh_names)
1317 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1318 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1319 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1320 (amd64_dword_names): Now const.
1321 * agent.c (can_use_agent_enum): Now const.
1322 * ada-tasks.c (task_states, long_task_states): Now const.
1323 * ada-lang.c (known_runtime_file_name_patterns)
1324 (known_auxiliary_function_name_patterns, attribute_names)
1325 (standard_exc, ada_extensions): Now const.
1326
89806626
SM
13272020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1328
1329 * bcache.h (struct bcache) <bcache>: Remove constructor.
1330 <m_hash_function, m_compare_function>: Remove.
1331 <~bcache>: Make virtual.
1332 <compare>: Remove static method, introduce virtual method.
1333 <default_hash>: Remove.
1334 <hash>: New virtual method.
1335 * bcache.c (bcache::expand_hash_table): Update.
1336 (bcache::insert): Update.
1337 (bcache::hash): New.
1338 (bcache::compare): Update comment and parameter names.
1339 * gdbtypes.c (types_deeply_equal): Update.
1340 * psymtab.h (struct psymbol_bcache): New struct.
1341 (class psymtab_storage) <psymtab_storage>: Make default.
1342 <psymbol_cache>: Change type to psymbol_bcache.
1343 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1344 (psymbol_hash): Change to...
1345 (psymbol_bcache::hash): ... this.
1346 (psymbol_compare): Change to...
1347 (psymbol_bcache::compare): ... this.
1348
677c92fe
SM
13492020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1350
1351 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1352 checking for initial lwp.
1353
3eba3a01
TT
13542020-09-14 Tom Tromey <tromey@adacore.com>
1355
1356 * m68k-tdep.c (m68k_extract_return_value): Use
1357 pointer_result_regnum.
1358 (m68k_store_return_value): Likewise.
1359 (m68k_reg_struct_return_p): Handle vectors and arrays.
1360 (m68k_return_value): Handle arrays.
1361 (m68k_svr4_return_value): Fix single-element aggregate handling.
1362 Handle long double. Adjust for embedded ABI.
1363 (m68k_svr4_init_abi): Set pointer_result_regnum.
1364 (m68k_embedded_init_abi): New function.
1365 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1366 (m68k_osabi_sniffer): New function.
1367 (_initialize_m68k_tdep): Register osabi sniffer.
1368 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1369 member.
1370
33f4dd48
SM
13712020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1372
1373 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1374 with gdb::unique_xmalloc_ptr<char>.
1375
8400a90d
SM
13762020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1377
1378 * xml-support.h (xml_fetch_another): Change type to be a
1379 function_view.
1380 (xml_process_xincludes): Remove baton parameter.
1381 (xml_fetch_content_from_file): Change baton parameter to
1382 dirname.
1383 * xml-support.c (struct xinclude_parsing_data)
1384 <xinclude_parsing_data>: Remove baton parameter.
1385 <fetcher_baton>: Remove.
1386 (xinclude_start_include): Adjust.
1387 (xml_process_xincludes): Adjust.
1388 (xml_fetch_content_from_file): Replace baton parameter with
1389 dirname.
1390 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1391 (xml_init_syscalls_info): Use a lambda.
1392 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1393 (file_read_description_xml): Use a lambda.
1394 (fetch_available_features_from_target): Change baton parameter
1395 to target_ops.
1396 (target_read_description_xml): Use a lambda.
1397 (target_fetch_description_xml): Use a lambda.
1398 (string_read_description_xml): Update.
1399
04f5bab2
SM
14002020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1401
1402 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1403 uses with type::endianity_is_not_default.
1404
db558e34
SM
14052020-09-14 Simon Marchi <simon.marchi@efficios.com>
1406
1407 * gdbtypes.h (struct type) <endianity_is_not_default,
1408 set_endianity_is_not_default>: New methods.
1409 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1410 type::endianity_is_not_default, change all write call sites to
1411 use type::set_endianity_is_not_default.
1412
22c4c60c
SM
14132020-09-14 Simon Marchi <simon.marchi@efficios.com>
1414
1415 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1416 uses with type::is_fixed_instance.
1417
9cdd0d12
SM
14182020-09-14 Simon Marchi <simon.marchi@efficios.com>
1419
1420 * gdbtypes.h (struct type) <is_fixed_instance,
1421 set_is_fixed_instance>: New methods.
1422 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1423 write call sites to use type::set_is_fixed_instance.
1424
0becda7a
SM
14252020-09-14 Simon Marchi <simon.marchi@efficios.com>
1426
1427 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1428 uses with type::is_gnu_ifunc.
1429
03cc7249
SM
14302020-09-14 Simon Marchi <simon.marchi@efficios.com>
1431
1432 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1433 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1434 use type::set_is_gnu_ifunc.
1435
3f46044c
SM
14362020-09-14 Simon Marchi <simon.marchi@efficios.com>
1437
1438 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1439 uses with type::stub_is_supported.
1440
9baccff6
SM
14412020-09-14 Simon Marchi <simon.marchi@efficios.com>
1442
1443 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1444 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1445 use type::set_stub_is_supported.
1446
bd63c870
SM
14472020-09-14 Simon Marchi <simon.marchi@efficios.com>
1448
1449 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1450 uses with type::is_vector.
1451
2062087b
SM
14522020-09-14 Simon Marchi <simon.marchi@efficios.com>
1453
1454 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1455 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1456 use type::set_is_vector.
1457
a409645d
SM
14582020-09-14 Simon Marchi <simon.marchi@efficios.com>
1459
1460 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1461 uses with type::has_varargs.
1462
1d6286ed
SM
14632020-09-14 Simon Marchi <simon.marchi@efficios.com>
1464
1465 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1466 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1467 use type::set_has_varargs.
1468
7f9f399b
SM
14692020-09-14 Simon Marchi <simon.marchi@efficios.com>
1470
1471 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1472 uses with type::is_prototyped.
1473
27e69b7a
SM
14742020-09-14 Simon Marchi <simon.marchi@efficios.com>
1475
1476 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1477 New methods.
1478 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1479 call sites to use type::set_is_prototyped.
1480
d2183968
SM
14812020-09-14 Simon Marchi <simon.marchi@efficios.com>
1482
1483 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1484 uses with type::target_is_stub.
1485
8f53807e
SM
14862020-09-14 Simon Marchi <simon.marchi@efficios.com>
1487
1488 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1489 New methods.
1490 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1491 sites to use type::set_target_is_stub.
1492
e46d3488
SM
14932020-09-14 Simon Marchi <simon.marchi@efficios.com>
1494
1495 * gdbtypes.h (TYPE_STUB): Remove, replace all
1496 uses with type::is_stub.
1497
b4b73759
SM
14982020-09-14 Simon Marchi <simon.marchi@efficios.com>
1499
1500 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1501 (TYPE_STUB): Use type::is_stub, change all write call sites to
1502 use type::set_is_stub.
1503
20ce4123
SM
15042020-09-14 Simon Marchi <simon.marchi@efficios.com>
1505
1506 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1507 type::has_no_signedness.
1508
15152a54
SM
15092020-09-14 Simon Marchi <simon.marchi@efficios.com>
1510
1511 * gdbtypes.h (struct type) <has_no_signedness,
1512 set_has_no_signedness>: New methods.
1513 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1514 call sites to use type::set_has_no_signedness.
1515
c6d940a9
SM
15162020-09-14 Simon Marchi <simon.marchi@efficios.com>
1517
1518 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1519 type::is_unsigned.
1520
653223d3
SM
15212020-09-14 Simon Marchi <simon.marchi@efficios.com>
1522
1523 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1524 methods.
1525 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1526 sites to use type::set_is_unsigned.
1527
55ea94da
FH
15282020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1529 Adam Renquinha <arenquinha@cimeq.qc.ca>
1530
1531 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1532 pointer and stack frame offset when unwinding.
1533
6791b117
PA
15342020-09-13 Pedro Alves <pedro@palves.net>
1535
1536 * NEWS: Document "-break-insert --qualified".
1537 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1538
77f2120b
PA
15392020-09-13 Pedro Alves <pedro@palves.net>
1540
1541 * linespec.c (classify_mtype, compare_msyms): Delete.
1542 (search_minsyms_for_name): Remove classification logic. Instead
1543 filter out trampoline symbols if we also found an external
1544 function of the same name.
1545
ed6a896c
JB
15462020-09-13 Joel Brobecker <brobecker@adacore.com>
1547
1548 * NEWS: Create a new section for the next release branch.
1549 Rename the section of the current branch, now that it has
1550 been cut.
1551
32aea73e
JB
15522020-09-13 Joel Brobecker <brobecker@adacore.com>
1553
1554 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1555 * version.in: Bump version to 11.0.50.DATE-git.
1556
8087c3fa
JB
15572020-09-12 Joel Brobecker <brobecker@adacore.com>
1558
1559 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1560
2a67f09d
FW
15612020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1562 Felix Willgerodt <Felix.Willgerodt@intel.com>
1563
1564 * gdbarch.sh: Added bfloat16 type.
1565 * gdbarch.c: Regenerated.
1566 * gdbarch.h: Regenerated.
1567 * gdbtypes.c (floatformats_bfloat16): New struct.
1568 (gdbtypes_post_init): Add builtin_bfloat16.
1569 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1570 (floatformats_bfloat16): New struct.
1571 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1572 (i386_ymm_type): Add field "v16_bfloat16"
1573 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1574 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1575 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1576 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1577 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1578 * features/i386/64bit-avx512.c: Regenerated.
1579 * features/i386/64bit-sse.xml: Add bfloat16 type.
1580 * features/i386/64bit-sse.c: Regenerated.
1581
1347d111
FW
15822020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1583
1584 * i386-tdep.c (i386_zmm_type): Fix field names.
1585 (i386_ymm_type): Fix field names.
1586
7a4e8e7d
TBA
15872020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1588
1589 * breakpoint.c: Fix typo in the help message of the
1590 "set breakpoint condition-evaluation" command.
1591
cf4ac4be
KR
15922020-09-10 Kamil Rytarowski <n54@gmx.com>
1593
1594 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1595 * (nbsd_nat_target::pid_to_exec_file)
1596 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1597 (nbsd_nat_target::post_startup_inferior)
1598 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1599 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1600 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1601 * (nbsd_thread_lister): Remove.
1602
f404573e
KR
16032020-09-10 Kamil Rytarowski <n54@gmx.com>
1604
1605 * fork-inferior.c (startup_inferior): Avoid double free.
1606
1ccb2c17
KR
16072020-09-10 Kamil Rytarowski <n54@gmx.com>
1608
1609 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1610 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1611
feedfcc7
KR
16122020-09-10 Kamil Rytarowski <n54@gmx.com>
1613
1614 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1615 * netbsd-nat.c: Include <sys/ptrace.h>.
1616 * (netbsd_nat::enable_proc_events): Add.
1617
c489f8c6
KR
16182020-09-10 Kamil Rytarowski <n54@gmx.com>
1619
1620 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1621 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1622 (netbsd_nat::for_each_thread): Add.
1623 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1624 "gdbsupport/common-debug.h".
1625 * (netbsd_nat::netbsd_thread_lister)
1626 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1627 (netbsd_nat::for_each_thread): Add.
1628
330662f6
KR
16292020-09-10 Kamil Rytarowski <n54@gmx.com>
1630
1631 * netbsd-nat.h: Include <unistd.h>.
1632 * (netbsd_nat::pid_to_exec_file): Add.
1633 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1634 * (netbsd_nat::pid_to_exec_file) Add.
1635
70b67307
KR
16362020-09-10 Kamil Rytarowski <n54@gmx.com>
1637
1638 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1639
99cf6da6
KR
16402020-09-10 Kamil Rytarowski <n54@gmx.com>
1641
1642 * netbsd-nat.h: New file.
1643 * netbsd-nat.c: Likewise.
1644
1b788fb6
TT
16452020-09-09 Tom Tromey <tromey@adacore.com>
1646
1647 * ada-lang.c (remove_extra_symbols): Do not increment when
1648 removing an element
1649
03b0a45f
TT
16502020-09-08 Tom Tromey <tromey@adacore.com>
1651
1652 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1653
3cae4447
TT
16542020-09-08 Tom Tromey <tromey@adacore.com>
1655
1656 PR win32/25302:
1657 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1658 (gdb_bfd_init_data): New function.
1659 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1660
7f08fd51
TBA
16612020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1662
1663 * infrun.c (fetch_inferior_event): Use
1664 `switch_to_target_no_thread` to switch the target.
1665
3e6ff933
TT
16662020-09-06 Tom Tromey <tom@tromey.com>
1667
1668 * symfile.h (dwarf2_free_objfile): Don't declare.
1669
e56798df
AKS
16702020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1671
1672 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1673 to match 16 byte real/complex type generated by Flang compiler.
1674
8f5c6526
TV
16752020-09-03 Tom de Vries <tdevries@suse.de>
1676
1677 PR breakpoint/26546
1678 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1679 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1680
c5065df0
SM
16812020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1682
1683 * maint.c (index_digits): New function.
1684 (struct maint_print_section_data): Remove.
1685 (print_bfd_section_info): Remove print_data parameter, add arg
1686 and index_digits.
1687 (print_objfile_section_info): Likewise.
1688 (print_bfd_section_info_maybe_relocated): Likewise (plus
1689 objfile).
1690 (maintenance_info_sections): Adjust calls.
1691
02c6f3f1
TT
16922020-09-02 Tom Tromey <tromey@adacore.com>
1693
1694 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1695 for null pointers.
1696 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1697
ef5e5b0b
SM
16982020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1699
1700 * bcache.h (struct bcache) <insert>: Change type of `added` to
1701 pointer to bool.
1702 * bcache.c (bcache::insert): Likewise.
1703 * gdbtypes.c (check_types_worklist): Adjust.
1704 * psymtab.c (add_psymbol_to_bcache): Adjust.
1705
973695d6
KB
17062020-08-31 Kevin Buettner <kevinb@redhat.com>
1707
1708 * corelow.c (unordered_set): Include.
1709 (class core_target): Add field 'm_core_unavailable_mappings'.
1710 (core_target::build_file_mappings): Print only one warning
1711 per inaccessible file. Add unavailable/broken mappings
1712 to m_core_unavailable_mappings.
1713 (core_target::xfer_partial): Call...
1714 (core_target::xfer_memory_via_mappings): New method.
1715
264fc0e2
SM
17162020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1717
1718 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1719 type to bool.
1720
2de01bdb
SM
17212020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1722
1723 * dwarf2/read.c (struct field_info): Fix indentation.
1724
f3bd50f1
SM
17252020-08-31 Simon Marchi <simon.marchi@efficios.com>
1726
1727 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1728 ordering in comment.
1729 * frame.c (frame_id_eq): Fix indentation.
1730
22b9b4b0
SL
17312020-08-31 Scott Linder <scott@scottlinder.com>
1732 Simon Marchi <simon.marchi@efficios.com>
1733
1734 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1735 inline frame ids in outer frame.
1736
84154d16
SM
17372020-08-31 Simon Marchi <simon.marchi@efficios.com>
1738
1739 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1740 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1741 (outer_frame_id): Use FID_STACK_OUTER instead of
1742 FID_STACK_INVALID.
1743 (frame_id_p): Don't check for outer_frame_id.
1744
8efaf6b3
SM
17452020-08-31 Simon Marchi <simon.marchi@efficios.com>
1746
1747 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1748 regnum/frame in value. Call allocate_value_lazy.
1749 * frame.c (frame_unwind_register_value): Use
1750 val_print_not_saved.
1751
fe1fe7ea
SM
17522020-08-31 Simon Marchi <simon.marchi@efficios.com>
1753
1754 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1755
f7c7700d
PA
17562020-08-29 Pedro Alves <pedro@palves.net>
1757
1758 * progspace.c (print_program_space): Use all_inferiors. Switch to
1759 the inferior before calling target_pid_to_str.
1760
e0814aae
TT
17612020-08-28 Tom Tromey <tom@tromey.com>
1762
1763 * xcoffread.c (xcoff_end_psymtab): Update comment.
1764 * dbxread.c (dbx_end_psymtab): Update comment.
1765
626d2320
TV
17662020-08-28 Tom de Vries <tdevries@suse.de>
1767
1768 PR breakpoint/26544
1769 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1770 event_location.
1771 (create_breakpoint): Same.
1772 (base_breakpoint_decode_location): Same.
1773 (bkpt_create_sals_from_location): Same.
1774 (bkpt_decode_location): Same.
1775 (bkpt_probe_create_sals_from_location): Same.
1776 (bkpt_probe_decode_location): Same.
1777 (tracepoint_create_sals_from_location): Same.
1778 (tracepoint_decode_location): Same.
1779 (tracepoint_probe_decode_location): Same.
1780 (strace_marker_create_sals_from_location): Same.
1781 (strace_marker_decode_location): Same.
1782 (create_sals_from_location_default): Same.
1783 (decode_location_default): Same.
1784 * breakpoint.h (struct breakpoint_ops): Same.
1785 (create_breakpoint): Same.
1786 * linespec.h (decode_line_full): Same.
1787 * linespec.c (decode_line_full): Same. Throw error if
1788 result.size () == 0.
1789
df631783
PA
17902020-08-27 Pedro Alves <pedro@palves.net>
1791
1792 PR gdb/26524
1793 * breakpoint.c (until_break_fsm) <location_breakpoint,
1794 caller_breakpoint>: Delete fields.
1795 <breakpoints>: New field.
1796 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1797 two individual breakpoints.
1798 (until_break_fsm::should_stop): Loop over breakpoints in the
1799 breakpoint vector.
1800 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1801 vector.
1802 (until_break_command): Handle location expanding into multiple
1803 sals.
1804
b2b38aa4
PA
18052020-08-27 Pedro Alves <pedro@palves.net>
1806
1807 PR gdb/26523
1808 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1809 bp_until breakpoints user-specified locations. Update intro
1810 comment.
1811
b886559f
SM
18122020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1813
1814 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1815 gdb_bfd_sections): New.
1816 * maint.c (print_bfd_section_info): Change param type to
1817 maint_print_section_data.
1818 (print_objfile_section_info): Likewise.
1819 (print_bfd_section_info_maybe_relocated): Likewise.
1820 (maintenance_info_sections): Use gdb_bfd_sections.
1821
4c6e63bf
SV
18222020-08-25 Shahab Vahedi <shahab@synopsys.com>
1823
1824 * MAINTAINERS: Add ARC target and maintainer.
1825
8d7f0635
AK
18262020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1827
1828 * configure.tgt: ARC support for GNU/Linux.
1829 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1830 * arc-linux-tdep.c: New file.
1831 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1832 * arc-tdep.c (arc_write_pc): Use it.
1833
fdd8731b
SV
18342020-08-25 Shahab Vahedi <shahab@synopsys.com>
1835
1836 * arc-tdep.c (arc_check_for_hardware_loop): New.
1837 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1838
22459524
SV
18392020-08-25 Shahab Vahedi <shahab@synopsys.com>
1840
1841 * arc-tdep.h: Include "gdbarch.h".
1842
995d3a19
SV
18432020-08-25 Shahab Vahedi <shahab@synopsys.com>
1844
1845 * arch/arc.h
1846 (arc_gdbarch_features): New class to stir the selection of target XML.
1847 (arc_create_target_description): Use FEATURES to choose XML target.
1848 (arc_lookup_target_description): Use arc_create_target_description
1849 to create _new_ target descriptions or return the already created
1850 ones if the FEATURES is the same.
1851 * arch/arc.c: Implementation of prototypes described above.
1852 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1853 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1854 * arc-tdep.c (*_feature_name): Make feature names consistent.
1855 (arc_register_feature): A new struct to hold information about
1856 registers of a particular target/feature.
1857 (arc_check_tdesc_feature): Check if XML provides registers in
1858 compliance with ARC_REGISTER_FEATURE structs.
1859 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1860 (determine_*_reg_feature_set): Which feature name to look for.
1861 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1862 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1863 to expected ISA enums to be used in arc_gdbarch_features structs.
1864 * features/Makefile (FEATURE_XMLFILES): Add new files.
1865 * gdb/features/arc/v1-aux.c: New file.
1866 * gdb/features/arc/v1-aux.xml: Likewise.
1867 * gdb/features/arc/v1-core.c: Likewise.
1868 * gdb/features/arc/v1-core.xml: Likewise.
1869 * gdb/features/arc/v2-aux.c: Likewise.
1870 * gdb/features/arc/v2-aux.xml: Likewise.
1871 * gdb/features/arc/v2-core.c: Likewise.
1872 * gdb/features/arc/v2-core.xml: Likewise.
1873 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1874
3945d2d7
GM
18752020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1876 Andrew Burgess <andrew.burgess@embecosm.com>
1877
1878 PR m2/26372
fc5d6901 1879 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
1880 an assert. Remove single element array indexing pattern as the
1881 MULTI_SUBSCRIPT support will handle this case too.
1882
2677f2d3
SM
18832020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1884
1885 * value.h (valprint_check_validity): Move declaration from
1886 here...
1887 * valprint.h (valprint_check_validity): ... to here.
1888
c426fddb
SM
18892020-08-24 Simon Marchi <simon.marchi@efficios.com>
1890
1891 * debug.h: New file.
1892 * debug.c (debug_prefixed_vprintf): New function.
1893 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1894 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1895
1eb8556f
SM
18962020-08-24 Simon Marchi <simon.marchi@efficios.com>
1897
1898 * infrun.h (infrun_debug_printf_1): New function declaration.
1899 (infrun_debug_printf): New macro.
1900 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1901 throughout.
1902 (infrun_debug_printf): New function.
1903 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1904 (handle_jit_event): Likewise.
1905
b8fff44e
MW
19062020-08-21 Mark Wielaard <mark@klomp.org>
1907
1908 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1909
d19c3068
SM
19102020-08-22 Simon Marchi <simon.marchi@efficios.com>
1911
1912 * frame.c (enum class frame_id_status): New.
1913 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1914 (fprintf_frame): Update.
1915 (compute_frame_id): Set frame id status to "computing" on entry.
1916 Set it back to "not_computed" on failure and to "computed" on
1917 success.
1918 (get_frame_id): Assert the frame id is not being computed.
1919 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1920 (create_new_frame): Likewise.
1921 (frame_cleanup_after_sniffer): Update assert.
1922
b70e516e
SM
19232020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1924
1925 * regcache.c (pid_ptid_regcache_map): New type.
1926 (target_ptid_regcache_map): Remove.
1927 (target_pid_ptid_regcache_map): New type.
1928 (regcaches): Change type to target_pid_ptid_regcache_map.
1929 (get_thread_arch_aspace_regcache): Update.
1930 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1931 case.
1932 (regcaches_size): Update.
1933 (regcache_count): Update.
1934 (registers_changed_ptid_target_pid_test): New.
1935 (_initialize_regcache): Register new test.
1936
cdd9148a
SM
19372020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1938
1939 * regcache.c (regcache_count): New.
1940 (struct regcache_test_data): New.
1941 (regcache_test_data_up): New.
1942 (populate_regcaches_for_test): New.
1943 (regcaches_test): Remove.
1944 (get_thread_arch_aspace_regcache_test): New.
1945 (registers_changed_ptid_all_test): New.
1946 (registers_changed_ptid_target_test): New.
1947 (registers_changed_ptid_target_ptid_test): New.
1948 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1949 (_initialize_regcache): Register new tests.
1950
dd125343
SM
19512020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1952
1953 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1954 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1955 gdbarch and aspace parameter. Use current inferior's aspace.
1956 Validate regcache's arch value.
1957 (regcaches_test): Update.
1958
3ee93972
SM
19592020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1960
1961 * regcache.c (regcaches_test): Call registers_changed.
1962
33bf4c5c
TBA
19632020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1964
1965 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1966
c2fd7fae
AKS
19672020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1968
1969 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1970 to find the end of prologue for flang compiled binaries.
1971 * arm-tdep.c (arm_skip_prologue): Likewise.
1972 * i386-tdep.c (i386_skip_prologue): Likewise.
1973 * producer.c (producer_is_llvm): New function.
1974 (producer_parsing_tests): Added new tests for clang/flang.
1975 * producer.h (producer_is_llvm): New declaration.
1976
9327494e
SM
19772020-08-18 Simon Marchi <simon.marchi@efficios.com>
1978
1979 * linux-nat.c (linux_nat_debug_printf): New function.
1980 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1981
d138725a
AM
19822020-08-18 Aaron Merey <amerey@redhat.com>
1983
1984 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1985 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1986 (CLIBS): Add DEBUGINFOD_LIBS.
1987
f9b11e6b
ST
19882020-08-17 Sergei Trofimovich <siarheit@google.com>
1989
1990 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1991 'gdbarch_num_regs'.
1992
3ae7ab99
TT
19932020-08-17 Tom Tromey <tromey@adacore.com>
1994
1995 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1996 ada_get_decoded_value returns NULL.
1997
b017825f
TT
19982020-08-17 Tom Tromey <tromey@adacore.com>
1999
2000 * python/py-inferior.c (infpy_search_memory): Use
2001 gdb_py_object_from_ulongest.
2002 * python/py-infevents.c (create_inferior_call_event_object)
2003 (create_memory_changed_event_object): Use
2004 gdb_py_object_from_ulongest.
2005 * python/py-linetable.c (ltpy_entry_get_pc): Use
2006 gdb_py_object_from_ulongest.
2007
7635cf79
SM
20082020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2009
2010 * loc.c (class symbol_needs_eval_context): Fix indentation.
2011
f54be24b
SM
20122020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2013
2014 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2015 bool.
2016
53d5a2a5
TV
20172020-08-17 Tom de Vries <tdevries@suse.de>
2018
2019 PR gdb/26393
2020 * gdbtypes.c (dump_dynamic_prop): New function.
2021 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2022
547ce8f0
TV
20232020-08-15 Tom de Vries <tdevries@suse.de>
2024
2025 PR backtrace/26390
2026 * stack.c (print_frame_args): Temporarily set the selected
2027 frame to FRAME while printing the frame's arguments.
2028
6ea815e7
PFC
20292020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2030
2031 PR breakpoints/26385
2032 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2033 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2034
6e562fa3
PFC
20352020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2036
2037 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2038 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2039 and >= to check return value instead of == -1 and != -1.
2040
d369b608
SM
20412020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2042
2043 * utils.h (class gdb_argv) <as_array_view>: New method.
2044 * utils.c (gdb_argv_as_array_view_test): New.
2045 (_initialize_utils): Register selftest.
2046 * maint.c (maintenance_selftest): Use the new method.
2047
b31488a3
KR
20482020-08-13 Kamil Rytarowski <n54@gmx.com>
2049
2050 * target.h (supports_dumpcore, dumpcore): New
2051 function declarations.
2052 * target.c (supports_dumpcore, dumpcore): New
2053 functions.
2054 * target-delegates.c: Rebuild.
2055 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2056 and target_dumpcore ().
2057
002a3166
AM
20582020-08-13 Aaron Merey <amerey@redhat.com>
2059
2060 * debuginfod-support.c: Replace global variables with user_data.
2061
ece5bc8a
SM
20622020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2063
2064 * maint.c (maintenance_selftest): Split args and pass array_view
2065 to run_tests.
2066
6d8a0a5e
LM
20672020-08-12 Luis Machado <luis.machado@linaro.org>
2068
2069 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2070 type's length.
2071 Use %s and pulongest to print the length.
2072
7cf663a9
PA
20732020-08-12 Pedro Alves <palves@redhat.com>
2074
2075 * NEWS: Move "Multi-target debugging support" item to the
2076 "Changes since GDB 9" section.
2077
27c7b875
PA
20782020-08-12 Pedro Alves <palves@redhat.com>
2079
2080 PR gdb/26336
2081 * progspace.c (program_space::remove_objfile): Invalidate the
2082 frame cache.
2083
1796a2a1
TV
20842020-08-11 Tom de Vries <tdevries@suse.de>
2085
2086 * MAINTAINERS: Mark ms1 as deleted.
2087
f8e3fe0d
LM
20882020-08-10 Luis Machado <luis.machado@linaro.org>
2089
2090 PR gdb/26310
2091
2092 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2093 act accordingly.
2094 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2095 movz/str/stur/stp skipping behavior.
2096
cc308722
LM
20972020-08-10 Luis Machado <luis.machado@linaro.org>
2098
2099 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2100 struct user_sve_header instead of struct sve_context.
2101
041d9819
SM
21022020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2103
2104 * read.h (dwarf2_fetch_die_loc_sect_off,
2105 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2106 `void *` parameter with function_view.
2107 * read.c (dwarf2_fetch_die_loc_sect_off,
2108 dwarf2_fetch_die_loc_cu_off): Likewise.
2109 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2110 (per_cu_dwarf_call): Adjust.
2111 (get_frame_address_in_block_wrapper): Remove.
2112 (indirect_synthetic_pointer): Adjust.
2113 (get_ax_pc): Remove.
2114 (dwarf2_compile_expr_to_ax): Adjust.
2115
38f8aa06
TV
21162020-08-08 Tom de Vries <tdevries@suse.de>
2117
2118 PR build/26344
2119 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2120 constructor.
2121 * regcache.c (get_thread_arch_aspace_regcache): Same.
2122
a52b3ae2
TT
21232020-08-07 Tom Tromey <tromey@adacore.com>
2124
2125 * ravenscar-thread.c
2126 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2127 New method.
2128 (ravenscar_thread_target::wait): Check
2129 runtime_initialized.
2130 (ravenscar_thread_target::prepare_to_store)
2131 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2132 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2133 (ravenscar_thread_target::stopped_by_watchpoint)
2134 (ravenscar_thread_target::stopped_data_address)
2135 (ravenscar_thread_target::core_of_thread): Use
2136 scoped_restore_current_thread and
2137 set_base_thread_from_ravenscar_task.
2138
0e29517d
TT
21392020-08-07 Tom Tromey <tromey@adacore.com>
2140
2141 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2142
592f9bd7
TT
21432020-08-07 Tom Tromey <tromey@adacore.com>
2144
2145 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2146 update_inferior_ptid before update_thread_list.
2147 (temporarily_change_regcache_ptid): New class.
2148 (ravenscar_thread_target::fetch_registers)
2149 (ravenscar_thread_target::store_registers)
2150 (ravenscar_thread_target::prepare_to_store): Use base thread when
2151 forwarding operation.
2152
39e2018a
TT
21532020-08-07 Tom Tromey <tromey@adacore.com>
2154
2155 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2156 "is_pid" case.
2157
2080266b
TT
21582020-08-07 Tom Tromey <tromey@adacore.com>
2159
2160 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2161 New methods.
2162 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2163 first.
2164 (ravenscar_thread_target::add_thread): Rename from
2165 ravenscar_add_thread.
2166 (ravenscar_thread_target::update_thread_list): Use a lambda.
2167 (ravenscar_thread_target::xfer_partial): New method.
2168
78c02f21
TT
21692020-08-07 Tom Tromey <tromey@adacore.com>
2170
2171 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2172 gdb::function_view.
2173 (iterate_over_live_ada_tasks): Change type of argument.
2174 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2175 of argument.
2176
d5d833af
TT
21772020-08-07 Tom Tromey <tromey@adacore.com>
2178
2179 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2180 Remove.
2181 (ravenscar_thread_target::extra_thread_info): Remove.
2182 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2183 defer to target beneath for non-Ravenscar threads.
2184
a8ac85bb
TT
21852020-08-07 Tom Tromey <tromey@adacore.com>
2186
2187 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2188 get_base_thread_from_ravenscar_task>: Now methods.
2189 <m_cpu_map>: New member.
2190 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2191 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2192 (ravenscar_thread_target::task_is_currently_active): Update.
2193 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2194 Now a method.
2195 (ravenscar_thread_target::add_active_thread): Put initial thread
2196 into the m_cpu_map.
2197
550ab58d
TT
21982020-08-07 Tom Tromey <tromey@adacore.com>
2199
2200 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2201 event_ptid.
2202
e9546579
TT
22032020-08-07 Tom Tromey <tromey@adacore.com>
2204
2205 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2206 runtime_initialized.
2207
3d4470e5
TT
22082020-08-07 Tom Tromey <tromey@adacore.com>
2209
2210 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2211 add_active_thread.
2212 (ravenscar_thread_target::add_active_thread): Now public.
2213 (ravenscar_inferior_created): Call add_active_thread after pushing
2214 the target.
2215
888bdb2b
SM
22162020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2217
2218 * regcache.c (ptid_regcache_map): New type.
2219 (target_ptid_regcache_map): New type.
2220 (regcaches): Change type to target_ptid_regcache_map.
2221 (get_thread_arch_aspace_regcache): Update to regcaches' new
2222 type.
2223 (regcache_thread_ptid_changed): Likewise.
2224 (registers_changed_ptid): Likewise.
2225 (regcaches_size): Likewise.
2226 (regcaches_test): Update.
2227 (regcache_thread_ptid_changed): Update.
2228 * regcache.h (regcache_up): New type.
2229 * gdbsupport/ptid.h (hash_ptid): New struct.
2230
b161a60d
SM
22312020-08-07 Simon Marchi <simon.marchi@efficios.com>
2232
2233 * observable.h (thread_ptid_changed): Add parameter
2234 `process_stratum_target *`.
2235 * infrun.c (infrun_thread_ptid_changed): Add parameter
2236 `process_stratum_target *` and use it.
2237 (selftests): New namespace.
2238 (infrun_thread_ptid_changed): New function.
2239 (_initialize_infrun): Register selftest.
2240 * regcache.c (regcache_thread_ptid_changed): Add parameter
2241 `process_stratum_target *` and use it.
2242 (regcache_thread_ptid_changed): New function.
2243 (_initialize_regcache): Register selftest.
2244 * thread.c (thread_change_ptid): Pass target to
2245 thread_ptid_changed observable.
2246
d2854d8d
CT
22472020-08-06 Caroline Tice <cmtice@google.com>
2248
fe4c3d43
SM
2249 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2250 (struct dwp_sections): Update field comments. Add loclists and
2251 rnglists fields.
2252 (struct virtual_v2_dwo_sections): Rename struct to
2253 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2254 size & offset fields for loclists and rnglists.
2255 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2256 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2257 skipping dummy type units.
2258 (create_dwp_hash_table): Update the large comment above the function to
2259 discuss Version 5 DWP files as well, with references. Update all the
2260 version checks in the function to check for version 5 as well. Add new
2261 section at the end to create dwp hash table for version 5.
2262 (create_dwp_v2_section): Rename function to
2263 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2264 Add V5 to error message text.
2265 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2266 into calls to create_dwp_v2_or_v5_section.
2267 (create_dwo_unit_in_dwp_v5): New function.
2268 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2269 check for version2; add else clause to handle version 5.
2270 (open_and_init_dwo_file): Add code to check dwarf version & only call
2271 create_debug_types_hash_table (with sections.types) if version is not 5;
2272 else call create_debug_type_hash_table, with sections.info.
2273 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2274 version 5.
2275 (dwarf2_locate_v5_dwp_sections): New function.
2276 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2277 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2278
159ed7d9
SM
22792020-08-06 Simon Marchi <simon.marchi@efficios.com>
2280
2281 * regcache.h (class regcache): Remove friend
2282 registers_changed_ptid.
2283 <regcache_thread_ptid_changed>: Remove.
2284 <regcaches>: Remove.
2285 * regcache.c (regcache::regcaches): Rename to...
2286 (regcaches): ... this. Make static.
2287 (get_thread_arch_aspace_regcache): Update.
2288 (regcache::regcache_thread_ptid_changed): Rename to...
2289 (regcache_thread_ptid_changed): ... this. Update.
2290 (class regcache_access): Remove.
2291 (regcaches_test): Update.
2292 (_initialize_regcache): Update.
2293 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2294 <forward_list>.
2295
174981ae
SM
22962020-08-06 Simon Marchi <simon.marchi@efficios.com>
2297
2298 * regcache.h (class regcache) <current_regcache>: Rename to...
2299 <regcaches>: ... this. Move doc here.
2300 * regcache.c (regcache::current_regcache) Rename to...
2301 (regcache::regcaches): ... this. Move doc to header.
2302 (get_thread_arch_aspace_regcache): Update.
2303 (regcache::regcache_thread_ptid_changed): Update.
2304 (registers_changed_ptid): Update.
2305 (class regcache_access) <current_regcache_size>: Rename to...
2306 <regcaches_size>: ... this.
2307 (current_regcache_test): Rename to...
2308 (regcaches_test): ... this.
2309 (_initialize_regcache): Update.
2310
ed908db6
VC
23112020-08-06 Victor Collod <vcollod@nvidia.com>
2312
2313 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2314
b5582ab7
KB
23152020-08-05 Kevin Buettner <kevinb@redhat.com>
2316
2317 * corelow.c (core_target::build_file_mappings): Don't output
2318 null pathname in warning.
2319
ea946b86
SM
23202020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2321
2322 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2323 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2324 gdb.dwarf2/dw2-single-line-discriminators.exp,
2325 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2326
57d02173
TT
23272020-08-05 Tom Tromey <tromey@adacore.com>
2328
2329 PR rust/26197:
2330 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2331 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2332 Fix off-by-one and type size errors in ordinary case.
2333
5555c86d
TV
23342020-08-05 Tom de Vries <tdevries@suse.de>
2335
2336 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2337 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2338
97916bfe
SM
23392020-08-04 Simon Marchi <simon.marchi@efficios.com>
2340
2341 * frame.h (frame_id_p): Return bool.
2342 (frame_id_artificial_p): Return bool.
2343 (frame_id_eq): Return bool.
2344 (has_stack_frames): Return bool.
2345 (get_selected_frame): Fix typo in comment.
2346 (get_frame_pc_if_available): Return bool.
2347 (get_frame_address_in_block_if_available): Return bool.
2348 (get_frame_func_if_available): Return bool.
2349 (read_frame_register_unsigned): Return bool.
2350 (get_frame_register_bytes): Return bool.
2351 (safe_frame_unwind_memory): Return bool.
2352 (deprecated_frame_register_read): Return bool.
2353 (frame_unwinder_is): Return bool.
2354 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2355 bool.
2356 <this_id::p>: Likewise.
2357 <prev_p>: Likewise.
2358 (frame_stash_add): Return bool.
2359 (get_frame_id): Use bool.
2360 (frame_id_build_special) Use bool.
2361 (frame_id_build_unavailable_stack): Use bool.
2362 (frame_id_build): Use bool.
2363 (frame_id_p): Return bool, use true/false instead of 1/0.
2364 (frame_id_artificial_p): Likewise.
2365 (frame_id_eq): Likewise.
2366 (frame_id_inner): Likewise.
2367 (get_frame_func_if_available): Likewise.
2368 (read_frame_register_unsigned): Likewise.
2369 (deprecated_frame_register_read): Likewise.
2370 (get_frame_register_bytes): Likewise.
2371 (has_stack_frames): Likewise.
2372 (inside_main_func): Likewise.
2373 (inside_entry_func): Likewise.
2374 (get_frame_pc_if_available): Likewise.
2375 (get_frame_address_in_block_if_available): Likewise.
2376 (frame_unwinder_is): Likewise.
2377 (safe_frame_unwind_memory): Likewise.
2378 (frame_unwind_arch): Likewise.
2379
fedfee88
SM
23802020-08-04 Simon Marchi <simon.marchi@efficios.com>
2381
2382 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2383 type to cached_copy_status.
2384 (fprintf_frame): Adjust.
2385 (get_frame_func_if_available): Adjust.
2386 (frame_cleanup_after_sniffer): Adjust.
2387
6cfa9b59
MW
23882020-08-04 Mark Wielaard <mark@klomp.org>
2389
2390 * MAINTAINERS (Write After Approval): Update email address.
2391
66d6346b
SM
23922020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2393
2394 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2395 dynamic_prop::const_val.
2396
8a6d5e35
SM
23972020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2398
2399 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2400 dynamic_prop::kind.
2401
51d6067d
SM
24022020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2403
2404 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2405
b26e2ae7
JM
24062020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2407
2408 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2409
39791af2
JM
24102020-08-04 Weimin Pan <weimin.pan@oracle.com>
2411 Jose E. Marchesi <jose.marchesi@oracle.com>
2412
2413 * configure.tgt: Add entry for bpf-*-*.
2414 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2415 (ALLDEPFILES): Add bpf-tdep.c.
2416 * bpf-tdep.c: New file.
2417 * MAINTAINERS: Add bpf target and maintainer.
2418 * NEWS: Mention the support for the new target.
2419
521894aa
TV
24202020-08-04 Tom de Vries <tdevries@suse.de>
2421
2422 PR symtab/23270
2423 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2424 Error.
2425
5d6356e9
JB
24262020-08-03 John Baldwin <jhb@FreeBSD.org>
2427
2428 * syscalls/freebsd.xml: Regenerate.
2429
0cf82b81
JB
24302020-08-03 John Baldwin <jhb@FreeBSD.org>
2431
2432 * syscalls/update-freebsd.sh: Fix usage and year range.
2433
8f34b746
TV
24342020-08-03 Tom de Vries <tdevries@suse.de>
2435
2436 PR symtab/26333
2437 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2438 DW_LNE_lo_user/DW_LNE_hi_user range.
2439
5e500d33
SM
24402020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2441
2442 PR ada/26318
2443 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2444 kind.
2445
78319c15
TBA
24462020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2447
2448 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2449
4c55e970
TBA
24502020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2451
2452 * breakpoint.c (set_breakpoint_condition): Update the condition
2453 expressions after checking that the input condition string parses
2454 successfully and does not contain junk at the end.
2455
1e620590
TBA
24562020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2457
2458 * breakpoint.c (set_breakpoint_condition): Update the
2459 condition string after parsing the new condition successfully.
2460
c8693053
RO
24612020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2462
2463 * proc-api.c (_STRUCTURED_PROC): Don't define.
2464 * proc-events.c: Likewise.
2465 * proc-flags.c: Likewise.
2466 * proc-why.c: Likewise.
2467 * procfs.c: Likewise.
2468
2469 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2470 * configure, config.in: Regenerate.
2471
5a99adb8
TV
24722020-07-30 Tom de Vries <tdevries@suse.de>
2473
2474 PR build/26320
2475 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2476 m_red/m_green/m_blue in a union.
2477
8ba83e91
TV
24782020-07-29 Tom de Vries <tdevries@suse.de>
2479
2480 PR tdep/26280
2481 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2482
f75a0693
AB
24832020-07-28 Tom Tromey <tromey@adacore.com>
2484
2485 PR symtab/26270:
2486 * symtab.h (find_pc_partial_function_sym): Declare.
2487 * cli/cli-cmds.c (disassemble_command): Use
2488 find_pc_partial_function_sym. Check asm_demangle.
2489 * blockframe.c (cache_pc_function_sym): New global.
2490 (cache_pc_function_name): Remove.
2491 (clear_pc_function_cache): Update.
2492 (find_pc_partial_function_sym): New function, from
2493 find_pc_partial_function.
2494 (find_pc_partial_function): Rewrite using
2495 find_pc_partial_function_sym.
2496
16f3242c
TT
24972020-07-28 Tom Tromey <tromey@adacore.com>
2498
2499 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2500 help. Add usage.
2501
4888741a
TT
25022020-07-28 Tom Tromey <tromey@adacore.com>
2503
2504 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2505 <DW_OP_GNU_variable_value>: Cast to address type.
2506
4d46f402
KR
25072020-07-28 Kamil Rytarowski <n54@gmx.com>
2508
2509 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2510 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2511 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2512 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2513 (nbsd_get_siginfo_type): New.
2514 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2515 (_initialize_nbsd_tdep): New.
2516
d70f978b
L
25172020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2518
2519 PR binutils/26301
2520 * configure: Regenerated.
2521
377170fa
L
25222020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2523
2524 PR binutils/26301
2525 * configure: Regenerated.
2526
43d5901d
AB
25272020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2528
2529 * python/py-frame.c: Remove 'user-regs.h' include.
2530 (frapy_read_register): Rewrite to make use of
2531 gdbpy_parse_register_id.
2532 * python/py-registers.c (gdbpy_parse_register_id): New function,
2533 moved here from python/py-unwind.c. Updated the return type, and
2534 also accepts register descriptor objects.
2535 * python/py-unwind.c: Remove 'user-regs.h' include.
2536 (pyuw_parse_register_id): Moved to python/py-registers.c.
2537 (unwind_infopy_add_saved_register): Update to use
2538 gdbpy_parse_register_id.
2539 (pending_framepy_read_register): Likewise.
2540 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2541
14fa8fb3
AB
25422020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2543
2544 * python/py-registers.c: Add 'user-regs.h' include.
2545 (register_descriptor_iter_find): New function.
2546 (register_descriptor_iterator_object_methods): New static global
2547 methods array.
2548 (register_descriptor_iterator_object_type): Add pointer to methods
2549 array.
2550
ddce1758
JB
25512020-07-27 John Baldwin <jhb@FreeBSD.org>
2552
2553 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2554 for all architectures on FreeBSD 11.3 and later.
2555
a4089f52
TT
25562020-07-27 Tom Tromey <tromey@adacore.com>
2557
2558 * gcore.h (load_corefile): Don't declare.
2559
95420d30
TV
25602020-07-27 Tom de Vries <tdevries@suse.de>
2561
2562 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2563 * config.in: Regenerate.
2564 * configure: Regenerate.
2565
05a6b8c2
EZ
25662020-07-26 Eli Zaretskii <eliz@gnu.org>
2567
2568 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2569 ws2tcpip.h. When checking whether socklen_t type is defined, use
2570 ws2tcpip.h if it is available and sys/socket.h isn't.
2571 * configure: Regenerate.
2572 * config.in: Regenerate.
2573
e79eb02f
AB
25742020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2575
2576 PR fortran/23051
2577 PR fortran/26139
2578 * valops.c (value_ind): Pass address to
2579 readjust_indirect_value_type.
2580 * value.c (readjust_indirect_value_type): Make parameter
2581 non-const, and add extra address parameter. Resolve original type
2582 before using it.
2583 * value.h (readjust_indirect_value_type): Update function
2584 signature and comment.
2585
876518dd
TV
25862020-07-25 Tom de Vries <tdevries@suse.de>
2587
2588 PR symtab/26243
2589 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2590 entries.
2591
f6720b1c
AM
25922020-07-24 Aaron Merey <amerey@redhat.com>
2593
2594 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2595 * configure: Rebuild.
2596
513487e1
KB
25972020-07-23 Kevin Buettner <kevinb@redhat.com>
2598
2599 PR corefiles/26294
2600 * corelow.c (_initialize_corelow): Add period to help text
2601 for "maintenance print core-file-backed-mappings".
2602
e7bc9db8
PA
26032020-07-23 Pedro Alves <pedro@palves.net>
2604
2605 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2606 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2607 meanwhile.
2608 * frame.c (frame_cache_generation, get_frame_cache_generation):
2609 New.
2610 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2611 (get_prev_frame_if_no_cycle): On exception, don't touch
2612 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2613 * frame.h (get_frame_cache_generation): Declare.
2614
90fcc466
TV
26152020-07-23 Tom de Vries <tdevries@suse.de>
2616
2617 PR tui/26282
2618 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2619 New default constructor.
2620
78344df7
AB
26212020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2622
2623 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2624 exclude non-statement entries.
2625
b089853a
KB
26262020-07-22 Kevin Buettner <kevinb@redhat.com>
2627
2628 * NEWS (New commands): Mention new command
2629 "maintenance print core-file-backed-mappings".
2630
09c2f5d4
KB
26312020-07-22 Kevin Buettner <kevinb@redhat.com>
2632
2633 * corelow.c (gdbcmd.h): Include.
2634 (core_target::info_proc_mappings): New method.
2635 (get_current_core_target): New function.
2636 (maintenance_print_core_file_backed_mappings): New function.
2637 (_initialize_corelow): Add core-file-backed-mappings to
2638 "maint print" commands.
2639
9c5ec5c2 26402020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 2641
9c5ec5c2
KB
2642 * linux-tdep.c (dump_note_entry_p): New function.
2643 (linux_dump_mapping_p_ftype): New typedef.
2644 (linux_find_memory_regions_full): Add new parameter,
2645 should_dump_mapping_p.
2646 (linux_find_memory_regions): Adjust call to
2647 linux_find_memory_regions_full.
2648 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2649 call to linux_find_memory_regions_full.
2650
db082f59
KB
26512020-07-22 Kevin Buettner <kevinb@redhat.com>
2652
2653 * corelow.c (solist.h, unordered_map): Include.
2654 (class core_target): Add field m_core_file_mappings and
2655 method build_file_mappings.
2656 (core_target::core_target): Call build_file_mappings.
2657 (core_target::~core_target): Free memory associated with
2658 m_core_file_mappings.
2659 (core_target::build_file_mappings): New method.
2660 (core_target::xfer_partial): Use m_core_file_mappings
2661 for memory transfers.
2662 * linux-tdep.c (linux_read_core_file_mappings): New
2663 function.
2664 (linux_core_info_proc_mappings): Rewrite to use
2665 linux_read_core_file_mappings.
2666 (linux_init_abi): Register linux_read_core_file_mappings.
2667
7e183d27
KB
26682020-07-22 Kevin Buettner <kevinb@redhat.com>
2669
2670 * arch-utils.c (default_read_core_file_mappings): New function.
2671 * arch-utils.c (default_read_core_file_mappings): Declare.
2672 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2673 * gdbarch.h, gdbarch.c: Regenerate.
2674
2735d421
KB
26752020-07-22 Kevin Buettner <kevinb@redhat.com>
2676
2677 PR corefiles/25631
2678 * corelow.c (core_target:xfer_partial): Revise
2679 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2680 case after first checking the stratum beneath the core
2681 target.
2682 (has_all_memory): Return true.
2683 * target.c (raw_memory_xfer_partial): Revise comment
2684 regarding use of has_all_memory.
2685
e56cb451
KB
26862020-07-22 Kevin Buettner <kevinb@redhat.com>
2687
2688 * exec.h (section_table_xfer_memory): Revise declaration,
2689 replacing section name parameter with an optional callback
2690 predicate.
2691 * exec.c (section_table_xfer_memory): Likewise.
2692 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2693 of section_table_xfer_memory.
2694
32fa152e
TT
26952020-07-22 Tom Tromey <tromey@adacore.com>
2696
2697 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2698 lookup_symbol_search_name.
2699
a67a1c41
AB
27002020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2701
2702 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2703 redundant local variable.
2704 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2705 reference, not pointer, update code accordingly.
2706
a7b4ff4f
SM
27072020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2708 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2709
2710 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2711 * jit.c (jit_breakpoint_re_set_internal): Use the
2712 `skip_jit_symbol_lookup` field.
2713
2340e834
SM
27142020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2715 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2716
2717 * jit.c (jit_read_descriptor): Define the descriptor address once,
2718 use twice.
2719 (jit_breakpoint_deleted): Move the declaration of the loop variable
2720 `iter` into the loop header.
2721 (jit_breakpoint_re_set_internal): Move the declaration of the local
2722 variable `objf_data` to the first point of definition.
2723 (jit_event_handler): Move the declaration of local variables
2724 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2725 Rename `objf` to `jited`.
2726
c1072906
SM
27272020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2728
2729 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2730 Remove.
2731 * jit.c (get_jiter_objfile_data): Update.
2732
c8474dc3
TBA
27332020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2734 Simon Marchi <simon.marchi@polymtl.ca>
2735
2736 * jit.c (struct jit_program_space_data): Remove.
2737 (jit_program_space_key): Remove.
2738 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2739 stuff.
2740 (get_jit_program_space_data): Remove.
2741 (jit_breakpoint_deleted): Iterate on all of the program space's
2742 objfiles.
2743 (jit_inferior_init): Likewise.
2744 (jit_breakpoint_re_set_internal): Likewise. Also change return
2745 type to void.
2746 (jit_breakpoint_re_set): Pass current_program_space to
2747 jit_breakpoint_re_set_internal.
2748
77208eb7
SM
27492020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2750
2751 * jit.h (struct jiter_objfile_data) <cached_code_address,
2752 jit_breakpoint>: Move to here from ...
2753 * jit.c (jit_program_space_data): ... here.
2754 (jiter_objfile_data::~jiter_objfile_data): Update.
2755 (jit_breakpoint_deleted): Update.
2756 (jit_breakpoint_re_set_internal): Update.
2757
8c1c720f
SM
27582020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2759
2760 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2761 checks.
2762 (jit_read_descriptor): Remove NULL check.
2763 (jit_event_handler): Add an assertion.
2764
0e74a041
SM
27652020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2766
2767 * jit.h (struct jit_objfile_data): Split into...
2768 (struct jiter_objfile_data): ... this ...
2769 (struct jited_objfile_data): ... and this.
2770 * objfiles.h (struct objfile) <jit_data>: Remove.
2771 <jiter_data, jited_data>: New fields.
2772 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2773 (jiter_objfile_data::~jiter_objfile_data): ... this.
2774 (get_jit_objfile_data): Rename to ...
2775 (get_jiter_objfile_data): ... this.
2776 (add_objfile_entry): Update.
2777 (jit_read_descriptor): Use get_jiter_objfile_data.
2778 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2779 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2780 (jit_inferior_exit_hook): Use objfile's jited_data field.
2781
238b5c9f
SM
27822020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2783
2784 * jit.h: Forward-declare `struct minimal_symbol`.
2785 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2786 constructor, destructor, and an objfile* field.
2787 * jit.c (jit_objfile_data): Remove.
2788 (struct jit_objfile_data): Migrate from here to jit.h.
2789 (jit_objfile_data::~jit_objfile_data): New destructor
2790 implementation with code moved from free_objfile_data.
2791 (free_objfile_data): Delete.
2792 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2793 (jit_find_objf_with_entry_addr): Ditto.
2794 (jit_inferior_exit_hook): Ditto.
2795 (_initialize_jit): Remove the call to
2796 register_objfile_data_with_cleanup.
2797 * objfiles.h (struct objfile) <jit_data>: New field.
2798
fe053b9e
TBA
27992020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2800
2801 * jit.h: Forward-declare `struct objfile`.
2802 (jit_event_handler): Add a second parameter, the JITer objfile.
2803 * jit.c (jit_read_descriptor): Change the signature to take the
2804 JITer objfile as an argument instead of the jit_program_space_data.
2805 (jit_inferior_init): Update the call to jit_read_descriptor.
2806 (jit_event_handler): Use the new JITer objfile argument when calling
2807 jit_read_descriptor.
2808 * breakpoint.c (handle_jit_event): Update the call to
2809 jit_event_handler to pass the JITer objfile.
2810
4cec0c66
JB
28112020-07-21 John Baldwin <jhb@FreeBSD.org>
2812
2813 * gdbarch.c: Regenerate.
2814 * gdbarch.h: Regenerate.
2815 * gdbarch.sh (handle_segmentation_fault): Remove method.
2816 * infrun.c (handle_segmentation_fault): Remove.
2817 (print_signal_received_reason): Remove call to
2818 handle_segmentation_fault.
2819
0e42f66a
JB
28202020-07-21 John Baldwin <jhb@FreeBSD.org>
2821
2822 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2823 Rename to sparc64_linux_report_signal_info and add siggnal
2824 argument.
2825 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2826 instead of sparc64_linux_handle_segmentation_fault.
2827
77bdfeb2
JB
28282020-07-21 John Baldwin <jhb@FreeBSD.org>
2829
2830 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2831 i386_linux_report_signal_info instead of
2832 i386_linux_handle_segmentation_fault.
2833 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2834 to i386_linux_report_signal_info and add siggnal argument.
2835 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2836 of i386_linux_handle_segmentation_fault.
2837 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2838 to i386_linux_report_signal_info and add siggnal argument.
2839
ad97bfc5
JB
28402020-07-21 John Baldwin <jhb@FreeBSD.org>
2841
2842 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2843 hook if present.
2844
272bb05c
JB
28452020-07-21 John Baldwin <jhb@FreeBSD.org>
2846
2847 * gdbarch.c: Regenerate.
2848 * gdbarch.h: Regenerate.
2849 * gdbarch.sh (report_signal_info): New method.
2850 * infrun.c (print_signal_received_reason): Invoke gdbarch
2851 report_signal_info hook if present.
2852
baf8791e
AB
28532020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2854
2855 * python/py-registers.c : Add 'unordered_map' include.
2856 (gdbpy_new_reggroup): Renamed to...
2857 (gdbpy_get_reggroup): ...this. Update to only create register
2858 group descriptors when needed.
2859 (gdbpy_reggroup_iter_next): Update.
2860
f7306dac
AB
28612020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2862
2863 * python/py-registers.c (gdbpy_register_object_data): New static
2864 global.
2865 (gdbpy_register_object_data_init): New function.
2866 (gdbpy_new_register_descriptor): Renamed to...
2867 (gdbpy_get_register_descriptor): ...this, and update to reuse
2868 existing register descriptors where possible.
2869 (gdbpy_register_descriptor_iter_next): Update.
2870 (gdbpy_initialize_registers): Register new gdbarch data.
2871
05c309a8
SM
28722020-07-21 Simon Marchi <simon.marchi@efficios.com>
2873
2874 * linux-nat.c (stopped_pids): Make static.
2875
d1fd641e
SM
28762020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2877
2878 PR ada/26235
2879 * gdbtypes.c (ada_discrete_type_low_bound,
2880 ada_discrete_type_high_bound): Handle undefined bounds.
2881
1de14d77
KR
28822020-07-21 Kamil Rytarowski <n54@gmx.com>
2883
2884 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2885 declaration.
2886 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2887 function.
2888
ed810cc7
JB
28892020-07-20 John Baldwin <jhb@FreeBSD.org>
2890
2891 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2892 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2893 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2894 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2895 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2896 method.
2897
ae5369e7
LC
28982020-07-20 Ludovic Courtès <ludo@gnu.org>
2899
2900 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2901 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2902 which are deprecated in Guile 3.0.
2903 * configure.ac (try_guile_versions): Add "guile-3.0".
2904 * configure (try_guile_versions): Regenerate.
2905 * NEWS: Update entry.
2906
68cf161c
LC
29072020-07-20 Ludovic Courtès <ludo@gnu.org>
2908 Doug Evans <dje@google.com>
2909
2910 PR gdb/21104
2911 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2912 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2913 USING_GUILE_BEFORE_2_2.
2914 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2915 Change type to 'scm_t_port_type *'.
2916 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2917 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2918 parameter and honor it. Update callers.
2919 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2920 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2921 functions.
2922 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2923 USING_GUILE_BEFORE_2_2.
2924 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2925 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2926 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2927 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2928 and 'SCM_PORT_TYPE'.
2929 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2930 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2931 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2932 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2933 [!USING_GUILE_BEFORE_2_2]: New functions.
2934 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2935 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2936 'gdbscm_memory_port_read'.
2937 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2938 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2939 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2940 function.
2941 (ioscm_init_memory_port): Remove.
2942 (ioscm_init_memory_port_stream): New function
2943 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2944 function.
2945 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2946 Return scm_from_uint (0).
2947 (gdbscm_set_memory_port_read_buffer_size_x)
2948 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2949 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2950 Return scm_from_uint (0).
2951 (gdbscm_set_memory_port_write_buffer_size_x)
2952 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2953 * configure.ac (try_guile_versions): Add "guile-2.2".
2954 * configure: Regenerate.
2955 * NEWS: Add entry.
2956
aee91db3
TT
29572020-07-18 Tom Tromey <tom@tromey.com>
2958
2959 * linux-nat.c (linux_multi_process): Remove.
2960 (linux_nat_target::supports_multi_process): Return true.
2961
0e267416
AB
29622020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2963
2964 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2965 (riscv_lookup_target_description): Return pointer out of
2966 unique_ptr.
2967 * target-descriptions.c (allocate_target_description): Add
2968 comment.
2969 (target_desc_deleter::operator()): Likewise.
2970 * target-descriptions.h (struct target_desc_deleter): Moved to
2971 gdbsupport/tdesc.h.
2972 (target_desc_up): Likewise.
2973
f80c8ec4
TT
29742020-07-17 Tom Tromey <tromey@adacore.com>
2975
2976 * linux-nat.c (linux_nat_target::supports_non_stop)
2977 (linux_nat_target::always_non_stop_p): Use "true".
2978 (linux_nat_target::supports_disable_randomization): Use "true" and
2979 "false".
2980
d0ce17d8
CT
29812020-07-16 Caroline Tice <cmtice@google.com>
2982
2983 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2984 (RNGLIST_HEADER_SIZE64): New constant definition.
2985 (struct dwop_section_names): Add rnglists_dwo.
2986 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2987 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2988 (struct dwo_sections): Add rnglists field.
2989 (read_attribut_reprocess): Add tag parameter.
2990 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2991 (cu_debug_rnglists_section): New function (decl & definition).
2992 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2993 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2994 die whose range is being checked; get rnglist section from
2995 cu_debug_rnglists_section, to get from either objfile or dwo file as
2996 appropriate. Add cases for DW_RLE_base_addressx,
2997 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2998 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2999 test inside if-condition and updating complaint message.
3000 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3001 dwarf2_rnglists_process.
3002 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3003 dwarf2_ranges_process.
3004 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3005 need_ranges_base and update comment appropriately. Also pass die tag
3006 to dwarf2_ranges_read.
3007 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3008 need_ranges_base and update comment appropriately. Also pass die tag
3009 to dwarf2_ranges_process.
3010 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3011 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3012 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3013 need_ranges_base and update comment appropriately. Also pass die tag
3014 to read_attribute_reprocess and dwarf2_ranges_read.
3015 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3016 and update function comment appropriately.
3017 (read_loclist_index): Call read_loclists_rnglists_header instead of
3018 read_loclist_header.
3019 (read_rnglist_index): New function.
3020 (read_attribute_reprocess): Add tag parameter. Add code for
3021 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3022 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3023
3dcc261c
AB
30242020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3025
3026 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3027 being resolved.
3028
ccb9eba6
AB
30292020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3030
3031 * arch-utils.c (show_architecture): Update formatting of messages.
3032
cf88be68
SM
30332020-07-12 Simon Marchi <simon.marchi@efficios.com>
3034
3035 * gdbtypes.h (struct type) <bounds>: Handle array and string
3036 types.
3037 * ada-lang.c (assign_aggregate): Use type::bounds on
3038 array/string type.
3039 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3040 * c-varobj.c (c_number_of_children): Likewise.
3041 (c_describe_child): Likewise.
3042 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3043 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3044 (f_type_print_base): Likewise.
3045 * f-valprint.c (f77_array_offset_tbl): Likewise.
3046 (f77_get_upperbound): Likewise.
3047 (f77_print_array_1): Likewise.
3048 * guile/scm-type.c (gdbscm_type_range): Likewise.
3049 * m2-typeprint.c (m2_array): Likewise.
3050 (m2_is_long_set_of_type): Likewise.
3051 * m2-valprint.c (get_long_set_bounds): Likewise.
3052 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3053 * python/py-type.c (typy_range): Likewise.
3054 * rust-lang.c (rust_internal_print_type): Likewise.
3055 * type-stack.c (type_stack::follow_types): Likewise.
3056 * valarith.c (value_subscripted_rvalue): Likewise.
3057 * valops.c (value_cast): Likewise.
3058
509971ae
SM
30592020-07-12 Simon Marchi <simon.marchi@efficios.com>
3060
3061 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3062 callers to use the equivalent accessor methods.
3063
107406b7
SM
30642020-07-12 Simon Marchi <simon.marchi@efficios.com>
3065
3066 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3067 (struct type) <bit_stride>: New method.
3068 (TYPE_BIT_STRIDE): Remove.
3069 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3070
bb789949
SM
30712020-07-12 Simon Marchi <simon.marchi@efficios.com>
3072
3073 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3074 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3075 callers to use the equivalent accessor methods instead.
3076
39498edb
SM
30772020-07-12 Simon Marchi <simon.marchi@efficios.com>
3078
3079 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3080 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3081 callers to use the equivalent accessor methods instead.
3082
3b606f38
SM
30832020-07-12 Simon Marchi <simon.marchi@efficios.com>
3084
3085 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3086 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3087 to use dynamic_prop::kind.
3088
064d9cb9
SM
30892020-07-12 Simon Marchi <simon.marchi@efficios.com>
3090
3091 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3092 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3093 to get the bound property's kind and check against
3094 PROP_UNDEFINED.
3095
5537ddd0
SM
30962020-07-12 Simon Marchi <simon.marchi@efficios.com>
3097
3098 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3099 all callers to use type::range_bounds followed by
3100 dynamic_prop::{low,high}.
3101
8c2e4e06
SM
31022020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3103
3104 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3105 const_val, set_const_val, baton, set_locexpr, set_loclist,
3106 set_addr_offset, variant_parts, set_variant_parts,
3107 original_type, set_original_type>: New methods.
3108 <kind>: Rename to...
3109 <m_kind>: ... this. Update all users to use the new methods
3110 instead.
3111 <data>: Rename to...
3112 <m_data>: ... this. Update all users to use the new methods
3113 instead.
3114
7c6f2712
SM
31152020-07-12 Simon Marchi <simon.marchi@efficios.com>
3116
3117 * gdbtypes.c (get_discrete_bounds): Return failure if
3118 the range type's bounds are not both defined and constant
3119 values.
3120 (get_array_bounds): Update comment. Remove undefined bound check.
3121
599088e3
SM
31222020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3123
3124 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3125 the type::bounds method directly.
3126
c4dfcb36
SM
31272020-07-12 Simon Marchi <simon.marchi@efficios.com>
3128
3129 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3130 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3131 are used to set the range type's bounds to use set_bounds.
3132
0a278aa7
PW
31332020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3134
3135 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3136
cce20f10
PA
31372020-07-10 Pedro Alves <pedro@palves.net>
3138
3139 * gdbthread.h (inferior_ref): Define.
3140 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3141 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3142 * thread.c
3143 (scoped_restore_current_thread::restore):
3144 Adjust to gdb::ref_ptr.
3145 (scoped_restore_current_thread::~scoped_restore_current_thread):
3146 Remove manual decref handling.
3147 (scoped_restore_current_thread::scoped_restore_current_thread):
3148 Adjust to use
3149 inferior_ref::new_reference/thread_info_ref::new_reference.
3150 Incref the thread before calling get_frame_id instead of after.
3151 Let TARGET_CLOSE_ERROR propagate.
3152
6d7aa592
PA
31532020-07-10 Pedro Alves <pedro@palves.net>
3154
3155 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3156 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3157 NOT_AVAILABLE_ERROR.
3158 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3159 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3160
b3e3a4c1
SM
31612020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3162 Pedro Alves <pedro@palves.net>
3163
3164 PR gdb/26199
3165 * infrun.c (threads_are_resumed_pending_p): Delete.
3166 (do_target_wait): Remove threads_are_executing and
3167 threads_are_resumed_pending_p checks from the inferior_matches
3168 lambda. Update comments.
3169
d6cc5d98
PA
31702020-07-10 Pedro Alves <pedro@palves.net>
3171
3172 PR gdb/26199
3173 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3174 executing threads.
3175
7d3badc6
PA
31762020-07-10 Pedro Alves <pedro@palves.net>
3177
3178 PR gdb/26199
3179 * infrun.c (handle_no_resumed): Handle multiple targets.
3180
42bd97a6
PA
31812020-07-10 Pedro Alves <pedro@palves.net>
3182
3183 PR gdb/26199
3184 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3185 target_is_async_p.
3186
43667cc6
PA
31872020-07-10 Pedro Alves <pedro@palves.net>
3188
3189 PR gdb/26199
3190 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3191 threads, not all threads.
3192
96118d11
PA
31932020-07-10 Pedro Alves <pedro@palves.net>
3194
3195 PR gdb/26199
3196 * remote.c (remote_target::open_1): Pass remote target pointer as
3197 data to create_async_event_handler.
3198 (remote_async_inferior_event_handler): Mark async event handler
3199 before returning if the remote target still has either pending
3200 events or unacknowledged notifications.
3201
54904d81
JB
32022020-07-10 John Baldwin <jhb@FreeBSD.org>
3203
3204 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3205 declaration.
3206 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3207 function.
3208
f37e5866
JB
32092020-07-09 John Baldwin <jhb@FreeBSD.org>
3210
3211 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3212 inferior_ptid.
3213
fc238d4a
JB
32142020-07-09 John Baldwin <jhb@FreeBSD.org>
3215
3216 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3217 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3218 AT_FREEBSD_PS_STRINGS.
3219
6e2469ff
HD
32202020-07-08 Hannes Domani <ssbssa@yahoo.de>
3221
3222 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3223 of debugfile path on Windows.
3224
d1076c41
JB
32252020-07-08 John Baldwin <jhb@FreeBSD.org>
3226
3227 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3228 argument to 'data'.
3229
15f3b077
TT
32302020-07-08 Tom Tromey <tromey@adacore.com>
3231
3232 * ada-lang.c (ada_exception_message_1): Use read_memory.
3233
9fc501fd
AB
32342020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3235
3236 PR python/22748
3237 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3238 special handling for inline frames.
3239 * findvar.c (value_of_register_lazy): Skip inline frames when
3240 creating lazy register values.
3241 * frame.c (frame_id_computed_p): Delete definition.
3242 * frame.h (frame_id_computed_p): Delete declaration.
3243
64cb3757
AB
32442020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3245
3246 * NEWS: Mention additions to Python API.
3247 * python/py-arch.c (archpy_register_groups): New function.
3248 (arch_object_methods): Add 'register_groups' method.
3249 * python/py-registers.c (reggroup_iterator_object): New struct.
3250 (reggroup_object): New struct.
3251 (gdbpy_new_reggroup): New function.
3252 (gdbpy_reggroup_to_string): New function.
3253 (gdbpy_reggroup_name): New function.
3254 (gdbpy_reggroup_iter): New function.
3255 (gdbpy_reggroup_iter_next): New function.
3256 (gdbpy_new_reggroup_iterator): New function
3257 (gdbpy_initialize_registers): Register new types.
3258 (reggroup_iterator_object_type): Define new Python type.
3259 (gdbpy_reggroup_getset): New static global.
3260 (reggroup_object_type): Define new Python type.
3261 * python/python-internal.h
3262
0f767f94
AB
32632020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3264
3265 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3266 * python/py-arch.c (archpy_registers): New function.
3267 (arch_object_methods): Add 'registers' method.
3268 * python/py-registers.c: New file.
3269 * python/python-internal.h
3270 (gdbpy_new_register_descriptor_iterator): Declare.
3271 (gdbpy_initialize_registers): Declare.
3272 * python/python.c (do_start_initialization): Call
3273 gdbpy_initialize_registers.
3274 * NEWS: Mention additions to the Python API.
3275
87dbc774
AB
32762020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3277
3278 * NEWS: Mention new Python API method.
3279 * python/py-unwind.c (pending_framepy_architecture): New function.
3280 (pending_frame_object_methods): Add architecture method.
3281
3bc98c0c
AB
32822020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3283
3284 * gdbarch.c: Regenerate.
3285 * gdbarch.h: Regenerate.
3286 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3287 (gdbarch_data): Use internal_error for the case where
3288 deprecated_set_gdbarch_data was originally needed.
3289 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3290 and use passed in obstack.
3291 (libunwind_frame_set_descr): Should no longer get back NULL from
3292 gdbarch_data.
3293 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3294 type.
3295 * user-regs.c (user_regs_init): Update parameters, and use passed
3296 in obstack.
3297 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3298 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3299
d8cc8af6
TV
33002020-07-06 Tom de Vries <tdevries@suse.de>
3301
3302 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3303 End-Of-Sequence in lte_is_less_than.
3304 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3305 "gdb: Don't reorder line table entries too much when sorting".
3306
947f7597
TV
33072020-07-06 Tom de Vries <tdevries@suse.de>
3308
3309 PR tui/26205
3310 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3311
1e7c1b22
TV
33122020-07-05 Tom de Vries <tdevries@suse.de>
3313
3314 PR build/26187
3315 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3316 std::uncaught_exceptions instead of deprecated
3317 std::uncaught_exception.
3318
a36158ec
SM
33192020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3320
3321 * macroexp.h (macro_stringify): Return
3322 gdb::unique_xmalloc_ptr<char>.
3323 * macroexp.c (macro_stringify): Likewise.
3324 * macrotab.c (fixup_definition): Update.
3325
14d960c8
SM
33262020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3327
3328 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3329 (lex_one_token): Update.
3330 * macroexp.c (struct macro_buffer) <release>: Return
3331 gdb::unique_xmalloc_ptr<char>.
3332 (macro_stringify): Update.
3333 (macro_expand): Update.
3334 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3335 * macroexp.h (macro_expand_next): Likewise.
3336
211d5b1c
SM
33372020-07-02 Simon Marchi <simon.marchi@efficios.com>
3338
3339 * macroexp.h (macro_lookup_ftype): Remove.
3340 (macro_expand, macro_expand_once, macro_expand_next): Remove
3341 lookup function parameters, add scope parameter.
3342 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3343 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3344 * macroscope.h (standard_macro_lookup): Change parameter type
3345 to macro_scope.
3346 * macroscope.c (standard_macro_lookup): Likewise.
3347 * c-exp.y (lex_one_token): Update.
3348 * macrocmd.c (macro_expand_command): Likewise.
3349 (macro_expand_once_command): Likewise.
3350
b1a35af2
SM
33512020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3352
3353 * inf-loop.c (inferior_event_handler): Remove client_data param.
3354 * inf-loop.h (inferior_event_handler): Likewise.
3355 * infcmd.c (step_1): Adjust.
3356 * infrun.c (proceed): Adjust.
3357 (fetch_inferior_event): Remove client_data param.
3358 (infrun_async_inferior_event_handler): Adjust.
3359 * infrun.h (fetch_inferior_event): Remove `void *` param.
3360 * linux-nat.c (handle_target_event): Adjust.
3361 * record-btrace.c (record_btrace_handle_async_inferior_event):
3362 Adjust.
3363 * record-full.c (record_full_async_inferior_event_handler):
3364 Adjust.
3365 * remote.c (remote_async_inferior_event_handler): Adjust.
3366
1cdf9e33
TT
33672020-07-01 Tom Tromey <tom@tromey.com>
3368
3369 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3370 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3371
32c1e210
TT
33722020-07-01 Tom Tromey <tom@tromey.com>
3373
3374 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3375 tui_gen_win_info.
3376 (tui_win_info::make_window): Merge with
3377 tui_gen_win_info::make_window.
3378 (tui_win_info::make_visible): Move from tui_gen_win_info.
3379 * tui/tui-win.c (tui_win_info::max_width): Move from
3380 tui_gen_win_info.
3381 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3382 type.
3383 <window_factory>: Likewise.
3384 * tui/tui-layout.c (tui_win_info::resize): Move from
3385 tui_gen_win_info.
3386 (make_standard_window): Change return type.
3387 (get_locator_window, tui_get_window_by_name): Likewise.
3388 (tui_layout_window::apply): Remove a cast.
3389 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3390 (struct tui_win_info): Merge with tui_gen_win_info.
3391 (struct tui_gen_win_info): Remove.
3392
a30cb6da
TT
33932020-07-01 Tom Tromey <tom@tromey.com>
3394
3395 * tui/tui-stack.h (struct tui_locator_window): Derive from
3396 tui_win_info.
3397 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3398 <can_box>: New method.
3399
1eb2161f
TT
34002020-07-01 Tom Tromey <tom@tromey.com>
3401
3402 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3403
7134f2eb
TT
34042020-07-01 Tom Tromey <tom@tromey.com>
3405
3406 * tui/tui-regs.c (tui_data_window::display_registers_from)
3407 (tui_data_window::display_registers_from)
3408 (tui_data_window::first_data_item_displayed)
3409 (tui_data_window::delete_data_content_windows): Update.
3410 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3411 Remove.
3412 (tui_data_window::check_register_values): Update.
3413 (tui_data_item_window::rerender): Add parameters. Update.
3414 (tui_data_item_window::refresh_window): Remove.
3415 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3416 virtual.
3417 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3418 tui_gen_win_info.
3419 <refresh_window, max_height, min_height>: Remove.
3420 <rerender>: Add parameters.
3421 <x, y, visible>: New members.
3422 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3423 <m_item_width>: New member.
3424
22b7b041
TT
34252020-07-01 Tom Tromey <tom@tromey.com>
3426
3427 * tui/tui-regs.c (tui_data_window::show_register_group)
3428 (tui_data_window::check_register_values): Update.
3429 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3430 from item_no.
3431
c9753adb
TT
34322020-07-01 Tom Tromey <tom@tromey.com>
3433
3434 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3435 useless "if".
3436
9ab26b4a
TT
34372020-07-01 Tom Tromey <tom@tromey.com>
3438
3439 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3440 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3441
e555083f
TT
34422020-07-01 Tom Tromey <tom@tromey.com>
3443
3444 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3445 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3446 (struct tui_line_or_address): Move from tui-data.h.
3447 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3448 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3449 (tui_cmd_window, tui_source_window_base, tui_source_window)
3450 (tui_disasm_window): Don't declare.
3451 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3452 to tui-winsource.h.
3453 (SINGLE_KEY): Move to tui-stack.c.
3454
7a02bab7
TT
34552020-07-01 Tom Tromey <tom@tromey.com>
3456
3457 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3458 std::string.
3459 * tui/tui-regs.c (class tab_expansion_file): New.
3460 (tab_expansion_file::write): New method.
3461 (tui_register_format): Change return type. Use
3462 tab_expansion_file.
3463 (tui_get_register, tui_data_window::display_registers_from)
3464 (tui_data_item_window::rerender): Update.
3465 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3466 * tui/tui-io.c (tui_expand_tabs): Remove.
3467
ea68593b
TT
34682020-07-01 Tom Tromey <tom@tromey.com>
3469
3470 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3471
a8caed5d
FS
34722020-07-01 Fangrui Song <maskray@google.com>
3473
3474 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3475
9cdf9820
AKS
34762020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3477
3478 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3479 forms for DW_AT_associated and DW_AT_allocated attributes,
3480 which is already checked in function attr_to_dynamic_prop.
3481
a1520ad8
TT
34822020-06-30 Tom Tromey <tromey@adacore.com>
3483
3484 * dwarf2/read.c (quirk_rust_enum): Correctly call
3485 alloc_rust_variant for default-less enum.
3486
5ac58899
TT
34872020-06-30 Tom Tromey <tromey@adacore.com>
3488
3489 PR build/26183:
3490 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3491 gdb::to_string.
3492
19b187a9
SM
34932020-06-29 Simon Marchi <simon.marchi@efficios.com>
3494
3495 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3496 * gdbarch.h: Re-generate.
3497
cd4c4c07
TT
34982020-06-28 Tom Tromey <tom@tromey.com>
3499
3500 * command.h (cmd_types): Remove.
3501 (cmd_type): Don't declare.
3502 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3503 typedef.
3504 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3505 * cli/cli-decode.c (cmd_type): Remove.
3506
05779d57
PA
35072020-06-27 Pedro Alves <palves@redhat.com>
3508
3509 * fork-child.c (prefork_hook): Adjust.
3510 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3511 Delete.
3512 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3513 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3514 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3515 Remove declarations.
3516 (struct inferior) <set_tty, tty>: New methods.
3517 (struct inferior) <terminal>: Rename to ...
3518 (struct inferior) <m_terminal>: ... this and make private.
3519 * main.c (captured_main_1): Adjust.
3520 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3521 (mi_cmd_inferior_tty_show): Adjust.
3522 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3523 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3524
1776e3e5
NA
35252020-06-26 Nick Alcock <nick.alcock@oracle.com>
3526
3527 * configure.ac: Add --enable-libctf: handle --disable-static
3528 properly.
3529 * acinclude.m4: sinclude ../config/enable.m4.
3530 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3531 (LIBCTF): Substitute in.
3532 (CTF_DEPS): New, likewise.
3533 (CLIBS): libctf needs symbols from libbfd: move earlier.
3534 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3535 flags.
3536 * ctfread.c: Surround in ENABLE_LIBCTF.
3537 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3538 * configure: Regenerate.
3539 * config.in: Likewise.
3540
58373b80
SM
35412020-06-25 Simon Marchi <simon.marchi@efficios.com>
3542
3543 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3544
277474ee
SM
35452020-06-25 Simon Marchi <simon.marchi@efficios.com>
3546
3547 * inferior.h (struct inferior) <terminal>: Change type to
3548 gdb::unique_xmalloc_ptr<char>.
3549 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3550 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3551 field, adjust to unique pointer.
3552 (get_inferior_io_terminal): Adjust to unique pointer.
3553
6d74da72
AB
35542020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3555
3556 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3557 registers, not just the known core set of registers.
3558
2e52d038
AB
35592020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3560
3561 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3562 fflags, frm, and fcsr registers.
3563 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3564 restore groups.
3565 (riscv_tdesc_unknown_reg): New function.
3566 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3567 tdesc_use_registers.
3568 * riscv-tdep.h (struct gdbarch_tdep): Add
3569 unknown_csrs_first_regnum, unknown_csrs_count,
3570 duplicate_fflags_regnum, duplicate_frm_regnum, and
3571 duplicate_fcsr_regnum fields.
3572
be64fd07
AB
35732020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3574
3575 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3576 callback, use the callback (when not null) to help number unknown
3577 registers.
3578 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3579 (tdesc_use_registers): Add extra parameter to declaration.
3580
3b9fce96
AB
35812020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3582
3583 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3584 in the file.
3585 (class riscv_pending_register_alias): Likewise.
3586 (riscv_register_feature::register_info): Change 'required_p' field
3587 to 'required', and change its type. Add 'check' member function.
3588 (riscv_register_feature::register_info::check): Define new member
3589 function.
3590 (riscv_xreg_feature): Change initialisation of 'required' field.
3591 (riscv_freg_feature): Likewise.
3592 (riscv_virtual_feature): Likewise.
3593 (riscv_csr_feature): Likewise.
3594 (riscv_check_tdesc_feature): Take extra parameter, the csr
3595 tdesc_feature, rewrite the function to use the new
3596 riscv_register_feature::register_info::check function.
3597 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3598
865bad26
AB
35992020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3600
3601 * features/Makefile: Remove all references to the deleted files
3602 below.
3603 * features/riscv/32bit-csr.c: Deleted.
3604 * features/riscv/32bit-csr.xml: Deleted.
3605 * features/riscv/64bit-csr.c: Deleted.
3606 * features/riscv/64bit-csr.xml: Deleted.
3607 * features/riscv/rebuild-csr-xml.sh: Deleted.
3608
ed69cbc8
AB
36092020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3610
3611 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3612 whitespace error for declaration of names member variable.
3613 (struct riscv_register_feature): Add new prefer_first_name member
3614 variable, and fix whitespace error in declaration of registers.
3615 (riscv_xreg_feature): Initialize prefer_first_name field.
3616 (riscv_freg_feature): Likewise.
3617 (riscv_virtual_feature): Likewise.
3618 (riscv_csr_feature): Likewise.
3619 (riscv_register_name): Expand on comments. Remove register name
3620 modifications for CSR and virtual registers.
3621
4445e8f5
AB
36222020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3623
3624 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3625 errors.
3626
767a879e
AB
36272020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3628
3629 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3630 riscv-opc.h.
3631 (class riscv_pending_register_alias): New class.
3632 (riscv_check_tdesc_feature): Take vector of pending aliases and
3633 populate it as appropriate.
3634 (riscv_setup_register_aliases): Delete.
3635 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3636 to riscv_check_tdesc_feature in all cases. Use the vector to
3637 create the register aliases.
3638
bb6e55f3
RO
36392020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3640
3641 * sol2-tdep.c (sol2_static_transform_name): Remove.
3642 (sol2_init_abi): Don't register it.
3643 * gdbarch.sh (static_transform_name): Remove.
3644 * gdbarch.c, gdbarch.h: Regenerate.
3645
3646 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3647 gdbarch_static_transform_name.
3648 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3649 * stabsread.c (define_symbol) <'X'>: Remove.
3650 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3651 handling.
3652 <'V'>: Likewise.
3653 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3654 <'S'>: Remove call to gdbarch_static_transform_name.
3655
c6d36836
RO
36562020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3657
3658 * procfs.c (procfs_pre_trace): New function.
3659 (procfs_target::create_inferior): Pass it to fork_inferior.
3660
a7e6196b
RO
36612020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3662
3663 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3664 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3665 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3666 sol2-tdep.o, sparc-sol2-tdep.o.
3667 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3668 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3669 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3670 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3671
d412e696
RO
36722020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3673
3674 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3675 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3676 Call sol2_init_abi.
3677 Remove calls to set_gdbarch_skip_solib_resolver,
3678 set_gdbarch_core_pid_to_str.
3679 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3680 (i386_sol2_static_transform_name): Remove.
3681 (i386_sol2_init_abi): Call sol2_init_abi.
3682 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3683 set_gdbarch_static_transform_name,
3684 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3685 Use sol2_sigtramp_p.
3686 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3687 (sol2_sigtramp_p): New function.
3688 (sol2_static_transform_name): New function.
3689 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3690 (sol2_init_abi): New function.
3691 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3692 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3693 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3694 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3695 (sparc_sol2_static_transform_name): Remove.
3696 (sparc32_sol2_init_abi): Call sol2_init_abi.
3697 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3698 set_gdbarch_static_transform_name,
3699 set_gdbarch_skip_solib_resolver,
3700 set_gdbarch_core_pid_to_str.
3701 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3702 (sparc_sol2_static_transform_name): Remove
3703 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3704 call sol2_sigtramp_p.
3705 (sparc64_sol2_init_abi): Call sol2_init_abi.
3706 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3707 set_gdbarch_static_transform_name,
3708 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3709
a8654e7d
PW
37102020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3711
3712 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3713 * exec.c (validate_exec_file): If from_tty, set both
3714 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3715 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3716 and from_tty, unconditionally ask a confirmation.
3717
caa7fd04
AB
37182020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3719
3720 * target-descriptions.c (tdesc_architecture_name): Protect against
3721 NULL pointer dereference.
3722 (maint_print_xml_tdesc_cmd): New function.
3723 (_initialize_target_descriptions): Register new 'maint print
3724 xml-tdesc' command and give it the filename completer.
3725 * NEWS: Mention new 'maint print xml-tdesc' command.
3726
fbf42f4e
AB
37272020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3728
3729 * target-descriptions.c (class tdesc_compatible_info): New class.
3730 (struct target_desc): Change type of compatible vector.
3731 (tdesc_compatible_p): Update for change in type of
3732 target_desc::compatible.
3733 (tdesc_compatible_info_list): New function.
3734 (tdesc_compatible_info_arch_name): New function.
3735 (tdesc_add_compatible): Update for change in type of
3736 target_desc::compatible.
3737 (print_c_tdesc::visit_pre): Likewise.
3738
20821f4e
AB
37392020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3740
3741 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3742 whitespace to underscore.
3743 (maint_print_c_tdesc_cmd): Use fake filename for target
3744 descriptions that came from the target.
3745 (_initialize_target_descriptions): Add filename command completion
3746 for 'maint print c-tdesc'.
3747
1fb5ee62
SM
37482020-06-23 Simon Marchi <simon.marchi@efficios.com>
3749
3750 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3751 lines.
3752
fc3ecb3e
SM
37532020-06-23 Simon Marchi <simon.marchi@efficios.com>
3754
3755 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3756 lines.
3757 (dwarf2_find_location_expression): Likewise.
3758 (call_site_parameter_matches): Likewise.
3759 (dwarf2_compile_expr_to_ax): Likewise.
3760 (disassemble_dwarf_expression): Likewise.
3761 (loclist_describe_location): Likewise.
3762
236ef034
PA
37632020-06-23 Pedro Alves <palves@redhat.com>
3764
3765 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3766 progspace-and-thread.h. Include scoped-mock-context.h instead.
3767 (register_to_value_test): Use scoped_mock_context.
3768 * regcache.c: Include "scoped-mock-context.h".
3769 (cooked_read_test): Don't error out if a target is already pushed.
3770 Use scoped_mock_context. Adjust.
3771 * scoped-mock-context.h: New file.
3772
39e7ecca
AB
37732020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3774
3775 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3776 initializer.
3777 (ada_language::is_string_type_p): New member function.
3778 * c-lang.c (c_language_data): Delete la_is_string_type_p
3779 initializer.
3780 (cplus_language_data): Likewise.
3781 (asm_language_data): Likewise.
3782 (minimal_language_data): Likewise.
3783 * d-lang.c (d_language_data): Likewise.
3784 * f-lang.c (f_is_string_type_p): Delete function, implementation
3785 moved to f_language::is_string_type_p.
3786 (f_language_data): Delete la_is_string_type_p initializer.
3787 (f_language::is_string_type_p): New member function,
3788 implementation from f_is_string_type_p.
3789 * go-lang.c (go_is_string_type_p): Delete function, implementation
3790 moved to go_language::is_string_type_p.
3791 (go_language_data): Delete la_is_string_type_p initializer.
3792 (go_language::is_string_type_p): New member function,
3793 implementation from go_is_string_type_p.
3794 * language.c (language_defn::is_string_type_p): Define new member
3795 function.
3796 (default_is_string_type_p): Make static, add comment copied from
3797 header file.
3798 (unknown_language_data): Delete la_is_string_type_p initializer.
3799 (unknown_language::is_string_type_p): New member function.
3800 (auto_language_data): Delete la_is_string_type_p initializer.
3801 (auto_language::is_string_type_p): New member function.
3802 * language.h (language_data): Delete la_is_string_type_p field.
3803 (language_defn::is_string_type_p): Declare new function.
3804 (default_is_string_type_p): Delete desclaration, move comment to
3805 definition.
3806 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3807 moved to m2_language::is_string_type_p.
3808 (m2_language_data): Delete la_is_string_type_p initializer.
3809 (m2_language::is_string_type_p): New member function,
3810 implementation from m2_is_string_type_p.
3811 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3812 initializer.
3813 * opencl-lang.c (opencl_language_data): Likewise.
3814 * p-lang.c (pascal_is_string_type_p): Delete function,
3815 implementation moved to pascal_language::is_string_type_p.
3816 (pascal_language_data): Delete la_is_string_type_p initializer.
3817 (pascal_language::is_string_type_p): New member function,
3818 implementation from pascal_is_string_type_p.
3819 * rust-lang.c (rust_is_string_type_p): Delete function,
3820 implementation moved to rust_language::is_string_type_p.
3821 (rust_language_data): Delete la_is_string_type_p initializer.
3822 (rust_language::is_string_type_p): New member function,
3823 implementation from rust_is_string_type_p.
3824 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3825 is_string_type_p.
3826
4ffc13fb
AB
38272020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3828
3829 * ada-lang.c (ada_language_data): Delete la_print_typedef
3830 initializer.
3831 (ada_language::print_typedef): New member function.
3832 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3833 (cplus_language_data): Likewise.
3834 (asm_language_data): Likewise.
3835 (minimal_language_data): Likewise.
3836 * d-lang.c (d_language_data): Likewise.
3837 * f-lang.c (f_language_data): Likewise.
3838 (f_language::print_typedef): New member function.
3839 * go-lang.c (go_language_data): Delete la_print_typedef
3840 initializer.
3841 * language.c (language_defn::print_typedef): Define member
3842 function.
3843 (unknown_language_data): Delete la_print_typedef initializer.
3844 (unknown_language::print_typedef): New member function.
3845 (auto_language_data): Delete la_print_typedef initializer.
3846 (auto_language::print_typedef): New member function.
3847 * language.h (language_data): Delete la_print_typedef field.
3848 (language_defn::print_typedef): Declare new member function.
3849 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3850 (default_print_typedef): Delete declaration.
3851 * m2-lang.c (m2_language_data): Delete la_print_typedef
3852 initializer.
3853 (m2_language::print_typedef): New member function.
3854 * objc-lang.c (objc_language_data): Delete la_print_typedef
3855 initializer.
3856 * opencl-lang.c (opencl_language_data): Likewise.
3857 * p-lang.c (pascal_language_data): Likewise.
3858 (pascal_language::print_typedef): New member function.
3859 * rust-lang.c (rust_print_typedef): Delete function,
3860 implementation moved to rust_language::print_typedef.
3861 (rust_language): Delete la_print_typedef initializer.
3862 (rust_language::print_typedef): New member function,
3863 implementation from rust_print_typedef.
3864 * typeprint.c (default_print_typedef): Delete.
3865
d711ee67
AB
38662020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3867
3868 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3869 (ada_language::printstr): New member function.
3870 * c-lang.c (c_language_data): Delete la_printstr initializer.
3871 (cplus_language_data): Likewise.
3872 (asm_language_data): Likewise.
3873 (minimal_language_data): Likewise.
3874 * d-lang.c (d_language_data): Likewise.
3875 * f-lang.c (f_printstr): Rename to f_language::printstr.
3876 (f_language_data): Delete la_printstr initializer.
3877 (f_language::printstr): New member function, implementation from
3878 f_printstr.
3879 * go-lang.c (go_language_data): Delete la_printstr initializer.
3880 * language.c (language_defn::printstr): Define new member
3881 function.
3882 (unk_lang_printstr): Delete.
3883 (unknown_language_data): Delete la_printstr initializer.
3884 (unknown_language::printstr): New member function.
3885 (auto_language_data): Delete la_printstr initializer.
3886 (auto_language::printstr): New member function.
3887 * language.h (language_data): Delete la_printstr field.
3888 (language_defn::printstr): Declare new member function.
3889 (LA_PRINT_STRING): Update call to printstr.
3890 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3891 (m2_language_data): Delete la_printstr initializer.
3892 (m2_language::printstr): New member function, implementation from
3893 m2_printstr.
3894 * objc-lang.c (objc_language_data): Delete la_printstr
3895 initializer.
3896 * opencl-lang.c (opencl_language_data): Likewise.
3897 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3898 (pascal_language_data): Delete la_printstr initializer.
3899 (pascal_language::printstr): New member function, implementation
3900 from pascal_printstr.
3901 * p-lang.h (pascal_printstr): Delete declaration.
3902 * rust-lang.c (rust_printstr): Update header comment.
3903 (rust_language_data): Delete la_printstr initializer.
3904 (rust_language::printstr): New member function.
3905
52b50f2c
AB
39062020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3907
3908 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3909 (ada_language::printchar): New member function.
3910 * c-lang.c (c_language_data): Delete la_printchar initializer.
3911 (cplus_language_data): Likewise.
3912 (asm_language_data): Likewise.
3913 (minimal_language_data): Likewise.
3914 * d-lang.c (d_language_data): Likewise.
3915 * f-lang.c (f_printchar): Rename to f_language::printchar.
3916 (f_language_data): Delete la_printchar initializer.
3917 (f_language::printchar): New member function, implementation from
3918 f_printchar.
3919 * go-lang.c (go_language_data): Delete la_printchar initializer.
3920 * language.c (unk_lang_printchar): Delete.
3921 (language_defn::printchar): Define new member function.
3922 (unknown_language_data): Delete la_printchar initializer.
3923 (unknown_language::printchar): New member function.
3924 (auto_language_data): Delete la_printchar initializer.
3925 (auto_language::printchar): New member function.
3926 * language.h (language_data): Delete la_printchar field.
3927 (language_defn::printchar): Declare new member function.
3928 (LA_PRINT_CHAR): Update call to printchar.
3929 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3930 (m2_language::printchar): New member function.
3931 * objc-lang.c (objc_language_data): Delete la_printchar
3932 initializer.
3933 * opencl-lang.c (opencl_language_data): Likewise.
3934 * p-lang.c (pascal_language_data): Delete la_printchar
3935 initializer.
3936 (pascal_language::printchar): New member function.
3937 * rust-lang.c (rust_printchar): Rename to
3938 rust_language::printchar.
3939 (rust_language_data): Delete la_printchar initializer.
3940 (rust_language::printchar): New member function, implementation
3941 from rust_printchar.
3942
ec8cec5b
AB
39432020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3944
3945 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3946 (ada_language_data): Delete la_emitchar initializer.
3947 (ada_language::emitchar): New member function, implementation from
3948 emit_char.
3949 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3950 (cplus_language_data): Likewise.
3951 (asm_language_data): Likewise.
3952 (minimal_language_data): Likewise.
3953 * d-lang.c (d_language_data): Likewise.
3954 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3955 (f_language_data): Delete la_emitchar initializer.
3956 (f_language::emitchar): New member function, implementation from
3957 f_emit_char.
3958 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3959 * language.c (unk_lang_emit_char): Delete.
3960 (language_defn::emitchar): New member function definition.
3961 (unknown_language_data): Delete la_emitchar initializer.
3962 (unknown_language::emitchar): New member function.
3963 (auto_language_data): Delete la_emitchar initializer.
3964 (auto_language::emitchar): New member function.
3965 * language.h (language_data): Delete la_emitchar field.
3966 (language_defn::emitchar): New member field declaration.
3967 (LA_EMIT_CHAR): Update call to emitchar.
3968 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3969 (m2_language_data): Delete la_emitchar initializer.
3970 (m2_language::emitchar): New member function, implementation from
3971 m2_emit_char.
3972 * objc-lang.c (objc_language_data): Delete la_emitchar
3973 initializer.
3974 * opencl-lang.c (opencl_language_data): Likewise.
3975 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3976 (pascal_language_data): Delete la_emitchar initializer.
3977 (pascal_language::emitchar): New member function, implementation
3978 from pascal_emit_char.
3979 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3980 (rust_language_data): Delete la_emitchar initializer.
3981 (rust_language::emitchar): New member function, implementation
3982 from rust_emitchar.
3983
1bf9c363
AB
39842020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3985
3986 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3987 (ada_language_data): Delete la_post_parser initializer.
3988 (ada_language::post_parser): New member function.
3989 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3990 (cplus_language_data): Likewise.
3991 (asm_language_data): Likewise.
3992 (minimal_language_data): Likewise.
3993 * d-lang.c (d_language_data): Likewise.
3994 * f-lang.c (f_language_data): Likewise.
3995 * go-lang.c (go_language_data): Likewise.
3996 * language.c (unknown_language_data): Likewise.
3997 (auto_language_data): Likewise.
3998 * language.h (language_data): Delete la_post_parser field.
3999 (language_defn::post_parser): New member function.
4000 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4001 * objc-lang.c (objc_language_data): Likewise.
4002 * opencl-lang.c (opencl_language_data): Likewise.
4003 * p-lang.c (pascal_language_data): Likewise.
4004 * parse.c (parse_exp_in_context): Update call to post_parser.
4005 (null_post_parser): Delete definition.
4006 * parser-defs.h (null_post_parser): Delete declaration.
4007 * rust-lang.c (rust_language_data): Delete la_post_parser
4008 initializer.
4009
87afa652
AB
40102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4011
4012 * ada-lang.c (parse): Rename to ada_language::parser.
4013 (ada_language_data): Delete la_parser initializer.
4014 (ada_language::parser): New member function, implementation from
4015 parse.
4016 * c-lang.c (c_language_data): Delete la_parser initializer.
4017 (cplus_language_data): Likewise.
4018 (asm_language_data): Likewise.
4019 (minimal_language_data): Likewise.
4020 * d-lang.c (d_language_data): Likewise.
4021 (d_language::parser): New member function.
4022 * f-lang.c (f_language_data): Delete la_parser initializer.
4023 (f_language::parser): New member function.
4024 * go-lang.c (go_language_data): Delete la_parser initializer.
4025 (go_language::parser): New member function.
4026 * language.c (unk_lang_parser): Delete.
4027 (language_defn::parser): Define new member function.
4028 (unknown_language_data): Delete la_parser initializer.
4029 (unknown_language::parser): New member function.
4030 (auto_language_data): Delete la_parser initializer.
4031 (auto_language::parser): New member function.
4032 * language.h (language_data): Delete la_parser field.
4033 (language_defn::parser): Declare new member function.
4034 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4035 (m2_language::parser): New member function.
4036 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4037 * opencl-lang.c (opencl_language_data): Likewise.
4038 * p-lang.c (pascal_language_data): Likewise.
4039 (pascal_language::parser): New member function.
4040 * parse.c (parse_exp_in_context): Update call to parser.
4041 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4042 (rust_language::parser): New member function.
4043
37825800
AB
40442020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4045
4046 * top.c (print_gdb_configuration): Print --with-python-libdir
4047 configuration value.
4048
5b860c93
PW
40492020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4050
4051 * NEWS: Mention change to the alias command.
4052
cf00cd6f
PW
40532020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4054
4055 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4056 (alias_command_completer)
4057 (make_alias_options_def_group): New functions.
4058 (alias_opts, alias_option_defs): New struct and array.
4059 (alias_usage_error): Update usage.
4060 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4061 Use option framework.
4062 (_initialize_cli_cmds): Update alias command help.
4063 Update aliases command help.
4064 (show_user):
4065 Add NULL for new default_args lookup_cmd argument.
4066 (valid_command_p): Rename to validate_aliased_command.
4067 Add NULL for new default_args lookup_cmd argument. Verify that the
4068 aliased_command has no default args.
4069 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4070 (lookup_cmd_1, lookup_cmd): New argument default_args.
4071 (add_alias_cmd):
4072 Add NULL for new default_args lookup_cmd argument.
4073 (print_help_for_command): Show default args under the layout
4074 alias some_alias = some_aliased_cmd some_alias_default_arg.
4075 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4076 xfree default_args in destructor.
4077 * cli/cli-script.c (process_next_line, do_define_command):
4078 Add NULL for new default_args lookup_cmd argument.
4079 * command.h: Declare new default_args argument in lookup_cmd
4080 and lookup_cmd_1.
4081 * completer.c (complete_line_internal_1):
4082 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4083 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4084 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4085 Likewise.
4086 * infcmd.c (_initialize_infcmd): Likewise.
4087 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4088 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4089 * python/py-param.c (add_setshow_generic): Likewise.
4090 * remote.c (_initialize_remote): Likewise.
4091 * top.c (execute_command): Prepend default_args if command has some.
4092 (set_verbose):
4093 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4094 * tracepoint.c (validate_actionline, encode_actions_1):
4095 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4096
bd920864
TBA
40972020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4098
4099 * jit.c (jit_read_descriptor): Use bool as the return type.
4100 (jit_breakpoint_re_set_internal): Use bool as the return type.
4101 Invert the return value logic; return true if the jit breakpoint
4102 has been successfully initialized.
4103 (jit_inferior_init): Update the call to
4104 jit_breakpoint_re_set_internal.
4105
f8098322
PA
41062020-06-22 Pedro Alves <palves@redhat.com>
4107
4108 PR gdb/25939
4109 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4110 Use the current inferior instead. Don't return
4111 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4112 wait again.
4113 * sol-thread.c (sol_thread_target::wait): Don't reference
4114 inferior_ptid.
4115 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4116 (sol_update_thread_list_callback): Use the current inferior's pid
4117 instead of inferior_ptid.
4118
196535a6
RO
41192020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4120
4121 * procfs.c: Cleanup many comments.
4122
4123 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4124 (AFTER_WATCHFLAG): Replace by value.
4125
4126 (MAIN_PROC_NAME_FORMAT): Inline ...
4127 (create_procinfo): ... here.
4128
4129 (procfs_debug_inferior): Remove SYS_exec handling.
4130 (syscall_is_exec): Likewise.
4131 (procfs_set_exec_trap): Likewise.
4132
4133 (syscall_is_lwp_exit): Inline in callers.
4134 (syscall_is_exit): Likewise.
4135 (syscall_is_exec): Likewise.
4136 (syscall_is_lwp_create): Likewise.
4137
4138 (invalidate_cache): Remove #if 0 code.
4139
4140 (make_signal_thread_runnable): Remove.
4141 (procfs_target::resume): Remove #if 0 code.
4142
cf6f3e86
RO
41432020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4144
4145 PR gdb/25939
4146 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4147 call ...
4148 (procfs_target::create_inferior): ... here.
4149
48e9cc84
PW
41502020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4151
4152 * exec.c (validate_exec_file): Ensure the build-id is up to
4153 date by calling reopen_exec_file (that checks file timestamp
4154 to decide to re-read the file).
4155
3922b302
PA
41562020-06-18 Pedro Alves <palves@redhat.com>
4157
4158 PR gdb/25412
4159 * gdbthread.h (delete_thread, delete_thread_silent)
4160 (find_thread_ptid): Update comments.
4161 * thread.c (current_thread_): New global.
4162 (is_current_thread): Move higher, and reimplement.
4163 (inferior_thread): Reimplement.
4164 (set_thread_exited): Use bool. Add assertions.
4165 (add_thread_silent): Simplify thread-reuse handling by always
4166 calling delete_thread.
4167 (delete_thread): Remove intro comment.
4168 (find_thread_ptid): Skip exited threads.
4169 (switch_to_thread_no_regs): Write to current_thread_.
4170 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4171 INFERIOR_PTID. Clear current_thread_.
4172
6dbdab44
PA
41732020-06-18 Pedro Alves <palves@redhat.com>
4174
4175 * aix-thread.c (pd_update): Use switch_to_thread.
4176
2da4b788
PA
41772020-06-18 Pedro Alves <palves@redhat.com>
4178
4179 * ravenscar-thread.c (ravenscar_thread_target): Update.
4180 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4181 (ravenscar_thread_target::add_active_thread): ... this. Don't
4182 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4183 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4184
50838d1b
PA
41852020-06-18 Pedro Alves <palves@redhat.com>
4186
4187 * nat/windows-nat.c (current_windows_thread): Remove.
4188 * nat/windows-nat.h (current_windows_thread): Remove.
4189 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4190 Adjust.
4191 (display_selectors): Adjust to fetch the current
4192 windows_thread_info based on inferior_ptid.
4193 (fake_create_process): No longer write to current_windows_thread.
4194 (windows_nat_target::get_windows_debug_event):
4195 Don't set inferior_ptid or current_windows_thread.
4196 (windows_nat_target::wait): Adjust to not rely on
4197 current_windows_thread.
4198 (do_initial_windows_stuff): Now a method of windows_nat_target.
4199 Switch to the last_ptid thread.
4200 (windows_nat_target::attach): Adjust.
4201 (windows_nat_target::detach): Use switch_to_no_thread instead of
4202 writing to inferior_ptid directly.
4203 (windows_nat_target::create_inferior): Adjust.
4204
31ce04e9
PA
42052020-06-18 Pedro Alves <palves@redhat.com>
4206
4207 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4208
1ee1a363
PA
42092020-06-18 Pedro Alves <palves@redhat.com>
4210
4211 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4212 after creating it, instead of writing to inferior_ptid. Don't
4213 write to inferior_ptid.
4214
6d350754
PA
42152020-06-18 Pedro Alves <palves@redhat.com>
4216
4217 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4218
5d971d48
PA
42192020-06-18 Pedro Alves <palves@redhat.com>
4220
4221 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4222 it, instead of writing to inferior_ptid.
4223
86e57d1b
PA
42242020-06-18 Pedro Alves <palves@redhat.com>
4225
4226 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4227 to inferior_ptid.
4228
f2e1c129
PA
42292020-06-18 Pedro Alves <palves@redhat.com>
4230
4231 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4232 instead of writing to inferior_ptid directly.
4233
60db1b85
PA
42342020-06-18 Pedro Alves <palves@redhat.com>
4235
4236 * corelow.c (core_target::close): Use switch_to_no_thread instead
4237 of writing to inferior_ptid directly.
4238 (add_to_thread_list, core_target_open): Use switch_to_thread
4239 instead of writing to inferior_ptid directly.
4240
fe7d6a8d
PA
42412020-06-18 Pedro Alves <palves@redhat.com>
4242
4243 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4244 inferior_ptid.
4245 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4246 inferior_ptid.
4247 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4248 inferior_ptid directly.
4249 (darwin_nat_target::init_thread_list): Switch to thread, instead
4250 of writing to inferior_ptid.
4251 (darwin_nat_target::attach): Don't write to inferior_ptid.
4252 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4253
975f8708
PA
42542020-06-18 Pedro Alves <palves@redhat.com>
4255
4256 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4257 thread.
4258 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4259 Instead use switch_to_thread.
4260 (gnu_nat_target::detach): Use switch_to_no_thread
4261 instead of writing to inferior_ptid directly. Used passed-in
4262 inferior instead of looking up the inferior by pid.
4263
1a204730
PA
42642020-06-18 Pedro Alves <palves@redhat.com>
4265
4266 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4267 inferior_ptid.
4268
ebe84f23
PA
42692020-06-18 Pedro Alves <palves@redhat.com>
4270
4271 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4272 inferior_ptid.
4273 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4274 thread.
4275 (nto_procfs_target::detach): Avoid referencing
4276 inferior_ptid. Use switch_to_no_thread instead of writing to
4277 inferior_ptid directly.
4278 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4279 instead of writing to inferior_ptid directly.
4280 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4281 to thread.
4282
191f02e5
PA
42832020-06-18 Pedro Alves <palves@redhat.com>
4284
4285 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4286 after creating it, instead of writing to inferior_ptid.
4287 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4288 to inferior_ptid directly.
4289 (gdbsim_target::wait): Don't write to inferior_ptid.
4290
0ac55310
PA
42912020-06-18 Pedro Alves <palves@redhat.com>
4292
4293 * remote.c (remote_target::remote_notice_new_inferior): Use
4294 switch_to_thread instead of writing to inferior_ptid directly.
4295 (remote_target::add_current_inferior_and_thread): Use
4296 switch_to_no_thread instead of writing to inferior_ptid directly.
4297 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4298 and switch_to_thread instead of using set_current_inferior or
4299 writing to inferior_ptid directly.
4300
5233f39b
PA
43012020-06-18 Pedro Alves <palves@redhat.com>
4302
4303 * tracectf.c (ctf_target_open): Switch to added thread instead of
4304 writing to inferior_ptid directly.
4305 (ctf_target::close): Use switch_to_no_thread instead of writing to
4306 inferior_ptid directly.
4307
087e161b
PA
43082020-06-18 Pedro Alves <palves@redhat.com>
4309
4310 * tracefile-tfile.c (tfile_target_open): Don't write to
4311 inferior_ptid directly, instead switch to added thread.
4312 (tfile_target::close): Use switch_to_no_thread instead of writing
4313 to inferior_ptid directly.
4314
7fb43e53
PA
43152020-06-18 Pedro Alves <palves@redhat.com>
4316
4317 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4318 (procfs_target::detach): Use switch_to_no_thread
4319 instead of writing to inferior_ptid directly.
4320 (do_attach): Change return type to void. Switch to the added
4321 thread.
4322 (procfs_target::create_inferior): Switch to the added thread.
4323 (procfs_do_thread_registers): Don't write to inferior_ptid.
4324
18493a00
PA
43252020-06-18 Pedro Alves <palves@redhat.com>
4326
4327 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4328 of writing to inferior_ptid.
4329 (scoped_restore_exited_inferior): Delete.
4330 (handle_vfork_child_exec_or_exit): Simplify using
4331 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4332 instead of writing to inferior_ptid.
4333 (THREAD_STOPPED_BY): Delete.
4334 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4335 (thread_stopped_by_hw_breakpoint): Delete.
4336 (save_waitstatus): Use
4337 scoped_restore_current_thread+switch_to_thread, and call
4338 target_stopped_by_watchpoint instead of
4339 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4340 instead of thread_stopped_by_sw_breakpoint, and
4341 target_stopped_by_hw_breakpoint instead of
4342 thread_stopped_by_hw_breakpoint.
4343 (handle_inferior_event)
4344 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4345 inferior_ptid directly, nor
4346 set_current_inferior/set_current_program_space. Use
4347 switch_to_thread / switch_to_inferior_no_thread instead.
4348
a0776b13
PA
43492020-06-18 Pedro Alves <palves@redhat.com>
4350
4351 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4352 instead of writing to inferior_ptid.
4353
6155c136
PA
43542020-06-18 Pedro Alves <palves@redhat.com>
4355
4356 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4357 added thread.
4358 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4359 to the added thread.
4360 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4361 instead of writing to inferior_ptid.
4362
c5316fc6
PA
43632020-06-18 Pedro Alves <palves@redhat.com>
4364
4365 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4366 (register_to_value_test): Mock a program_space too. Heap-allocate
4367 the address space. Don't write to inferior_ptid. Use
4368 switch_to_thread instead.
4369
8df01799
PA
43702020-06-18 Pedro Alves <palves@redhat.com>
4371
4372 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4373 Delete.
4374 (find_signalled_thread()): New, factored out from
4375 linux_make_corefile_notes and adjusted to handle exited threads.
4376 (linux_make_corefile_notes): Adjust to use the new
4377 find_signalled_thread.
4378
41792d68
PA
43792020-06-18 Pedro Alves <palves@redhat.com>
4380
4381 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4382 of saving/restoring inferior_ptid.
4383
612f258a
TT
43842020-06-17 Tom Tromey <tom@tromey.com>
4385
4386 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4387 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4388 declare.
4389 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4390
efb763a5
SM
43912020-06-15 Simon Marchi <simon.marchi@efficios.com>
4392
4393 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4394 of partial symtabs.
4395
2951f6c0
SM
43962020-06-17 Simon Marchi <simon.marchi@efficios.com>
4397
4398 * regformats/reg-arm.dat: Remove.
4399 * regformats/reg-bfin.dat: Remove.
4400 * regformats/reg-cris.dat: Remove.
4401 * regformats/reg-crisv32.dat: Remove.
4402 * regformats/reg-m32r.dat: Remove.
4403 * regformats/reg-tilegx.dat: Remove.
4404 * regformats/reg-tilegx32.dat: Remove.
4405
7d458ea5
SM
44062020-06-17 Simon Marchi <simon.marchi@efficios.com>
4407
4408 * features/Makefile (WHICH): Remove arm files.
4409 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4410 * regformats/arm/arm-with-neon.dat: Remove.
4411 * regformats/arm/arm-with-vfpv2.dat: Remove.
4412 * regformats/arm/arm-with-vfpv3.dat: Remove.
4413
3af96c0d
SM
44142020-06-17 Simon Marchi <simon.marchi@efficios.com>
4415
4416 * features/Makefile (XMLTOC): Remove rx.xml.
4417
b25e22fd
PA
44182020-06-17 Pedro Alves <palves@redhat.com>
4419
4420 * gdbthread.h (thread_control_state) <trap_expected> Update
4421 comments.
4422
a78a19b1
AB
44232020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4424
4425 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4426 ada_language::lookup_symbol_nonlocal.
4427 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4428 (ada_language::lookup_symbol_nonlocal): New member function,
4429 implementation from ada_lookup_symbol_nonlocal.
4430 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4431 initializer.
4432 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4433 initializer.
4434 (cplus_language::lookup_symbol_nonlocal): New member function.
4435 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4436 (minimal_language_data) Likewise.
4437 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4438 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4439 initializer.
4440 (d_language::lookup_symbol_nonlocal): New member function.
4441 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4442 initializer.
4443 (f_language::lookup_symbol_nonlocal): New member function.
4444 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4445 initializer.
4446 * language.c (unknown_language_data): Likewise.
4447 (auto_language_data): Likewise.
4448 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4449 field.
4450 (language_defn::lookup_symbol_nonlocal): New member function.
4451 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4452 initializer.
4453 * objc-lang.c (objc_language_data): Likewise.
4454 * opencl-lang.c (opencl_language_data): Likewise.
4455 * p-lang.c (pascal_language_data): Likewise.
4456 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4457 rust_language::lookup_symbol_nonlocal.
4458 (rust_language_data): Delete la_lookup_symbol_nonlocal
4459 initializer.
4460 (rust_language::lookup_symbol_nonlocal): New member function,
4461 implementation from rust_lookup_symbol_nonlocal.
4462 * symtab.c (lookup_symbol_aux): Update call to
4463 lookup_symbol_nonlocal.
4464 (basic_lookup_symbol_nonlocal): Rename to...
4465 (language_defn::lookup_symbol_nonlocal): ...this, and update
4466 header comment. Remove language_defn parameter, and replace with
4467 uses of `this'.
4468 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4469
ebe2334e
AB
44702020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4471
4472 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4473 initializer.
4474 (ada_language::value_print_inner): New member function.
4475 * c-lang.c (c_language_data): Delete la_value_print_inner
4476 initializer.
4477 (cplus_language_data): Likewise.
4478 (asm_language_data): Likewise.
4479 (minimal_language_data): Likewise.
4480 * d-lang.c (d_language_data): Likewise.
4481 (d_language::value_print_inner): New member function.
4482 * f-lang.c (f_language_data): Delete la_value_print_inner
4483 initializer.
4484 (f_language::value_print_inner): New member function.
4485 * f-lang.h (f_value_print_innner): Rename to...
4486 (f_value_print_inner): ...this (note spelling of 'inner').
4487 * f-valprint.c (f_value_print_innner): Rename to...
4488 (f_value_print_inner): ...this (note spelling of 'inner').
4489 * go-lang.c (go_language_data): Delete la_value_print_inner
4490 initializer.
4491 (go_language::value_print_inner): New member function.
4492 * language.c (language_defn::value_print_inner): Define new member
4493 function.
4494 (unk_lang_value_print_inner): Delete.
4495 (unknown_language_data): Delete la_value_print_inner initializer.
4496 (unknown_language::value_print_inner): New member function.
4497 (auto_language_data): Delete la_value_print_inner initializer.
4498 (auto_language::value_print_inner): New member function.
4499 * language.h (language_data): Delete la_value_print_inner field.
4500 (language_defn::value_print_inner): Delcare new member function.
4501 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4502 initializer.
4503 (m2_language::value_print_inner): New member function.
4504 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4505 initializer.
4506 * opencl-lang.c (opencl_language_data): Likewise.
4507 * p-lang.c (pascal_language_data): Likewise.
4508 (pascal_language::value_print_inner): New member function.
4509 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4510 initializer.
4511 (rust_language::value_print_inner): New member function.
4512 * valprint.c (do_val_print): Update call to value_print_inner.
4513
a1d1fa3e
AB
45142020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4515
4516 * ada-lang.c (ada_language_data): Delete la_value_print
4517 initializer.
4518 (ada_language::value_print): New member function.
4519 * c-lang.c (c_language_data): Delete la_value_print initializer.
4520 (cplus_language_data): Likewise.
4521 (asm_language_data): Likewise.
4522 (minimal_language_data): Likewise.
4523 * d-lang.c (d_language_data): Likewise.
4524 * f-lang.c (f_language_data): Likewise.
4525 * go-lang.c (go_language_data): Likewise.
4526 * language.c (unk_lang_value_print): Delete.
4527 (language_defn::value_print): Define new member function.
4528 (unknown_language_data): Delete la_value_print initializer.
4529 (unknown_language::value_print): New member function.
4530 (auto_language_data): Delete la_value_print initializer.
4531 (auto_language::value_print): New member function.
4532 * language.h (language_data): Delete la_value_print field.
4533 (language_defn::value_print): Declare new member function.
4534 (LA_VALUE_PRINT): Update call to value_print.
4535 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4536 * objc-lang.c (objc_language_data): Likewise.
4537 * opencl-lang.c (opencl_language_data): Likewise.
4538 * p-lang.c (pascal_language_data): Likewise.
4539 (pascal_language::value_print): New member function.
4540 * rust-lang.c (rust_language_data): Delete la_value_print
4541 initializer.
4542
f16a9f57
AB
45432020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4544
4545 * ada-lang.c (ada_watch_location_expression): Rename to
4546 ada_language::watch_location_expression.
4547 (ada_language_data): Delete la_watch_location_expression
4548 initializer.
4549 (ada_language::watch_location_expression): New member function,
4550 implementation from ada_watch_location_expression.
4551 * breakpoint.c (watch_command_1): Update call to
4552 watch_location_expression.
4553 * c-lang.c (c_watch_location_expression): Rename to
4554 language_defn::watch_location_expression.
4555 (c_language_data): Delete la_watch_location_expression
4556 initializer.
4557 (cplus_language_data): Likewise.
4558 (asm_language_data): Likewise.
4559 (minimal_language_data): Likewise.
4560 * c-lang.h (c_watch_location_expression): Delete declaration.
4561 * d-lang.c (d_language_data): Delete la_watch_location_expression
4562 initializer.
4563 * f-lang.c (f_language_data): Likewise.
4564 * go-lang.c (go_language_data): Likewise.
4565 * language.c (language_defn::watch_location_expression): Member
4566 function implementation from c_watch_location_expression.
4567 (unknown_language_data): Delete la_watch_location_expression
4568 initializer.
4569 (auto_language_data): Likewise.
4570 * language.h (language_data): Delete la_watch_location_expression
4571 field.
4572 (language_defn::watch_location_expression): Declare new member
4573 function.
4574 * m2-lang.c (m2_language_data): Delete
4575 la_watch_location_expression initializer.
4576 * objc-lang.c (objc_language_data): Likewise.
4577 * opencl-lang.c (opencl_language_data): Likewise.
4578 * p-lang.c (pascal_language_data): Likewise.
4579 * rust-lang.c (rust_watch_location_expression): Rename to
4580 rust_language::watch_location_expression.
4581 (rust_language_data): Delete la_watch_location_expression
4582 initializer.
4583 (rust_language::watch_location_expression): New member function,
4584 implementation from rust_watch_location_expression.
4585
7e56227d
AB
45862020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4587
4588 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4589 ada_language::collect_symbol_completion_matches.
4590 (ada_language_data): Delete la_collect_symbol_completion_matches
4591 initializer.
4592 (ada_language::collect_symbol_completion_matches): New member
4593 function, implementation from
4594 ada_collect_symbol_completion_matches.
4595 * c-lang.c (c_language_data): Delete
4596 la_collect_symbol_completion_matches initializer.
4597 (cplus_language_data): Likewise.
4598 (asm_language_data): Likewise.
4599 (minimal_language_data): Likewise.
4600 * d-lang.c (d_language_data): Likewise.
4601 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4602 f_language::collect_symbol_completion_matches.
4603 (f_language_data): Delete la_collect_symbol_completion_matches
4604 initializer.
4605 (f_language::collect_symbol_completion_matches) New member
4606 function, implementation from f_collect_symbol_completion_matches.
4607 * go-lang.c (go_language_data): Delete
4608 la_collect_symbol_completion_matches initializer.
4609 * language.c (unknown_language_data): Likewise.
4610 (auto_language_data): Likewise.
4611 * language.h (language_data): Delete
4612 la_collect_symbol_completion_matches field.
4613 (language_defn::collect_symbol_completion_matches): New member
4614 function.
4615 * m2-lang.c (m2_language_data): Delete
4616 la_collect_symbol_completion_matches initializer.
4617 * objc-lang.c (objc_language_data): Likewise.
4618 * opencl-lang.c (opencl_language_data): Likewise.
4619 * p-lang.c (pascal_language_data): Likewise.
4620 * rust-lang.c (rust_language_data): Likewise.
4621 * symtab.c (default_collect_symbol_completion_matches): Delete.
4622 (collect_symbol_completion_matches): Update call to
4623 collect_symbol_completion_matches.
4624 (collect_symbol_completion_matches_type): Likewise.
4625 * symtab.h (default_collect_symbol_completion_matches): Delete
4626 declaration.
4627
53fc67f8
AB
46282020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4629
4630 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4631 (ada_language_data): Delete la_word_break_characters initializer.
4632 (ada_language::word_break_characters): New member function.
4633 * c-lang.c (c_language_data): Delete la_word_break_characters
4634 initializer.
4635 (cplus_language_data): Likewise.
4636 (asm_language_data): Likewise.
4637 (minimal_language_data): Likewise.
4638 * completer.c: Update global comment.
4639 (advance_to_expression_complete_word_point): Update call to
4640 word_break_characters.
4641 (complete_files_symbols): Likewise.
4642 (complete_line_internal_1): Likewise.
4643 (default_completer_handle_brkchars): Likewise.
4644 (skip_quoted_chars): Likewise.
4645 * d-lang.c (d_language_data): Delete la_word_break_characters
4646 initializer.
4647 * f-lang.c (f_word_break_characters): Delete.
4648 (f_language_data): Delete la_word_break_characters initializer.
4649 (f_language::word_break_characters): New member function.
4650 * go-lang.c (go_language_data): Delete la_word_break_characters
4651 initializer.
4652 * language.c (unknown_language_data): Likewise.
4653 (auto_language_data): Likewise.
4654 * language.h (default_word_break_characters): Move declaration to
4655 earlier in the file.
4656 (language_data): Delete la_word_break_characters field.
4657 (language_defn::word_break_characters): New member function.
4658 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4659 initializer.
4660 * objc-lang.c (objc_language_data): Likewise.
4661 * opencl-lang.c (opencl_language_data): Likewise.
4662 * p-lang.c (pascal_language_data): Likewise.
4663 * rust-lang.c (rust_language_data): Likewise.
4664
c9debfb9
AB
46652020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4666
4667 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4668 (ada_language_data): Delete la_get_symbol_name_matcher
4669 initializer.
4670 (language_defn::get_symbol_name_matcher_inner): New member
4671 function.
4672 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4673 initializer.
4674 (cplus_language_data): Likewise.
4675 (cplus_language::get_symbol_name_matcher_inner): New member
4676 function.
4677 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4678 (minimal_language_data): Likewise.
4679 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4680 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4681 initializer.
4682 * dictionary.c (iter_match_first_hashed): Update call to
4683 get_symbol_name_matcher.
4684 (iter_match_next_hashed): Likewise.
4685 (iter_match_next_linear): Likewise.
4686 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4687 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4688 initializer.
4689 (f_language::get_symbol_name_matcher_inner): New member function.
4690 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4691 initializer.
4692 * language.c (default_symbol_name_matcher): Update header comment,
4693 make static.
4694 (language_defn::get_symbol_name_matcher): New definition.
4695 (language_defn::get_symbol_name_matcher_inner): Likewise.
4696 (get_symbol_name_matcher): Delete.
4697 (unknown_language_data): Delete la_get_symbol_name_matcher
4698 initializer.
4699 (auto_language_data): Likewise.
4700 * language.h (language_data): Delete la_get_symbol_name_matcher
4701 field.
4702 (language_defn::get_symbol_name_matcher): New member function.
4703 (language_defn::get_symbol_name_matcher_inner): Likewise.
4704 (default_symbol_name_matcher): Delete declaration.
4705 * linespec.c (find_methods): Update call to
4706 get_symbol_name_matcher.
4707 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4708 initializer.
4709 * minsyms.c (lookup_minimal_symbol): Update call to
4710 get_symbol_name_matcher.
4711 (iterate_over_minimal_symbols): Likewise.
4712 * objc-lang.c (objc_language_data): Delete
4713 la_get_symbol_name_matcher initializer.
4714 * opencl-lang.c (opencl_language_data): Likewise.
4715 * p-lang.c (pascal_language_data): Likewise.
4716 * psymtab.c (psymbol_name_matches): Update call to
4717 get_symbol_name_matcher.
4718 * rust-lang.c (rust_language_data): Delete
4719 la_get_symbol_name_matcher initializer.
4720 * symtab.c (symbol_matches_search_name): Update call to
4721 get_symbol_name_matcher.
4722 (compare_symbol_name): Likewise.
4723
9a49ad8c
AB
47242020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4725
4726 * ada-lang.c (ada_language_data): Delete la_compute_program
4727 initializer.
4728 * c-lang.c (c_language_data): Likewise.
4729 (c_language::compute_program): New member function.
4730 (cplus_language_data): Delete la_compute_program initializer.
4731 (cplus_language::compute_program): New member function.
4732 (asm_language_data): Delete la_compute_program initializer.
4733 (minimal_language_data): Likewise.
4734 * c-lang.h (c_compute_program): Update comment.
4735 (cplus_compute_program): Likewise.
4736 * compile/compile-c-support.c (c_compute_program): Likewise.
4737 (cplus_compute_program): Likewise.
4738 * compile/compile.c (compile_to_object): Update call to
4739 la_compute_program.
4740 * d-lang.c (d_language_data): Delete la_compute_program
4741 initializer.
4742 * f-lang.c (f_language_data): Likewise.
4743 * go-lang.c (go_language_data): Likewise.
4744 * language.c (unknown_language_data): Likewise.
4745 (auto_language_data): Likewise.
4746 * language.h (language_data): Delete la_compute_program field.
4747 (language_defn::compute_program): New member function.
4748 * m2-lang.c (m2_language_data): Delete la_compute_program
4749 initializer.
4750 * objc-lang.c (objc_language_data): Likewise.
4751 * opencl-lang.c (opencl_language_data): Likewise.
4752 * p-lang.c (pascal_language_data): Likewise.
4753 * rust-lang.c (rust_language_data): Likewise.
4754
eff93b4d
AB
47552020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4756
4757 * ada-lang.c (ada_language_data) Delete
4758 la_class_name_from_physname initializer.
4759 * c-lang.c (c_language_data): Likewise.
4760 (cplus_language_data): Likewise.
4761 (cplus_language::class_name_from_physname): New member function.
4762 (asm_language_data): Delete la_class_name_from_physname
4763 initializer.
4764 (minimal_language_data): Likewise.
4765 * d-lang.c (d_language_data): Likewise.
4766 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4767 method on language_defn class.
4768 (guess_full_die_structure_name): Likewise.
4769 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4770 initializer.
4771 * go-lang.c (go_language_data): Likewise.
4772 * language.c (language_class_name_from_physname): Delete.
4773 (unk_lang_class_name): Delete.
4774 (unknown_language_data): Delete la_class_name_from_physname
4775 initializer.
4776 (auto_language_data): Likewise.
4777 * language.h (language_data): Delete la_class_name_from_physname
4778 field.
4779 (language_defn::class_name_from_physname): New function.
4780 (language_class_name_from_physname): Delete declaration.
4781 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4782 initializer.
4783 * objc-lang.c (objc_language_data): Likewise.
4784 * opencl-lang.c (opencl_language_data): Likewise.
4785 * p-lang.c (pascal_language_data): Likewise.
4786 * rust-lang.c (rust_language_data): Likewise.
4787
de543742
TT
47882020-06-16 Tom Tromey <tom@tromey.com>
4789
4790 * tui/tui-data.h (STATUS_NAME): New macro.
4791 * tui/tui-layout.c (tui_remove_some_windows)
4792 (initialize_known_windows, tui_register_window)
4793 (tui_layout_split::remove_windows, initialize_layouts)
4794 (tui_new_layout_command): Don't use hard-coded window names.
4795
a350efd4
TT
47962020-06-16 Tom Tromey <tom@tromey.com>
4797
4798 PR tui/25348:
4799 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4800 tui_initialize_readline. Only run once. Call rl_initialize.
4801 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4802 tui_initialize_readline.
4803 * tui/tui-io.c (tui_setup_io): Call
4804 tui_ensure_readline_initialized.
4805 * tui/tui-interp.c (tui_interp::init): Update.
4806
39ec0490
TT
48072020-06-16 Tom Tromey <tom@tromey.com>
4808
4809 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4810 Also preserve the status window.
4811
d2d1ea20
TT
48122020-06-16 Tom Tromey <tom@tromey.com>
4813
4814 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4815 where m_window==nullptr.
4816
66920317
TT
48172020-06-15 Tom Tromey <tromey@adacore.com>
4818
4819 * windows-nat.c (windows_nat::handle_output_debug_string):
4820 Update.
4821 (windows_nat::handle_ms_vc_exception): Update.
4822 * target.h (target_read_string): Change API.
4823 * target.c (target_read_string): Change API.
4824 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4825 Update.
4826 * solib-frv.c (frv_current_sos): Update.
4827 * solib-dsbt.c (dsbt_current_sos): Update.
4828 * solib-darwin.c (darwin_current_sos): Update.
4829 * linux-thread-db.c (inferior_has_bug): Update.
4830 * expprint.c (print_subexp_standard): Update.
4831 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4832 (ada_exception_message_1): Update.
4833
a5d871dd
TT
48342020-06-15 Tom Tromey <tromey@adacore.com>
4835
4836 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4837
670e35fa
TT
48382020-06-15 Tom Tromey <tromey@adacore.com>
4839
4840 * valprint.c (read_string): Update comment.
4841 * target.c (MIN): Remove.
4842 (target_read_string): Rewrite.
4843
f5272a3b
TT
48442020-06-15 Tom Tromey <tromey@adacore.com>
4845
4846 * corefile.c (read_memory_string): Remove.
4847 * ada-valprint.c (ada_value_print_ptr): Update.
4848 * ada-lang.h (ada_tag_name): Change return type.
4849 * ada-lang.c (type_from_tag): Update.
4850 (ada_tag_name_from_tsd): Change return type. Use
4851 target_read_string.
4852 (ada_tag_name): Likewise.
4853 * gdbcore.h (read_memory_string): Don't declare.
4854
2c074f49
HD
48552020-06-14 Hannes Domani <ssbssa@yahoo.de>
4856
4857 * symtab.c (rbreak_command): Ignore Windows drive colon.
4858
6a17d503
SM
48592020-06-12 Simon Marchi <simon.marchi@efficios.com>
4860
4861 * NEWS: Mention removed GDBserver host support.
4862
453c733f
NC
48632020-06-12 Nelson Chu <nelson.chu@sifive.com>
4864
4865 * features/riscv/rebuild-csr-xml.sh: Updated.
4866
2b4e6a3f
TT
48672020-06-11 Tom Tromey <tom@tromey.com>
4868
4869 PR gdb/18318:
4870 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4871
4412332f
JG
48722020-06-09 Jonny Grant <jg@jguk.org>
48732020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4874
4875 * main.c (captured_main_1): Don't print new line after help.
4876 (print_gdb_help): add mailing list and IRC channel information
4877 to --help. Add new lines between items in the footer. Remove
4878 quotes around bug url.
4879
2f33032a
KS
48802020-06-11 Keith Seitz <keiths@redhat.com>
4881
4882 PR gdb/21356
4883 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4884 Resolve typedefs for type length calculations.
4885
7ab96794
TV
48862020-06-10 Tom de Vries <tdevries@suse.de>
4887
4888 PR ada/24713
4889 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4890 (write_psymbols): Enable .gdb_index for ada.
4891 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4892 ada.
4893
e5f3ece2
TV
48942020-06-10 Tom de Vries <tdevries@suse.de>
4895
4896 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4897 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4898 namei" instead of "const char *name" argument.
4899 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4900 dw2_symtab_iter_init.
4901
940da03e
SM
49022020-06-08 Simon Marchi <simon.marchi@efficios.com>
4903
4904 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4905 to use type::field and field::type instead.
4906
b6cdac4b
SM
49072020-06-08 Simon Marchi <simon.marchi@efficios.com>
4908
4909 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4910 to use field::type instead.
4911
5d14b6e5
SM
49122020-06-08 Simon Marchi <simon.marchi@efficios.com>
4913
4914 * gdbtypes.h (struct field) <type, set_type>: New methods.
4915 Rename `type` field to...
4916 <m_type>: ... this. Change references throughout to use type or
4917 set_type methods.
4918 (FIELD_TYPE): Use field::type. Change call sites that modify
4919 the field's type to use field::set_type instead.
4920
3d967001
SM
49212020-06-08 Simon Marchi <simon.marchi@efficios.com>
4922
4923 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4924 to use type::index_type instead.
4925
262abc0d
SM
49262020-06-08 Simon Marchi <simon.marchi@efficios.com>
4927
4928 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4929 methods.
4930 (TYPE_INDEX_TYPE): Use type::index_type.
4931 * gdbtypes.c (create_array_type_with_stride): Likewise.
4932
82836c92
TT
49332020-06-07 Tom Tromey <tom@tromey.com>
4934
4935 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4936 parameter.
4937 (generic_value_print): Update.
4938
940dace9
AB
49392020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4940
4941 Revert commit 982a38f60b0.
4942 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4943
982a38f6
AB
49442020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4945
4946 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4947 avoid use after free.
4948
82f06518
TV
49492020-06-05 Tom de Vries <tdevries@suse.de>
4950
4951 * NEWS: Fix typos.
4952
f8c41851
SM
49532020-06-04 Simon Marchi <simon.marchi@efficios.com>
4954
4955 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4956 the per_bfd object.
4957 (dwarf2_read_debug_names): Likewise.
4958 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4959 object when re-using a per_bfd object with an index.
4960
f9b5d5ea
TV
49612020-06-03 Tom de Vries <tdevries@suse.de>
4962
4963 PR symtab/26046
4964 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4965 children for C++.
4966 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4967 DW_TAG_subprogram.
4968
f6eee2d0
AB
49692020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4970
4971 * ada-lang.c (ada_language_data): Delete skip_trampoline
4972 initializer.
4973 * c-lang.c (c_language_data): Likewise.
4974 (cplus_language_data): Likewise.
4975 (cplus_language::skip_trampoline): New member function.
4976 (asm_language_data): Delete skip_trampoline initializer.
4977 (minimal_language_data): Likewise.
4978 * d-lang.c (d_language_data): Likewise.
4979 * f-lang.c (f_language_data): Likewise.
4980 * go-lang.c (go_language_data): Likewise.
4981 * language.c (unk_lang_trampoline): Delete function.
4982 (skip_language_trampoline): Update.
4983 (unknown_language_data): Delete skip_trampoline initializer.
4984 (auto_language_data): Likewise.
4985 * language.h (language_data): Delete skip_trampoline field.
4986 (language_defn::skip_trampoline): New function.
4987 * m2-lang.c (m2_language_data): Delete skip_trampoline
4988 initializer.
4989 * objc-lang.c (objc_skip_trampoline): Delete function, move
4990 implementation to objc_language::skip_trampoline.
4991 (objc_language_data): Delete skip_trampoline initializer.
4992 (objc_language::skip_trampoline): New member function with
4993 implementation from objc_skip_trampoline.
4994 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4995 initializer.
4996 * p-lang.c (pascal_language_data): Likewise.
4997 * rust-lang.c (rust_language_data): Likewise.
4998
0a50df5d
AB
49992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5000
5001 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5002 (ada_language::demangle): New member function.
5003 * c-lang.c (c_language_data): Delete la_demangle initializer.
5004 (cplus_language_data): Delete la_demangle initializer.
5005 (cplus_language::demangle): New member function.
5006 (asm_language_data): Delete la_demangle initializer.
5007 (minimal_language_data): Delete la_demangle initializer.
5008 * d-lang.c (d_language_data): Delete la_demangle initializer.
5009 (d_language::demangle): New member function.
5010 * f-lang.c (f_language_data): Delete la_demangle initializer.
5011 (f_language::demangle): New member function.
5012 * go-lang.c (go_language_data): Delete la_demangle initializer.
5013 (go_language::demangle): New member function.
5014 * language.c (language_demangle): Update.
5015 (unk_lang_demangle): Delete.
5016 (unknown_language_data): Delete la_demangle initializer.
5017 (unknown_language::demangle): New member function.
5018 (auto_language_data): Delete la_demangle initializer.
5019 (auto_language::demangle): New member function.
5020 * language.h (language_data): Delete la_demangle field.
5021 (language_defn::demangle): New function.
5022 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5023 * objc-lang.c (objc_language_data): Delete la_demangle
5024 initializer.
5025 (objc_language::demangle): New member function.
5026 * opencl-lang.c (opencl_language_data): Delete la_demangle
5027 initializer.
5028 * p-lang.c (pascal_language_data): Likewise.
5029 * rust-lang.c (rust_language_data): Likewise.
5030 (rust_language::demangle): New member function.
5031
fbfb0a46
AB
50322020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5033
5034 * ada-lang.c (ada_language_data): Delete la_print_type
5035 initializer.
5036 (ada_language::print_type): New member function.
5037 * c-lang.c (c_language_data): Delete la_print_type initializer.
5038 (c_language::print_type): New member function.
5039 (cplus_language_data): Delete la_print_type initializer.
5040 (cplus_language::print_type): New member function.
5041 (asm_language_data): Delete la_print_type initializer.
5042 (asm_language::print_type): New member function.
5043 (minimal_language_data): Delete la_print_type initializer.
5044 (minimal_language::print_type): New member function.
5045 * d-lang.c (d_language_data): Delete la_print_type initializer.
5046 (d_language::print_type): New member function.
5047 * f-lang.c (f_language_data): Delete la_print_type initializer.
5048 (f_language::print_type): New member function.
5049 * go-lang.c (go_language_data): Delete la_print_type initializer.
5050 (go_language::print_type): New member function.
5051 * language.c (unk_lang_print_type): Delete.
5052 (unknown_language_data): Delete la_print_type initializer.
5053 (unknown_language::print_type): New member function.
5054 (auto_language_data): Delete la_print_type initializer.
5055 (auto_language::print_type): New member function.
5056 * language.h (language_data): Delete la_print_type field.
5057 (language_defn::print_type): New function.
5058 (LA_PRINT_TYPE): Update.
5059 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5060 (m2_language::print_type): New member function.
5061 * objc-lang.c (objc_language_data): Delete la_print_type
5062 initializer.
5063 (objc_language::print_type): New member function.
5064 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5065 to opencl_language::print_type.
5066 (opencl_language_data): Delete la_print_type initializer.
5067 (opencl_language::print_type): New member function, implementation
5068 from opencl_print_type.
5069 * p-lang.c (pascal_language_data): Delete la_print_type
5070 initializer.
5071 (pascal_language::print_type): New member function.
5072 * rust-lang.c (rust_print_type): Delete, implementation moved to
5073 rust_language::print_type.
5074 (rust_language_data): Delete la_print_type initializer.
5075 (rust_language::print_type): New member function, implementation
5076 from rust_print_type.
5077
6f827019
AB
50782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5079
5080 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5081 implementation moves to...
5082 (ada_language::sniff_from_mangled_name): ...here. Update return
5083 type.
5084 (ada_language_data): Delete la_sniff_from_mangled_name
5085 initializer.
5086 * c-lang.c (c_language_data): Likewise.
5087 (cplus_language_data): Likewise.
5088 (cplus_language::sniff_from_mangled_name): New member function,
5089 implementation taken from gdb_sniff_from_mangled_name.
5090 (asm_language_data): Delete la_sniff_from_mangled_name
5091 initializer.
5092 (minimal_language_data): Likewise.
5093 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5094 implementation moves to cplus_language::sniff_from_mangled_name.
5095 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5096 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5097 moves to...
5098 (d_language::sniff_from_mangled_name): ...here.
5099 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5100 * f-lang.c (f_language_data): Likewise.
5101 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5102 moves to...
5103 (go_language::sniff_from_mangled_name): ...here.
5104 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5105 * language.c (language_sniff_from_mangled_name): Delete.
5106 (unknown_language_data): Delete la_sniff_from_mangled_name
5107 initializer.
5108 (auto_language_data): Likewise.
5109 * language.h (language_data): Delete la_sniff_from_mangled_name
5110 field.
5111 (language_defn::sniff_from_mangled_name): New function.
5112 (language_sniff_from_mangled_name): Delete declaration.
5113 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5114 field.
5115 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5116 implementation moves to...
5117 (objc_language::sniff_from_mangled_name): ...here.
5118 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5119 * opencl-lang.c (opencl_language_data): Likewise.
5120 * p-lang.c (pascal_language_data): Likewise.
5121 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5122 implementation moves to...
5123 (rust_language::sniff_from_mangled_name): ...here.
5124 (rust_language_data): Delete la_sniff_from_mangled_name
5125 initializer.
5126 * symtab.c (symbol_find_demangled_name): Call
5127 sniff_from_mangled_name member function.
5128
fb8006fd
AB
51292020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5130
5131 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5132 initializer.
5133 * c-lang.c (c_language_data): Likewise.
5134 (cplus_language_data): Likewise.
5135 (cplus_language::search_name_hash): New member function.
5136 (asm_language_data): Delete la_search_name_hash initializer.
5137 (minimal_language_data): Likewise.
5138 * d-lang.c (d_language_data): Likewise.
5139 * dictionary.c (default_search_name_hash): Rename to...
5140 (language_defn::search_name_hash): ...this.
5141 * f-lang.c (f_language_data): Likewise.
5142 (f_language::search_name_hash): New member function.
5143 * go-lang.c (go_language_data): Delete la_search_name_hash
5144 initializer.
5145 * language.c (unknown_language_data): Likewise.
5146 (auto_language_data): Likewise.
5147 * language.h (struct language_data): Delete la_search_name_hash
5148 field.
5149 (language_defn::search_name_hash): Declare new member function.
5150 (default_search_name_hash): Delete declaration.
5151 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5152 initializer.
5153 * objc-lang.c (objc_language_data): Likewise.
5154 * opencl-lang.c (opencl_language_data): Likewise.
5155 * p-lang.c (pascal_language_data): Likewise.
5156 * rust-lang.c (rust_language_data): Likewise.
5157 * symtab.c (search_name_hash): Update call.
5158
8e25bafe
AB
51592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5160
5161 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5162 initializer.
5163 * c-lang.c (class compile_instance): Declare.
5164 (c_language_data): Delete la_get_compile_instance initializer.
5165 (c_language::get_compile_instance): New member function.
5166 (cplus_language_data): Delete la_get_compile_instance initializer.
5167 (cplus_language::get_compile_instance): New member function.
5168 (asm_language_data): Delete la_get_compile_instance initializer.
5169 (minimal_language_data): Likewise.
5170 * c-lang.h (c_get_compile_context): Update comment.
5171 (cplus_get_compile_context): Update comment.
5172 * compile/compile.c (compile_to_object): Update calls, don't rely
5173 on function pointer being NULL.
5174 * d-lang.c (d_language_data): Delete la_get_compile_instance
5175 initializer.
5176 * f-lang.c (f_language_data): Likewise.
5177 * go-lang.c (go_language_data): Likewise.
5178 * language.c (unknown_language_data): Likewise.
5179 (auto_language_data): Likewise.
5180 * language.h (language_data): Delete la_get_compile_instance field.
5181 (language_defn::get_compile_instance): New member function.
5182 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5183 initializer.
5184 * objc-lang.c (objc_language_data): Likewise.
5185 * opencl-lang.c (opencl_language_data): Likewise.
5186 * p-lang.c (pascal_language_data): Likewise.
5187 * rust-lang.c (rust_language_data): Likewise.
5188
4009ee92
AB
51892020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5190
5191 * ada-lang.c (ada_add_all_symbols): Update comment.
5192 (ada_iterate_over_symbols): Delete, move implementation to...
5193 (ada_language::iterate_over_symbols): ...here, a new member
5194 function, rewrite to use range based for loop.
5195 (ada_language_data): Delete la_iterate_over_symbols initializer.
5196 * c-lang.c (c_language_data): Likewise.
5197 (cplus_language_data): Likewise.
5198 (asm_language_data): Likewise.
5199 (minimal_language_data): Likewise.
5200 * d-lang.c (d_language_data): Likewise.
5201 * f-lang.c (f_language_data): Likewise.
5202 * go-lang.c (go_language_data): Likewise.
5203 * language.c (unknown_language_data): Likewise.
5204 (auto_language_data): Likewise.
5205 * language.h (language_data): Delete la_iterate_over_symbols field.
5206 (language_defn::iterate_over_symbols): New member function.
5207 (LA_ITERATE_OVER_SYMBOLS): Update.
5208 * linespec.c (iterate_over_all_matching_symtabs): Update.
5209 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5210 initializer.
5211 * objc-lang.c (objc_language_data): Likewise.
5212 * opencl-lang.c (opencl_language_data): Likewise.
5213 * p-lang.c (pascal_language_data): Likewise.
5214 * rust-lang.c (rust_language_data): Likewise.
5215
54f4ca46
AB
52162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5217
5218 * ada-lang.c (ada_language_data): Delete
5219 la_lookup_transparent_type initializer.
5220 * c-lang.c (c_language_data): Likewise.
5221 (cplus_language_data): Likewise.
5222 (cplus_language::lookup_transparent_type): New member function.
5223 (asm_language_data): Delete la_lookup_transparent_type
5224 initializer.
5225 (minimal_language_data): Likewise.
5226 * d-lang.c (d_language_data): Likewise.
5227 * f-lang.c (f_language_data): Likewise.
5228 * go-lang.c (go_language_data): Likewise.
5229 * language.c (unknown_language_data): Likewise.
5230 (auto_language_data): Likewise.
5231 * language.h (struct language_data): Delete
5232 la_lookup_transparent_type field.
5233 (language_defn::lookup_transparent_type): New member function.
5234 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5235 initializer.
5236 * objc-lang.c (objc_language_data): Likewise.
5237 * opencl-lang.c (opencl_language_data): Likewise.
5238 * p-lang.c (pascal_language_data): Likewise.
5239 * rust-lang.c (rust_language_data): Likewise.
5240 * symtab.c (symbol_matches_domain): Update call.
5241
1fb314aa
AB
52422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5243
5244 * ada-lang.c (ada_language_arch_info): Delete function, move
5245 implementation to...
5246 (ada_language::language_arch_info): ...here, a new member
5247 function.
5248 (ada_language_data): Delete la_language_arch_info.
5249 * c-lang.c (c_language_data): Likewise.
5250 (c_language::language_arch_info): New member function.
5251 (cplus_language_arch_info): Delete function, move
5252 implementation to...
5253 (cplus_language::language_arch_info): ...here, a new member
5254 function.
5255 (cplus_language_data): Delete la_language_arch_info.
5256 (asm_language_data): Likewise.
5257 (asm_language::language_arch_info): New member function.
5258 (minimal_language_data): Delete la_language_arch_info.
5259 (minimal_language::language_arch_info): New member function.
5260 * d-lang.c (d_language_arch_info): Delete function, move
5261 implementation to...
5262 (d_language::language_arch_info): ...here, a new member
5263 function.
5264 (d_language_data): Delete la_language_arch_info.
5265 * f-lang.c (f_language_arch_info): Delete function, move
5266 implementation to...
5267 (f_language::language_arch_info): ...here, a new member
5268 function.
5269 (f_language_data): Delete la_language_arch_info.
5270 * go-lang.c (go_language_arch_info): Delete function, move
5271 implementation to...
5272 (go_language::language_arch_info): ...here, a new member
5273 function.
5274 (go_language_data): Delete la_language_arch_info.
5275 * language.c (unknown_language_data): Likewise.
5276 (unknown_language::language_arch_info): New member function.
5277 (auto_language_data): Delete la_language_arch_info.
5278 (auto_language::language_arch_info): New member function.
5279 (language_gdbarch_post_init): Update call to
5280 la_language_arch_info.
5281 * language.h (language_data): Delete la_language_arch_info
5282 function pointer.
5283 (language_defn::language_arch_info): New function.
5284 * m2-lang.c (m2_language_arch_info): Delete function, move
5285 implementation to...
5286 (m2_language::language_arch_info): ...here, a new member
5287 function.
5288 (m2_language_data): Delete la_language_arch_info.
5289 * objc-lang.c (objc_language_arch_info): Delete function, move
5290 implementation to...
5291 (objc_language::language_arch_info): ...here, a new member
5292 function.
5293 (objc_language_data): Delete la_language_arch_info.
5294 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5295 implementation to...
5296 (opencl_language::language_arch_info): ...here, a new member
5297 function.
5298 (opencl_language_data): Delete la_language_arch_info.
5299 * p-lang.c (pascal_language_arch_info): Delete function, move
5300 implementation to...
5301 (pascal_language::language_arch_info): ...here, a new member
5302 function.
5303 (pascal_language_data): Delete la_language_arch_info.
5304 * rust-lang.c (rust_language_arch_info): Delete function, move
5305 implementation to...
5306 (rust_language::language_arch_info): ...here, a new member
5307 function.
5308 (rust_language_data): Delete la_language_arch_info.
5309
48448202
AB
53102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5311
5312 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5313 initializer.
5314 * c-lang.c (c_language_data): Likewise.
5315 (cplus_language_data): Likewise.
5316 (cplus_language::pass_by_reference_info): New method.
5317 (asm_language_data): Delete la_pass_by_reference initializer.
5318 (minimal_language_data): Likewise.
5319 * cp-abi.c (cp_pass_by_reference): Remove use of
5320 default_pass_by_reference.
5321 * d-lang.c (d_language_data): Likewise.
5322 * f-lang.c (f_language_data): Likewise.
5323 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5324 default_pass_by_reference.
5325 * go-lang.c (go_language_data): Likewise.
5326 * language.c (language_pass_by_reference): Update.
5327 (default_pass_by_reference): Delete.
5328 (unknown_language_data): Delete la_pass_by_reference
5329 initializer.
5330 (auto_language_data): Likewise.
5331 * language.h (struct language_data): Delete la_pass_by_reference
5332 field.
5333 (language_defn::pass_by_reference_info): New member function.
5334 (default_pass_by_reference): Delete declaration.
5335 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5336 initializer.
5337 * objc-lang.c (objc_language_data): Likewise.
5338 * opencl-lang.c (opencl_language_data): Likewise.
5339 * p-lang.c (pascal_language_data): Likewise.
5340 * rust-lang.c (rust_language_data): Likewise.
5341
15e5fd35
AB
53422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5343
5344 * ada-lang.c (ada_read_var_value): Delete function, move
5345 implementation to...
5346 (ada_language::read_var_value): ...here.
5347 (ada_language_data): Delete la_read_var_value initializer.
5348 * c-lang.c (c_language_data): Likewise.
5349 (cplus_language_data): Likewise.
5350 (minimal_language_data): Likewise.
5351 * d-lang.c (d_language_data): Likewise.
5352 * f-lang.c (f_language_data): Likewise.
5353 * findvar.c (default_read_var_value): Rename to...
5354 (language_defn::read_var_value): ...this.
5355 * findvar.c (read_var_value): Update header comment, and change to
5356 call member function instead of function pointer.
5357 * go-lang.c (go_language_data): Likewise.
5358 * language.c (unknown_language_data): Delete la_read_var_value
5359 initializer.
5360 (auto_language_data): Likewise.
5361 * language.h (struct language_data): Delete la_read_var_value
5362 field.
5363 (language_defn::read_var_value): New member function.
5364 (default_read_var_value): Delete declaration.
5365 * m2-lang.c (m2_language_data): Delete la_read_var_value
5366 initializer.
5367 * objc-lang.c (objc_language_data): Likewise.
5368 * opencl-lang.c (opencl_language_data): Likewise.
5369 * p-lang.c (pascal_language_data): Likewise.
5370 * rust-lang.c (rust_language_data): Likewise.
5371 * value.h (default_read_var_value): Delete declaration.
5372
5bd40f2a
AB
53732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5374
5375 * ada-lang.c (ada_print_array_index): Delete function, move
5376 implementation to...
5377 (ada_language::print_array_index): ...here.
5378 (ada_language_data): Delete la_print_array_index initializer.
5379 * c-lang.c (c_language_data): Likewise.
5380 (cplus_language_data): Likewise.
5381 (minimal_language_data): Likewise.
5382 * d-lang.c (d_language_data): Likewise.
5383 * f-lang.c (f_language_data): Likewise.
5384 * go-lang.c (go_language_data): Likewise.
5385 * language.c (default_print_array_index): Delete function, move
5386 implementation to...
5387 (language_defn::print_array_index): ...here.
5388 (unknown_language_data): Delete la_print_array_index initializer.
5389 (auto_language_data): Likewise.
5390 * language.h (struct language_data): Delete la_print_array_index
5391 field.
5392 (language_defn::print_array_index): New member function.
5393 (LA_PRINT_ARRAY_INDEX): Update.
5394 (default_print_array_index): Delete declaration.
5395 * m2-lang.c (m2_language_data): Delete la_print_array_index
5396 initializer.
5397 * objc-lang.c (objc_language_data): Likewise.
5398 * opencl-lang.c (opencl_language_data): Likewise.
5399 * p-lang.c (pascal_language_data): Likewise.
5400 * rust-lang.c (rust_language_data): Likewise.
5401
0874fd07
AB
54022020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5403
5404 * gdb/ada-lang.c (ada_language_defn): Convert to...
5405 (ada_language_data): ...this.
5406 (class ada_language): New class.
5407 (ada_language_defn): New static global.
5408 * gdb/c-lang.c (c_language_defn): Convert to...
5409 (c_language_data): ...this.
5410 (class c_language): New class.
5411 (c_language_defn): New static global.
5412 (cplus_language_defn): Convert to...
5413 (cplus_language_data): ...this.
5414 (class cplus_language): New class.
5415 (cplus_language_defn): New static global.
5416 (asm_language_defn): Convert to...
5417 (asm_language_data): ...this.
5418 (class asm_language): New class.
5419 (asm_language_defn): New static global.
5420 (minimal_language_defn): Convert to...
5421 (minimal_language_data): ...this.
5422 (class minimal_language): New class.
5423 (minimal_language_defn): New static global.
5424 * gdb/d-lang.c (d_language_defn): Convert to...
5425 (d_language_data): ...this.
5426 (class d_language): New class.
5427 (d_language_defn): New static global.
5428 * gdb/f-lang.c (f_language_defn): Convert to...
5429 (f_language_data): ...this.
5430 (class f_language): New class.
5431 (f_language_defn): New static global.
5432 * gdb/go-lang.c (go_language_defn): Convert to...
5433 (go_language_data): ...this.
5434 (class go_language): New class.
5435 (go_language_defn): New static global.
5436 * gdb/language.c (unknown_language_defn): Remove declaration.
5437 (current_language): Initialize to nullptr, real initialization is
5438 moved to _initialize_language.
5439 (languages): Delete global.
5440 (language_defn::languages): Define.
5441 (set_language_command): Use language_defn::languages.
5442 (set_language): Likewise.
5443 (range_error): Likewise.
5444 (language_enum): Likewise.
5445 (language_def): Likewise.
5446 (add_set_language_command): Use language_def::languages for the
5447 language list, and language_def to lookup language pointers.
5448 (skip_language_trampoline): Use language_defn::languages.
5449 (unknown_language_defn): Convert to...
5450 (unknown_language_data): ...this.
5451 (class unknown_language): New class.
5452 (unknown_language_defn): New static global.
5453 (auto_language_defn): Convert to...
5454 (auto_language_data): ...this.
5455 (class auto_language): New class.
5456 (auto_language_defn): New static global.
5457 (language_gdbarch_post_init): Use language_defn::languages.
5458 (_initialize_language): Initialize current_language.
5459 * gdb/language.h (struct language_defn): Rename to...
5460 (struct language_data): ...this.
5461 (struct language_defn): New.
5462 (auto_language_defn): Delete.
5463 (unknown_language_defn): Delete.
5464 (minimal_language_defn): Delete.
5465 (ada_language_defn): Delete.
5466 (asm_language_defn): Delete.
5467 (c_language_defn): Delete.
5468 (cplus_language_defn): Delete.
5469 (d_language_defn): Delete.
5470 (f_language_defn): Delete.
5471 (go_language_defn): Delete.
5472 (m2_language_defn): Delete.
5473 (objc_language_defn): Delete.
5474 (opencl_language_defn): Delete.
5475 (pascal_language_defn): Delete.
5476 (rust_language_defn): Delete.
5477 * gdb/m2-lang.c (m2_language_defn): Convert to...
5478 (m2_language_data): ...this.
5479 (class m2_language): New class.
5480 (m2_language_defn): New static global.
5481 * gdb/objc-lang.c (objc_language_defn): Convert to...
5482 (objc_language_data): ...this.
5483 (class objc_language): New class.
5484 (objc_language_defn): New static global.
5485 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5486 (opencl_language_data): ...this.
5487 (class opencl_language): New class.
5488 (opencl_language_defn): New static global.
5489 * gdb/p-lang.c (pascal_language_defn): Convert to...
5490 (pascal_language_data): ...this.
5491 (class pascal_language): New class.
5492 (pascal_language_defn): New static global.
5493 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5494 language pointer, update comment format.
5495 * gdb/rust-lang.c (rust_language_defn): Convert to...
5496 (rust_language_data): ...this.
5497 (class rust_language): New class.
5498 (rust_language_defn): New static global.
5499
1313c56e
AB
55002020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5501
5502 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5503 member variable.
5504 <m_stmt_at_address>: New member variable.
5505 (lnp_state_machine::record_line): Don't record some lines, update
5506 tracking of is_stmt at the same address.
5507 (lnp_state_machine::lnp_state_machine): Initialise new member
5508 variables.
5509
b7ed9f3d
ST
55102020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5511
5512 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5513 "-include gnu-nat-mig.h".
5514 * gnu-nat-mig.h: New file.
5515 * gnu-nat.c: Include "gnu-nat-mig.h".
5516 (exc_server, msg_reply_server, notify_server,
5517 process_reply_server): Remove declarations.
5518
14a8ad62
ST
55192020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5520
5521 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5522 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5523 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5524 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5525 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5526 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5527 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5528 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5529 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5530 to gnu_nat_target class.
5531 * gnu-nat.c: Likewise.
5532 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5533 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5534 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5535 object.
5536 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5537 instead of `gnu_target'.
5538
0af5e106
ST
55392020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5540
5541 * i386-gnu-tdep.c: Include "gdbcore.h"
5542 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5543 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5544 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5545 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5546 i386_gnu_sigcontext_addr): New functions
5547 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5548 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5549 tdep.
5550
078f2fc9
ST
55512020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5552
5553 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5554 before fork_inferior call. Avoid calling it if target_is_pushed returns
5555 true.
5556
53dff92c
ST
55572020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5558
5559 * gnu-nat.h (gnu_target): New variable declaration.
5560 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5561 gnu_target.
5562 * gnu-nat.c (gnu_target): New variable.
5563 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5564 add_thread_silent, and add_thread calls.
5565 (gnu_nat_target::create_inferior): Pass gnu_target to
5566 add_thread_silent, thread_change_ptid call.
5567 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5568 call.
5569
5a8b8627
ST
55702020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5571
5572 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5573 (gnu_nat_target::find_memory_regions): Remove unused
5574 `old_address' variable.
5575
366f550a
ST
55762020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5577
5578 * gnu-nat.c: Include "gdbarch.h".
5579
f14871bf
ST
55802020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5581
5582 * reply_mig_hack.awk (Error return): Cast function through
5583 void *, to bypass compiler function call check.
5584
c6887cfb
ST
55852020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5586
5587 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5588 $(srcdir)/reply_mig_hack.awk.
5589
6930bffe
ST
55902020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5591
5592 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5593
112c22ed
JG
55942020-05-30 Jonny Grant <jg@jguk.org>
5595
5596 * configure.ac (ACX_BUGURL): change bug URL to https.
5597
f68f85b5
PA
55982020-05-30 Pedro Alves <palves@redhat.com>
5599
5600 * cp-support.c (replace_typedefs_template): New.
5601 (replace_typedefs_qualified_name): Handle
5602 DEMANGLE_COMPONENT_TEMPLATE.
5603
976ca316
SM
56042020-05-29 Simon Marchi <simon.marchi@efficios.com>
5605
5606 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5607 dwarf2/index-cache.h, dwarf2/index-write.c,
5608 dwarf2/index-write.h, dwarf2/line-header.c,
5609 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5610 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5611 variables and fields from `dwarf2_per_objfile` to just
5612 `per_objfile` throughout.
5613
989ade05
SM
56142020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5615
5616 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5617 <push_dwarf_reg_entry_value>: Add comment.
5618
c47bae85
KB
56192020-05-28 Kevin Buettner <kevinb@redhat.com>
5620 Keith Seitz <keiths@redhat.com>
5621
5622 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5623 instead of PyEval_ReleaseLock.
5624 (class gdbpy_gil): Move to earlier in file.
5625 (finalize_python): Set gdb_python_initialized.
5626 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5627 when not initialized.
5628
44486dcf
SM
56292020-05-28 Simon Marchi <simon.marchi@efficios.com>
5630
5631 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5632 <push_dwarf_reg_entry_value>: Remove assert. Override
5633 per_objfile with caller_per_objfile.
5634
f030440d
TV
56352020-05-28 Tom de Vries <tdevries@suse.de>
5636
5637 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5638 PR gold/15646 workaround to symbol kind "type".
5639
f0fbb768
TT
56402020-05-27 Tom Tromey <tromey@adacore.com>
5641
5642 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5643
af0b2a3e
TT
56442020-05-27 Tom Tromey <tromey@adacore.com>
5645
5646 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5647 Use htab_find_with_hash.
5648 <add_abbrev>: Remove "abbrev_number" parameter.
5649 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5650 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5651 (hash_abbrev): Add comment.
5652 (abbrev_table::lookup_abbrev): Move to header file.
5653 (abbrev_table::read): Update.
5654
7d00ffec
TT
56552020-05-27 Tom Tromey <tromey@adacore.com>
5656
5657 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5658 method.
5659 <canonical_name>: New member.
5660 <raw_name>: Rename from "name".
5661 (partial_die_info): Initialize canonical_name.
5662 (scan_partial_symbols): Check raw_name.
5663 (partial_die_parent_scope, partial_die_full_name)
5664 (add_partial_symbol, add_partial_subprogram)
5665 (add_partial_enumeration, load_partial_dies): Use "name" method.
5666 (partial_die_info::name): New method.
5667 (partial_die_info::read, guess_partial_die_structure_name)
5668 (partial_die_info::fixup): Update.
5669
697bba18
TT
56702020-05-27 Tom Tromey <tromey@adacore.com>
5671
5672 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5673 <get_ref_die_offset>: Inline.
5674 <get_ref_die_offset_complaint>: New method.
5675 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5676 (attribute::get_ref_die_offset_complaint): Rename from
5677 get_ref_die_offset. Just issue complaint.
5678
c17ace43
HD
56792020-05-27 Hannes Domani <ssbssa@yahoo.de>
5680
5681 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5682
96445f0b
HD
56832020-05-27 Hannes Domani <ssbssa@yahoo.de>
5684
5685 * exec.c (exec_file_attach): Use errno value of first openp failure.
5686
ac637ec3
HD
56872020-05-27 Hannes Domani <ssbssa@yahoo.de>
5688
5689 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5690 Don't close thread handle.
5691
17ee85fc
TT
56922020-05-27 Tom Tromey <tom@tromey.com>
5693 Simon Marchi <simon.marchi@efficios.com>
5694
5695 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5696 shared_ptr.
5697 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5698 member.
5699 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5700 dwarf2_per_bfd_objfile_data_key>: New globals.
5701 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5702 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5703 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5704 shared.
5705 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5706 short-circuit when sharing.
5707 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5708 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5709
39b16f87
SM
57102020-05-27 Simon Marchi <simon.marchi@efficios.com>
5711
5712 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5713 to...
5714 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5715 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5716
fcf23d5b
SM
57172020-05-27 Simon Marchi <simon.marchi@efficios.com>
5718
5719 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5720 build_name_components, find_name_components_bounds>:
5721 Add per_objfile parameter.
5722 (struct mapped_index) <symbol_name_at>: Likewise.
5723 (struct mapped_debug_names): Remove constructor.
5724 <dwarf2_per_objfile>: Remove field.
5725 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5726 (mapped_index_base::find_name_components_bounds,
5727 mapped_index_base::build_name_components,
5728 dw2_expand_symtabs_matching_symbol): Likewise.
5729 (class mock_mapped_index) <symbol_name_at>: Likewise.
5730 (check_match): Likewise.
5731 (check_find_bounds_finds): Likewise.
5732 (test_mapped_index_find_name_component_bounds): Update.
5733 (CHECK_MATCH): Update.
5734 (dw2_expand_symtabs_matching): Update.
5735 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5736 per_objfile parameter.
5737 <find_vec_in_debug_names>: Likewise.
5738 <m_per_objfile>: New field.
5739 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5740 parameter.
5741 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5742 (dw2_debug_names_iterator::next): Update.
5743 (dw2_debug_names_lookup_symbol): Update.
5744 (dw2_debug_names_expand_symtabs_for_function): Update.
5745 (dw2_debug_names_map_matching_symbols): Update.
5746 (dw2_debug_names_expand_symtabs_matching): Update.
5747 (dwarf2_read_debug_names): Update.
5748
7188ed02
SM
57492020-05-27 Simon Marchi <simon.marchi@efficios.com>
5750
5751 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5752 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5753 move to dwarf2_per_objfile.
5754 <read_in_chain>: Remove.
5755 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5756 remove_all_cus, age_comp_units>: New methods.
5757 <m_dwarf2_cus>: New member.
5758 (struct dwarf2_per_cu_data) <cu>: Remove.
5759 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5760 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5761 moved to methods of dwarf2_per_objfile.
5762 (dwarf2_clear_marks): Remove.
5763 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5764 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5765 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5766 (dwarf2_per_objfile::remove_all_cus): New.
5767 (class free_cached_comp_units) <~free_cached_comp_units>:
5768 Update.
5769 (load_cu): Update.
5770 (dw2_do_instantiate_symtab): Adjust.
5771 (fill_in_sig_entry_from_dwo_entry): Adjust.
5772 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5773 (cutu_reader::cutu_reader): Likewise.
5774 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5775 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5776 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5777 and dwarf2_per_objfile::age_comp_units.
5778 (load_partial_comp_unit): Update.
5779 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5780 (process_queue): Likewise.
5781 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5782 backlink.
5783 (dwarf2_read_addr_index): Likewise.
5784 (follow_die_offset): Likewise.
5785 (dwarf2_fetch_die_loc_sect_off): Likewise.
5786 (dwarf2_fetch_constant_bytes): Likewise.
5787 (dwarf2_fetch_die_type_sect_off): Likewise.
5788 (follow_die_sig_1): Likewise.
5789 (load_full_type_unit): Likewise.
5790 (read_signatured_type): Likewise.
5791 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5792 (dwarf2_cu::~dwarf2_cu): Remove.
5793 (dwarf2_per_objfile::get_cu): New.
5794 (dwarf2_per_objfile::set_cu): New.
5795 (age_cached_comp_units): Rename to...
5796 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5797 to std::unordered_map.
5798 (free_one_cached_comp_unit): Rename to...
5799 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5800 to std::unordered_map.
5801 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5802 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5803 a dwarf2_per_objfile in data.
5804 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5805 (dwarf2_clear_marks): Remove.
5806
2e671100
SM
58072020-05-27 Simon Marchi <simon.marchi@efficios.com>
5808
5809 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5810 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5811 (init_tu_and_read_dwo_dies): Likewise.
5812 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5813 (cutu_reader::cutu_reader): Likewise.
5814 (load_partial_comp_unit): Likewise.
5815 (process_psymtab_comp_unit): Update.
5816 (build_type_psymtabs_1): Update.
5817 (process_skeletonless_type_unit): Update.
5818 (load_full_comp_unit): Update.
5819 (find_partial_die): Update.
5820 (dwarf2_read_addr_index): Update.
5821 (read_signatured_type): Update.
5822
2e6a9f79
SM
58232020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5824
5825 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5826 m_header_read_in>: New fields.
5827 <get_header>: New method.
5828 * dwarf2/read.c (per_cu_header_read_in): Remove.
5829 (dwarf2_per_cu_data::get_header): New.
5830 (dwarf2_per_cu_data::addr_size): Update.
5831 (dwarf2_per_cu_data::offset_size): Update.
5832 (dwarf2_per_cu_data::ref_addr_size): Update.
5833
1b555f17
SM
58342020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5835
5836 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5837 (dw2_do_instantiate_symtab): Update.
5838 (queue_and_load_all_dwo_tus): Change parameter from
5839 dwarf2_per_cu_data to dwarf2_cu.
5840 (dwarf2_fetch_die_loc_sect_off): Update.
5841 (dwarf2_fetch_constant_bytes): Update.
5842 (dwarf2_fetch_die_type_sect_off): Update.
5843
8fc0b21d
SM
58442020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5845
5846 * dwarf2/read.c (process_full_comp_unit,
5847 process_full_type_unit): Remove per_cu, per_objfile paramters.
5848 Add dwarf2_cu parameter.
5849 (process_queue): Update.
5850
168c9250
SM
58512020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5852
5853 * dwarf2/read.c (create_cu_from_index_list): Replace
5854 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5855 (create_cus_from_index_list): Likewise.
5856 (create_cus_from_index): Likewise.
5857 (create_signatured_type_table_from_index): Likewise.
5858 (create_cus_from_debug_names_list): Likewise.
5859 (create_cus_from_debug_names): Likewise.
5860 (dwarf2_read_gdb_index): Update.
5861 (dwarf2_read_debug_names): Update.
5862
e286671b
TT
58632020-05-27 Tom Tromey <tom@tromey.com>
5864 Simon Marchi <simon.marchi@efficios.com>
5865
5866 * dwarf2/read.h (struct dwarf2_per_objfile)
5867 <get_type_for_signatured_type, set_type_for_signatured_type>:
5868 New methods.
5869 <m_type_map>: New member.
5870 (struct signatured_type) <type>: Remove.
5871 * dwarf2/read.c
5872 (dwarf2_per_objfile::get_type_for_signatured_type,
5873 dwarf2_per_objfile::set_type_for_signatured_type): New.
5874 (get_signatured_type): Use new methods.
5875
8adb8487
TT
58762020-05-27 Tom Tromey <tom@tromey.com>
5877 Simon Marchi <simon.marchi@efficios.com>
5878
5879 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5880 (struct dwarf2_per_objfile) <type_units>: New member.
5881 <get_type_unit_group_unshareable>: New method.
5882 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5883 num_symtabs, symtabs>: Remove; move to
5884 type_unit_group_unshareable.
5885 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5886 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5887 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5888
127bbf4b
SM
58892020-05-27 Simon Marchi <simon.marchi@efficios.com>
5890
5891 * dwarf2/read.h (struct dwarf2_per_cu_data):
5892 <dwarf2_per_objfile>: Remove.
5893 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5894 dwarf2_per_objfile.
5895 (create_signatured_type_table_from_index): Likewise.
5896 (create_signatured_type_table_from_debug_names): Likewise.
5897 (create_debug_type_hash_table): Likewise.
5898 (fill_in_sig_entry_from_dwo_entry): Likewise.
5899 (create_type_unit_group): Likewise.
5900 (read_comp_units_from_section): Likewise.
5901 (create_cus_hash_table): Likewise.
5902
f6e649dd
SM
59032020-05-27 Simon Marchi <simon.marchi@efficios.com>
5904
5905 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5906 dwarf2_per_cu_data::dwarf2_per_objfile.
5907 (compute_compunit_symtab_includes): Likewise.
5908 (dwarf2_cu::start_symtab): Likewise.
5909
aa66c379
SM
59102020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5911
5912 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5913 parameter.
5914 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5915 (read_namespace_alias): Update.
5916 (lookup_die_type): Update.
5917 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5918 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5919 Update.
5920 (disassemble_dwarf_expression): Update.
5921
120ce1b5
SM
59222020-05-27 Simon Marchi <simon.marchi@efficios.com>
5923
5924 * dwarf2/read.h (struct dwarf2_queue_item): Add
5925 dwarf2_per_objfile parameter, assign new parameter.
5926 <per_objfile>: New field.
5927 * dwarf2/read.c (free_one_cached_comp_unit): Add
5928 dwarf2_per_objfile parameter.
5929 (queue_comp_unit): Likewise.
5930 (dw2_do_instantiate_symtab): Update.
5931 (process_psymtab_comp_unit): Update.
5932 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5933 (process_imported_unit_die): Update.
5934 (queue_and_load_dwo_tu): Update.
5935 (follow_die_offset): Update.
5936 (follow_die_sig_1): Update.
5937
9f47c707
SM
59382020-05-27 Simon Marchi <simon.marchi@efficios.com>
5939
5940 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5941 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5942 (read_call_site_scope): Assign per_objfile.
5943 (dwarf2_per_cu_data::objfile): Remove.
5944 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5945 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5946 dwarf2_per_objfile parameter.
5947 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5948 dwarf2_per_objfile parameter.
5949 (dwarf_expr_reg_to_entry_parameter): Add output
5950 dwarf2_per_objfile parameter.
5951 (locexpr_get_frame_base): Update.
5952 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5953 <push_dwarf_reg_entry_value>: Update.
5954 <call_site_to_target_addr>: Update.
5955 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5956 parameter.
5957 (value_of_dwarf_reg_entry): Update.
5958 (rw_pieced_value): Update.
5959 (indirect_synthetic_pointer): Update.
5960 (dwarf2_evaluate_property): Update.
5961 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5962 parameter.
5963 (locexpr_read_variable): Update.
5964 (locexpr_get_symbol_read_needs): Update.
5965 (loclist_read_variable): Update.
5966
14095eb3
SM
59672020-05-27 Simon Marchi <simon.marchi@efficios.com>
5968
5969 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5970 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5971 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5972 parameter.
5973 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5974 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5975 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5976 parameter.
5977 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5978 sect_variable_value): Add dwarf2_per_objfile parameter.
5979 (class dwarf_evaluate_loc_desc) <dwarf_call,
5980 dwarf_variable_value>: Update.
5981 (fetch_const_value_from_synthetic_pointer): Add
5982 dwarf2_per_objfile parameter.
5983 (fetch_const_value_from_synthetic_pointer): Update.
5984 (coerced_pieced_ref): Update.
5985 (class symbol_needs_eval_context) <dwarf_call,
5986 dwarf_variable_value>: Update.
5987 (dwarf2_compile_expr_to_ax): Update.
5988
3c3cd3d4
SM
59892020-05-27 Simon Marchi <simon.marchi@efficios.com>
5990
5991 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5992 parameter.
5993 (dwarf2_evaluate_loc_desc_full): Update.
5994
82ca3f51
SM
59952020-05-27 Simon Marchi <simon.marchi@efficios.com>
5996
5997 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5998 parameter.
5999 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6000 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6001 dwarf2_per_objfile parameter.
6002 (decode_debug_loc_dwo_addresses): Likewise.
6003 (dwarf2_find_location_expression): Update.
6004 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6005 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6006 parameter.
6007 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6008 parameter.
6009 (locexpr_describe_location_1): Likewise.
6010 (locexpr_describe_location): Update.
6011
4b167ea1
SM
60122020-05-27 Simon Marchi <simon.marchi@efficios.com>
6013
6014 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6015 Remove.
6016 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6017 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6018 (dwarf2_compile_property_to_c): Update.
6019 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6020 use text offset from objfile.
6021 (locexpr_tracepoint_var_ref): Update.
6022 (locexpr_generate_c_location): Update.
6023 (loclist_describe_location): Update.
6024 (loclist_tracepoint_var_ref): Update.
6025 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6026 dwarf2_per_objfile parameter.
6027 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6028 use text offset from objfile.
6029 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6030
89b07335
SM
60312020-05-27 Simon Marchi <simon.marchi@efficios.com>
6032
6033 * dwarf2/expr.h (struct dwarf_expr_context)
6034 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6035 <offset>: Remove.
6036 <per_objfile>: New member.
6037 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6038 dwarf2_per_objfile parameter. Don't set offset, set
6039 per_objfile.
6040 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6041 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6042 a dwarf2_per_objfile object instead of an offset.
6043 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6044 constructor.
6045 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6046 to dwarf2_expr_executor constructor. Don't set offset.
6047 (dwarf2_fetch_cfa_info): Update.
6048 (struct dwarf2_frame_cache) <text_offset>: Remove.
6049 <per_objfile>: New field.
6050 (dwarf2_frame_cache): Update.
6051 (dwarf2_frame_prev_register): Update.
6052 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6053 <dwarf_evaluate_loc_desc>: Add constructor.
6054 (dwarf2_evaluate_loc_desc_full): Update.
6055 (dwarf2_locexpr_baton_eval): Update.
6056 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6057 Add constructor.
6058 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6059
293e7e51
SM
60602020-05-27 Simon Marchi <simon.marchi@efficios.com>
6061
6062 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6063 addr_sized_int_type>: Move to dwarf2_cu.
6064 <int_type>: Move to dwarf2_per_objfile.
6065 (struct dwarf2_per_objfile) <int_type>: Move here.
6066 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6067 addr_sized_int_type>: Move here.
6068 (read_func_scope): Update.
6069 (read_array_type): Update.
6070 (read_tag_string_type): Update.
6071 (attr_to_dynamic_prop): Update.
6072 (dwarf2_per_cu_data::int_type): Rename to...
6073 (dwarf2_per_objfile::int_type): ... this.
6074 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6075 (dwarf2_cu::addr_sized_int_type): ... this.
6076 (read_subrange_type): Update.
6077 (dwarf2_per_cu_data::addr_type): Rename to...
6078 (dwarf2_cu::addr_type): ... this.
6079 (set_die_type): Update.
6080
64874a40
SM
60812020-05-27 Simon Marchi <simon.marchi@efficios.com>
6082
6083 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6084 data through per_cu->cu.
6085
4ab09049
SM
60862020-05-27 Simon Marchi <simon.marchi@efficios.com>
6087
6088 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6089 dwarf2_per_cu_data parameter fo dwarf2_cu.
6090 (lookup_dwo_type_unit): Likewise.
6091 (read_cutu_die_from_dwo): Likewise.
6092 (lookup_dwo_unit): Likewise.
6093 (open_and_init_dwo_file): Likewise.
6094 (lookup_dwo_cutu): Likewise.
6095 (lookup_dwo_comp_unit): Likewise.
6096 (lookup_dwo_type_unit): Likewise.
6097 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6098 (cutu_reader::cutu_reader): Update.
6099
47b14e86
SM
61002020-05-27 Simon Marchi <simon.marchi@efficios.com>
6101
6102 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6103 parameter.
6104 (process_full_type_unit): Likewise.
6105 (process_queue): Update.
6106
43182c09
SM
61072020-05-27 Simon Marchi <simon.marchi@efficios.com>
6108
6109 * dwarf2/read.c (recursively_compute_inclusions): Add
6110 dwarf2_per_objfile parameter.
6111 (compute_compunit_symtab_includes): Likewise.
6112 (process_cu_includes): Update.
6113
7aa104c4
SM
61142020-05-27 Simon Marchi <simon.marchi@efficios.com>
6115
6116 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6117 parameter.
6118 (create_type_unit_group): Update.
6119 (process_psymtab_comp_unit_reader): Update.
6120 (build_type_psymtabs_reader): Update.
6121
e3beb21d
SM
61222020-05-27 Simon Marchi <simon.marchi@efficios.com>
6123
6124 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6125 object through m_this_cu->cu.
6126
d460f660
SM
61272020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6128
6129 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6130 the info parameter.
6131 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6132
ab432490
SM
61332020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6134
6135 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6136 per_objfile parameter.
6137 (load_full_type_unit): Add per_objfile parameter.
6138 (read_signatured_type): Likewise.
6139 (load_full_comp_unit): Likewise.
6140 (load_cu): Likewise.
6141 (dw2_do_instantiate_symtab): Likewise.
6142 (dw2_get_file_names): Likewise.
6143 (dw2_map_symtabs_matching_filename): Update.
6144 (dw_expand_symtabs_matching_file_matcher): Update.
6145 (dw2_map_symbol_filenames): Update.
6146 (process_psymtab_comp_unit): Add per_objfile parameter.
6147 (build_type_psymtabs_1): Update.
6148 (process_skeletonless_type_unit): Update.
6149 (dwarf2_build_psymtabs_hard): Update.
6150 (load_partial_comp_unit): Add per_objfile parameter.
6151 (scan_partial_symbols): Update.
6152 (load_full_comp_unit): Add per_objfile parameter.
6153 (process_imported_unit_die): Update.
6154 (create_cus_hash_table): Update.
6155 (find_partial_die): Update.
6156 (dwarf2_read_addr_index): Update.
6157 (follow_die_offset): Update.
6158 (dwarf2_fetch_die_loc_sect_off): Update.
6159 (dwarf2_fetch_constant_bytes): Update.
6160 (dwarf2_fetch_die_type_sect_off): Update.
6161 (follow_die_sig_1): Update.
6162 (load_full_type_unit): Add per_objfile parameter.
6163 (read_signatured_type): Likewise.
6164
313bad1b
SM
61652020-05-27 Simon Marchi <simon.marchi@efficios.com>
6166
6167 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6168 of objfile_name.
6169
c3699833
SM
61702020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6171
6172 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6173 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6174 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6175 field.
6176 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6177 (create_cus_from_index): Update.
6178 (dwarf2_read_gdb_index): Update.
6179 (create_cus_from_debug_names): Update.
6180 (dwarf2_read_debug_names): Update.
6181 (get_abbrev_section_for_cu): Update.
6182 (create_all_comp_units): Update.
6183 (read_attribute_value): Update.
6184 (get_debug_line_section): Update.
6185 * dwarf2/index-cache.c (index_cache::store): Update.
6186 * dwarf2/index-write.c (save_gdb_index_command): Update.
6187 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6188
1859c670
SM
61892020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6190
6191 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6192 member.
6193 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6194 dwarf2_per_cu_data::per_bfd.
6195 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6196 (create_type_unit_group): Likewise.
6197 (queue_comp_unit): Remove reference to
6198 per_cu->dwarf2_per_objfile.
6199 (maybe_queue_comp_unit): Likewise.
6200 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6201 (create_cus_hash_table): Assign new field.
6202
5e22e966
SM
62032020-05-27 Simon Marchi <simon.marchi@efficios.com>
6204
6205 * dwarf2/read.c: Replace
6206 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6207 dwarf2_cu->per_objfile throughout.
6208
97a1449a
SM
62092020-05-27 Simon Marchi <simon.marchi@efficios.com>
6210
6211 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6212 parameter, don't use per_cu->dwarf2_per_objfile.
6213 (dw2_instantiate_symtab): Likewise.
6214 (dw2_find_last_source_symtab): Update.
6215 (dw2_map_expand_apply): Update.
6216 (dw2_lookup_symbol): Update.
6217 (dw2_expand_symtabs_for_function): Update.
6218 (dw2_expand_all_symtabs): Update.
6219 (dw2_expand_symtabs_with_fullname): Update.
6220 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6221 don't use per_cu->dwarf2_per_objfile.
6222 (dw2_expand_marked_cus): Update.
6223 (dw2_find_pc_sect_compunit_symtab): Update.
6224 (dw2_debug_names_lookup_symbol): Update.
6225 (dw2_debug_names_expand_symtabs_for_function): Update.
6226 (dw2_debug_names_map_matching_symbols): Update.
6227 (dwarf2_psymtab::expand_psymtab): Update.
6228
9e021579
SM
62292020-05-27 Simon Marchi <simon.marchi@efficios.com>
6230
6231 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6232 <per_objfile>: New member.
6233 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6234 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6235 call to dwarf2_cu.
6236 (cutu_reader::cutu_reader): Update.
6237 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6238
ae090bdb
SM
62392020-05-27 Simon Marchi <simon.marchi@efficios.com>
6240
6241 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6242 struct dwarf2_per_objfile.
6243 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6244 dwarf2_per_bfd.
6245 * dwarf2/read.c (set_die_type): Update.
6246 (get_die_type_at_offset): Update.
6247
af758d11
SM
62482020-05-27 Tom Tromey <tom@tromey.com>
6249 Simon Marchi <simon.marchi@efficios.com>
6250
6251 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6252 method.
6253 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6254 get_symtab, set_symtab>: New methods.
6255 <m_symtabs>: New field.
6256 (struct dwarf2_psymtab): Derive from partial_symtab.
6257 <readin_p, get_compunit_symtab>: Declare methods.
6258 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6259 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6260 New methods.
6261 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6262 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6263 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6264 (dw2_symtab_iter_next, dw2_print_stats)
6265 (dw2_expand_symtabs_with_fullname)
6266 (dw2_expand_symtabs_matching_one)
6267 (dw_expand_symtabs_matching_file_matcher)
6268 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6269 (dw2_debug_names_iterator::next)
6270 (dw2_debug_names_map_matching_symbols)
6271 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6272 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6273 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6274 New methods.
6275 (get_compunit_symtab, process_full_comp_unit)
6276 (process_full_type_unit): Update.
6277 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6278
5989a64e
SM
62792020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6280
6281 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6282 then introduce a new dwarf2_per_objfile type.
6283 <read_line_string>: Move to the new dwarf2_per_objfile type.
6284 <objfile>: Likewise.
6285 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6286 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6287 dwarf2_per_objfile->per_bfd.
6288 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6289 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6290 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6291 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6292 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6293 (dwarf2_per_objfile::locate_sections): Rename to...
6294 (dwarf2_per_bfd::locate_sections): ... this.
6295 (dwarf2_per_objfile::get_cutu): Rename to...
6296 (dwarf2_per_bfd::get_cutu): ... this.
6297 (dwarf2_per_objfile::get_cu): Rename to...
6298 (dwarf2_per_bfd::get_cu): ... this.
6299 (dwarf2_per_objfile::get_tu): Rename to...
6300 (dwarf2_per_bfd::get_tu): ... this.
6301 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6302 (dwarf2_per_bfd::allocate_per_cu): ... this.
6303 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6304 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6305 (get_gdb_index_contents_ftype): Change parameter from
6306 dwarf2_per_objfile to dwarf2_per_bfd.
6307 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6308 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6309
a50264ba
TT
63102020-05-27 Tom Tromey <tom@tromey.com>
6311 Simon Marchi <simon.marchi@efficios.com>
6312
6313 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6314 (allocate_piece_closure): Set "per_objfile" member.
6315 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6316 (locexpr_describe_location, loclist_describe_location): Use new
6317 member.
6318 * dwarf2/read.c (read_call_site_scope)
6319 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6320 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6321 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6322 handle_data_member_location): Set per_objfile member.
6323 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6324 member.
6325 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6326
d3473f0c
TT
63272020-05-27 Tom Tromey <tom@tromey.com>
6328
6329 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6330 allocate_signatured_type>: Declare new methods.
6331 <m_num_psymtabs>: New member.
6332 (struct dwarf2_per_cu_data) <index>: New member.
6333 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6334 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6335 (create_cu_from_index_list): Use allocate_per_cu.
6336 (create_signatured_type_table_from_index)
6337 (create_signatured_type_table_from_debug_names)
6338 (create_debug_type_hash_table, add_type_unit)
6339 (read_comp_units_from_section): Use allocate_signatured_type.
6340
5717c425
TT
63412020-05-27 Tom Tromey <tom@tromey.com>
6342
6343 * psymtab.c (partial_map_expand_apply)
6344 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6345 (psym_lookup_global_symbol_language)
6346 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6347 (psym_print_stats, psym_expand_symtabs_for_function)
6348 (psym_map_symbol_filenames, psym_map_matching_symbols)
6349 (psym_expand_symtabs_matching)
6350 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6351 (maintenance_check_psymtabs): Update.
6352 * psympriv.h (struct partial_symtab) <readin_p,
6353 get_compunit_symtab>: Add objfile parameter.
6354 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6355 Likewise.
6356 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6357 get_compunit_symtab>: Likewise.
6358 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6359
45940949
TT
63602020-05-27 Tom Tromey <tom@tromey.com>
6361
6362 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6363 member.
6364 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6365 (create_cu_from_index_list)
6366 (create_signatured_type_table_from_index)
6367 (create_signatured_type_table_from_debug_names)
6368 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6369 (dwarf2_create_include_psymtab)
6370 (create_debug_type_hash_table, add_type_unit)
6371 (create_type_unit_group, read_comp_units_from_section)
6372 (dwarf2_compute_name, create_cus_hash_table)
6373 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6374 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6375 obstack.
6376 (dw2_get_real_path): Likewise. Change argument to
6377 dwarf2_per_objfile.
6378
f8c6d152
LM
63792020-05-27 Luis Machado <luis.machado@linaro.org>
6380
6381 PR tdep/26000
6382 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6383 for ldrd (immediate).
6384
e98d2e6d
PW
63852020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6386
6387 * command.h: Add comment giving the name of class_tui.
6388 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6389 create the fake command for the help for class_tui.
6390
53a47a3e
TT
63912020-05-26 Tom Tromey <tromey@adacore.com>
6392
6393 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6394 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6395 (val_atr): New function.
6396 (value_val_atr): Use it.
6397 * ada-valprint.c (print_optional_low_bound): Change low bound
6398 handling for enums.
6399 (val_print_packed_array_elements): Don't call discrete_position.
6400 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6401 discrete_position for enum types.
6402 * language.c (default_print_array_index): Change type.
6403 * language.h (struct language_defn) <la_print_array_index>: Add
6404 index_type parameter, change type of index_value.
6405 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6406 (default_print_array_index): Update.
6407 * valprint.c (maybe_print_array_index): Don't call
6408 value_from_longest. Update.
6409 (value_print_array_elements): Don't call discrete_position.
6410
0bc2354b
TT
64112020-05-26 Tom Tromey <tromey@adacore.com>
6412
6413 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6414 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6415
1218a4bf
CDA
64162020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6417
6418 PR gdb/13519
6419 * avr-tdep.c (avr_integer_to_address): Return data or code
6420 address accordingly to the second 'type' argument of the
6421 function.
6422
92651b1d
MW
64232020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6424
6425 * infcmd.c, inferior.h: (construct_inferior_arguments):
6426 Moved function from here to gdbsupport/common-inferior.{h,cc}
6427
0a4f5f8c
TT
64282020-05-23 Tom Tromey <tom@tromey.com>
6429
6430 Revert commit eca1f90c:
6431 * NEWS: Remove entry for completion styling.
6432 * completer.c (_rl_completion_prefix_display_length): Move
6433 declaration later.
6434 (gdb_fnprint): Revert.
6435 (gdb_display_match_list_1): Likewise.
6436 * cli/cli-style.c (completion_prefix_style)
6437 (completion_difference_style, completion_suffix_style): Remove.
6438 (_initialize_cli_style): Revert.
6439 * cli/cli-style.h (completion_prefix_style)
6440 (completion_difference_style, completion_suffix_style): Don't
6441 declare.
6442
e08bd6c5
PA
64432020-05-24 Pedro Alves <palves@redhat.com>
6444
6445 * symtab.c (completion_list_add_name): Return boolean indication
6446 of whether the symbol matched.
6447 (completion_list_add_symbol): Don't try to remove C++ aliases if
6448 the symbol didn't match in the first place.
6449 * symtab.h (completion_list_add_name): Return bool.
6450
ceacbf6e
SM
64512020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6452
6453 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6454 type::field.
6455
26f16254
JB
64562020-05-23 Joel Brobecker <brobecker@adacore.com>
6457
6458 GDB 9.2 released.
6459
eca1f90c
TT
64602020-05-23 Tom Tromey <tom@tromey.com>
6461
6462 * NEWS: Add entry for completion styling.
6463 * completer.c (_rl_completion_prefix_display_length): Move
6464 declaration earlier.
6465 (gdb_fnprint): Use completion_style.
6466 (gdb_display_match_list_1): Likewise.
6467 * cli/cli-style.c (completion_prefix_style)
6468 (completion_difference_style, completion_suffix_style): New
6469 globals.
6470 (_initialize_cli_style): Register new globals.
6471 * cli/cli-style.h (completion_prefix_style)
6472 (completion_difference_style, completion_suffix_style): Declare.
6473
51e2cfa2
PA
64742020-05-23 Pedro Alves <palves@redhat.com>
6475
6476 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6477 (parse_escape): Use ISDIGIT instead of isdigit.
6478 (puts_debug): Use gdb_isprint instead of isprint.
6479 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6480 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6481 ISSPACE instead of isspace.
6482 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6483 instead of isspace.
6484 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6485 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6486 instead of isxdigit and ISDIGIT instead of isdigit.
6487
80fc5e77
SM
64882020-05-22 Simon Marchi <simon.marchi@efficios.com>
6489
6490 * gdbtypes.h (struct type) <field>: New method.
6491 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6492 or type::field.
6493
3cabb6b0
SM
64942020-05-22 Simon Marchi <simon.marchi@efficios.com>
6495
6496 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6497 (TYPE_FIELDS): Use type::fields. Change all call sites that
6498 modify the propery to use type::set_fields instead.
6499
1f704f76
SM
65002020-05-22 Simon Marchi <simon.marchi@efficios.com>
6501
6502 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6503 type::num_fields instead.
6504
5e33d5f4
SM
65052020-05-22 Simon Marchi <simon.marchi@efficios.com>
6506
6507 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6508 methods.
6509 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6510 that modify the number of fields to use type::set_num_fields
6511 instead.
6512
9392ebb3
TT
65132020-05-22 Tom Tromey <tromey@adacore.com>
6514
6515 * compile/compile-object-load.h (munmap_list_free): Don't
6516 declare.
6517
7c13f4e8
AB
65182020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6519
6520 * annotate.c (annotate_source_line): Update return type, add call
6521 to update current symtab and line.
6522 * annotate.h (annotate_source_line): Update return type, and
6523 extend header comment.
6524 * source.c (info_line_command): Check annotation_level before
6525 calling annotate_source_line.
6526 * stack.c (print_frame_info): If calling annotate_source_line
6527 returns true, then don't print any other source line information.
6528
aa370940
SM
65292020-05-21 Simon Marchi <simon.marchi@efficios.com>
6530
6531 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6532
84d53fa9
SM
65332020-05-21 Simon Marchi <simon.marchi@efficios.com>
6534
6535 * coffread.c (patch_type): Remove NULL check before xfree.
6536 * corefile.c (set_gnutarget): Likewise.
6537 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6538 * exec.c (build_section_table): Likewise.
6539 * remote.c (remote_target::pass_signals): Likewise.
6540 * utils.c (n_spaces): Likewise.
6541 * cli/cli-script.c (document_command): Likewise.
6542 * i386-windows-tdep.c (core_process_module_section): Likewise.
6543 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6544
9d428aae
SM
65452020-05-20 Simon Marchi <simon.marchi@efficios.com>
6546
6547 * symfile.c (reread_symbols): Clear objfile's section_offsets
6548 vector and section indices, re-compute them by calling
6549 sym_offsets.
6550
250106a7
TT
65512020-05-20 Tom Tromey <tromey@adacore.com>
6552
6553 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6554 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6555
9a0bacfb
TV
65562020-05-20 Tom de Vries <tdevries@suse.de>
6557
6558 PR symtab/25833
6559 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6560
7b958a48
AM
65612020-05-20 Alan Modra <amodra@gmail.com>
6562
6563 PR 25993
6564 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6565 bfd_set_filename.
6566 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6567 passed to bfd_set_filename.
6568 * symfile-mem.c (add_vsyscall_page): Likewise for string
6569 passed to symbol_file_add_from_memory.
6570 (symbol_file_add_from_memory): Make name param a const char* and
6571 don't strdup.
6572
c7e97679
AM
65732020-05-20 Alan Modra <amodra@gmail.com>
6574
6575 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6576 rather than accessing bfd->filename directly.
6577 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6578 and use bfd_section_name.
6579 * dwarf2/frame.c (decode_frame_entry): Likewise.
6580 * exec.c (exec_set_section_address): Likewise.
6581 * solib-aix.c (solib_aix_bfd_open): Likewise.
6582 * stap-probe.c (get_stap_base_address): Likewise.
6583 * symfile.c (reread_symbols): Likewise.
6584
563c591b
TT
65852020-05-19 Tom Tromey <tromey@adacore.com>
6586
6587 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6588
f408d82c
SM
65892020-05-19 Simon Marchi <simon.marchi@efficios.com>
6590
6591 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6592
98c59b52
PA
65932020-05-19 Pedro Alves <palves@redhat.com>
6594
6595 * NEWS (set exec-file-mismatch): Adjust entry.
6596 * exec.c: Include "build-id.h".
6597 (validate_exec_file): Try to match build IDs instead of filenames.
6598 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6599 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6600 and pass down 'warn_if_slow'.
6601 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6602 gdb_bfd_open_closure to pass it down.
6603 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6604
4111f652
PA
66052020-05-19 Pedro Alves <palves@redhat.com>
6606
6607 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6608 * target.c (target_fileio_open_1): Rename to target_fileio_open
6609 and make extern. Use bool.
6610 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6611 (target_fileio_read_alloc_1): Adjust.
6612 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6613 (target_fileio_open_warn_if_slow): Delete declaration.
6614
ad80db5b
PA
66152020-05-19 Pedro Alves <palves@redhat.com>
6616
6617 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6618 Adjust all callers.
6619
1d6ce4d3
YS
66202020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6621
6622 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6623 whether disp is negative.
6624
9005fbbb
SM
66252020-05-19 Simon Marchi <simon.marchi@efficios.com>
6626
6627 * symfile.h (struct symfile_segment_data)
6628 <~symfile_segment_data>: Remove.
6629 <segment_info>: Change to std::vector.
6630 * symfile.c (default_symfile_segments): Update.
6631 * elfread.c (elf_symfile_segments): Update.
6632
68b888ff
SM
66332020-05-19 Simon Marchi <simon.marchi@efficios.com>
6634
6635 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6636 <segments>: New.
6637 <segment_bases, segment_sizes>: Remove.
6638 * symfile.c (default_symfile_segments): Update.
6639 * elfread.c (elf_symfile_segments): Update.
6640 * remote.c (remote_target::get_offsets): Update.
6641 * solib-target.c (solib_target_relocate_section_addresses):
6642 Update.
6643
62982abd
SM
66442020-05-19 Simon Marchi <simon.marchi@efficios.com>
6645
6646 * symfile.h (struct symfile_segment_data): Initialize fields.
6647 <~symfile_segment_data>: Add.
6648 (symfile_segment_data_up): New.
6649 (struct sym_fns) <sym_segments>: Return a
6650 symfile_segment_data_up.
6651 (default_symfile_segments): Return a symfile_segment_data_up.
6652 (free_symfile_segment_data): Remove.
6653 (get_symfile_segment_data): Return a symfile_segment_data_up.
6654 * symfile.c (default_symfile_segments): Likewise.
6655 (get_symfile_segment_data): Likewise.
6656 (free_symfile_segment_data): Remove.
6657 (symfile_find_segment_sections): Update.
6658 * elfread.c (elf_symfile_segments): Return a
6659 symfile_segment_data_up.
6660 * remote.c (remote_target::get_offsets): Update.
6661 * solib-target.c (solib_target_relocate_section_addresses):
6662 Update.
6663 * symfile-debug.c (debug_sym_segments): Return a
6664 symfile_segment_data_up.
6665
7f204339
RO
66662020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6667
e52a0f1b
RO
6668 PR build/25981
6669 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6670 Hardcode register numbers.
6671
7f204339
RO
6672 PR build/25981
6673 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6674 procfs_find_LDT_entry): Remove.
6675 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6676 procfs_find_LDT_entry): Remove.
6677 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6678 Remove.
6679
7f32a4d5
PA
66802020-05-17 Pedro Alves <palves@redhat.com>
6681 Andrew Burgess <andrew.burgess@embecosm.com>
6682 Keno Fischer <keno@juliacomputing.com>
6683
6684 PR gdb/25741
6685 * breakpoint.c (build_target_condition_list): Update comments.
6686 (build_target_command_list): Update comments and skip matching
6687 locations.
6688 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6689 a separate function. Simplify "set breakpoint auto-hw off"
6690 handling.
6691 (insert_breakpoints): Update comment.
6692 (tracepoint_locations_match): New parameter. For breakpoints,
6693 compare location types too, if the caller wants to.
6694 (handle_automatic_hardware_breakpoints): New functions.
6695 (bp_location_is_less_than): Also sort by location type and
6696 hardware breakpoint length.
6697 (update_global_location_list): Handle "set breakpoint auto-hw on"
6698 here.
6699 (update_breakpoint_locations): Ask breakpoint_locations_match to
6700 ignore location types.
6701
7d93a1e0
SM
67022020-05-16 Simon Marchi <simon.marchi@efficios.com>
6703
6704 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6705 type::name instead.
6706
d0e39ea2
SM
67072020-05-16 Simon Marchi <simon.marchi@efficios.com>
6708
6709 * gdbtypes.h (struct type) <name, set_name>: New methods.
6710 (TYPE_CODE): Use type::name. Change all call sites used to set
6711 the name to use type::set_name instead.
6712
2dab0c7b
TT
67132020-05-16 Tom Tromey <tom@tromey.com>
6714
6715 * top.c (quit_force): Update.
6716 * infrun.c (handle_no_resumed): Update.
6717 * top.h (all_uis): New function.
6718 (ALL_UIS): Remove.
6719
59f7bd8d
SM
67202020-05-16 Simon Marchi <simon.marchi@efficios.com>
6721
6722 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6723
9bf058f0
PA
67242020-05-16 Pedro Alves <palves@redhat.com>
6725
6726 * ia64-linux-nat.c
6727 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6728 Declare method.
6729 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6730
8f86ae1a
SM
67312020-05-15 Simon Marchi <simon.marchi@efficios.com>
6732
6733 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6734 (sparc64_adi_info): Likewise.
6735
d6bc0792
TT
67362020-05-15 Tom Tromey <tom@tromey.com>
6737
6738 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6739 block_objfile.
6740 (lookup_objfile_from_block): Remove.
6741 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6742 (lookup_global_symbol): Use block_objfile.
6743 * symtab.h (lookup_objfile_from_block): Don't declare.
6744 * printcmd.c (clear_dangling_display_expressions): Use
6745 block_objfile.
6746 * parse.c (operator_check_standard): Use block_objfile.
6747
8c14c3a3
TT
67482020-05-15 Tom Tromey <tom@tromey.com>
6749
6750 * language.c (language_alloc_type_symbol): Set
6751 SYMBOL_SECTION.
6752 * symtab.c (initialize_objfile_symbol): Remove.
6753 (allocate_symbol): Remove.
6754 (allocate_template_symbol): Remove.
6755 * dwarf2/read.c (fixup_go_packaging): Use "new".
6756 (new_symbol): Use "new".
6757 (read_variable): Don't call initialize_objfile_symbol. Use
6758 "new".
6759 (read_func_scope): Use "new".
6760 * xcoffread.c (process_xcoff_symbol): Don't call
6761 initialize_objfile_symbol.
6762 (SYMBOL_DUP): Remove.
6763 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6764 "new".
6765 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6766 (allocate_template_symbol): Don't declare.
6767 (struct symbol): Add copy constructor. Change defaults.
6768 * jit.c (finalize_symtab): Use "new".
6769 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6770 Use "new".
6771 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6772 (common_block_end): Use "new".
6773 * mdebugread.c (parse_symbol): Use "new".
6774 (new_symbol): Likewise.
6775
5b4a1a8d
PW
67762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6777
6778 * NEWS: Mention changes to help and apropos.
6779
57b4f16e
PW
67802020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6781
6782 * command.h (enum command_class): Improve comments, document
6783 that class_alias is for user-defined aliases, give the class
6784 name for each class, remove unused class_xdb.
6785 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6786 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6787 by a precise class.
6788 * infcmd.c (_initialize_infcmd): Likewise.
6789 * reverse.c (_initialize_reverse): Likewise.
6790 * stack.c (_initialize_stack): Likewise.
6791 * symfile.c (_initialize_symfile): Likewise.
6792 * tracepoint.c (_initialize_tracepoint): Likewise.
6793
7c05caf7
PW
67942020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6795
6796 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6797 when their aliased command is traversed.
6798 (help_cmd): Add fput_command_names_styled call to
6799 output command name and aliases when command has an alias.
6800
3b3aaacb
PW
68012020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6802
6803 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6804 * cli/cli-decode.c (help_cmd_list): Declare as static,
6805 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6806 a command together with the command.
6807 (fput_command_name_styled, fput_command_names_styled): New functions.
6808 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6809 fput_command_name_styled.
6810 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6811 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6812
7aa1b46f
PW
68132020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6814
6815 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6816 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6817 * command.h (cmd_show_list): Likewise.
6818 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6819 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6820
89bcba74
PW
68212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6822
6823 * unittests/command-def-selftests.c (traverse_command_structure):
6824 Verify all commands of a list have the same prefix command and
6825 that only the top cmdlist commands have a null prefix.
6826
3f4d92eb
PW
68272020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6828
6829 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6830 as prefix, not one of its aliases.
6831 (set_cmd_prefix): Remove.
6832 (do_add_cmd): Centralize the setting of the prefix of a command, when
6833 command is defined after its full chain of prefix commands.
6834 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6835 (add_setshow_cmd_full): Likewise.
6836 (update_prefix_field_of_prefixed_commands): New function.
6837 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6838 update_prefix_field_of_prefixed_commands.
6839 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6840 addresses of remote_set_cmdlist and remote_show_cmdlist given
6841 as argument, not the address of an argument.
6842 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6843 * gdb/remote.c (_initialize_remote): Likewise.
6844
0605465f
PW
68452020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6846
6847 * cli/cli-cmds.c (alias_command): Check for an existing alias
6848 using lookup_cmd_composition, as valid_command_p is too strict
6849 and forbids aliases that are the prefix of an existing alias
6850 or command.
6851 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6852 command is properly recognised as a valid command.
6853
58e6ac70
PW
68542020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6855
6856 * unittests/help-doc-selftests.c: Rename to
6857 unittests/command-def-selftests.c
6858 * unittests/command-def-selftests.c (help_doc_tests): Update some
6859 comments.
6860 (command_structure_tests, traverse_command_structure): New namespace
6861 and function.
6862 (command_structure_invariants_tests): New function.
6863 (_initialize_command_def_selftests) Renamed from
6864 _initialize_help_doc_selftests, register command_structure_invariants
6865 selftest.
6866
a7b9ceb8
PW
68672020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6868
6869 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6870 an alias of 'show'.
6871
b2188a06
JB
68722020-05-15 Joel Brobecker <brobecker@adacore.com>
6873
6874 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6875 ada_is_fixed_point_type. Update all callers.
6876 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6877 all callers.
6878 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6879 Update all callers.
6880 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6881 print_fixed_point_type. Update all callers.
6882 * ada-valprint.c (ada_value_print_num): Replace call to
6883 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6884
a51951c2
KB
68852020-05-14 Kevin Buettner <kevinb@redhat.com>
6886
6887 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6888 processors.
6889 (cpu_supports_bts): Add CV_AMD case.
6890
29d6859f
LM
68912020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6892 Simon Marchi <simon.marchi@efficios.com>
6893
6894 * infrun.c (stop_all_threads): Collect multiple wait events at
6895 each pass.
6896
78134374
SM
68972020-05-14 Simon Marchi <simon.marchi@efficios.com>
6898
6899 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6900 type::code instead.
6901
67607e24
SM
69022020-05-14 Simon Marchi <simon.marchi@efficios.com>
6903
6904 * gdbtypes.h (struct type) <code, set_code>: New methods.
6905 (TYPE_CODE): Use type::code. Change all call sites used to set
6906 the code to use type::set_code instead.
6907
a05575d3
TBA
69082020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6909 Tom de Vries <tdevries@suse.de>
6910 Pedro Alves <palves@redhat.com>
6911
6912 PR threads/25478
6913 * infrun.c (stop_all_threads): Do NOT ignore
6914 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6915 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6916 received.
6917 (handle_no_resumed): Remove code handling a live inferior with no
6918 threads.
6919 * remote.c (has_single_non_exited_thread): New.
6920 (remote_target::update_thread_list): Do not delete a thread if is
6921 the last thread of the process.
6922 * thread.c (thread_select): Call delete_exited_threads instead of
6923 prune_threads.
6924
6ad82919
TBA
69252020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6926
6927 * infrun.c (stop_all_threads): Enable/disable thread events of all
6928 targets. Move a debug message denoting the end of the function
6929 into the SCOPED_EXIT block.
6930
d890404b
TBA
69312020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6932
6933 * process-stratum-target.h: Include <set>.
6934 (all_non_exited_process_targets, switch_to_target_no_thread): New
6935 function declarations.
6936 * process-stratum-target.c (all_non_exited_process_targets)
6937 (switch_to_target_no_thread): New function implementations.
6938
293b3ebc
TBA
69392020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6940
6941 * infrun.c (handle_inferior_event): Extract out a piece of code
6942 into...
6943 (mark_non_executing_threads): ...this new function.
6944
7ca9b62a
TBA
69452020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6946
6947 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6948 use.
6949
fc75c28b
TBA
69502020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6951
6952 * regcache.c (regcache_read_pc_protected): New function
6953 implementation that returns 0 if the PC cannot read via
6954 'regcache_read_pc'.
6955 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6956 instead of 'regcache_read_pc'.
6957 (keep_going_pass_signal): Ditto.
6958
a89febbd
TT
69592020-05-13 Tom Tromey <tromey@adacore.com>
6960
6961 * ada-lang.c (align_value): Remove.
6962 (ada_template_to_fixed_record_type_1): Use align_up.
6963
f7e23710
TBA
69642020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6965
6966 * async-event.c: Update the copyright year.
6967 * async-event.h: Update the copyright year.
6968
02ff80c2
SM
69692020-05-12 Simon Marchi <simon.marchi@efficios.com>
6970
6971 * objfiles.h (is_addr_in_objfile,
6972 shared_objfile_contains_address_p): Return bool.
6973 * objfile.c (is_addr_in_objfile,
6974 shared_objfile_contains_address_p): Return bool.
6975
4fd6c7e8
TT
69762020-05-11 Tom Tromey <tromey@adacore.com>
6977
6978 * cli/cli-cmds.c (info_command): Restore.
6979 (_initialize_cli_cmds): Use add_prefix_command for "info".
6980 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6981
5eb68a39
TT
69822020-05-11 Tom Tromey <tromey@adacore.com>
6983
6984 * ada-lang.c (ada_value_primitive_field): Now public.
6985 * ada-lang.h (ada_value_primitive_field): Declare.
6986 * ada-valprint.c (print_field_values): Use
6987 ada_value_primitive_field for wrapper fields.
6988
7666722f
TV
69892020-05-11 Tom de Vries <tdevries@suse.de>
6990
6991 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6992 MODULE_DOMAIN.
6993
3ee6bb11
TV
69942020-05-11 Tom de Vries <tdevries@suse.de>
6995
6996 PR symtab/25941
6997 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6998 with length 0, if not gdb-produced.
6999 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7000
43434996
TV
70012020-05-09 Tom de Vries <tdevries@suse.de>
7002
7003 PR gdb/25955
7004 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7005 calculation.
7006
2f78cffc
TT
70072020-05-09 Tom Tromey <tom@tromey.com>
7008
7009 * top.c (server_command): Now bool.
7010 * top.h (server_command): Now bool.
7011
4f7bc5ed
TT
70122020-05-08 Tom Tromey <tromey@adacore.com>
7013
7014 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7015 already being processed.
7016
8be4b118
TT
70172020-05-08 Tom Tromey <tom@tromey.com>
7018
7019 * printcmd.c (struct display) <next>: Remove.
7020 <display>: New constructor.
7021 <exp_string>: Now a std::string.
7022 <enabled_p>: Now a bool.
7023 (display_number): Move definition earlier.
7024 (displays): Rename from display_chain. Now a std::vector.
7025 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7026 (display_command): Update.
7027 (do_one_display, disable_display)
7028 (enable_disable_display_command, do_enable_disable_display):
7029 Update.
7030 (free_display): Remove.
7031 (clear_displays): Rewrite.
7032 (delete_display): Update.
7033 (map_display_numbers): Use function_view. Remove "data"
7034 parameter. Update.
7035 (do_delete_display): Remove.
7036 (undisplay_command): Update.
7037 (do_one_display, do_displays, disable_display)
7038 (info_display_command): Update.
7039 (do_enable_disable_display): Remove.
7040 (enable_disable_display_command)
7041 (clear_dangling_display_expressions): Update.
7042
94c93c35
TT
70432020-05-08 Tom Tromey <tom@tromey.com>
7044
7045 * symtab.c (set_symbol_cache_size)
7046 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7047 (maintenance_print_symbol_cache_statistics): Update.
7048 * symmisc.c (print_symbol_bcache_statistics)
7049 (print_objfile_statistics, maintenance_print_objfiles)
7050 (maintenance_info_symtabs, maintenance_check_symtabs)
7051 (maintenance_expand_symtabs, maintenance_info_line_tables):
7052 Update.
7053 * symfile-debug.c (set_debug_symfile): Update.
7054 * source.c (forget_cached_source_info): Update.
7055 * python/python.c (gdbpy_progspaces): Update.
7056 * psymtab.c (maintenance_info_psymtabs): Update.
7057 * probe.c (parse_probes): Update.
7058 * linespec.c (iterate_over_all_matching_symtabs)
7059 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7060 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7061 * exec.c (exec_target::close): Update.
7062 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7063 * breakpoint.c (print_one_breakpoint_location)
7064 (create_longjmp_master_breakpoint)
7065 (create_std_terminate_master_breakpoint): Update.
7066 * progspace.c (program_spaces): Now a std::vector.
7067 (maybe_new_address_space): Update.
7068 (add_program_space): Remove.
7069 (program_space::program_space): Update.
7070 (remove_program_space): Update.
7071 (number_of_program_spaces): Remove.
7072 (print_program_space, update_address_spaces): Update.
7073 * progspace.h (program_spaces): Change type.
7074 (ALL_PSPACES): Remove.
7075 (number_of_program_spaces): Don't declare.
7076 (struct program_space) <next>: Remove.
7077
a1fd1ac9
TT
70782020-05-08 Tom Tromey <tom@tromey.com>
7079
7080 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7081 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7082 (enable_break): Update.
7083 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7084 (frv_fdpic_find_canonical_descriptor): Update.
7085 (frv_fetch_objfile_link_map): Update.
7086 * progspace.c (program_space::free_all_objfiles): Update.
7087 (program_space::solibs): New method.
7088 * progspace.h (struct program_space) <solibs>: New method.
7089 * solist.h (master_so_list): Don't declare.
7090 (ALL_SO_LIBS): Remove.
7091 * solib.h (so_list_head): Remove.
7092 (update_solib_list): Update comment.
7093 * solib.c (master_so_list): Remove.
7094 (solib_used, update_solib_list, solib_add)
7095 (info_sharedlibrary_command, clear_solib)
7096 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7097
38eae084
TT
70982020-05-08 Tom Tromey <tom@tromey.com>
7099
7100 * extension.c (extension_languages): Now a std::array.
7101 (ALL_EXTENSION_LANGUAGES): Remove.
7102 (get_ext_lang_defn, get_ext_lang_of_file)
7103 (eval_ext_lang_from_control_command): Update.
7104 (finish_ext_lang_initialization)
7105 (auto_load_ext_lang_scripts_for_objfile)
7106 (ext_lang_type_printers::ext_lang_type_printers)
7107 (apply_ext_lang_type_printers)
7108 (ext_lang_type_printers::~ext_lang_type_printers)
7109 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7110 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7111 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7112 (get_matching_xmethod_workers, ext_lang_colorize)
7113 (ext_lang_before_prompt): Update.
7114 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7115
596dc4ad
TT
71162020-05-08 Tom Tromey <tom@tromey.com>
7117
7118 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7119 overload.
7120 <swap_string, m_string>: Remove.
7121 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7122 Update.
7123 * stabsread.c (define_symbol, read_type): Update.
7124 * linespec.c (find_linespec_symbols): Update.
7125 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7126 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7127 * dbxread.c (read_dbx_symtab): Update.
7128 * cp-support.h (cp_canonicalize_string_full)
7129 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7130 Return unique_xmalloc_ptr.
7131 * cp-support.c (inspect_type): Update.
7132 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7133 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7134 Likewise.
7135 * c-typeprint.c (print_name_maybe_canonical): Update.
7136 * break-catch-throw.c (check_status_exception_catchpoint):
7137 Update.
7138
bf4cb9be
TV
71392020-05-08 Tom de Vries <tdevries@suse.de>
7140
7141 * infrun.c (follow_fork): Copy current_line and current_symtab to
7142 child thread.
7143
a1b68f28
SM
71442020-05-07 Simon Marchi <simon.marchi@efficios.com>
7145
7146 * async-event.c (struct async_signal_handler, struct
7147 async_event_handler): Reformat, remove typedef.
7148
98d48915
SM
71492020-05-07 Simon Marchi <simon.marchi@efficios.com>
7150
7151 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7152 access thistype->main_type->dyn_prop_list directly.
7153
7aa91313
SM
71542020-05-07 Simon Marchi <simon.marchi@efficios.com>
7155
7156 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7157 (remove_dyn_prop): Remove. Update all users to use
7158 type::remove_dyn_prop.
7159 * gdbtypes.c (remove_dyn_prop): Rename to...
7160 (type::remove_dyn_prop): ... this.
7161
5c54719c
SM
71622020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7163
7164 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7165 (add_dyn_prop): Remove. Update all users to use
7166 type::add_dyn_prop.
7167 * gdbtypes.c (add_dyn_prop): Rename to...
7168 (type::add_dyn_prop): ... this.
7169
24e99c6c
SM
71702020-05-07 Simon Marchi <simon.marchi@efficios.com>
7171
7172 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7173 (get_dyn_prop): Remove. Update all users to use
7174 type::dyn_prop.
7175 * gdbtypes.c (get_dyn_prop): Rename to...
7176 (type::dyn_prop): ... this.
7177
0d4bf016
SM
71782020-05-06 Simon Marchi <simon.marchi@efficios.com>
7179
7180 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7181
ac4a4f1c
SM
71822020-05-06 Simon Marchi <simon.marchi@efficios.com>
7183
7184 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7185 instruction, skip it if it's there.
7186
a3bbacc1
SM
71872020-05-05 Simon Marchi <simon.marchi@efficios.com>
7188
7189 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7190
c3236f84
SM
71912020-05-04 Simon Marchi <simon.marchi@efficios.com>
7192
7193 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7194 * gdbtypes.c (recursive_dump_type): Remove use of
7195 TYPE_INCOMPLETE.
7196
3b6acaee
TT
71972020-05-03 Tom Tromey <tom@tromey.com>
7198
7199 * breakpoint.c (catch_command, tcatch_command): Remove.
7200 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7201 add_show_prefix_cmd.
7202 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7203 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7204 Remove.
7205 (add_internal_problem_command): Use add_basic_prefix_cmd,
7206 add_show_prefix_cmd.
7207 * mips-tdep.c (set_mipsfpu_command): Remove.
7208 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7209 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7210 (_initialize_index_cache): Use add_basic_prefix_cmd.
7211 * memattr.c (dummy_cmd): Remove.
7212 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7213 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7214 (_initialize_tui_win): Use add_basic_prefix_cmd,
7215 add_show_prefix_cmd.
7216 * cli/cli-logging.c (set_logging_command): Remove.
7217 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7218 add_show_prefix_cmd.
7219 (show_logging_command): Remove.
7220 * target.c (target_command): Remove.
7221 (add_target): Use add_basic_prefix_cmd.
7222
a51119cd
HD
72232020-05-02 Hannes Domani <ssbssa@yahoo.de>
7224
7225 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7226
652fc23a 72272020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7228
652fc23a
PW
7229 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7230 info_command.
7231
117539e6
KR
72322020-04-30 Kamil Rytarowski <n54@gmx.com>
7233
7234 * nbsd-nat.c (nbsd_enable_proc_events)
7235 (nbsd_nat_target::post_startup_inferior): Add.
7236 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7237 (nbsd_nat_target::update_thread_list): Rewrite.
7238 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7239 "PTRACE_LWP_CREATE".
7240 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7241
102e38eb 72422020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7243
102e38eb
PW
7244 * stack.c (_initialize_stack): Remove duplicated creation
7245 of "frame" command and "f" alias.
7246
ee9d1e5f
HD
72472020-04-30 Hannes Domani <ssbssa@yahoo.de>
7248
7249 PR gdb/18706
7250 * gdbtypes.c (check_typedef): Calculate size of array of
7251 stubbed type.
7252
627c7fb8
HD
72532020-04-30 Hannes Domani <ssbssa@yahoo.de>
7254
7255 PR gdb/15559
7256 * i386-tdep.c (i386_push_dummy_call): Call
7257 i386_thiscall_push_dummy_call.
7258 (i386_thiscall_push_dummy_call): New function.
7259 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7260 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7261 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7262
ffc2844e
SM
72632020-04-29 Simon Marchi <simon.marchi@efficios.com>
7264
7265 * gdbarch.sh (do_read): Add shellcheck disable directive for
7266 warning SC2162.
7267
1207375d
SM
72682020-04-29 Simon Marchi <simon.marchi@efficios.com>
7269
7270 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7271 "referenced but not assigned" warning.
7272
9fdb2916
SM
72732020-04-29 Simon Marchi <simon.marchi@efficios.com>
7274
7275 * gdbarch.sh: Remove code that sets fallbackdefault.
7276
759cea5e
SM
72772020-04-29 Simon Marchi <simon.marchi@efficios.com>
7278
7279 * gdbarch.sh: Use shell operators && and || instead of
7280 -a and -o.
7281
cb02ab24
SM
72822020-04-29 Simon Marchi <simon.marchi@efficios.com>
7283
7284 * gdbarch.sh: Use $(...) instead of `...`.
7285
a6fc5ffc
SM
72862020-04-29 Simon Marchi <simon.marchi@efficios.com>
7287
7288 * gdbarch.sh: Use double quotes around variables.
7289
8d113d13
SM
72902020-04-29 Simon Marchi <simon.marchi@efficios.com>
7291
7292 * gdbarch.sh: Use %s with printf, instead of variables in the
7293 format string.
7294
ed6acedd
TT
72952020-04-29 Tom Tromey <tromey@adacore.com>
7296
7297 PR ada/25875:
7298 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7299 type fields here.
7300 (read_enumeration_type): Call
7301 update_enumeration_type_from_children later. Update comments.
7302 (process_enumeration_scope): Don't create type fields.
7303
b68b1b58
KR
73042020-04-29 Kamil Rytarowski <n54@gmx.com>
7305
7306 * nbsd-tdep.c: Include "xml-syscall.h".
7307 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7308
f94b2e03
KR
73092020-04-29 Kamil Rytarowski <n54@gmx.com>
7310
7311 * nbsd-nat.c: Include "sys/wait.h".
7312 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7313 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7314 (nbsd_nat_target::remove_exec_catchpoint)
7315 (nbsd_nat_target::set_syscall_catchpoint): Add.
7316 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7317 (nbsd_nat_target::insert_exec_catchpoint)
7318 (nbsd_nat_target::remove_exec_catchpoint)
7319 (nbsd_nat_target::set_syscall_catchpoint): Add.
7320 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7321 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7322 `nbsd_get_syscall_number'.
7323
fc49bc72
TT
73242020-04-29 Tom Tromey <tom@tromey.com>
7325
7326 * stack.c (print_block_frame_labels): Remove.
7327
d642b692
HD
73282020-04-29 Hannes Domani <ssbssa@yahoo.de>
7329
7330 PR gdb/17320
7331 * ada-valprint.c (val_print_packed_array_elements): Move array
7332 end bracket to new line.
7333 (ada_val_print_string): Remove extra spaces before first array
7334 element.
7335 * c-valprint.c (c_value_print_array): Likewise.
7336 * m2-valprint.c (m2_print_array_contents): Likewise.
7337 (m2_value_print_inner): Likewise.
7338 * p-valprint.c (pascal_value_print_inner): Likewise.
7339 * valprint.c (generic_val_print_array): Likewise.
7340 (value_print_array_elements): Move first array element and array
7341 end bracket to new line.
7342
ea90f227
TV
73432020-04-29 Tom de Vries <tdevries@suse.de>
7344
7345 PR symtab/25889
7346 * linespec.c (find_method): Fix ix calculation.
7347
4498ef4f
KR
73482020-04-28 Kamil Rytarowski <n54@gmx.com>
7349
7350 * syscalls/update-netbsd.sh: New file.
7351 * syscalls/netbsd.xml: Regenerate.
7352 * data-directory/Makefile.in: Register `netbsd.xml' in
7353 `SYSCALLS_FILES'.
7354
a55e30b5
SM
73552020-04-28 Simon Marchi <simon.marchi@efficios.com>
7356
7357 * syscalls/update-freebsd.sh: Add double quotes.
7358
2b2fbab8
TT
73592020-04-28 Tom Tromey <tom@tromey.com>
7360
7361 * NEWS: Update.
7362 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7363 (cmdpy_init): Allow class_tui.
7364
a65189c9
TV
73652020-04-28 Mark Williams <mark@myosotissp.com>
7366
7367 PR gdb/24480
7368 * dwarf2read.c: Add missing assingments to list_in_scope when
7369 start_symtab was already called.
7370
1b95cdb7
SM
73712020-04-28 Simon Marchi <simon.marchi@efficios.com>
7372
7373 PR gdb/25881
7374 * dwarf2/read.c (offset_map_type): Use
7375 gdb:hash_enum<sect_offset> as hash function.
7376
15cd93d0
TV
73772020-04-28 Tom de Vries <tdevries@suse.de>
7378
7379 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7380 with DW_AT_signature.
7381
1eb39914
SM
73822020-04-27 Simon Marchi <simon.marchi@efficios.com>
7383
7384 * configure.ac: Remove check for fs_base/gs_base in
7385 user_regs_struct.
7386 * configure: Re-generate.
7387 * config.in: Re-generate.
7388 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7389 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7390 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7391
991a3e2e
LM
73922020-04-27 Luis Machado <luis.machado@linaro.org>
7393
7394 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7395 problematic inline frame unwinding situation.
7396 * frame.c (frame_id_computed_p): New function.
7397 * frame.h (frame_id_computed_p): New prototype.
7398
361ba0e8
TT
73992020-04-26 Tom Tromey <tom@tromey.com>
7400
7401 * command.h (enum command_class) <class_pseudo>: Remove.
7402
bc3609fd
PW
74032020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7404
7405 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7406 and whitespace.
7407
b9771db7
KR
74082020-04-25 Kamil Rytarowski <n54@gmx.com>
7409
ec16513e
SM
7410 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7411 `PT_GET_PROCESS_STATE' block.
b9771db7 7412
7151c1af
TT
74132020-04-24 Tom Tromey <tom@tromey.com>
7414
7415 * symtab.h (symbol_get_demangled_name): Don't declare.
7416 * symtab.c (symbol_get_demangled_name): Remove.
7417 (general_symbol_info::natural_name)
7418 (general_symbol_info::demangled_name): Update.
7419
906bb4c5
TT
74202020-04-24 Tom Tromey <tom@tromey.com>
7421
7422 PR rust/25025:
7423 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7424
bcfe6157
TT
74252020-04-24 Tom Tromey <tom@tromey.com>
7426
7427 PR symtab/12707:
7428 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7429 exists.
7430 (new_symbol): Likewise.
7431 * compile/compile-object-load.c (get_out_value_type): Use
7432 symbol_matches_search_name.
7433
f049a313
TT
74342020-04-24 Tom Tromey <tom@tromey.com>
7435
7436 * dwarf2/read.c (add_partial_symbol): Do not call
7437 compute_and_set_names.
7438
76e288d1
TT
74392020-04-24 Tom Tromey <tom@tromey.com>
7440
7441 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7442 overload.
7443
2467f4f6
TT
74442020-04-24 Tom Tromey <tom@tromey.com>
7445
7446 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7447 (add_psymbol_to_list): New overload. Make old overload call new
7448 one.
7449 * psympriv.h (add_psymbol_to_list): New overload.
7450
e61108c9
TT
74512020-04-24 Tom Tromey <tom@tromey.com>
7452
7453 * dwarf2/read.c (partial_die_info::read) <case
7454 DW_AT_linkage_name>: Use value_as_string.
7455 (dwarf2_string_attr): Use value_as_string.
7456 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7457 method.
7458 * dwarf2/attribute.c (attribute::value_as_string): New method.
7459
8c87a452
TT
74602020-04-24 Tom Tromey <tom@tromey.com>
7461
7462 * symtab.c (general_symbol_info::natural_name)
7463 (general_symbol_info::demangled_name): Check for language_rust.
7464
787de330
TT
74652020-04-24 Tom Tromey <tom@tromey.com>
7466
7467 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7468 (dwarf2_physname): ... from here.
7469 (partial_die_info::read): Add Rust "{" hack.
7470
ff985671
TT
74712020-04-24 Tom Tromey <tom@tromey.com>
7472
7473 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7474 method.
7475 (symbol_set_demangled_name): Don't declare.
7476 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7477 symbol_set_demangled_name.
7478 (general_symbol_info::set_language)
7479 (general_symbol_info::compute_and_set_names): Update.
7480 * minsyms.c (minimal_symbol_reader::install): Update.
7481 * dwarf2/read.c (new_symbol): Update.
7482
1acda803
TT
74832020-04-24 Tom Tromey <tromey@adacore.com>
7484
7485 PR python/23662:
7486 * python/py-type.c (convert_field): Handle
7487 FIELD_LOC_KIND_DWARF_BLOCK.
7488 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7489 (typy_get_dynamic): Nw function.
7490 (type_object_getset): Add "dynamic".
7491 * NEWS: Add entry.
7492
d656f129
TT
74932020-04-24 Tom Tromey <tromey@adacore.com>
7494
7495 * ada-typeprint.c (print_choices, print_variant_part)
7496 (print_record_field_types_dynamic): New functions.
7497 (print_record_field_types): Use print_record_field_types_dynamic.
7498
7d79de9a
TT
74992020-04-24 Tom Tromey <tromey@adacore.com>
7500
7501 * dwarf2/read.c (handle_data_member_location): New overload.
7502 (dwarf2_add_field): Use it.
7503 (decode_locdesc): Add "computed" parameter. Update comment.
7504 * gdbtypes.c (is_dynamic_type_internal): Also look for
7505 FIELD_LOC_KIND_DWARF_BLOCK.
7506 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7507 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7508 virtual base classes.
7509 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7510 FIELD_LOC_KIND_DWARF_BLOCK.
7511
f8e89861
TT
75122020-04-24 Tom Tromey <tromey@adacore.com>
7513
7514 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7515 * gdbtypes.c (is_dynamic_type_internal): Check
7516 TYPE_HAS_DYNAMIC_LENGTH.
7517 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7518 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7519 New macros.
7520 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7521 constant.
7522
9c6a1327
TT
75232020-04-24 Tom Tromey <tromey@adacore.com>
7524
7525 * dwarf2/read.c (struct variant_field): Rewrite.
7526 (struct variant_part_builder): New.
7527 (struct nextfield): Remove "variant" field. Add "offset".
7528 (struct field_info): Add "current_variant_part" and
7529 "variant_parts".
7530 (alloc_discriminant_info): Remove.
7531 (alloc_rust_variant): New function.
7532 (quirk_rust_enum): Update.
7533 (dwarf2_add_field): Set "offset" member. Don't handle
7534 DW_TAG_variant_part.
7535 (offset_map_type): New typedef.
7536 (convert_variant_range, create_one_variant)
7537 (create_one_variant_part, create_variant_parts)
7538 (add_variant_property): New functions.
7539 (dwarf2_attach_fields_to_type): Call add_variant_property.
7540 (read_structure_type): Don't handle DW_TAG_variant_part.
7541 (handle_variant_part, handle_variant): New functions.
7542 (handle_struct_member_die): Use them.
7543 (process_structure_scope): Don't handle variant parts.
7544 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7545 (struct discriminant_info): Remove.
7546 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7547 (struct main_type) <flag_discriminated_union>: Remove.
7548 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7549 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7550 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7551 Update.
7552 * valops.c (value_union_variant): Remove.
7553 * value.h (value_union_variant): Don't declare.
7554
b249d2c2
TT
75552020-04-24 Tom Tromey <tromey@adacore.com>
7556
7557 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7558 (ada_value_primitive_packed_val): Update.
7559 * ada-valprint.c (ada_value_print_1): Update.
7560 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7561 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7562 just an address. Use evaluate_for_locexpr_baton.
7563 (dwarf2_evaluate_property): Update.
7564 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7565 array_view.
7566 * findvar.c (default_read_var_value): Update.
7567 * gdbtypes.c (compute_variant_fields_inner)
7568 (resolve_dynamic_type_internal): Update.
7569 (resolve_dynamic_type): Change type of valaddr parameter.
7570 * gdbtypes.h (resolve_dynamic_type): Update.
7571 * valarith.c (value_subscripted_rvalue): Update.
7572 * value.c (value_from_contents_and_address): Update.
7573
61122aa9
TT
75742020-04-24 Tom Tromey <tromey@adacore.com>
7575
7576 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7577 "push_initial_value" parameter.
7578 (dwarf2_evaluate_property): Likewise.
7579 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7580
ef83a141
TT
75812020-04-24 Tom Tromey <tromey@adacore.com>
7582
7583 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7584 (variant::matches, compute_variant_fields_recurse)
7585 (compute_variant_fields_inner, compute_variant_fields): New
7586 functions.
7587 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7588 Use resolved_type after type is made.
7589 (operator==): Add new cases.
7590 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7591 (struct discriminant_range, struct variant, struct variant_part):
7592 New.
7593 (union dynamic_prop_data) <variant_parts, original_type>: New
7594 members.
7595 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7596 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7597 constants.
7598 * value.c (unpack_bits_as_long): Now public.
7599 * value.h (unpack_bits_as_long): Declare.
7600
675127ec
TT
76012020-04-24 Tom Tromey <tromey@adacore.com>
7602
7603 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7604 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7605
9852ceef
HD
76062020-04-24 Hannes Domani <ssbssa@yahoo.de>
7607
7608 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7609
7632c6ce
KR
76102020-04-24 Kamil Rytarowski <n54@gmx.com>
7611
7612 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7613 (remove_fork_catchpoint, post_startup_inferior)
7614 (post_attach): Move...
7615 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7616 (remove_fork_catchpoint, post_startup_inferior)
7617 (post_attach): ...here.
7618 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7619 (remove_fork_catchpoint, post_startup_inferior)
7620 (post_attach): Move...
7621 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7622 (remove_fork_catchpoint, post_startup_inferior)
7623 (post_attach): ...here.
7624
7be2bb4f
TT
76252020-04-24 Tom Tromey <tromey@adacore.com>
7626
7627 * nat/windows-nat.h (struct windows_thread_info)
7628 <pc_adjusted>: New member.
7629 * windows-nat.c (windows_fetch_one_register): Check
7630 pc_adjusted.
7631 (windows_nat_target::get_windows_debug_event)
7632 (windows_nat_target::wait): Set pc_adjusted.
7633
f80cb3b4
TV
76342020-04-24 Tom de Vries <tdevries@suse.de>
7635
7636 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7637 Run gdb-add-index inside temp dir.
7638
29514b87
TT
76392020-04-23 Tom Tromey <tromey@adacore.com>
7640
7641 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7642 in loop.
7643
5939967b
LM
76442020-04-23 Luis Machado <luis.machado@linaro.org>
7645
7646 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7647 get_frame_register instead of gdbarch_unwind_pc.
7648
70bc38f5
TV
76492020-04-23 Tom de Vries <tdevries@suse.de>
7650
7651 * symtab.c (lookup_global_symbol): Prefer def over decl.
7652
de82891c
TV
76532020-04-23 Tom de Vries <tdevries@suse.de>
7654
7655 PR symtab/25807
7656 * block.c (best_symbol, better_symbol): Promote to external.
7657 * block.h (best_symbol, better_symbol): Declare.
7658 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7659 decl.
7660
ecc6c606
TT
76612020-04-23 Tom Tromey <tromey@adacore.com>
7662
7663 PR ada/25837:
7664 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7665 "const char *", not a "const std::string &".
7666 <name_and_matcher::operator==>: Update.
7667 * unittests/lookup_name_info-selftests.c: Change type of
7668 "result".
7669
740480b8
TT
76702020-04-23 Tom Tromey <tom@tromey.com>
7671
7672 * inferior.h (iterate_over_inferiors): Don't declare.
7673 * inferior.c (iterate_over_inferiors): Remove.
7674 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7675 Remove.
7676 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7677 use iterate_over_inferiors.
7678 (darwin_resume_inferior_it)
7679 (struct resume_inferior_threads_param)
7680 (darwin_resume_inferior_threads_it): Remove.
7681 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7682
ae3ab1f0
TV
76832020-04-23 Tom de Vries <tdevries@suse.de>
7684
7685 * blockframe.c (find_pc_partial_function): Use
7686 find_pc_sect_compunit_symtab rather than
7687 objfile->sf->qf->find_pc_sect_compunit_symtab.
7688
317d2668
TV
76892020-04-22 Tom de Vries <tdevries@suse.de>
7690
7691 PR symtab/25764
7692 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7693 in psymtabs.
7694
eea9e357
TV
76952020-04-22 Tom de Vries <tdevries@suse.de>
7696
7697 PR symtab/25801
7698 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7699 symtabs.
7700
3d5afab3
TV
77012020-04-22 Tom de Vries <tdevries@suse.de>
7702
7703 PR symtab/25700
7704 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7705 CU if already created.
7706
d43b7a2d
TBA
77072020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7708
7709 * infrun.c (displaced_step_fixup): Switch to the event_thread
7710 before calling displaced_step_restore, not after.
7711
d89edf9b
MM
77122020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7713
7714 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7715 its inferior is not recorded by us.
7716 (record_btrace_target_open): Replace call to
7717 all_non_exited_threads () with call to current_inferior
7718 ()->non_exited_threads ().
7719 (record_btrace_target::stop_recording): Likewise.
7720 (record_btrace_target::close): Likewise.
7721 (record_btrace_target::wait): Likewise.
7722 (record_btrace_target::record_stop_replaying): Likewise.
7723
5897fd49
MM
77242020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7725
7726 * btrace.c (btrace_enable): Throw an error on double enables and
7727 when enabling recording fails.
7728 (btrace_disable): Throw an error if the thread is not recorded.
7729
1a476b6d
MM
77302020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7731
7732 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7733 request if we do not have a thread_info.
7734
4778a5f8
TV
77352020-04-21 Tom de Vries <tdevries@suse.de>
7736
7737 PR gdb/25471
7738 * thread.c
7739 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7740 exception in get_frame_id.
7741
0fa7617d
TT
77422020-04-20 Tom Tromey <tromey@adacore.com>
7743
7744 * python/python.c (struct gdbpy_event): Mark move constructor as
7745 noexcept.
7746 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7747 constructor as noexcept.
7748 * completer.h (struct completion_result): Mark move constructor as
7749 noexcept.
7750 * completer.c (completion_result::completion_result): Use
7751 initialization style. Don't call reset_match_list.
7752
ad23bda0
MS
77532020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7754
7755 * MAINTAINERS (Write After Approval): Add myself.
7756
45e1f031
TT
77572020-04-18 Tom Tromey <tom@tromey.com>
7758
7759 * windows-tdep.c (init_w32_command_list)
7760 (w32_prefix_command_valid): Restore.
7761 (_initialize_windows_tdep): Call init_w32_command_list.
7762
08feed99
TT
77632020-04-18 Tom Tromey <tom@tromey.com>
7764
7765 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7766 * value.c (value_fn_field): Update.
7767 * valops.c (find_function_in_inferior)
7768 (value_allocate_space_in_inferior): Update.
7769 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7770 Update.
7771 * tui/tui-source.c (tui_source_window::set_contents): Update.
7772 * symtab.c (lookup_global_or_static_symbol)
7773 (find_function_start_sal_1, skip_prologue_sal)
7774 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7775 * symmisc.c (dump_msymbols, dump_symtab_1)
7776 (maintenance_print_one_line_table): Update.
7777 * symfile.c (init_entry_point_info, section_is_mapped)
7778 (list_overlays_command, simple_read_overlay_table)
7779 (simple_overlay_update_1): Update.
7780 * stap-probe.c (handle_stap_probe): Update.
7781 * stabsread.c (dbx_init_float_type, define_symbol)
7782 (read_one_struct_field, read_enum_type, read_range_type): Update.
7783 * source.c (info_line_command): Update.
7784 * python/python.c (gdbpy_source_objfile_script)
7785 (gdbpy_execute_objfile_script): Update.
7786 * python/py-type.c (save_objfile_types): Update.
7787 * python/py-objfile.c (py_free_objfile): Update.
7788 * python/py-inferior.c (python_new_objfile): Update.
7789 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7790 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7791 (maintenance_check_psymtabs): Update.
7792 * printcmd.c (info_address_command): Update.
7793 * objfiles.h (struct objfile) <arch>: New method, from
7794 get_objfile_arch.
7795 (get_objfile_arch): Don't declare.
7796 * objfiles.c (get_objfile_arch): Remove.
7797 (filter_overlapping_sections): Update.
7798 * minsyms.c (msymbol_is_function): Update.
7799 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7800 (output_nondebug_symbol): Update.
7801 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7802 (mdebug_expand_psymtab): Update.
7803 * machoread.c (macho_add_oso_symfile): Update.
7804 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7805 Update.
7806 * linux-fork.c (checkpoint_command): Update.
7807 * linespec.c (convert_linespec_to_sals): Update.
7808 * jit.c (finalize_symtab): Update.
7809 * infrun.c (insert_exception_resume_from_probe): Update.
7810 * ia64-tdep.c (ia64_find_unwind_table): Update.
7811 * hppa-tdep.c (internalize_unwinds): Update.
7812 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7813 Update.
7814 * gcore.c (call_target_sbrk): Update.
7815 * elfread.c (record_minimal_symbol, elf_symtab_read)
7816 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7817 (elf_gnu_ifunc_resolve_by_got): Update.
7818 * dwarf2/read.c (create_addrmap_from_index)
7819 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7820 (read_debug_names_from_section)
7821 (process_psymtab_comp_unit_reader, add_partial_symbol)
7822 (add_partial_subprogram, process_full_comp_unit)
7823 (read_file_scope, read_func_scope, read_lexical_block_scope)
7824 (read_call_site_scope, dwarf2_ranges_read)
7825 (dwarf2_record_block_ranges, dwarf2_add_field)
7826 (mark_common_block_symbol_computed, read_tag_pointer_type)
7827 (read_tag_string_type, dwarf2_init_float_type)
7828 (dwarf2_init_complex_target_type, read_base_type)
7829 (partial_die_info::read, partial_die_info::read)
7830 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7831 (dwarf2_fetch_die_loc_sect_off): Update.
7832 * dwarf2/loc.c (dwarf2_find_location_expression)
7833 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7834 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7835 (dwarf2_loc_desc_get_symbol_read_needs)
7836 (locexpr_describe_location_piece, locexpr_describe_location_1)
7837 (loclist_describe_location): Update.
7838 * dwarf2/index-write.c (write_debug_names): Update.
7839 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7840 * dtrace-probe.c (dtrace_process_dof): Update.
7841 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7842 (process_one_symbol): Update.
7843 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7844 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7845 (coff_read_enum_type): Update.
7846 * cli/cli-cmds.c (edit_command, list_command): Update.
7847 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7848 * breakpoint.c (create_overlay_event_breakpoint)
7849 (create_longjmp_master_breakpoint)
7850 (create_std_terminate_master_breakpoint)
7851 (create_exception_master_breakpoint, get_sal_arch): Update.
7852 * block.c (block_gdbarch): Update.
7853 * annotate.c (annotate_source_line): Update.
7854
0743fc83
TT
78552020-04-17 Tom Tromey <tromey@adacore.com>
7856
7857 * auto-load.c (show_auto_load_cmd): Remove.
7858 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7859 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7860 (maintenance_print_arc_command): Remove.
7861 * tui/tui-win.c (tui_command): Remove.
7862 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7863 * tui/tui-layout.c (tui_layout_command): Remove.
7864 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7865 * python/python.c (user_set_python, user_show_python): Remove.
7866 (_initialize_python): Use add_basic_prefix_cmd,
7867 add_show_prefix_cmd.
7868 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7869 (install_gdb_commands): Use add_basic_prefix_cmd,
7870 add_show_prefix_cmd.
7871 (info_guile_command): Remove.
7872 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7873 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7874 add_show_prefix_cmd.
7875 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7876 Remove do_set and do_show parameters.
7877 * cli/cli-style.c (set_style, show_style): Remove.
7878 (_initialize_cli_style): Use add_basic_prefix_cmd,
7879 add_show_prefix_cmd.
7880 (cli_style_option::add_setshow_commands): Remove do_set and
7881 do_show parameters.
7882 (cli_style_option::add_setshow_commands): Use
7883 add_basic_prefix_cmd, add_show_prefix_cmd.
7884 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7885 (set_style_name): Remove.
7886 * cli/cli-dump.c (dump_command, append_command): Remove.
7887 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7888 (tekhex_dump_command, binary_dump_command)
7889 (binary_append_command): Remove.
7890 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7891 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7892 (init_w32_command_list): Remove; move into ...
7893 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7894 * valprint.c (set_print, show_print, set_print_raw)
7895 (show_print_raw): Remove.
7896 (_initialize_valprint): Use add_basic_prefix_cmd,
7897 add_show_prefix_cmd.
7898 * typeprint.c (set_print_type, show_print_type): Remove.
7899 (_initialize_typeprint): Use add_basic_prefix_cmd,
7900 add_show_prefix_cmd.
7901 * record.c (set_record_command, show_record_command): Remove.
7902 (_initialize_record): Use add_basic_prefix_cmd,
7903 add_show_prefix_cmd.
7904 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7905 add_show_prefix_cmd.
7906 (info_command, show_command, set_debug, show_debug): Remove.
7907 * top.h (set_history, show_history): Don't declare.
7908 * top.c (set_history, show_history): Remove.
7909 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7910 (unset_tdesc_cmd): Remove.
7911 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7912 add_show_prefix_cmd.
7913 * symtab.c (info_module_command): Remove.
7914 (_initialize_symtab): Use add_basic_prefix_cmd.
7915 * symfile.c (overlay_command): Remove.
7916 (_initialize_symfile): Use add_basic_prefix_cmd.
7917 * sparc64-tdep.c (info_adi_command): Remove.
7918 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7919 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7920 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7921 add_show_prefix_cmd.
7922 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7923 (_initialize_serial): Use add_basic_prefix_cmd,
7924 add_show_prefix_cmd.
7925 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7926 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7927 add_show_prefix_cmd.
7928 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7929 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7930 add_show_prefix_cmd.
7931 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7932 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7933 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7934 add_show_prefix_cmd.
7935 * remote.c (remote_command, set_remote_cmd): Remove.
7936 (_initialize_remote): Use add_basic_prefix_cmd.
7937 * record-full.c (set_record_full_command)
7938 (show_record_full_command): Remove.
7939 (_initialize_record_full): Use add_basic_prefix_cmd,
7940 add_show_prefix_cmd.
7941 * record-btrace.c (cmd_set_record_btrace)
7942 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7943 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7944 (cmd_show_record_btrace_pt): Remove.
7945 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7946 add_show_prefix_cmd.
7947 * ravenscar-thread.c (set_ravenscar_command)
7948 (show_ravenscar_command): Remove.
7949 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7950 add_show_prefix_cmd.
7951 * mips-tdep.c (show_mips_command, set_mips_command)
7952 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7953 add_show_prefix_cmd.
7954 * maint.c (maintenance_command, maintenance_info_command)
7955 (maintenance_check_command, maintenance_print_command)
7956 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7957 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7958 add_show_prefix_cmd.
7959 (show_per_command_cmd): Remove.
7960 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7961 Remove.
7962 (maintenance_show_test_settings_cmd): Remove.
7963 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7964 add_show_prefix_cmd.
7965 * maint-test-options.c (maintenance_test_options_command):
7966 Remove.
7967 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7968 * macrocmd.c (macro_command): Remove
7969 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7970 * language.c (set_check, show_check): Remove.
7971 (_initialize_language): Use add_basic_prefix_cmd,
7972 add_show_prefix_cmd.
7973 * infcmd.c (unset_command): Remove.
7974 (_initialize_infcmd): Use add_basic_prefix_cmd.
7975 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7976 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7977 add_show_prefix_cmd.
7978 * go32-nat.c (go32_info_dos_command): Remove.
7979 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7980 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7981 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7982 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7983 (_initialize_frame): Use add_basic_prefix_cmd,
7984 add_show_prefix_cmd.
7985 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7986 (_initialize_dcache): Use add_basic_prefix_cmd,
7987 add_show_prefix_cmd.
7988 * cp-support.c (maint_cplus_command): Remove.
7989 (_initialize_cp_support): Use add_basic_prefix_cmd.
7990 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7991 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7992 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7993 add_basic_prefix_cmd, add_show_prefix_cmd.
7994 * breakpoint.c (save_command): Remove.
7995 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7996 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7997 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7998 add_show_prefix_cmd.
7999 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8000 (set_ada_command, show_ada_command): Remove.
8001 (_initialize_ada_language): Use add_basic_prefix_cmd,
8002 add_show_prefix_cmd.
8003 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8004
3557f442
KR
80052020-04-16 Kamil Rytarowski <n54@gmx.com>
8006
8007 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8008 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8009
16197208
SM
80102020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8011
8012 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8013 warning messages.
8014
00ac85d3
SM
80152020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8016
8017 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8018 import table is not at beginning of .idata section.
8019
381ce63f
PA
80202020-04-16 Pedro Alves <palves@redhat.com>
8021
8022 * inferior.c (delete_inferior): Use delete operator directly
8023 instead of delete_program_space.
8024 * progspace.c (add_program_space): New, factored out from
8025 program_space::program_space.
8026 (remove_program_space): New, factored out from
8027 delete_program_space.
8028 (program_space::program_space): Remove intro comment. Rewrite.
8029 (program_space::~program_space): Remove intro comment. Call
8030 remove_program_space.
8031 (delete_program_space): Delete.
8032 * progspace.h (program_space::program_space): Make explicit. Move
8033 intro comment here, adjusted.
8034 (program_space::~program_space): Move intro comment here,
8035 adjusted.
8036 (delete_program_space): Remove.
8037
a010605f
TT
80382020-04-16 Tom Tromey <tromey@adacore.com>
8039
8040 * windows-nat.c (windows_nat::handle_access_violation): New
8041 function.
8042 * nat/windows-nat.h (handle_access_violation): Declare.
8043 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8044 windows-nat.c. Call handle_access_violation.
8045
efba5c23
TV
80462020-04-16 Tom de Vries <tdevries@suse.de>
8047
8048 PR symtab/25791
8049 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8050 CUs without psymtab.
8051
97ed802d
KB
80522020-04-16 Kevin Buettner <kevinb@redhat.com>
8053
8054 * python/python.c (do_start_initialization): Don't call
8055 PyEval_InitThreads for Python 3.9 and beyond.
8056
c7d64809
KR
80572020-04-15 Kamil Rytarowski <n54@gmx.com>
8058
8059 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8060 thread functions.
8061 (obsd_nat_target::wait): Likewise.
8062
ce127a96
TT
80632020-04-15 Tom Tromey <tromey@adacore.com>
8064
8065 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8066 (DEBUG_EXCEPT): Use debug_printf.
8067
99f1bc6a
AB
80682020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8069
8070 * completer.c (class completion_tracker::completion_hash_entry)
8071 <hash_name>: New member function.
8072 (completion_tracker::discard_completions): New callback to hash a
8073 completion_hash_entry, pass this to htab_create_alloc.
8074
a0e9b532
JT
80752016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8076
8077 * windows-nat.c (windows_make_so): Warn rather than stopping with
8078 an error if realpath() fails.
8079
06ca5dd4
KR
80802020-04-14 Kamil Rytarowski <n54@gmx.com>
8081
8082 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8083 (nbsd_nat_target::info_proc): Add do_status.
8084
194d088f
TV
80852020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8086 Tom de Vries <tdevries@suse.de>
8087
8088 PR symtab/25718
8089 * psympriv.h (struct partial_symtab::read_symtab)
8090 (struct partial_symtab::expand_psymtab)
8091 (struct partial_symtab::read_dependencies): Update comments.
8092 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8093 read_symtab for includer.
8094 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8095 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8096 (struct dwarf2_include_psymtab::m_readin): Remove.
8097 (struct dwarf2_include_psymtab::includer): New member function.
8098 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8099
c1a66c06
TV
81002020-04-14 Tom de Vries <tdevries@suse.de>
8101
8102 PR symtab/25720
8103 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8104 with NULL symbol_matcher and lookup_name.
8105 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8106 and lookup_name.
8107 * dwarf2/read.c (dw2_expand_symtabs_matching)
8108 (dw2_debug_names_expand_symtabs_matching): Same.
8109 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8110 Make lookup_name a pointer. Update comment.
8111 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8112 lookup_name being a pointer.
8113 * symfile.c (expand_symtabs_matching): Same.
8114 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8115 * linespec.c (iterate_over_all_matching_symtabs): Same.
8116
400b5eca
TT
81172020-04-13 Tom Tromey <tom@tromey.com>
8118
8119 * run-on-main-thread.c: Update include.
8120 * unittests/main-thread-selftests.c: Update include.
8121 * tui/tui-win.c: Update include.
8122 * tui/tui-io.c: Update include.
8123 * tui/tui-interp.c: Update include.
8124 * tui/tui-hooks.c: Update include.
8125 * top.h: Update include.
8126 * top.c: Update include.
8127 * ser-base.c: Update include.
8128 * remote.c: Update include.
8129 * remote-notif.c: Update include.
8130 * remote-fileio.c: Update include.
8131 * record-full.c: Update include.
8132 * record-btrace.c: Update include.
8133 * python/python.c: Update include.
8134 * posix-hdep.c: Update include.
8135 * mingw-hdep.c: Update include.
8136 * mi/mi-main.c: Update include.
8137 * mi/mi-interp.c: Update include.
8138 * main.c: Update include.
8139 * linux-nat.c: Update include.
8140 * interps.c: Update include.
8141 * infrun.c: Update include.
8142 * inf-loop.c: Update include.
8143 * event-top.c: Update include.
8144 * event-loop.c: Move to ../gdbsupport/.
8145 * event-loop.h: Move to ../gdbsupport/.
8146 * async-event.h: Update include.
8147 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8148
93b54c8e
TT
81492020-04-13 Tom Tromey <tom@tromey.com>
8150
8151 * tui/tui-win.c: Include async-event.h.
8152 * remote.c: Include async-event.h.
8153 * remote-notif.c: Include async-event.h.
8154 * record-full.c: Include async-event.h.
8155 * record-btrace.c: Include async-event.h.
8156 * infrun.c: Include async-event.h.
8157 * event-top.c: Include async-event.h.
8158 * event-loop.h: Move some declarations to async-event.h.
8159 * event-loop.c: Don't include ser-event.h or top.h. Move some
8160 code to async-event.c.
8161 * async-event.h: New file.
8162 * async-event.c: New file.
8163 * Makefile.in (COMMON_SFILES): Add async-event.c.
8164 (HFILES_NO_SRCDIR): Add async-event.h.
8165
c1cd3163
TT
81662020-04-13 Tom Tromey <tom@tromey.com>
8167
8168 * utils.c (flush_streams): New function.
8169 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8170
29f2bf4f
TT
81712020-04-13 Tom Tromey <tom@tromey.com>
8172
8173 * event-loop.c (handle_file_event): Use warning, not
8174 printf_unfiltered.
8175
98029d02
TT
81762020-04-13 Tom Tromey <tom@tromey.com>
8177
8178 * event-loop.c: Include <chrono>.
8179
06cc9596
TT
81802020-04-13 Tom Tromey <tom@tromey.com>
8181
8182 * gdb_select.h: Move to ../gdbsupport/.
8183 * event-loop.c: Update include path.
8184 * top.c: Update include path.
8185 * ser-base.c: Update include path.
8186 * ui-file.c: Update include path.
8187 * ser-tcp.c: Update include path.
8188 * guile/scm-ports.c: Update include path.
8189 * posix-hdep.c: Update include path.
8190 * ser-unix.c: Update include path.
8191 * gdb_usleep.c: Update include path.
8192 * mingw-hdep.c: Update include path.
8193 * inflow.c: Update include path.
8194 * infrun.c: Update include path.
8195 * event-top.c: Update include path.
8196
8ae8e197
TT
81972020-04-13 Tom Tromey <tom@tromey.com>
8198
8199 * configure: Rebuild.
8200 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8201
58cf28e8
TT
82022020-04-13 Tom Tromey <tom@tromey.com>
8203
8204 * event-loop.h (start_event_loop): Don't declare.
8205 * event-loop.c (start_event_loop): Move...
8206 * main.c (start_event_loop): ...here. Now static.
8207
b7f999ae
SDJ
82082020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8209
8210 * MAINTAINERS: Update my email address.
8211
1085dfd4
KR
82122020-04-12 Kamil Rytarowski <n54@gmx.com>
8213
8214 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8215 IP_ALL.
8216
49d1d1f5
KR
82172020-04-12 Kamil Rytarowski <n54@gmx.com>
8218
8219 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8220 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8221
b4848d2a
KR
82222020-04-12 Kamil Rytarowski <n54@gmx.com>
8223
8224 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8225 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8226
51c133d5
KR
82272020-04-12 Kamil Rytarowski <n54@gmx.com>
8228
8229 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8230
54b8cbd0
KR
82312020-04-11 Kamil Rytarowski <n54@gmx.com>
8232
8233 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8234 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8235 (nbsd_nat_target::info_proc): New functions.
8236 * nbsd-nat.c (kinfo_get_vmmap): New function.
8237 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8238 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8239 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8240 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8241 functions.
8242 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8243 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8244 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8245 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8246 (KINFO_VME_FLAG_GROWS_DOWN): New.
8247
cf83625d
AS
82482020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8249
8250 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8251 bit shift.
8252
0c4311ab
TT
82532020-04-10 Tom Tromey <tromey@adacore.com>
8254
8255 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8256
3e65b3e9
TT
82572020-04-10 Tom Tromey <tromey@adacore.com>
8258
8259 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8260 separate debug files.
8261
13302e95
HD
82622020-04-10 Hannes Domani <ssbssa@yahoo.de>
8263
8264 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8265 Move to...
8266 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8267 ... here.
8268 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8269 Check for STATUS_WX86_BREAKPOINT.
8270 (windows_nat_target::wait): Same.
8271
bdfc1e8a
TV
82722020-04-10 Tom de Vries <tdevries@suse.de>
8273
8274 PR cli/25808
8275 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8276
f4460aec
SM
82772020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8278
8279 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8280 (Write After Approval): Remove Tom de Vries.
8281
a25198bb
BE
82822020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8283
8284 revert partially:
8285 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8286
aac66a4c
SM
8287 * buildsym.c (record_line): Fix undefined behavior and preserve
8288 lines at eof.
a25198bb 8289
206c98a6
KR
82902020-04-09 Kamil Rytarowski <n54@gmx.com>
8291
8292 * auxv.h (svr4_auxv_parse): New.
8293 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8294 and generic_auxv_parse.
8295 (svr4_auxv_parse): Add.
8296 * obsd-tdep.c: Include "auxv.h".
8297 (obsd_auxv_parse): Remove.
8298 (obsd_init_abi): Remove comment.
8299 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8300 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8301 * nbsd-tdep.c: Include "auxv.h".
8302 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8303
71fbdbaf
TT
83042020-04-08 Tom Tromey <tromey@adacore.com>
8305
8306 * nat/windows-nat.h (last_wait_event): Don't declare.
8307 (wait_for_debug_event): Update comment.
8308 * nat/windows-nat.c (last_wait_event): Now static.
8309
2c1d95e8
TT
83102020-04-08 Tom Tromey <tromey@adacore.com>
8311
8312 * windows-nat.c (wait_for_debug_event): Move to
8313 nat/windows-nat.c.
8314 * nat/windows-nat.h (wait_for_debug_event): Declare.
8315 * nat/windows-nat.c (wait_for_debug_event): Move from
8316 windows-nat.c. No longer static.
8317
d2977bc4
TT
83182020-04-08 Tom Tromey <tromey@adacore.com>
8319
8320 * windows-nat.c (get_windows_debug_event): Use
8321 fetch_pending_stop.
8322 * nat/windows-nat.h (fetch_pending_stop): Declare.
8323 * nat/windows-nat.c (fetch_pending_stop): New function.
8324
e758e19c
TT
83252020-04-08 Tom Tromey <tromey@adacore.com>
8326
8327 * windows-nat.c (windows_continue): Use matching_pending_stop and
8328 continue_last_debug_event.
8329 * nat/windows-nat.h (matching_pending_stop)
8330 (continue_last_debug_event): Declare.
8331 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8332 (matching_pending_stop, continue_last_debug_event): New
8333 functions.
8334
8d30e395
TT
83352020-04-08 Tom Tromey <tromey@adacore.com>
8336
8337 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8338 (handle_exception_result): Move to nat/windows-nat.h.
8339 (DEBUG_EXCEPTION_SIMPLE): Remove.
8340 (windows_nat::handle_ms_vc_exception): New function.
8341 (handle_exception): Move to nat/windows-nat.c.
8342 (get_windows_debug_event): Update.
8343 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8344 nat/windows-nat.c.
8345 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8346 (handle_exception_result): Move from windows-nat.c.
8347 (handle_exception): Declare.
8348 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8349 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8350 windows-nat.c.
8351
29de418d
TT
83522020-04-08 Tom Tromey <tromey@adacore.com>
8353
8354 * windows-nat.c (exception_count, event_count): Remove.
8355 (handle_exception, get_windows_debug_event)
8356 (do_initial_windows_stuff): Update.
8357
a816ba18
TT
83582020-04-08 Tom Tromey <tromey@adacore.com>
8359
8360 * windows-nat.c (windows_nat::handle_load_dll)
8361 (windows_nat::handle_unload_dll): Rename. No longer static.
8362 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8363 Declare.
8364
a00caa12
TT
83652020-04-08 Tom Tromey <tromey@adacore.com>
8366
8367 * complaints.h (stop_whining): Declare at top-level.
8368 (complaint): Don't declare stop_whining.
8369
d41b524f
TT
83702020-04-08 Tom Tromey <tromey@adacore.com>
8371
8372 * windows-nat.c (windows_nat::handle_output_debug_string):
8373 Rename. No longer static.
8374 * nat/windows-nat.h (handle_output_debug_string): Declare.
8375
3c76026d
TT
83762020-04-08 Tom Tromey <tromey@adacore.com>
8377
8378 * windows-nat.c (current_process_handle, current_process_id)
8379 (main_thread_id, last_sig, current_event, last_wait_event)
8380 (current_windows_thread, desired_stop_thread_id, pending_stops)
8381 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8382 (display_selectors, fake_create_process)
8383 (get_windows_debug_event): Update.
8384 * nat/windows-nat.h (current_process_handle, current_process_id)
8385 (main_thread_id, last_sig, current_event, last_wait_event)
8386 (current_windows_thread, desired_stop_thread_id, pending_stops)
8387 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8388 * nat/windows-nat.c (current_process_handle, current_process_id)
8389 (main_thread_id, last_sig, current_event, last_wait_event)
8390 (current_windows_thread, desired_stop_thread_id, pending_stops)
8391 (siginfo_er): New globals. Move from windows-nat.c.
8392
9d8679cc
TT
83932020-04-08 Tom Tromey <tromey@adacore.com>
8394
8395 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8396 (handle_load_dll): Update.
8397 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8398
28688adf
TT
83992020-04-08 Tom Tromey <tromey@adacore.com>
8400
8401 * windows-nat.c (enum thread_disposition_type): Move to
8402 nat/windows-nat.h.
8403 (windows_nat::thread_rec): Rename from thread_rec. No longer
8404 static.
8405 (windows_add_thread, windows_nat_target::fetch_registers)
8406 (windows_nat_target::store_registers, handle_exception)
8407 (windows_nat_target::resume, get_windows_debug_event)
8408 (windows_nat_target::get_tib_address)
8409 (windows_nat_target::thread_name)
8410 (windows_nat_target::thread_alive): Update.
8411 * nat/windows-nat.h (enum thread_disposition_type): Move from
8412 windows-nat.c.
8413 (thread_rec): Declare.
8414
4834dad0
TT
84152020-04-08 Tom Tromey <tromey@adacore.com>
8416
8417 * windows-nat.c: Add "using namespace".
8418 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8419 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8420
65bafd5b
TT
84212020-04-08 Tom Tromey <tromey@adacore.com>
8422
8423 * nat/windows-nat.h (struct windows_thread_info): Declare
8424 destructor.
8425 * nat/windows-nat.c (~windows_thread_info): New.
8426
0a4afda3
TT
84272020-04-08 Tom Tromey <tromey@adacore.com>
8428
8429 PR gdb/22992
8430 * windows-nat.c (current_event): Update comment.
8431 (last_wait_event, desired_stop_thread_id): New globals.
8432 (struct pending_stop): New.
8433 (pending_stops): New global.
8434 (windows_nat_target) <stopped_by_sw_breakpoint>
8435 <supports_stopped_by_sw_breakpoint>: New methods.
8436 (windows_fetch_one_register): Add assertions. Adjust PC.
8437 (windows_continue): Handle pending stops. Suspend other threads
8438 when stepping. Use last_wait_event
8439 (wait_for_debug_event): New function.
8440 (get_windows_debug_event): Use wait_for_debug_event. Handle
8441 pending stops. Queue spurious stops.
8442 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8443 (windows_nat_target::kill): Use wait_for_debug_event.
8444 * nat/windows-nat.h (struct windows_thread_info)
8445 <stopped_at_software_breakpoint>: New field.
8446 * nat/windows-nat.c (windows_thread_info::resume): Clear
8447 stopped_at_software_breakpoint.
8448
8e61ebec
TT
84492020-04-08 Tom Tromey <tromey@adacore.com>
8450
8451 * windows-nat.c (enum thread_disposition_type): New.
8452 (thread_rec): Replace "get_context" parameter with "disposition";
8453 change type.
8454 (windows_add_thread, windows_nat_target::fetch_registers)
8455 (windows_nat_target::store_registers, handle_exception)
8456 (windows_nat_target::resume, get_windows_debug_event)
8457 (windows_nat_target::get_tib_address)
8458 (windows_nat_target::thread_name)
8459 (windows_nat_target::thread_alive): Update.
8460
98a03287
TT
84612020-04-08 Tom Tromey <tromey@adacore.com>
8462
8463 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8464 (windows_continue): Use windows_continue::resume.
8465 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8466 resume>: Declare new methods.
8467 * nat/windows-nat.c: New file.
8468 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8469
7c7411bc
TT
84702020-04-08 Tom Tromey <tromey@adacore.com>
8471
8472 * windows-nat.c (windows_add_thread, windows_delete_thread)
8473 (windows_nat_target::fetch_registers)
8474 (windows_nat_target::store_registers, fake_create_process)
8475 (windows_nat_target::resume, windows_nat_target::resume)
8476 (get_windows_debug_event, windows_nat_target::wait)
8477 (windows_nat_target::pid_to_str)
8478 (windows_nat_target::get_tib_address)
8479 (windows_nat_target::get_ada_task_ptid)
8480 (windows_nat_target::thread_name)
8481 (windows_nat_target::thread_alive): Use lwp, not tid.
8482
2950fdf7
TT
84832020-04-08 Tom Tromey <tromey@adacore.com>
8484
8485 * windows-nat.c (handle_exception)
8486 (windows_nat_target::thread_name): Update.
8487 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8488 <name>: Now unique_xmalloc_ptr.
8489
62fe396b
TT
84902020-04-08 Tom Tromey <tromey@adacore.com>
8491
8492 * windows-nat.c (thread_rec)
8493 (windows_nat_target::fetch_registers): Update.
8494 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8495 Update comment.
8496 <debug_registers_changed, reload_context>: Now bool.
8497
e9534bd2
TT
84982020-04-08 Tom Tromey <tromey@adacore.com>
8499
8500 * windows-nat.c (windows_add_thread): Use new.
8501 (windows_init_thread_list, windows_delete_thread): Use delete.
8502 (get_windows_debug_event): Update.
8503 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8504 destructor, and initializers.
8505
ae1f8880
TT
85062020-04-08 Tom Tromey <tromey@adacore.com>
8507
8508 * windows-nat.c (struct windows_thread_info): Remove.
8509 * nat/windows-nat.h: New file.
8510
55a1e039
TT
85112020-04-08 Tom Tromey <tromey@adacore.com>
8512
8513 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8514 (thread_rec, windows_add_thread, windows_delete_thread)
8515 (windows_continue): Update.
8516
93366324
TT
85172020-04-08 Tom Tromey <tromey@adacore.com>
8518
8519 * windows-nat.c (struct windows_thread_info): Remove typedef.
8520 (thread_head): Remove.
8521 (thread_list): New global.
8522 (thread_rec, windows_add_thread, windows_init_thread_list)
8523 (windows_delete_thread, windows_continue): Update.
8524
0f2265e2
SM
85252020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8526
8527 * windows-tdep.h (windows_init_abi): Add comment.
8528 (cygwin_init_abi): New declaration.
8529 * windows-tdep.c: Split signal enumeration in two, one for
8530 Windows and one for Cygwin.
8531 (windows_gdb_signal_to_target): Only deal with signal of the
8532 Windows OS ABI.
8533 (cygwin_gdb_signal_to_target): New function.
8534 (windows_init_abi): Rename to windows_init_abi_common, don't set
8535 gdb_signal_to_target gdbarch method. Add new new function with
8536 this name.
8537 (cygwin_init_abi): New function.
8538 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8539 comment. Don't call windows_init_abi.
8540 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8541 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8542 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8543 i386_windows_init_abi_common, don't call windows_init_abi. Add
8544 a new function of this name.
8545 (i386_cygwin_init_abi): New function.
8546 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8547 OS ABI Cygwin.
8548
3810f182
SM
85492020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8550
8551 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8552 parameter.c.
8553 (dwarf2_read_gdb_index): Update.
8554
063f8e80
KR
85552020-04-07 Kamil Rytarowski <n54@gmx.com>
8556
8557 * nbsd-tdep.c: Include "objfiles.h".
8558 (nbsd_skip_solib_resolver): New.
8559 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8560
85a9510c 85612020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8562
8563 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8564 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8565 with DW_LLE_base_addressx are being emitted in DWARFv5.
8566 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8567 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8568 unsigned integer.
8569
9fc3eaae 85702020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8571
8572 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8573 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8574 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8575 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8576 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8577 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8578 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8579
8580
41144253 85812020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8582
8583 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8584 (read_loclist_index): New function definition.
8585 (lookup_loclist_base): New function definition.
8586 (read_loclist_header): New function definition.
8587 (dwarf2_cu): Add loclist_base and loclist_header field.
8588 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8589 (read_full_die_1): Read the value of DW_AT_loclists_base.
8590 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8591 (read_attribute_value): Handle DW_FORM_loclistx.
8592 (skip_one_die): Handle DW_FORM_loclistx.
8593 (loclist_header): New structure declaration.
8594 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8595
9f4e76a4
SM
85962020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8597
8598 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8599 constructor. Remove `addr` parameter from other constructor and
8600 add `per_cu` parameter.
8601 * dwarf2/read.c (create_partial_symtab): Update.
8602
25c11aca
TV
86032020-04-07 Tom de Vries <tdevries@suse.de>
8604
8605 PR symtab/25796
8606 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8607 (partial_die_info::fixup): Inherit has_const_value.
8608
5707e24b
TV
86092020-04-07 Tom de Vries <tdevries@suse.de>
8610
8611 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8612 symbols without address.
8613
05f00e22
KR
86142020-04-06 Kamil Rytarowski <n54@gmx.com>
8615
8616 * nbsd-nat.h (struct thread_info): Add forward declaration.
8617 (nbsd_nat_target::thread_alive): Add.
8618 (nbsd_nat_target::thread_name): Likewise.
8619 (nbsd_nat_target::update_thread_list): Likewise.
8620 (update_thread_list::post_attach): Likewise.
8621 (post_attach::pid_to_str): Likewise.
8622 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8623 (nbsd_thread_lister): Add.
8624 (nbsd_nat_target::thread_alive): Likewise.
8625 (nbsd_nat_target::thread_name): Likewise.
8626 (nbsd_add_threads): Likewise.
8627 (update_thread_list::post_attach): Likewise.
8628 (nbsd_nat_target::update_thread_list): Likewise.
8629 (post_attach::pid_to_str): Likewise.
8630
6ee448cc
TT
86312020-04-06 Tom Tromey <tromey@adacore.com>
8632
8633 * ada-valprint.c (print_variant_part): Extract the variant field.
8634 (print_field_values): Use the field as the outer value when
8635 recursing.
8636
dea34e8c
TT
86372020-04-06 Tom Tromey <tromey@adacore.com>
8638
8639 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8640 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8641 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8642 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8643 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8644
93689ce9
TT
86452020-04-06 Tom Tromey <tromey@adacore.com>
8646
8647 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8648 TYPE_CODE_ERROR.
8649
79743962
KR
86502020-04-06 Kamil Rytarowski <n54@gmx.com>
8651
8652 * nbsd-tdep.c: Include "gdbarch.h".
8653 Define enum with NetBSD signal numbers.
8654 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8655 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8656 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8657 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8658 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8659 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8660 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8661 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8662 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8663 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8664 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8665 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8666
9e7c9a03
HD
86672020-04-03 Hannes Domani <ssbssa@yahoo.de>
8668
8669 PR gdb/25325
8670 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8671
d9e49b61
TT
86722020-04-03 Tom Tromey <tromey@adacore.com>
8673
8674 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8675 Read constant block.
8676
e0fc5c3f
SM
86772020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8678
8679 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8680 (gdb_bfd_get_full_section_contents): New declaration.
8681 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8682 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8683 gdb_bfd_get_full_section_contents.
8684
e2ff18a0
SM
86852020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8686
8687 * exec.c (build_section_table): Replace internal_error with
8688 gdb_assert.
8689 (section_table_xfer_memory_partial): Likewise.
8690 * mdebugread.c (parse_partial_symbols): Likewise.
8691 * psymtab.c (lookup_partial_symbol): Likewise.
8692 * utils.c (wrap_here): Likewise.
8693
0830d301
TT
86942020-04-02 Tom Tromey <tromey@adacore.com>
8695
8696 * f-lang.c (build_fortran_types): Use arch_type to initialize
8697 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8698
e7da7f8f
TT
86992020-04-02 Tom Tromey <tromey@adacore.com>
8700
8701 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8702 of attributes.
8703
c90d28ac
AB
87042020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8705 Bernd Edlinger <bernd.edlinger@hotmail.de>
8706 Tom Tromey <tromey@adacore.com>
8707
8708 * buildsym.c (buildsym_compunit::record_line): Remove
8709 deduplication code.
8710
1aa98955
TV
87112020-04-02 Tom de Vries <tdevries@suse.de>
8712
8713 PR ada/24671
8714 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8715
d3214198
TV
87162020-04-02 Tom de Vries <tdevries@suse.de>
8717
8718 * dwarf2/read.c (dwarf2_gdb_index_functions,
8719 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8720 NULL.
8721 * psymtab.c (psym_lookup_global_symbol_language): New function.
8722 (psym_functions): Init psym_lookup_global_symbol_language with
8723 psym_lookup_global_symbol_language.
8724 * symfile-debug.c (debug_sym_quick_functions): Init
8725 lookup_global_symbol_language with NULL.
8726 * symfile.c (set_initial_language): Remove fixme comment.
8727 * symfile.h (struct quick_symbol_functions): Add
8728 lookup_global_symbol_language.
8729 * symtab.c (find_quick_global_symbol_language): New function.
8730 (find_main_name): Use find_quick_global_symbol_language.
8731
2836752f
SM
87322020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8733
8734 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8735
64dc2d4b
BE
87362020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8737
8738 * buildsym.c (record_line): Fix undefined behavior and preserve
8739 lines at eof.
8740
bbe3dc41
BE
87412020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8742
8743 * buildsym.c (record_line): Fix the resizing condition.
8744
6b4a335b
TT
87452020-04-01 Tom Tromey <tom@tromey.com>
8746
8747 * value.h (value_literal_complex): Add comment.
8748 * valops.c (value_literal_complex): Refer to value.h.
8749
3638a098
TT
87502020-04-01 Tom Tromey <tom@tromey.com>
8751
8752 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8753 (scalar_type): New rule, from typebase.
8754 (typebase): Use scalar_type. Recognize complex types.
8755 (field_name): Handle FLOAT_KEYWORD.
8756 (ident_tokens): Add _Complex and __complex__.
8757
c34e8714
TT
87582020-04-01 Tom Tromey <tom@tromey.com>
8759
8760 PR exp/25299:
8761 * valarith.c (promotion_type, complex_binop): New functions.
8762 (scalar_binop): Handle complex numbers. Use promotion_type.
8763 (value_pos, value_neg, value_complement): Handle complex numbers.
8764
fa649bb7
TT
87652020-04-01 Tom Tromey <tom@tromey.com>
8766
8767 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8768 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8769 (parse_number): Handle complex numbers.
8770
981c08ce
TT
87712020-04-01 Tom Tromey <tom@tromey.com>
8772
8773 * c-valprint.c (c_decorations): Change complex suffix to "i".
8774
4c99290d
TT
87752020-04-01 Tom Tromey <tom@tromey.com>
8776
8777 * valprint.c (generic_value_print_complex): Use accessors.
8778 * value.h (value_real_part, value_imaginary_part): Declare.
8779 * valops.c (value_real_part, value_imaginary_part): New
8780 functions.
8781 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8782
5b930b45
TT
87832020-04-01 Tom Tromey <tom@tromey.com>
8784
8785 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8786 (read_range_type): Update.
8787 * mdebugread.c (basic_type): Update.
8788 * go-lang.c (build_go_types): Use init_complex_type.
8789 * gdbtypes.h (struct main_type) <complex_type>: New member.
8790 (init_complex_type): Update.
8791 (arch_complex_type): Don't declare.
8792 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8793 Make name if none given. Use alloc_type_copy. Look for cached
8794 complex type.
8795 (arch_complex_type): Remove.
8796 (gdbtypes_post_init): Use init_complex_type.
8797 * f-lang.c (build_fortran_types): Use init_complex_type.
8798 * dwarf2/read.c (read_base_type): Update.
8799 * d-lang.c (build_d_types): Use init_complex_type.
8800 * ctfread.c (read_base_type): Update.
8801
53cccef1
TBA
88022020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8803
8804 * infrun.c (stop_all_threads): Update assertion, plus when
8805 stopping threads, take into account that we might be trying
8806 to stop an all-stop target.
8807 (stop_waiting): Call 'stop_all_threads' if there exists a
8808 non-stop target.
8809
a0714d30
TBA
88102020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8811
8812 * target.h (exists_non_stop_target): New function declaration.
8813 * target.c (exists_non_stop_target): New function.
8814
60e22c1e
HD
88152020-04-01 Hannes Domani <ssbssa@yahoo.de>
8816
8817 PR gdb/24789
8818 * eval.c (is_integral_or_integral_reference): New function.
8819 (evaluate_subexp_standard): Allow integer references in
8820 pointer arithmetic.
8821
e139a727
TBA
88222020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8823
8824 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8825 check for no ptid in the stop reply when the target is non-stop.
8826
e0802d59
TT
88272020-04-01 Tom Tromey <tromey@adacore.com>
8828
8829 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8830 "name" parameter to rvalue reference. Initialize m_name_holder.
8831 <lookup_name_info>: New overloads.
8832 <name>: Return gdb::string_view.
8833 <c_str>: New method.
8834 <make_ignore_params>: Update.
8835 <search_name_hash>: Update.
8836 <language_lookup_name>: Return const char *.
8837 <m_name>: Change type.
8838 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8839 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8840 (lookup_name_info::match_any): Update.
8841 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8842 Update.
8843 * minsyms.c (linkage_name_str): Update.
8844 * language.c (default_symbol_name_matcher): Update.
8845 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8846 Update.
8847 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8848 (ada_lookup_name_info::ada_lookup_name_info): Update.
8849 (literal_symbol_name_matcher): Update.
8850
8c072cb6
TT
88512020-04-01 Tom Tromey <tromey@adacore.com>
8852
8853 * psymtab.c (psymtab_search_name): Remove function.
8854 (psym_lookup_symbol): Create search name and lookup name here.
8855 (lookup_partial_symbol): Remove "name" parameter; add
8856 lookup_name.
8857 (psym_expand_symtabs_for_function): Update.
8858
6f29a534
TT
88592020-03-31 Joel Jones <joelkevinjones@gmail.com>
8860
8861 PR tui/25597:
8862 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8863
af62665e
TT
88642020-03-31 Tom Tromey <tromey@adacore.com>
8865
8866 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8867 memcpy.
8868
d1a89da5
NC
88692020-03-30 Nelson Chu <nelson.chu@sifive.com>
8870
8871 * features/riscv/32bit-csr.xml: Regenerated.
8872 * features/riscv/64bit-csr.xml: Regenerated.
8873
d8af9068
TT
88742020-03-30 Tom Tromey <tromey@adacore.com>
8875
8876 * ada-valprint.c (print_variant_part): Update.
8877 * ada-lang.h (ada_which_variant_applies): Update.
8878 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8879 outer_valaddr parameters; replace with "outer" value parameter.
8880 (to_fixed_variant_branch_type): Update.
8881
227c0bf4
PFC
88822020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8883
8884 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8885 <list>. Remove inclusion of observable.h.
8886 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8887 (struct arch_lwp_info): New struct.
8888 (class ppc_linux_dreg_interface): New class.
8889 (struct ppc_linux_process_info): New struct.
8890 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8891 <low_new_clone, low_forget_process, low_prepare_to_resume>
8892 <copy_thread_dreg_state, mark_thread_stale>
8893 <mark_debug_registers_changed, register_hw_breakpoint>
8894 <clear_hw_breakpoint, register_wp, clear_wp>
8895 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8896 <num_memory_accesses, get_trigger_type>
8897 <create_watchpoint_request, hwdebug_point_cmp>
8898 <init_arch_lwp_info, get_arch_lwp_info>
8899 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8900 methods.
8901 <struct ptid_hash>: New inner struct.
8902 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8903 members.
8904 (saved_dabr_value, hwdebug_info, max_slots_number)
8905 (struct hw_break_tuple, struct thread_points, ppc_threads)
8906 (have_ptrace_hwdebug_interface)
8907 (hwdebug_find_thread_points_by_tid)
8908 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8909 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8910 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8911 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8912 use m_dreg_interface.
8913 (hwdebug_point_cmp): Change to...
8914 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8915 reference arguments instead of pointers.
8916 (ppc_linux_nat_target::ranged_break_num_registers): Use
8917 m_dreg_interface.
8918 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8919 m_dreg_interface. Call register_hw_breakpoint.
8920 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8921 m_dreg_interface. Call clear_hw_breakpoint.
8922 (get_trigger_type): Change to...
8923 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8924 comment.
8925 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8926 use m_dreg_interface. Call register_hw_breakpoint.
8927 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8928 use m_dreg_interface. Call clear_hw_breakpoint.
8929 (can_use_watchpoint_cond_accel): Change to...
8930 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8931 method. Update comment, use m_dreg_interface and
8932 m_process_info.
8933 (calculate_dvc): Change to...
8934 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8935 m_dreg_interface.
8936 (num_memory_accesses): Change to...
8937 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8938 (check_condition): Change to...
8939 (ppc_linux_nat_target::check_condition): ...this method.
8940 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8941 comment, use m_dreg_interface.
8942 (create_watchpoint_request): Change to...
8943 (ppc_linux_nat_target::create_watchpoint_request): ...this
8944 method. Use m_dreg_interface.
8945 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8946 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8947 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8948 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8949 (ppc_linux_nat_target::low_forget_process)
8950 (ppc_linux_nat_target::low_new_fork)
8951 (ppc_linux_nat_target::low_new_clone)
8952 (ppc_linux_nat_target::low_delete_thread)
8953 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8954 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8955 only call mark_thread_stale.
8956 (ppc_linux_thread_exit): Remove.
8957 (ppc_linux_nat_target::stopped_data_address): Change to...
8958 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8959 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8960 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8961 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8962 comment. Call low_stopped_data_address.
8963 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8964 m_dreg_interface.
8965 (ppc_linux_nat_target::masked_watch_num_registers): Use
8966 m_dreg_interface.
8967 (ppc_linux_nat_target::copy_thread_dreg_state)
8968 (ppc_linux_nat_target::mark_thread_stale)
8969 (ppc_linux_nat_target::mark_debug_registers_changed)
8970 (ppc_linux_nat_target::register_hw_breakpoint)
8971 (ppc_linux_nat_target::clear_hw_breakpoint)
8972 (ppc_linux_nat_target::register_wp)
8973 (ppc_linux_nat_target::clear_wp)
8974 (ppc_linux_nat_target::init_arch_lwp_info)
8975 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8976 (_initialize_ppc_linux_nat): Remove observer callback.
8977
4db10d8f
PFC
89782020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8979
8980 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8981 (ppc_linux_nat_target::auxv_parse)
8982 (ppc_linux_nat_target::read_description)
8983 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8984 Move up.
8985
1310c1b0
PFC
89862020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8987
8988 * linux-nat.h (low_new_clone): New method.
8989 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8990
69b037c3
SM
89912020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8992
8993 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8994 (dbx_expand_psymtab): ... this.
8995 (start_psymtab): Update.
8996 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8997 (mdebug_expand_psymtab): ... this.
8998 (parse_partial_symbols): Update.
8999 (new_psymtab): Update.
9000 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9001 (xcoff_expand_psymtab): ... this.
9002 (xcoff_start_psymtab): Update.
9003
48993951
SM
90042020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9005
9006 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9007 <expand_dependencies>: ... this.
9008 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9009 (partial_symtab::expand_dependencies): ... this.
9010 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9011 Update.
9012 (dwarf2_psymtab::expand_psymtab): Update.
9013 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9014 * mdebugread.c (psymtab_to_symtab_1): Update.
9015 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9016
3ad83046
SM
90172020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9018
9019 * psympriv.h (discard_psymtab): Remove.
9020 * dbxread.c (dbx_end_psymtab): Update.
9021 * xcoffread.c (xcoff_end_psymtab): Update.
9022
4d1b9ab6
TT
90232020-03-28 Tom Tromey <tom@tromey.com>
9024
9025 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9026 comment.
9027
f1749218
TT
90282020-03-28 Tom Tromey <tom@tromey.com>
9029
9030 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9031
ebea7626
HD
90322020-03-27 Hannes Domani <ssbssa@yahoo.de>
9033
9034 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9035
a879b4d5
JB
90362020-03-26 John Baldwin <jhb@FreeBSD.org>
9037
9038 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9039
0826b30a
TT
90402020-03-26 Tom Tromey <tom@tromey.com>
9041
9042 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9043 (mark_common_block_symbol_computed, read_tag_string_type)
9044 (attr_to_dynamic_prop, read_subrange_type): Update.
9045 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9046 to be methods on struct attribute.
9047 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9048 (read_call_site_scope, partial_die_info::read)
9049 (partial_die_info::read, lookup_die_type, follow_die_ref):
9050 Update.
9051 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9052 from dwarf2_get_ref_die_offset.
9053 (attribute::constant_value): New method, from
9054 dwarf2_get_attr_constant_value.
9055 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9056 Declare method.
9057 <constant_value>: New method.
9058
2b2558bf
TT
90592020-03-26 Tom Tromey <tom@tromey.com>
9060
9061 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9062 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9063 (dwarf_type_encoding_name): Move to stringify.c.
9064 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9065 * dwarf2/stringify.c: New file.
9066 * dwarf2/stringify.h: New file.
9067
eeb64781
TT
90682020-03-26 Tom Tromey <tom@tromey.com>
9069
9070 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9071 Rewrite.
9072
a39fdb41
TT
90732020-03-26 Tom Tromey <tom@tromey.com>
9074
9075 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9076 methods.
9077 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9078 (lookup_ranges_base): Likewise.
9079 (read_cutu_die_from_dwo, read_full_die_1): Update.
9080
436c571c
TT
90812020-03-26 Tom Tromey <tom@tromey.com>
9082
9083 * dwarf2/read.c (read_import_statement, read_file_scope)
9084 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9085 (read_lexical_block_scope, read_call_site_scope)
9086 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9087 (handle_struct_member_die, process_structure_scope)
9088 (update_enumeration_type_from_children)
9089 (process_enumeration_scope, read_array_type, read_common_block)
9090 (read_namespace, read_module, read_subroutine_type): Update.
9091 (sibling_die): Remove.
9092
052c8bb8
TT
90932020-03-26 Tom Tromey <tom@tromey.com>
9094
9095 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9096 (build_type_psymtabs_reader, read_structure_type)
9097 (read_enumeration_type, read_full_die_1): Update.
9098 (dwarf2_attr_no_follow): Move to die.h.
9099 * dwarf2/die.h (struct die_info) <attr>: New method.
9100
2b24b6e4
TT
91012020-03-26 Tom Tromey <tom@tromey.com>
9102
9103 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9104 <base_address>: Now an optional.
9105 (dwarf2_find_base_address, dwarf2_rnglists_process)
9106 (dwarf2_ranges_process, fill_in_loclist_baton)
9107 (dwarf2_symbol_mark_computed): Update.
9108
c2d50fd0
TT
91092020-03-26 Tom Tromey <tom@tromey.com>
9110
9111 * dwarf2/read.c (struct die_info): Move to die.h.
9112 * dwarf2/die.h: New file.
9113
0df7ad3a
TT
91142020-03-26 Tom Tromey <tom@tromey.com>
9115
9116 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9117 * dwarf2/read.c
9118 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9119 Move to line-header.c.
9120 (read_checked_initial_length_and_offset, read_formatted_entries):
9121 Likewise.
9122 (dwarf_decode_line_header): Split into two.
9123 * dwarf2/line-header.c
9124 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9125 Move from read.c.
9126 (read_checked_initial_length_and_offset, read_formatted_entries):
9127 Likewise.
9128 (dwarf_decode_line_header): New function, split from read.c.
9129
86c0bb4c
TT
91302020-03-26 Tom Tromey <tom@tromey.com>
9131
9132 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9133 Declare method.
9134 * dwarf2/read.c (read_attribute_value): Update.
9135 (dwarf2_per_objfile::read_line_string): Rename from
9136 read_indirect_line_string.
9137 (read_formatted_entries): Update.
9138
2ef46c2f
TT
91392020-03-26 Tom Tromey <tom@tromey.com>
9140
9141 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9142 variable.
9143
4f9c1eda
TT
91442020-03-26 Tom Tromey <tom@tromey.com>
9145
9146 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9147 const.
9148 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9149 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9150 parameter const.
9151
5a0e026f
TT
91522020-03-26 Tom Tromey <tom@tromey.com>
9153
9154 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9155 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9156 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9157 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9158
8844c11b
TT
91592020-03-26 Tom Tromey <tom@tromey.com>
9160
9161 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9162 file_names_size, file_full_name, file_file_name>: Use const.
9163 <file_name_at, file_names>: Add const overload.
9164 * dwarf2/line-header.c (line_header::file_file_name)
9165 (line_header::file_full_name): Update.
9166
c90ec28a
TT
91672020-03-26 Tom Tromey <tom@tromey.com>
9168
9169 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9170 (macro_start_file, consume_improper_spaces)
9171 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9172 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9173 (dwarf_decode_macros): Move to macro.c.
9174 * dwarf2/macro.c: New file.
9175 * dwarf2/macro.h: New file.
9176 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9177
4f44ae6c
TT
91782020-03-26 Tom Tromey <tom@tromey.com>
9179
9180 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9181 method.
9182 * dwarf2/section.c: New method. From
9183 read_indirect_string_at_offset_from.
9184 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9185 (read_indirect_string_at_offset_from): Move to section.c.
9186 (read_indirect_string_at_offset): Rewrite.
9187 (read_indirect_line_string_at_offset): Remove.
9188 (read_indirect_string, read_indirect_line_string)
9189 (dwarf_decode_macro_bytes): Update.
9190
a0194fa8
TT
91912020-03-26 Tom Tromey <tom@tromey.com>
9192
9193 * dwarf2/section.h (struct dwarf2_section_info)
9194 <overload_complaint>: Declare.
9195 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9196 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9197 Rename from dwarf2_section_buffer_overflow_complaint.
9198 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9199 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9200
3d27bbdb
TT
92012020-03-26 Tom Tromey <tom@tromey.com>
9202
9203 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9204 Declare.
9205 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9206 Move from read.c.
9207 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9208 to section.c.
9209
9eac9650
TT
92102020-03-26 Tom Tromey <tom@tromey.com>
9211
9212 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9213
bf80d710
TT
92142020-03-26 Tom Tromey <tom@tromey.com>
9215
9216 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9217 "builder".
9218 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9219 parameter.
9220 (dwarf_decode_macros): Update.
9221
0314b390
TT
92222020-03-26 Tom Tromey <tom@tromey.com>
9223
9224 * dwarf2/read.c (read_attribute_value): Update.
9225 (read_indirect_string_from_dwz): Move to dwz.c; change into
9226 method.
9227 (dwarf_decode_macro_bytes): Update.
9228 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9229 * dwarf2/dwz.c: New file.
9230 * Makefile.in (COMMON_SFILES): Add dwz.c.
9231
9fda78b6
TT
92322020-03-26 Tom Tromey <tom@tromey.com>
9233
9234 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9235 * dwarf2/read.c: Add include.
9236 * dwarf2/index-write.c: Add include.
9237 * dwarf2/index-cache.c: Add include.
9238 * dwarf2/dwz.h: New file.
9239
33aa3c10
TT
92402020-03-25 Tom Tromey <tom@tromey.com>
9241
9242 * compile/compile-object-load.c (get_out_value_type): Mention
9243 correct symbol name in error message.
9244
d503b685
HD
92452020-03-25 Hannes Domani <ssbssa@yahoo.de>
9246
9247 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9248
7b1eff95
TV
92492020-03-25 Tom de Vries <tdevries@suse.de>
9250
9251 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9252 * symmisc.c (dump_symtab_1): Print user and includes fields.
9253 (maintenance_info_symtabs): Same.
9254
dd895392
AB
92552020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9256
9257 PR gdb/25534
9258 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9259 (riscv_regcache_cooked_write): New function.
9260 (riscv_push_dummy_call): Use new function.
9261 (riscv_return_value): Likewise.
9262
5ab2fbf1
SM
92632020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9264
9265 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9266 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9267 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9268 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9269 * infrun.c (follow_fork): Likewise.
9270 (follow_fork_inferior): Likewise.
9271 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9272 * linux-nat.h (class linux_nat_target): Likewise.
9273 * remote.c (class remote_target) <follow_fork>: Likewise.
9274 (remote_target::follow_fork): Likewise.
9275 * target-delegates.c: Re-generate.
9276 * target.c (default_follow_fork): Likewise.
9277 (target_follow_fork): Likewise.
9278 * target.h (struct target_ops) <follow_fork>: Likewise.
9279 (target_follow_fork): Likewise.
9280
a64fafb5
TV
92812020-03-24 Tom de Vries <tdevries@suse.de>
9282
9283 * psymtab.c (maintenance_info_psymtabs): Print user field.
9284
fe26d3a3
TT
92852020-03-20 Tom Tromey <tromey@adacore.com>
9286
9287 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9288 const.
9289 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9290 const.
9291
c884cc46
SM
92922020-03-20 Simon Marchi <simon.marchi@efficios.com>
9293
9294 * ptrace.m4: Don't check for ptrace declaration.
9295 * config.in: Re-generate.
9296 * configure: Re-generate.
9297 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9298 not defined.
9299
1ff700c2
KR
93002020-03-20 Kamil Rytarowski <n54@gmx.com>
9301
9302 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9303 `PTRACE_TYPE_RET'.
9304 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9305 * sparc-nat.c (gdb_ptrace): Likewise.
9306 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9307
f7d4f0b1
TT
93082020-03-20 Tom Tromey <tromey@adacore.com>
9309
9310 * c-exp.y (lex_one_token): Fix assert.
9311
f67210ff
TT
93122020-03-20 Tom Tromey <tromey@adacore.com>
9313
9314 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9315 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9316 strncpy call.
9317
1773be9e
TT
93182020-03-20 Tom Tromey <tromey@adacore.com>
9319
9320 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9321
70304be9
TT
93222020-03-20 Tom Tromey <tromey@adacore.com>
9323
9324 * ada-valprint.c (print_variant_part): Remove parameters; switch
9325 to value-based API.
9326 (print_field_values): Likewise.
9327 (ada_val_print_struct_union): Likewise.
9328 (ada_value_print_1): Update.
9329
9faa006d
KR
93302020-03-20 Kamil Rytarowski <n54@gmx.com>
9331
9332 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9333 nbsd_nat_target instead of inf_ptrace_target.
9334 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9335 nbsd_nat_target.
9336
4a90f062
KR
93372020-03-20 Kamil Rytarowski <n54@gmx.com>
9338
9339 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9340 it to the ptrace call.
9341 * (store_registers): Likewise.
9342
93432020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9344
9345 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9346 it to the ptrace call.
9347 * (store_registers): Likewise.
9348
2d07da27
LM
93492020-03-19 Luis Machado <luis.machado@linaro.org>
9350
9351 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9352 valid, fetch vg value from ptrace.
9353
f09db380
KR
93542020-03-19 Kamil Rytarowski <n54@gmx.com>
9355 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9356 * inf-ptrace.c: Likewise.
9357 * (gdb_ptrace): Add.
9358 * (inf_ptrace_target::resume): Update.
9359 * (inf_ptrace_target::xfer_partial): Likewise.
9360 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9361 * (inf_ptrace_peek_poke): Update.
9362
fcc7376e
KR
93632020-03-19 Kamil Rytarowski <n54@gmx.com>
9364
9365 * x86-bsd-nat.c (gdb_ptrace): New.
9366 * (x86bsd_dr_set): Add new argument `ptid'.
9367 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9368 x86bsd_dr_set_addr): Update.
9369
cada5fc9
AB
93702020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9371
9372 * remote.c (remote_target::process_stop_reply): Handle events for
9373 all threads differently.
9374
19a2740f
AB
93752020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9376
9377 * completer.c (completion_tracker::remove_completion): Define new
9378 function.
9379 * completer.h (completion_tracker::remove_completion): Declare new
9380 function.
9381 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9382 when adding a C++ function symbol.
9383
724fd9ba
AB
93842020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9385
9386 * completer.c (completion_tracker::completion_hash_entry): Define
9387 new class.
9388 (advance_to_filename_complete_word_point): Call
9389 recompute_lowest_common_denominator.
9390 (completion_tracker::completion_tracker): Call discard_completions
9391 to setup the hash table.
9392 (completion_tracker::discard_completions): Allow for being called
9393 from the constructor, pass new equal function, and element deleter
9394 when constructing the hash table. Initialise new class member
9395 variables.
9396 (completion_tracker::maybe_add_completion): Remove use of
9397 m_entries_vec, and store more information into m_entries_hash.
9398 (completion_tracker::recompute_lcd_visitor): New function, most
9399 content taken from...
9400 (completion_tracker::recompute_lowest_common_denominator):
9401 ...here, this now just visits each item in the hash calling the
9402 above visitor.
9403 (completion_tracker::build_completion_result): Remove use of
9404 m_entries_vec, call recompute_lowest_common_denominator.
9405 * completer.h (completion_tracker::have_completions): Remove use
9406 of m_entries_vec.
9407 (completion_tracker::completion_hash_entry): Declare new class.
9408 (completion_tracker::recompute_lowest_common_denominator): Change
9409 function signature.
9410 (completion_tracker::recompute_lcd_visitor): Declare new function.
9411 (completion_tracker::m_entries_vec): Delete.
9412 (completion_tracker::m_entries_hash): Initialize to NULL.
9413 (completion_tracker::m_lowest_common_denominator_valid): New
9414 member variable.
9415 (completion_tracker::m_lowest_common_denominator_max_length): New
9416 member variable.
9417
5a82b8a1
KR
94182020-03-17 Kamil Rytarowski <n54@gmx.com>
9419
9420 * regformats/regdef.h: Put reg in gdb namespace.
9421
fb516a69
KR
94222020-03-17 Kamil Rytarowski <n54@gmx.com>
9423
9424 * i386-bsd-nat.c (gdb_ptrace): New.
9425 * (i386bsd_fetch_inferior_registers,
9426 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9427 * (i386bsd_fetch_inferior_registers,
9428 i386bsd_store_inferior_registers) Use gdb_ptrace.
9429
1c0aa1fb
KR
94302020-03-17 Kamil Rytarowski <n54@gmx.com>
9431
9432 * amd64-bsd-nat.c (gdb_ptrace): New.
9433 * (amd64bsd_fetch_inferior_registers,
9434 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9435 * (amd64bsd_fetch_inferior_registers,
9436 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9437
5ccd2fb7
KR
94382020-03-17 Kamil Rytarowski <n54@gmx.com>
9439
9440 * user-regs.c (user_reg::read): Rename to...
9441 (user_reg::xread): ...this.
9442 * (append_user_reg): Rename argument `read' to `xread'.
9443 * (user_reg_add_builtin): Likewise.
9444 * (user_reg_add): Likewise.
9445 * (value_of_user_reg): Likewise.
9446
2108a63a
KR
94472020-03-17 Kamil Rytarowski <n54@gmx.com>
9448
9449 * sparc-nat.c (gdb_ptrace): New.
9450 * sparc-nat.c (sparc_fetch_inferior_registers)
9451 (sparc_store_inferior_registers) Remove obsolete comment.
9452 * sparc-nat.c (sparc_fetch_inferior_registers)
9453 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9454 * sparc-nat.c (sparc_fetch_inferior_registers)
9455 (sparc_store_inferior_registers) Use gdb_ptrace.
9456
a225c9a8
KR
94572020-03-17 Kamil Rytarowski <n54@gmx.com>
9458
9459 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9460 it to the ptrace call.
9461 * sh-nbsd-nat.c (store_registers): Likewise.
9462
98097623
KR
94632020-03-17 Kamil Rytarowski <n54@gmx.com>
9464
9465 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9466 nbsd_nat_target instead of inf_ptrace_target.
9467 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9468 nbsd_nat_target.
9469
9e38d619
KR
94702020-03-17 Kamil Rytarowski <n54@gmx.com>
9471
9472 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9473
a2ecbe9f
KR
94742020-03-17 Kamil Rytarowski <n54@gmx.com>
9475
9476 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9477 <sys/sysctl.h>.
9478 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9479
58990295
TV
94802020-03-17 Tom de Vries <tdevries@suse.de>
9481
9482 PR gdb/23710
9483 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9484 fields.
9485 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9486 fields.
9487 (process_imported_unit_die): Skip import of c++ CUs.
9488
771dd3a8
TT
94892020-03-16 Tom Tromey <tom@tromey.com>
9490
9491 * p-valprint.c (pascal_object_print_value): Initialize
9492 base_value.
9493
817a7585
AK
94942020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9495 Shahab Vahedi <shahab@synopsys.com>
9496
9497 * Makefile.in: Add arch/arc.o
9498 * configure.tgt: Likewise.
9499 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9500 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9501 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9502 * arc-tdep.h (arc_read_description): Add proto type.
9503 * arch/arc.c: New file.
9504 * arch/arc.h: Likewise.
9505 * features/Makefile: Replace old target descriptions with new.
9506 * features/arc-arcompact.c: Remove.
9507 * features/arc-arcompact.xml: Likewise.
9508 * features/arc-v2.c: Likewise
9509 * features/arc-v2.xml: Likewise
9510 * features/arc/aux-arcompact.xml: New file.
9511 * features/arc/aux-v2.xml: Likewise.
9512 * features/arc/core-arcompact.xml: Likewise.
9513 * features/arc/core-v2.xml: Likewise.
9514 * features/arc/aux-arcompact.c: Generate.
9515 * features/arc/aux-v2.c: Likewise.
9516 * features/arc/core-arcompact.c: Likewise.
9517 * features/arc/core-v2.c: Likewise.
9518 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9519
67430cd0
TT
95202020-03-16 Tom Tromey <tromey@adacore.com>
9521
9522 PR gdb/25663:
9523 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9524 putting value into bcache.
9525
30efb6c7
SM
95262020-03-16 Simon Marchi <simon.marchi@efficios.com>
9527
9528 PR gdb/21500
9529 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9530 to...
9531 (amd64_windows_init_abi_common): ... this. Don't set size of
9532 long type.
9533 (amd64_windows_init_abi): New function.
9534 (amd64_cygwin_init_abi): New function.
9535 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9536 the Cygwin OS ABI.
9537 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9538 comment.
9539
8db52437
SM
95402020-03-16 Simon Marchi <simon.marchi@efficios.com>
9541
9542 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9543 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9544 (pe_import_directory_entry): New struct type.
9545 (is_linked_with_cygwin_dll): New function.
9546 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9547 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9548 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9549
5982a56a
SM
95502020-03-16 Simon Marchi <simon.marchi@efficios.com>
9551
9552 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9553 i386_cygwin_core_osabi_sniffer.
9554
7a1998df
SM
95552020-03-16 Simon Marchi <simon.marchi@efficios.com>
9556
9557 * i386-cygwin-tdep.c: Rename to...
9558 * i386-windows-tdep.c: ... this.
9559 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9560 i386-windows-tdep.c.
9561 * configure.tgt: Likewise.
9562
053205cc
SM
95632020-03-16 Simon Marchi <simon.marchi@efficios.com>
9564
9565 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9566 * osabi.c (gdb_osabi_names): Add "Windows".
9567 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9568 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9569 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9570 i386_cygwin_osabi_sniffer.
9571 (_initialize_i386_cygwin_tdep): Register OS ABI
9572 GDB_OSABI_WINDOWS for i386.
9573 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9574 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9575 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9576 for x86-64.
9577 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9578 when the target matches '*-*-mingw*'.
9579
fe4b2ee6
SM
95802020-03-16 Simon Marchi <simon.marchi@efficios.com>
9581
9582 * defs.h (enum gdb_osabi): Move to...
9583 * osabi.h (enum gdb_osabi): ... here.
9584 * gdbarch.sh: Include osabi.h in gdbarch.h.
9585 * gdbarch.h: Re-generate.
9586
cb9b645d
SM
95872020-03-16 Simon Marchi <simon.marchi@efficios.com>
9588
9589 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9590 function.
9591 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9592
3293bbaf
TT
95932020-03-14 Tom Tromey <tom@tromey.com>
9594
9595 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9596 for C++.
9597 (c_type_print_modifier): Likewise. Add "language" parameter.
9598 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9599 (c_type_print_base_1): Update.
9600 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9601 constants.
9602 * type-stack.c (type_stack::insert): Handle tp_atomic and
9603 tp_restrict.
9604 (type_stack::follow_type_instance_flags): Likewise.
9605 (type_stack::follow_types): Likewise. Merge type-following code.
9606 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9607 (space_identifier, cv_with_space_id)
9608 (const_or_volatile_or_space_identifier_noopt)
9609 (const_or_volatile_or_space_identifier): Remove.
9610 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9611 rules.
9612 (ptr_operator, typebase): Update.
9613 (enum token_flag) <FLAG_C>: New constant.
9614 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9615 "_Atomic".
9616 (lex_one_token): Handle FLAG_C.
9617
154151a6
KR
96182020-03-14 Kamil Rytarowski <n54@gmx.com>
9619
9620 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9621 it to the ptrace call.
9622 * m68k-bsd-nat.c (store_registers): Likewise.
9623
bc107784
KR
96242020-03-14 Kamil Rytarowski <n54@gmx.com>
9625
9626 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9627 gdb_byte *.
9628 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9629 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9630 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9631
01a80117
KR
96322020-03-14 Kamil Rytarowski <n54@gmx.com>
9633
9634 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9635 nbsd_nat_target instead of inf_ptrace_target.
9636 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9637 nbsd_nat_target.
9638
f90280ca
KR
96392020-03-14 Kamil Rytarowski <n54@gmx.com>
9640
9641 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9642 register_t.
9643
6def66f1
KR
96442020-03-14 Kamil Rytarowski <n54@gmx.com>
9645
9646 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9647 it to the ptrace call.
9648 * alpha-bsd-nat.c (store_registers): Likewise.
9649
66eaca97
KR
96502020-03-14 Kamil Rytarowski <n54@gmx.com>
9651
9652 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9653 includes.
9654 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9655 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9656 fill_fpregset): Likewise.
9657
4fed520b
KR
96582020-03-14 Kamil Rytarowski <n54@gmx.com>
9659
9660 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9661 nbsd_nat_target instead of inf_ptrace_target.
9662 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9663 nbsd_nat_target.
9664
2190cf06
KR
96652020-03-14 Kamil Rytarowski <n54@gmx.com>
9666
9667 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9668 register_t.
9669
75c56d3d
KR
96702020-03-14 Kamil Rytarowski <n54@gmx.com>
9671
9672 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9673 it to the ptrace call.
9674 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9675 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9676 * arm-nbsd-nat.c (store_register): Likewise.
9677 * arm-nbsd-nat.c (store_regs): Likewise.
9678 * arm-nbsd-nat.c (store_fp_register): Likewise.
9679 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9680
6018d381
KR
96812020-03-14 Kamil Rytarowski <n54@gmx.com>
9682
9683 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9684 nbsd_nat_target instead of inf_ptrace_target.
9685 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9686 nbsd_nat_target.
9687
013f99f0
KR
96882020-03-14 Kamil Rytarowski <n54@gmx.com>
9689
9690 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9691 it to the ptrace call.
9692 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9693
12753073
KR
96942020-03-14 Kamil Rytarowski <n54@gmx.com>
9695
6227b330
KR
9696 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9697 it to the ptrace call.
9698 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9699
97002020-03-14 Kamil Rytarowski <n54@gmx.com>
9701
9702 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9703 gdb_byte *.
12753073
KR
9704 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9705
d5be5fa4
KR
97062020-03-14 Kamil Rytarowski <n54@gmx.com>
9707
9708 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9709 instead of inf_ptrace_target.
9710 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9711 nbsd_nat_target.
9712
8110f842
KR
97132020-03-14 Kamil Rytarowski <n54@gmx.com>
9714
9715 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9716 register_t.
9717
52feded7
KR
97182020-03-14 Kamil Rytarowski <n54@gmx.com>
9719
9720 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9721 register_t.
9722
25567eee
KR
97232020-03-14 Kamil Rytarowski <n54@gmx.com>
9724
9725 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9726 register_t.
9727
426a9c18
TT
97282020-03-13 Tom Tromey <tom@tromey.com>
9729
9730 * value.h (val_print): Don't declare.
9731 * valprint.h (val_print_array_elements)
9732 (val_print_scalar_formatted, generic_val_print): Don't declare.
9733 * valprint.c (generic_val_print_array): Take a struct value.
9734 (generic_val_print_ptr, generic_val_print_memberptr)
9735 (generic_val_print_bool, generic_val_print_int)
9736 (generic_val_print_char, generic_val_print_complex)
9737 (generic_val_print): Remove.
9738 (generic_value_print): Update.
9739 (do_val_print): Remove unused parameters. Don't call
9740 la_val_print.
9741 (val_print): Remove.
9742 (common_val_print): Update. Don't call value_check_printable.
9743 (val_print_scalar_formatted, val_print_array_elements): Remove.
9744 * rust-lang.c (rust_val_print): Remove.
9745 (rust_language_defn): Update.
9746 * p-valprint.c (pascal_val_print): Remove.
9747 (pascal_value_print_inner): Update.
9748 (pascal_object_print_val_fields, pascal_object_print_val):
9749 Remove.
9750 (pascal_object_print_static_field): Update.
9751 * p-lang.h (pascal_val_print): Don't declare.
9752 * p-lang.c (pascal_language_defn): Update.
9753 * opencl-lang.c (opencl_language_defn): Update.
9754 * objc-lang.c (objc_language_defn): Update.
9755 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9756 * m2-lang.h (m2_val_print): Don't declare.
9757 * m2-lang.c (m2_language_defn): Update.
9758 * language.h (struct language_defn) <la_val_print>: Remove.
9759 * language.c (unk_lang_value_print_inner): Rename. Change
9760 argument types.
9761 (unknown_language_defn, auto_language_defn): Update.
9762 * go-valprint.c (go_val_print): Remove.
9763 * go-lang.h (go_val_print): Don't declare.
9764 * go-lang.c (go_language_defn): Update.
9765 * f-valprint.c (f_val_print): Remove.
9766 * f-lang.h (f_value_print): Don't declare.
9767 * f-lang.c (f_language_defn): Update.
9768 * d-valprint.c (d_val_print): Remove.
9769 * d-lang.h (d_value_print): Don't declare.
9770 * d-lang.c (d_language_defn): Update.
9771 * cp-valprint.c (cp_print_value_fields)
9772 (cp_print_value_fields_rtti, cp_print_value): Remove.
9773 (cp_print_static_field): Update.
9774 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9775 (c_val_print_struct, c_val_print_union, c_val_print_int)
9776 (c_val_print_memberptr, c_val_print): Remove.
9777 * c-lang.h (c_val_print_array, cp_print_value_fields)
9778 (cp_print_value_fields_rtti): Don't declare.
9779 * c-lang.c (c_language_defn, cplus_language_defn)
9780 (asm_language_defn, minimal_language_defn): Update.
9781 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9782 (ada_val_print_enum): Take a struct value.
9783 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9784 (ada_val_print): Remove.
9785 (ada_value_print_1): Update.
9786 (printable_val_type): Remove.
9787 * ada-lang.h (ada_val_print): Don't declare.
9788 * ada-lang.c (ada_language_defn): Update.
9789
42331a1e
TT
97902020-03-13 Tom Tromey <tom@tromey.com>
9791
9792 * valprint.c (do_val_print): Update.
9793 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9794 a struct value.
9795 (value_to_value_object_no_release): Declare.
9796 * python/py-value.c (value_to_value_object_no_release): New
9797 function.
9798 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9799 struct value.
9800 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9801 function.
9802 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9803 a struct value.
9804 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9805 Declare.
9806 (gdbscm_apply_val_pretty_printer): Take a struct value.
9807 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9808 value.
9809 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9810 value.
9811 * extension-priv.h (struct extension_language_ops)
9812 <apply_val_pretty_printer>: Take a struct value.
9813 * cp-valprint.c (cp_print_value): Create a struct value.
9814 (cp_print_value): Update.
9815
3a916a97
TT
98162020-03-13 Tom Tromey <tom@tromey.com>
9817
9818 * ada-valprint.c (print_field_values): Call common_val_print.
9819
b59eac37
TT
98202020-03-13 Tom Tromey <tom@tromey.com>
9821
9822 * ada-valprint.c (val_print_packed_array_elements): Remove
9823 bitoffset and val parameters. Call common_val_print.
9824 (ada_val_print_string): Remove offset, address, and original_value
9825 parameters.
9826 (ada_val_print_array): Update.
9827 (ada_value_print_array): New function.
9828 (ada_value_print_1): Call it.
9829
03371129
TT
98302020-03-13 Tom Tromey <tom@tromey.com>
9831
9832 * ada-valprint.c (ada_value_print): Use common_val_print.
9833
2e088f8b
TT
98342020-03-13 Tom Tromey <tom@tromey.com>
9835
9836 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9837
39ef85a8
TT
98382020-03-13 Tom Tromey <tom@tromey.com>
9839
9840 * ada-valprint.c (ada_value_print_num): New function.
9841 (ada_value_print_1): Use it.
9842
b9fa6e07
TT
98432020-03-13 Tom Tromey <tom@tromey.com>
9844
9845 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9846
416595d6
TT
98472020-03-13 Tom Tromey <tom@tromey.com>
9848
9849 * ada-valprint.c (ada_value_print_ptr): New function.
9850 (ada_value_print_1): Use it.
9851
5b5e15ec
TT
98522020-03-13 Tom Tromey <tom@tromey.com>
9853
9854 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9855 call common_val_print.
9856 (ada_val_print_1): Update.
9857 (ada_value_print_1): New function.
9858 (ada_value_print_inner): Rewrite.
9859
fbf54e75
TT
98602020-03-13 Tom Tromey <tom@tromey.com>
9861
9862 * cp-valprint.c (cp_print_value_fields): Update.
9863 (cp_print_value): New function.
9864
64b653ca
TT
98652020-03-13 Tom Tromey <tom@tromey.com>
9866
9867 * m2-valprint.c (m2_value_print_inner): Use
9868 cp_print_value_fields.
9869 * cp-valprint.c (cp_print_value_fields): New function.
9870 * c-valprint.c (c_value_print_struct): New function.
9871 (c_value_print_inner): Use c_value_print_struct.
9872 * c-lang.h (cp_print_value_fields): Declare.
9873
6999f067
TT
98742020-03-13 Tom Tromey <tom@tromey.com>
9875
9876 * c-valprint.c (c_value_print_array): New function.
9877 (c_value_print_inner): Use it.
9878
ce80b8bd
TT
98792020-03-13 Tom Tromey <tom@tromey.com>
9880
9881 * c-valprint.c (c_value_print_memberptr): New function.
9882 (c_value_print_inner): Use it.
9883
2faac269
TT
98842020-03-13 Tom Tromey <tom@tromey.com>
9885
9886 * c-valprint.c (c_value_print_int): New function.
9887 (c_value_print_inner): Use it.
9888
da3e2c29
TT
98892020-03-13 Tom Tromey <tom@tromey.com>
9890
9891 * c-valprint.c (c_value_print_ptr): New function.
9892 (c_value_print_inner): Use it.
9893
50836231
TT
98942020-03-13 Tom Tromey <tom@tromey.com>
9895
9896 * c-valprint.c (c_value_print_inner): Rewrite.
9897
4f412b6e
TT
98982020-03-13 Tom Tromey <tom@tromey.com>
9899
9900 * valprint.c (generic_value_print_complex): New function.
9901 (generic_value_print): Use it.
9902
f5354008
TT
99032020-03-13 Tom Tromey <tom@tromey.com>
9904
9905 * valprint.c (generic_val_print_float): Don't call
9906 val_print_scalar_formatted.
9907 (generic_val_print, generic_value_print): Update.
9908
3eec3b05
TT
99092020-03-13 Tom Tromey <tom@tromey.com>
9910
9911 * valprint.c (generic_value_print_char): New function
9912 (generic_value_print): Use it.
9913
fdddfccb
TT
99142020-03-13 Tom Tromey <tom@tromey.com>
9915
9916 * valprint.c (generic_value_print_int): New function.
9917 (generic_value_print): Use it.
9918
6dde7521
TT
99192020-03-13 Tom Tromey <tom@tromey.com>
9920
9921 * valprint.c (generic_value_print_bool): New function.
9922 (generic_value_print): Use it.
9923
4112d2e6
TT
99242020-03-13 Tom Tromey <tom@tromey.com>
9925
9926 * valprint.c (generic_val_print_func): Simplify.
9927 (generic_val_print, generic_value_print): Update.
9928
65786af6
TT
99292020-03-13 Tom Tromey <tom@tromey.com>
9930
9931 * valprint.c (generic_val_print_flags): Remove.
9932 (generic_val_print, generic_value_print): Update.
9933 (val_print_type_code_flags): Add original_value parameter.
9934
40f3ce18
TT
99352020-03-13 Tom Tromey <tom@tromey.com>
9936
9937 * valprint.c (generic_val_print): Update.
9938 (generic_value_print): Update.
9939 * valprint.c (generic_val_print_enum): Don't call
9940 val_print_scalar_formatted.
9941
2a5b130b
TT
99422020-03-13 Tom Tromey <tom@tromey.com>
9943
9944 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9945 * valprint.c (generic_value_print_ptr): New function.
9946
abc66ce9
TT
99472020-03-13 Tom Tromey <tom@tromey.com>
9948
9949 * valprint.c (generic_value_print): Rewrite.
9950
07a32858
TT
99512020-03-13 Tom Tromey <tom@tromey.com>
9952
9953 * p-valprint.c (pascal_object_print_value_fields)
9954 (pascal_object_print_value): New functions.
9955
64d64d3a
TT
99562020-03-13 Tom Tromey <tom@tromey.com>
9957
9958 * p-valprint.c (pascal_value_print_inner): Rewrite.
9959
6a95a1f5
TT
99602020-03-13 Tom Tromey <tom@tromey.com>
9961
9962 * f-valprint.c (f_value_print_innner): Rewrite.
9963
59fcdac6
TT
99642020-03-13 Tom Tromey <tom@tromey.com>
9965
9966 * m2-valprint.c (m2_print_unbounded_array): New overload.
9967 (m2_print_unbounded_array): Update.
9968 (m2_print_array_contents): Take a struct value.
9969 (m2_value_print_inner): Rewrite.
9970
d133c3e1
TT
99712020-03-13 Tom Tromey <tom@tromey.com>
9972
9973 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9974 (d_value_print_inner): New function.
9975 * d-lang.h (d_value_print_inner): Declare.
9976 * d-lang.c (d_language_defn): Use d_value_print_inner.
9977
23b0f06b
TT
99782020-03-13 Tom Tromey <tom@tromey.com>
9979
9980 * go-valprint.c (go_value_print_inner): New function.
9981 * go-lang.h (go_value_print_inner): Declare.
9982 * go-lang.c (go_language_defn): Use go_value_print_inner.
9983
5f56f7cb
TT
99842020-03-13 Tom Tromey <tom@tromey.com>
9985
9986 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9987 API.
9988 (rust_val_print): Rewrite.
9989 (rust_value_print_inner): New function, from rust_val_print.
9990 (rust_language_defn): Use rust_value_print_inner.
9991
26792ee0
TT
99922020-03-13 Tom Tromey <tom@tromey.com>
9993
9994 * ada-valprint.c (ada_value_print_inner): New function.
9995 * ada-lang.h (ada_value_print_inner): Declare.
9996 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9997
24051bbe
TT
99982020-03-13 Tom Tromey <tom@tromey.com>
9999
10000 * f-valprint.c (f_value_print_innner): New function.
10001 * f-lang.h (f_value_print_innner): Declare.
10002 * f-lang.c (f_language_defn): Use f_value_print_innner.
10003
c0941be6
TT
100042020-03-13 Tom Tromey <tom@tromey.com>
10005
10006 * p-valprint.c (pascal_value_print_inner): New function.
10007 * p-lang.h (pascal_value_print_inner): Declare.
10008 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10009
62c4663d
TT
100102020-03-13 Tom Tromey <tom@tromey.com>
10011
10012 * m2-valprint.c (m2_value_print_inner): New function.
10013 * m2-lang.h (m2_value_print_inner): Declare.
10014 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10015
62182190
TT
100162020-03-13 Tom Tromey <tom@tromey.com>
10017
10018 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10019 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10020 * c-valprint.c (c_value_print_inner): New function.
10021 * c-lang.h (c_value_print_inner): Declare.
10022 * c-lang.c (c_language_defn, cplus_language_defn)
10023 (asm_language_defn, minimal_language_defn): Use
10024 c_value_print_inner.
10025
1e592a8a
TT
100262020-03-13 Tom Tromey <tom@tromey.com>
10027
10028 * p-valprint.c (pascal_object_print_value_fields): Now static.
10029 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10030
7fe471e9
TT
100312020-03-13 Tom Tromey <tom@tromey.com>
10032
10033 * c-valprint.c (c_val_print_array): Simplify.
10034
d121c6ce
TT
100352020-03-13 Tom Tromey <tom@tromey.com>
10036
10037 * valprint.c (value_print_array_elements): New function.
10038 * valprint.h (value_print_array_elements): Declare.
10039
4dba70ee
TT
100402020-03-13 Tom Tromey <tom@tromey.com>
10041
10042 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10043 * mips-tdep.c (mips_print_register): Use
10044 value_print_scalar_formatted.
10045
4f9ae810
TT
100462020-03-13 Tom Tromey <tom@tromey.com>
10047
10048 * valprint.h (value_print_scalar_formatted): Declare.
10049 * valprint.c (value_print_scalar_formatted): New function.
10050
156bfec9
TT
100512020-03-13 Tom Tromey <tom@tromey.com>
10052
10053 * valprint.h (generic_value_print): Declare.
10054 * valprint.c (generic_value_print): New function.
10055
2b4e573d
TT
100562020-03-13 Tom Tromey <tom@tromey.com>
10057
10058 * valprint.c (do_val_print): Call la_value_print_inner, if
10059 available.
10060 * rust-lang.c (rust_language_defn): Update.
10061 * p-lang.c (pascal_language_defn): Update.
10062 * opencl-lang.c (opencl_language_defn): Update.
10063 * objc-lang.c (objc_language_defn): Update.
10064 * m2-lang.c (m2_language_defn): Update.
10065 * language.h (struct language_defn) <la_value_print_inner>: New
10066 member.
10067 * language.c (unknown_language_defn, auto_language_defn): Update.
10068 * go-lang.c (go_language_defn): Update.
10069 * f-lang.c (f_language_defn): Update.
10070 * d-lang.c (d_language_defn): Update.
10071 * c-lang.c (c_language_defn, cplus_language_defn)
10072 (asm_language_defn, minimal_language_defn): Update.
10073 * ada-lang.c (ada_language_defn): Update.
10074
a1f6a07c
TT
100752020-03-13 Tom Tromey <tom@tromey.com>
10076
10077 * c-valprint.c (c_value_print): Use common_val_print.
10078
410cf315
TT
100792020-03-13 Tom Tromey <tom@tromey.com>
10080
10081 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10082
72a45c93
TT
100832020-03-13 Tom Tromey <tom@tromey.com>
10084
10085 * f-valprint.c (f77_print_array_1, f_val_print): Use
10086 common_val_print.
10087
040f66bd
TT
100882020-03-13 Tom Tromey <tom@tromey.com>
10089
10090 * riscv-tdep.c (riscv_print_one_register_info): Use
10091 common_val_print.
10092
a6e05a6c
TT
100932020-03-13 Tom Tromey <tom@tromey.com>
10094
10095 * mi/mi-main.c (output_register): Use common_val_print.
10096
3444c526
TT
100972020-03-13 Tom Tromey <tom@tromey.com>
10098
10099 * infcmd.c (default_print_one_register_info): Use
10100 common_val_print.
10101
c2a44efe
TT
101022020-03-13 Tom Tromey <tom@tromey.com>
10103
10104 * valprint.h (common_val_print_checked): Declare.
10105 * valprint.c (common_val_print_checked): New function.
10106 * stack.c (print_frame_arg): Use common_val_print_checked.
10107
b0c26e99
TT
101082020-03-13 Tom Tromey <tom@tromey.com>
10109
10110 * valprint.c (do_val_print): New function, from val_print.
10111 (val_print): Use do_val_print.
10112 (common_val_print): Use do_val_print.
10113
ce3acbe9
TT
101142020-03-13 Tom Tromey <tom@tromey.com>
10115
10116 * valprint.c (value_print): Use scoped_value_mark.
10117
96c7f873
TV
101182020-03-13 Tom de Vries <tdevries@suse.de>
10119
10120 PR symtab/25646
10121 * psymtab.c (partial_symtab::partial_symtab): Don't set
10122 globals_offset and statics_offset. Push element onto
10123 current_global_psymbols and current_static_psymbols stacks.
10124 (concat): New function.
10125 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10126 element from current_global_psymbols and current_static_psymbols
10127 stacks. Concat popped elements to global_psymbols and
10128 static_symbols.
10129 (add_psymbol_to_list): Use current_global_psymbols and
10130 current_static_psymbols stacks.
10131 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10132 current_static_psymbols fields.
10133
6ba0a321
CB
101342020-03-12 Christian Biesinger <cbiesinger@google.com>
10135
10136 * corelow.c (sniff_core_bfd): Remove.
10137 (class core_target) <m_core_vec>: Remove.
10138 (core_target::core_target): Update.
10139 (core_file_fns): Remove.
10140 (deprecated_add_core_fns): Remove.
10141 (default_core_sniffer): Remove.
10142 (sniff_core_bfd): Remove.
10143 (default_check_format): Remove.
10144 (gdb_check_format): Remove.
10145 (core_target_open): Update.
10146 (core_target::get_core_register_section): Update.
10147 (get_core_registers_cb): Update.
10148 (core_target::fetch_registers): Update.
10149 * gdbcore.h (struct core_fns): Remove.
10150 (deprecated_add_core_fns): Remove.
10151 (default_core_sniffer): Remove.
10152 (default_check_format): Remove.
10153
227031b2
TT
101542020-03-12 Tom Tromey <tom@tromey.com>
10155
10156 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10157 CORE_ADDR.
10158 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10159
53807e9f
TT
101602020-03-12 Tom Tromey <tom@tromey.com>
10161
10162 * remote.c (remote_target::download_tracepoint)
10163 (remote_target::enable_tracepoint)
10164 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10165 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10166 sprintf_vma.
10167
64f25102
TT
101682020-03-12 Tom Tromey <tom@tromey.com>
10169
10170 * symfile-mem.c: Update CORE_ADDR size assert.
10171
272cd5a3
SM
101722020-03-12 Simon Marchi <simon.marchi@efficios.com>
10173
10174 * selftest.m4: Move to gdbsupport/.
10175 * acinclude.m4: Update path to selftest.m4.
10176
74cd3f9d
SM
101772020-03-12 Simon Marchi <simon.marchi@efficios.com>
10178
10179 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10180 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10181 gdbarch-selfselftests.c and selftest-arch.c.
10182 (SUBDIR_UNITTESTS_OBS): Rename to...
10183 (SELFTESTS_OBS): ... this.
10184 (COMMON_SFILES): Remove disasm-selftests.c and
10185 gdbarch-selftests.c.
10186 * configure.ac: Don't add selftest-arch.{c,o} to
10187 CONFIG_{SRCS,OBS}.
10188 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10189 preprocessor conditions.
10190
db6878ac
SM
101912020-03-12 Simon Marchi <simon.marchi@efficios.com>
10192
10193 * configure.ac: Don't source bfd/development.sh.
10194 * selftest.m4: Modify comment.
10195 * configure: Re-generate.
10196
4d696a5c
SM
101972020-03-12 Simon Marchi <simon.marchi@efficios.com>
10198
10199 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10200 not "true" or "false".
10201 * configure: Re-generate.
10202
8dd8e1c7
CB
102032020-03-12 Christian Biesinger <cbiesinger@google.com>
10204
10205 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10206 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10207 renamed to arm_nbsd_supply_gregset.
10208 (fetch_register): Update to call arm_nbsd_supply_gregset.
10209 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10210 (arm_netbsd_nat_target::fetch_registers): Update.
10211 (fetch_elfcore_registers): Removed.
10212 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10213 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10214 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10215 not require NetBSD system headers.
10216 (arm_nbsd_regset): New struct.
10217 (arm_nbsd_iterate_over_regset_sections): New function.
10218 (arm_netbsd_init_abi_common): Updated to call
10219 set_gdbarch_iterate_over_regset_sections.
10220 * arm-nbsd-tdep.h: New file.
10221
dd69bf7a
KB
102222020-03-11 Kevin Buettner <kevinb@redhat.com>
10223
10224 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10225 recursion.
10226
a0761e34
SM
102272020-03-11 Simon Marchi <simon.marchi@efficios.com>
10228
10229 * configure: Re-generate.
10230
e7a82140
TT
102312020-03-11 Tom Tromey <tromey@adacore.com>
10232
10233 * ada-typeprint.c (print_choices): Fix comment.
10234
dcc050c8
AB
102352020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10236
10237 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10238 previous item in the list, when the list has no items.
10239
1c33af77
TV
102402020-03-11 Tom de Vries <tdevries@suse.de>
10241
10242 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10243 PROP_LOCLIST handling code.
10244
8c95582d
AB
102452020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10246
10247 * buildsym-legacy.c (record_line): Pass extra parameter to
10248 record_line.
10249 * buildsym.c (buildsym_compunit::record_line): Take an extra
10250 parameter, reduce duplication in the line table, and record the
10251 is_stmt flag in the line table.
10252 * buildsym.h (buildsym_compunit::record_line): Add extra
10253 parameter.
10254 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10255 non-statement lines.
10256 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10257 this to the symtab builder.
10258 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10259 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10260 through to dwarf_record_line_1.
10261 * infrun.c (process_event_stop_test): When stepping, don't stop at
10262 a non-statement instruction, and only refresh the step info when
10263 we land in the middle of a line's range. Also add an extra
10264 comment.
10265 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10266 field.
10267 * record-btrace.c (btrace_find_line_range): Only record lines
10268 marked as is-statement.
10269 * stack.c (frame_show_address): Show the frame address if we are
10270 in a non-statement sal.
10271 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10272 (maintenance_print_one_line_table): Print a header for the is_stmt
10273 column, and include is_stmt information in the output.
10274 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10275 preference to non-statements.
10276 (find_pcs_for_symtab_line): Prefer is-statement entries.
10277 (find_line_common): Likewise.
10278 * symtab.h (struct linetable_entry): Add is_stmt field.
10279 (struct symtab_and_line): Likewise.
10280 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10281 arranging the line table.
10282
e4003a34
TV
102832020-03-07 Tom de Vries <tdevries@suse.de>
10284
10285 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10286 DIE.
10287
e8932576
TT
102882020-03-07 Tom Tromey <tom@tromey.com>
10289
10290 * valops.c (value_literal_complex): Remove obsolete comment.
10291 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10292 comment.
10293
29734269
SM
102942020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10295
10296 * infrun.h: Forward-declare thread_info.
10297 (set_step_info): Add thread_info parameter, add doc.
10298 * infrun.c (set_step_info): Add thread_info parameter, move doc
10299 to header.
10300 * infrun.c (process_event_stop_test): Pass thread to
10301 set_step_info call.
10302 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10303 set_step_info.
10304 (prepare_one_step): Add thread_info parameter, pass it to
10305 set_step_frame and prepare_one_step (recursive) call.
10306 (step_1): Pass thread to prepare_one_step call.
10307 (step_command_fsm::should_stop): Pass thread to
10308 prepare_one_step.
10309 (until_next_fsm): Pass thread to set_step_frame call.
10310 (finish_command): Pass thread to set_step_info call.
10311
b7d64b29
HD
103122020-03-06 Hannes Domani <ssbssa@yahoo.de>
10313
10314 * windows-tdep.c (windows_solib_create_inferior_hook):
10315 Check if inferior is running.
10316
09f2921c
TV
103172020-03-06 Tom de Vries <tdevries@suse.de>
10318
10319 * NEWS: Fix "the the".
10320 * ctfread.c: Same.
10321
fd760e79
TV
103222020-03-06 Tom de Vries <tdevries@suse.de>
10323
10324 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10325
20ea4a60
AB
103262020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10327
10328 * .dir-locals.el: Add a comment referencing the other copies of
10329 this file.
10330
0afbabf0
JB
103312020-03-05 John Baldwin <jhb@FreeBSD.org>
10332
10333 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10334 psargs.
10335
842806cb
TBA
103362020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10337
10338 * .gitattributes: New file.
10339
be1e3d3e
TT
103402020-03-04 Tom Tromey <tom@tromey.com>
10341
10342 * symmisc.c (print_symbol_bcache_statistics)
10343 (print_objfile_statistics): Update.
10344 * symfile.c (allocate_symtab): Use intern.
10345 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10346 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10347 macro_cache>: Remove.
10348 <string_cache>: New member.
10349 (struct objfile) <intern>: New methods.
10350 * elfread.c (elf_symtab_read): Use intern.
10351 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10352 (dwarf2_compute_name, dwarf2_physname)
10353 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10354 names.
10355 (guess_partial_die_structure_name): Update.
10356 (partial_die_info::fixup): Intern name.
10357 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10358 name.
10359 (dwarf2_name): Intern name. Update.
10360 * buildsym.c (buildsym_compunit::get_macro_table): Use
10361 string_cache.
10362
4e7625fd
TT
103632020-03-04 Tom Tromey <tom@tromey.com>
10364
10365 * jit.c (bfd_open_from_target_memory): Make "target" const.
10366 * corefile.c (gnutarget): Now const.
10367 * gdbcore.h (gnutarget): Now const.
10368
46f9f931
HD
103692020-03-04 Hannes Domani <ssbssa@yahoo.de>
10370
10371 * NEWS: Mention support for WOW64 processes.
10372 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10373 (amd64_windows_segment_register_p): Remove static.
10374 (_initialize_amd64_windows_nat): Update.
10375 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10376 * i386-windows-nat.c (context_offset): Update.
10377 (i386_mappings): Rename and remove static.
10378 (i386_windows_segment_register_p): Remove static.
10379 (_initialize_i386_windows_nat): Update.
10380 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10381 (STATUS_WX86_SINGLE_STEP): New macro.
10382 (EnumProcessModulesEx): New macro.
10383 (Wow64SuspendThread): New macro.
10384 (Wow64GetThreadContext): New macro.
10385 (Wow64SetThreadContext): New macro.
10386 (Wow64GetThreadSelectorEntry): New macro.
10387 (windows_set_context_register_offsets): Add static.
10388 (windows_set_segment_register_p): Likewise.
10389 (windows_add_thread): Adapt for WOW64 processes.
10390 (windows_fetch_one_register): Likewise.
10391 (windows_nat_target::fetch_registers): Likewise.
10392 (windows_store_one_register): Likewise.
10393 (display_selector): Likewise.
10394 (display_selectors): Likewise.
10395 (handle_exception): Likewise.
10396 (windows_continue): Likewise.
10397 (windows_nat_target::resume): Likewise.
10398 (windows_add_all_dlls): Likewise.
10399 (do_initial_windows_stuff): Likewise.
10400 (windows_nat_target::attach): Likewise.
10401 (windows_get_exec_module_filename): Likewise.
10402 (windows_nat_target::create_inferior): Likewise.
10403 (windows_xfer_siginfo): Likewise.
10404 (_initialize_loadable): Initialize Wow64SuspendThread,
10405 Wow64GetThreadContext, Wow64SetThreadContext,
10406 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10407 * windows-nat.h (windows_set_context_register_offsets):
10408 Remove declaration.
10409 (windows_set_segment_register_p): Likewise.
10410 (i386_windows_segment_register_p): Add declaration.
10411 (amd64_windows_segment_register_p): Likewise.
10412
440cf44e
LM
104132020-03-04 Luis Machado <luis.machado@linaro.org>
10414
10415 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10416 in "info registers" for AArch64/ARM.
10417
10418 The change caused "info registers" to not print GPR's.
10419
10420 gdb/ChangeLog:
10421
10422 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10423
10424 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10425 when reg->group is empty and reggroup is not.
10426
1009d92f
TT
104272020-03-03 Tom Tromey <tromey@adacore.com>
10428
10429 * dwarf2/frame.c (struct dwarf2_frame_cache)
10430 <checked_tailcall_bottom, entry_cfa_sp_offset,
10431 entry_cfa_sp_offset_p>: Remove members.
10432 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10433 (dwarf2_frame_prev_register): Don't call
10434 dwarf2_tailcall_sniffer_first.
10435 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10436 * frame-unwind.c (add_unwinder): New fuction.
10437 (frame_unwind_init): Use it. Add tailcall unwinder.
10438
5e5d66b6
AB
104392020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10440 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10441
10442 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10443 value should be printed as true.
10444
584cf46d
HD
104452020-03-03 Hannes Domani <ssbssa@yahoo.de>
10446
10447 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10448 (windows_init_abi): Set and use windows_so_ops.
10449
7b973adc
SDJ
104502020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10451
10452 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10453 when verifying if dealing with a convenience variable.
10454
bb7b70ab
LM
104552020-03-03 Luis Machado <luis.machado@linaro.org>
10456
10457 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10458
9822cb57
SM
104592020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10460
10461 * infrun.c (gdbarch_supports_displaced_stepping): New.
10462 (use_displaced_stepping): Break up conditions in smaller pieces.
10463 Use gdbarch_supports_displaced_stepping.
10464 (displaced_step_prepare_throw): Use
10465 gdbarch_supports_displaced_stepping.
10466
63e163f2
AB
104672020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10468
10469 * NEWS: Mention new behaviour of the history filename.
10470 * top.c (write_history_p): Add comment.
10471 (show_write_history_p): Add header comment, give a different
10472 message when history writing is on, but the history filename is
10473 empty.
10474 (history_filename): Add comment.
10475 (history_filename_empty): New function.
10476 (show_history_filename): Add header comment, give a different
10477 message when the filename is empty.
10478 (init_history): Compare history_filename against nullptr, and only
10479 read history if the filename is not empty.
10480 (set_history_filename): Add header comment, and only make
10481 non-empty filenames absolute.
10482 (init_main): Make the filename argument to 'set history filename'
10483 optional.
10484
81b86b97
CB
104852020-03-02 Christian Biesinger <cbiesinger@google.com>
10486
10487 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10488 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10489 (fetch_fp_register): Update.
10490 (fetch_fp_regs): Update.
10491 (store_fp_register): Update.
10492 (store_fp_regs): Update.
10493 (arm_netbsd_nat_target::read_description): New function.
10494 (fetch_elfcore_registers): Update.
10495
24ed6739
AB
104962020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10497
10498 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10499 general_thread if the stop reply is missing a thread-id.
10500 (remote_target::process_stop_reply): Use the first non-exited
10501 thread if the target didn't pass a thread-id.
10502 * infrun.c (do_target_wait): Move call to
10503 switch_to_inferior_no_thread to ....
10504 (do_target_wait_1): ... here.
10505
a84bb2a0
JT
105062020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10507
10508 * debuginfod-support.c: Include defs.h first.
10509
658dadf0
TV
105102020-02-28 Tom de Vries <tdevries@suse.de>
10511
10512 * symfile.c (set_initial_language): Use default language for lookup.
10513
4ebe4877
SM
105142020-02-28 Simon Marchi <simon.marchi@efficios.com>
10515
10516 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10517 reader variable, pass `this` to read_cutu_die_from_dwo.
10518
e5da1139
AM
105192020-02-27 Aaron Merey <amerey@redhat.com>
10520
10521 * source.c (open_source_file): Check for nullptr when computing
10522 srcpath.
10523
317f7127
TT
105242020-02-27 Tom Tromey <tromey@adacore.com>
10525
10526 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10527 member.
10528 (dwarf2_add_field): Don't update nfields.
10529 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10530
3104d9ee
AB
105312020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10532
10533 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10534 abs.
10535
b83470bf
TT
105362020-02-26 Tom Tromey <tom@tromey.com>
10537
10538 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10539 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10540 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10541 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10542 per_cu_data.
10543
edfe0a0c
TT
105442020-02-26 Tom Tromey <tom@tromey.com>
10545
10546 * dwarf2/index-write.c (psym_index_map): Change type.
10547 (add_address_entry_worker, write_one_signatured_type)
10548 (recursively_count_psymbols, recursively_write_psymbols)
10549 (class debug_names, psyms_seen_size, write_gdbindex)
10550 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10551
0d79cdc4
AM
105522020-02-26 Aaron Merey <amerey@redhat.com>
10553
10554 * Makefile.in: Handle optional debuginfod support.
10555 * NEWS: Update.
10556 * README: Add --with-debuginfod summary.
10557 * config.in: Regenerate.
10558 * configure: Regenerate.
10559 * configure.ac: Handle optional debuginfod support.
10560 * debuginfod-support.c: debuginfod helper functions.
10561 * debuginfod-support.h: Ditto.
10562 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10563 summary.
10564 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10565 when a dwz file cannot be found.
10566 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10567 debuginfo file cannot be found.
10568 * source.c (open_source_file): Query debuginfod servers when a
10569 source file cannot be found.
10570 * top.c (print_gdb_configuration): Include
10571 --{with,without}-debuginfod in the output.
10572
b65ce565
JG
105732020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10574
10575 * thread.c (thr_try_catch_cmd): Print thread name.
10576
d4c9a4f8
SM
105772020-02-26 Simon Marchi <simon.marchi@efficios.com>
10578
10579 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10580 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10581 dwarf2_fetch_die_type_sect_off): Move to...
10582 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10583 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10584 dwarf2_fetch_die_type_sect_off): ... here.
10585 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10586 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10587 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10588
0dce4280
TV
105892020-02-26 Tom de Vries <tdevries@suse.de>
10590
10591 PR gdb/25603
10592 * symfile.c (set_initial_language): Exit-early if
10593 language_mode == language_mode_manual.
10594
450a1bfc
SM
105952020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10596
10597 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10598 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10599 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10600
9e80cfa1
AB
106012020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10602
10603 * gdbtypes.c (create_array_type_with_stride): Handle negative
10604 array strides.
10605 * valarith.c (value_subscripted_rvalue): Likewise.
10606
09624f1f
LM
106072020-02-25 Luis Machado <luis.machado@linaro.org>
10608
10609 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10610
8cb5117c
SM
106112020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10612
10613 * loc.h (dwarf2_get_die_type): Move to...
10614 * read.h (dwarf2_get_die_type): ... here.
10615 * read.c (dwarf2_get_die_type): Move doc to header.
10616
c325c44e
JB
106172020-02-25 Joel Brobecker <brobecker@adacore.com>
10618
10619 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10620 'gnulib/Makefile.in' to the list.
10621
4ac93832
TT
106222020-02-24 Tom Tromey <tom@tromey.com>
10623
10624 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10625 Remove.
10626 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10627 XOBNEWVEC.
10628
197400e8
TT
106292020-02-24 Tom Tromey <tom@tromey.com>
10630
10631 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10632 New method.
10633 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10634 (dw2_do_instantiate_symtab, dw2_get_file_names)
10635 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10636
76935768
TT
106372020-02-24 Tom Tromey <tom@tromey.com>
10638
10639 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10640 make_scoped_restore.
10641 (dwarf2_psymtab::read_symtab): Don't clear
10642 reading_partial_symbols.
10643
a88ef40d
TV
106442020-02-24 Tom de Vries <tdevries@suse.de>
10645
10646 PR gdb/25592
10647 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10648
c9af6521
TV
106492020-02-24 Tom de Vries <tdevries@suse.de>
10650
10651 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10652 commands layout next/prev/regs.
10653
5707a07a
TT
106542020-02-22 Tom Tromey <tom@tromey.com>
10655
10656 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10657 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10658
3b0fb49e
TT
106592020-02-22 Tom Tromey <tom@tromey.com>
10660
10661 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10662
283be8bf
TT
106632020-02-22 Tom Tromey <tom@tromey.com>
10664
10665 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10666 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10667 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10668 * tui/tui.c (_initialize_tui): Add usage text.
10669
ca793b96
TT
106702020-02-22 Tom Tromey <tom@tromey.com>
10671
10672 * tui/tui-win.c (tui_set_focus_command)
10673 (tui_set_win_height_command): Use error_no_arg.
10674 (_initialize_tui_win): Update help text.
10675 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10676
432b5c40
TT
106772020-02-22 Tom Tromey <tom@tromey.com>
10678
10679 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10680 * tui/tui-disasm.h (struct tui_disasm_window)
10681 <display_start_addr>: Declare.
10682 * tui/tui-source.h (struct tui_source_window)
10683 <display_start_addr>: Declare.
10684 * tui/tui-winsource.h (struct tui_source_window_base)
10685 <show_source_line, display_start_addr>: New methods.
10686 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10687 Rename and move to protected section.
10688 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10689 (tui_source_window_base::do_erase_source_content): Update.
10690 (tui_source_window_base::show_source_line): Now a method.
10691 (tui_source_window_base::show_source_content)
10692 (tui_source_window_base::tui_source_window_base)
10693 (tui_source_window_base::rerender)
10694 (tui_source_window_base::refill)
10695 (tui_source_window_base::do_scroll_horizontal)
10696 (tui_source_window_base::set_is_exec_point_at)
10697 (tui_source_window_base::update_breakpoint_info)
10698 (tui_source_window_base::update_exec_info): Update.
10699 * tui/tui-source.c (tui_source_window::set_contents)
10700 (tui_source_window::showing_source_p)
10701 (tui_source_window::do_scroll_vertical)
10702 (tui_source_window::location_matches_p)
10703 (tui_source_window::line_is_displayed): Update.
10704 (tui_source_window::display_start_addr): New method.
10705 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10706 (tui_disasm_window::do_scroll_vertical)
10707 (tui_disasm_window::location_matches_p): Update.
10708 (tui_disasm_window::display_start_addr): New method.
10709
01b1af32
TT
107102020-02-22 Tom Tromey <tom@tromey.com>
10711
10712 * NEWS: Add entry for gdb.register_window_type.
10713 * tui/tui-layout.h (window_factory): New typedef.
10714 (tui_register_window): Declare.
10715 * tui/tui-layout.c (saved_tui_windows): New global.
10716 (tui_apply_current_layout): Use it.
10717 (tui_register_window): New function.
10718 * python/python.c (do_start_initialization): Call
10719 gdbpy_initialize_tui.
10720 (python_GdbMethods): Add "register_window_type" function.
10721 * python/python-internal.h (gdbpy_register_tui_window)
10722 (gdbpy_initialize_tui): Declare.
10723 * python/py-tui.c: New file.
10724 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10725
fc96d20b
TT
107262020-02-22 Tom Tromey <tom@tromey.com>
10727
10728 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10729
935c78c0
TT
107302020-02-22 Tom Tromey <tom@tromey.com>
10731
10732 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10733 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10734 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10735 (tui_set_win_focus_to): Move from tui-win.c.
10736
0240c8f1
TT
107372020-02-22 Tom Tromey <tom@tromey.com>
10738
10739 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10740 functions.
10741 (known_window_types): New global.
10742 (tui_get_window_by_name): Reimplement.
10743 (initialize_known_windows): New function.
10744 (validate_window_name): Rewrite.
10745 (_initialize_tui_layout): Call initialize_known_windows.
10746
fdb01f0c
TT
107472020-02-22 Tom Tromey <tom@tromey.com>
10748
10749 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10750 Remove constants.
10751 * tui/tui-winsource.h (struct tui_source_window_base)
10752 <tui_source_window_base>: Remove parameter.
10753 * tui/tui-winsource.c
10754 (tui_source_window_base::tui_source_window_base): Remove
10755 parameter.
10756 (tui_source_window_base::refill): Update.
10757 * tui/tui-stack.h (struct tui_locator_window)
10758 <tui_locator_window>: Update.
10759 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10760 Default the constructor.
10761 * tui/tui-regs.h (struct tui_data_item_window)
10762 <tui_data_item_window>: Default the constructor.
10763 (struct tui_data_window) <tui_data_window>: Likewise.
10764 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10765 Default the constructor.
10766 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10767 Default the constructor.
10768 <type>: Remove.
10769 (struct tui_win_info) <tui_win_info>: Default the constructor.
10770 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10771 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10772 Default the constructor.
10773
865a5aec
TT
107742020-02-22 Tom Tromey <tom@tromey.com>
10775
10776 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10777 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10778 * tui/tui-win.c (tui_resize_all): Don't call
10779 tui_delete_invisible_windows.
10780 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10781 done.
10782 (tui_set_layout): Update.
10783 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10784 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10785 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10786
e098d18c
TT
107872020-02-22 Tom Tromey <tom@tromey.com>
10788
10789 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10790 correctly.
10791
eb9c8874
TT
107922020-02-22 Tom Tromey <tom@tromey.com>
10793
10794 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10795
7eed1a8e
TT
107962020-02-22 Tom Tromey <tom@tromey.com>
10797
10798 * tui/tui-winsource.h (struct tui_source_window_iterator)
10799 <inner_iterator>: New etytypedef.
10800 <tui_source_window_iterator>: Take "end" parameter.
10801 <tui_source_window_iterator>: Take iterator.
10802 <operator*, advance>: Update.
10803 <m_iter>: Change type.
10804 <m_end>: New field.
10805 (struct tui_source_windows) <begin, end>: Update.
10806 * tui/tui-layout.c (tui_windows): New global.
10807 (tui_apply_current_layout): Clear tui_windows.
10808 (tui_layout_window::apply): Update tui_windows.
10809 * tui/tui-data.h (tui_windows): Declare.
10810 (all_tui_windows): Now inline function.
10811 (class tui_window_iterator, struct all_tui_windows): Remove.
10812
7c043ba6
TT
108132020-02-22 Tom Tromey <tom@tromey.com>
10814
10815 PR tui/17850:
10816 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10817 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10818 "height" argument.
10819 (class tui_layout_window) <get_sizes>: Likewise.
10820 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10821 argument.
10822 <get_sizes>: Add "height" argument.
10823 <m_vertical>: New field.
10824 * tui/tui-layout.c (tui_layout_split::clone): Update.
10825 (tui_layout_split::get_sizes): Add "height" argument.
10826 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10827 (tui_new_layout_command): Parse "-horizontal".
10828 (_initialize_tui_layout): Update help string.
10829 (tui_layout_split::specification): Add "-horizontal" when needed.
10830 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10831 argument.
10832 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10833 New methods.
10834
6bc56648
TT
108352020-02-22 Tom Tromey <tom@tromey.com>
10836
10837 * tui/tui-layout.h (enum tui_adjust_result): New.
10838 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10839 (class tui_layout_window) <adjust_size>: Return
10840 tui_adjust_result. Rewrite.
10841 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10842 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10843
c22fef7e
TT
108442020-02-22 Tom Tromey <tom@tromey.com>
10845
10846 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10847 parameter and return types.
10848 (class tui_layout_base) <specification>: Add "depth".
10849 (class tui_layout_window) <specification>: Add "depth".
10850 (class tui_layout_split) <specification>: Add "depth".
10851 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10852 and return types.
10853 (tui_new_layout_command): Parse sub-layouts.
10854 (_initialize_tui_layout): Update help string.
10855 (tui_layout_window::specification): Add "depth".
10856 (add_layout_command): Update.
10857
ee325b61
TT
108582020-02-22 Tom Tromey <tom@tromey.com>
10859
10860 * NEWS: Add "tui new-layout" item.
10861 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10862 Add new-layout command to help text.
10863 (validate_window_name): New function.
10864 (tui_new_layout_command): New function.
10865 (_initialize_tui_layout): Register "new-layout".
10866 (tui_layout_window::specification): New method.
10867 (tui_layout_window::specification): New method.
10868 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10869 method.
10870 (class tui_layout_window) <specification>: New method.
10871 (class tui_layout_split) <specification>: New method.
10872
416eb92d
TT
108732020-02-22 Tom Tromey <tom@tromey.com>
10874
10875 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10876 * tui/tui-win.c (window_name_completer): Update comment.
10877 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10878 Declare method.
10879 (class tui_layout_window) <replace_window>: Likewise.
10880 (class tui_layout_split) <replace_window>: Likewise.
10881 (tui_set_layout): Don't declare.
10882 (tui_set_initial_layout): Declare function.
10883 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10884 (asm_regs_layout): New globals.
10885 (tui_current_layout, show_layout): Remove.
10886 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10887 (find_layout, tui_apply_layout): New function.
10888 (layout_completer): Remove.
10889 (tui_next_layout): Reimplement.
10890 (tui_next_layout_command): New function.
10891 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10892 (tui_regs_layout): Reimplement.
10893 (tui_regs_layout_command): New function.
10894 (extract_display_start_addr): Rewrite.
10895 (next_layout, prev_layout): Remove.
10896 (tui_layout_window::replace_window): New method.
10897 (tui_layout_split::replace_window): New method.
10898 (destroy_layout): New function.
10899 (layout_list): New global.
10900 (add_layout_command): New function.
10901 (initialize_layouts): Update.
10902 (tui_layout_command): New function.
10903 (_initialize_tui_layout): Install "layout" commands.
10904 * tui/tui-data.h (enum tui_layout_type): Remove.
10905 (tui_current_layout): Don't declare.
10906
0dbc2fc7
TT
109072020-02-22 Tom Tromey <tom@tromey.com>
10908
10909 * tui/tui-regs.c (tui_reg_layout): Remove.
10910 (tui_reg_command): Use tui_regs_layout.
10911 * tui/tui-layout.h (tui_reg_command): Declare.
10912 * tui/tui-layout.c (tui_reg_command): New function.
10913
5afe342e
TT
109142020-02-22 Tom Tromey <tom@tromey.com>
10915
10916 * tui/tui.c (tui_rl_delete_other_windows): Call
10917 tui_remove_some_windows.
10918 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10919 Declare method.
10920 (class tui_layout_window) <remove_windows>: New method.
10921 (class tui_layout_split) <remove_windows>: Declare.
10922 (tui_remove_some_windows): Declare.
10923 * tui/tui-layout.c (tui_remove_some_windows): New function.
10924 (tui_layout_split::remove_windows): New method.
10925
427326a8
TT
109262020-02-22 Tom Tromey <tom@tromey.com>
10927
10928 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10929 * tui/tui-layout.h (tui_next_layout): Declare.
10930 * tui/tui-layout.c (tui_next_layout): New function.
10931
3fe12b6d
TT
109322020-02-22 Tom Tromey <tom@tromey.com>
10933
10934 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10935 correct coordinates.
10936
59b8b5d2
TT
109372020-02-22 Tom Tromey <tom@tromey.com>
10938
10939 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10940 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10941 DATA_WIN case.
10942
2a3d458b
TT
109432020-02-22 Tom Tromey <tom@tromey.com>
10944
10945 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10946 TUI_DISASM_WIN, not tui_win_list.
10947
3f0cbb04
TT
109482020-02-22 Tom Tromey <tom@tromey.com>
10949
10950 * valprint.c (generic_val_print_enum_1)
10951 (val_print_type_code_flags): Style member names.
10952 * rust-lang.c (val_print_struct, rust_print_enum)
10953 (rust_print_struct_def, rust_internal_print_type): Style member
10954 names.
10955 * p-valprint.c (pascal_object_print_value_fields): Style member
10956 names. Only call fprintf_symbol_filtered for static members.
10957 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10958 * f-valprint.c (f_val_print): Style member names.
10959 * f-typeprint.c (f_type_print_base): Style member names.
10960 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10961 call fprintf_symbol_filtered for static members.
10962 (cp_print_class_member): Style member names.
10963 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10964 member names.
10965 * ada-valprint.c (ada_print_scalar): Style enum names.
10966 (ada_val_print_enum): Likewise.
10967 * ada-typeprint.c (print_enum_type): Style enum names.
10968
d4d947ae
TT
109692020-02-21 Tom Tromey <tom@tromey.com>
10970
10971 * psympriv.h (struct partial_symtab): Update comment.
10972
e94e944b
TT
109732020-02-21 Tom Tromey <tromey@adacore.com>
10974
10975 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10976 type is CORE_ADDR.
10977
1eb73179
TV
109782020-02-21 Tom de Vries <tdevries@suse.de>
10979
10980 PR gdb/25534
10981 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10982 if dependencies[i]->user != NULL.
10983
4f180d53
AT
109842020-02-21 Ali Tamur <tamur@google.com>
10985
10986 * dwarf2/read.c (dwarf2_name): Add null check.
10987
22b6cd70
TT
109882020-02-20 Tom Tromey <tom@tromey.com>
10989
10990 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10991 ">=", in binary search.
10992 (dwarf2_find_containing_comp_unit): New overload.
10993 (run_test): New self-test.
10994 (_initialize_dwarf2_read): Register new test.
10995
bd0cf5a6
NC
109962020-02-20 Nelson Chu <nelson.chu@sifive.com>
10997
10998 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10999 * riscv-tdep.h: Likewise.
11000 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11001 rv32-only CSR.
11002 * features/riscv/64bit-csr.xml: Regenerated.
11003
3f702acd
SDJ
110042020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11005 Tom Tromey <tom@tromey.com>
11006
11007 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11008 of 'fputc_unfiltered'.
11009 (putchar_unfiltered): Call 'fputc_unfiltered'.
11010 (fputc_unfiltered): Call 'fputs_unfiltered'.
11011
d13c7322
AB
110122020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11013
11014 * config.in: Regenerate.
11015 * configure: Regenerate.
11016 * configure.ac: Add --with-python-libdir option.
11017 * main.c: Use WITH_PYTHON_LIBDIR.
11018
869d8950
TT
110192020-02-19 Tom Tromey <tom@tromey.com>
11020
11021 * symtab.c (general_symbol_info::compute_and_set_names): Use
11022 obstack_strndup. Simplify call to symbol_set_demangled_name.
11023
298e9637
SM
110242020-02-19 Simon Marchi <simon.marchi@efficios.com>
11025
11026 * dwarf2/read.c (allocate_signatured_type_table,
11027 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11028 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11029 Remove objfile parameter, update all callers.
11030
08410482
DE
110312020-02-19 Doug Evans <dje@google.com>
11032
11033 PR rust/25535
11034 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11035 rust_enum_variant calculation.
11036
dfdeeca1
TT
110372020-02-19 Tom Tromey <tromey@adacore.com>
11038
11039 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11040
2ef5453b
TT
110412020-02-19 Tom Tromey <tromey@adacore.com>
11042
11043 * ada-lang.c (cache_symbol): Use obstack_strdup.
11044
9f1528a1
AB
110452020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11046
11047 * configure: Regenerate.
11048
d3c22fa8
TT
110492020-02-19 Tom Tromey <tromey@adacore.com>
11050
11051 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11052 NULL check.
11053
bf84f706
MR
110542020-02-19 Maciej W. Rozycki <macro@wdc.com>
11055
11056 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11057
d1c9b20f
AB
110582020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11059
11060 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11061 if GDBSERVER is not defined.
11062 (riscv_tdesc_cache): Likewise, also store const target_desc.
11063 (STATIC_IN_GDB): Define.
11064 (riscv_create_target_description): Update declaration with
11065 STATIC_IN_GDB.
11066 (riscv_lookup_target_description): New function, only define if
11067 GDBSERVER is not defined.
11068 * arch/riscv.h (riscv_create_target_description): Declare only
11069 when GDBSERVER is defined.
11070 (riscv_lookup_target_description): New declaration when GDBSERVER
11071 is not defined.
11072 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11073 (riscv_linux_read_features): ...this, and return
11074 riscv_gdbarch_features instead of target_desc.
11075 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11076 (riscv_linux_read_description): Rename to...
11077 (riscv_linux_read_features): ...this.
11078 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11079 Update to use riscv_gdbarch_features and
11080 riscv_lookup_target_description.
11081 * riscv-tdep.c (riscv_find_default_target_description): Use
11082 riscv_lookup_target_description instead of
11083 riscv_create_target_description.
11084
373d7ac0
SM
110852020-02-18 Simon Marchi <simon.marchi@efficios.com>
11086
11087 * valprint.c (generic_val_print_enum_1): When printing a flag
11088 enum with value 0 and there is no enumerator with value 0, print
11089 just "0" instead of "(unknown: 0x0)".
11090
b29a2df0
SM
110912020-02-18 Simon Marchi <simon.marchi@efficios.com>
11092
11093 * valprint.c (generic_val_print_enum_1): Print unknown part of
11094 flag enum in hex.
11095
6740f0cc
SM
110962020-02-18 Simon Marchi <simon.marchi@efficios.com>
11097
11098 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11099 flag enums to contain duplicate enumerators.
11100 * valprint.c (generic_val_print_enum_1): Update comment.
11101
edd45eb0
SM
111022020-02-18 Simon Marchi <simon.marchi@efficios.com>
11103
11104 * dwarf2/read.c: Include "count-one-bits.h".
11105 (update_enumeration_type_from_children): If an enumerator has
11106 multiple bits set, don't treat the enumeration as a "flag enum".
11107 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11108 of flag enums have 0 or 1 bit set.
11109
6d0cf446
BE
111102020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11111
11112 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11113 conversion.
11114 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11115 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11116 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11117 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11118 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11119
7001c1b7
SM
111202020-02-18 Simon Marchi <simon.marchi@efficios.com>
11121
11122 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11123
fdb61c6c
SM
111242020-02-14 Simon Marchi <simon.marchi@efficios.com>
11125
11126 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11127 displaced_step_closure_up.
11128 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11129 (struct displaced_step_closure_up):
11130 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11131 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11132 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11133 Likewise.
11134 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11135 * gdbarch.c, gdbarch.h: Re-generate.
11136 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11137 displaced_step_closure_up.
11138 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11139 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11140 * infrun.h (displaced_step_closure_up): New type alias.
11141 (struct displaced_step_inferior_state) <step_closure>: Change
11142 type to displaced_step_closure_up.
11143 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11144 displaced_step_closure_up.
11145 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11146
a4a38eb4
TT
111472020-02-14 Tom Tromey <tom@tromey.com>
11148
11149 * minidebug.c (gnu_debug_key): New global.
11150 (find_separate_debug_file_in_section): Use it.
11151
e8217e61
SM
111522020-02-14 Simon Marchi <simon.marchi@efficios.com>
11153
11154 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11155 std::unique_ptr.
11156 * gdbarch.c: Re-generate.
11157 * gdbarch.h: Re-generate.
11158 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11159 change.
11160 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11161 type to std::unique_ptr.
11162 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11163 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11164 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11165 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11166 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11167 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11168 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11169 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11170 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11171
d8d83535
SM
111722020-02-14 Simon Marchi <simon.marchi@efficios.com>
11173
11174 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11175 std::unique_ptr.
11176 (displaced_step_clear): Rename to...
11177 (displaced_step_reset): ... this. Just call displaced->reset ().
11178 (displaced_step_clear_cleanup): Rename to...
11179 (displaced_step_reset_cleanup): ... this.
11180 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11181 (displaced_step_fixup): Likewise.
11182 (resume_1): Likewise.
11183 (handle_inferior_event): Restore child's memory before calling
11184 displaced_step_fixup on the parent.
11185 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11186 to std::unique_ptr.
11187 <step_closure>: Change type to std::unique_ptr.
11188
5f661e03
SM
111892020-02-14 Simon Marchi <simon.marchi@efficios.com>
11190
11191 * arm-tdep.c: Include count-one-bits.h.
11192 (cleanup_block_store_pc): Use count_one_bits.
11193 (cleanup_block_load_pc): Use count_one_bits.
11194 (arm_copy_block_xfer): Use count_one_bits.
11195 (thumb2_copy_block_xfer): Use count_one_bits.
11196 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11197 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11198 (thumb_get_next_pcs_raw): Use count_one_bits.
11199 (arm_get_next_pcs_raw): Use count_one_bits_l.
11200 * arch/arm.c (bitcount): Remove.
11201 * arch/arm.h (bitcount): Remove.
11202
8084e579
TT
112032020-02-14 Tom Tromey <tromey@adacore.com>
11204
11205 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11206 Update.
11207 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11208 * dwarf2/loc.c (call_site_find_chain_1): Return
11209 unique_xmalloc_ptr.
11210 (call_site_find_chain): Likewise.
11211
258bf0ee
RB
112122020-02-14 Richard Biener <rguenther@suse.de>
11213
11214 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11215 on expression with division operators.
11216
f98a8458
AKS
112172020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11218
11219 * MAINTAINERS (Write After Approval): Adding myself.
11220
d1437c0e
TT
112212020-02-12 Tom Tromey <tom@tromey.com>
11222
11223 * event-loop.c (event_data, gdb_event, event_handler_func):
11224 Remove.
11225
3d4560f7
TT
112262020-02-12 Tom Tromey <tom@tromey.com>
11227
11228 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11229 (dwarf2_frame_objfile_data): Add comment.
11230 (find_comp_unit, set_comp_unit): New functions.
11231 (dwarf2_frame_find_fde): Use find_comp_unit.
11232 (dwarf2_build_frame_info): Use set_comp_unit.
11233
21982304
TT
112342020-02-12 Tom Tromey <tom@tromey.com>
11235
11236 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11237 (comp_unit): Don't initialize objfile.
11238 (execute_cfa_program): Add text_offset parameter.
11239 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11240 (dwarf2_frame_cache): Update.
11241 (dwarf2_build_frame_info): Don't set "objfile" member.
11242
4debb237
TT
112432020-02-12 Tom Tromey <tom@tromey.com>
11244
11245 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11246 (decode_frame_entry): Likewise.
11247 (dwarf2_build_frame_info): Update.
11248
0d404d44
TT
112492020-02-12 Tom Tromey <tom@tromey.com>
11250
11251 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11252 (decode_frame_entry_1): Use the comp_unit obstack.
11253
a7a3ae5c
TT
112542020-02-12 Tom Tromey <tom@tromey.com>
11255
11256 * dwarf2/frame.c (struct comp_unit): Add initializers and
11257 constructor.
11258 (dwarf2_frame_objfile_data): Store a comp_unit.
11259 (dwarf2_frame_find_fde): Update.
11260 (dwarf2_build_frame_info): Use "new".
11261
a9d65418
TT
112622020-02-12 Tom Tromey <tom@tromey.com>
11263
11264 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11265 (dwarf2_fde_table): Typedef for std::vector.
11266 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11267 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11268 (decode_frame_entry): Update.
11269 (dwarf2_build_frame_info): Use "new".
11270
7559c217
CB
112712020-02-12 Christian Biesinger <cbiesinger@google.com>
11272
11273 * arm-tdep.c (arm_gdbarch_init): Update.
11274 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11275 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11276 have_neon, is_m>: Change to bool.
11277
aeefc73c
CB
112782020-02-12 Christian Biesinger <cbiesinger@google.com>
11279
11280 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11281
d27b8e5f
TT
112822020-02-12 Tom Tromey <tom@tromey.com>
11283
11284 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11285
cd5900f3
HD
112862020-02-12 Hannes Domani <ssbssa@yahoo.de>
11287
11288 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11289 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11290
f056b22b
TT
112912020-02-11 Tom Tromey <tom@tromey.com>
11292
11293 * psymtab.h: Update comment.
11294
f92ff6b5
TT
112952020-02-11 Tom Tromey <tom@tromey.com>
11296
11297 * gdb_obstack.h (struct auto_obstack): Use
11298 DISABLE_COPY_AND_ASSIGN.
11299
3fd6912b
TT
113002020-02-11 Tom Tromey <tom@tromey.com>
11301
11302 * dwarf2/frame.h (struct objfile): Don't forward declare.
11303
69ed9b74
CB
113042020-02-11 Christian Biesinger <cbiesinger@google.com>
11305
11306 * cris-tdep.c (cris_supply_gregset): Change signature to match
11307 what struct regset expects.
11308 (cris_regset): New struct.
11309 (fetch_core_registers): Remove.
11310 (cris_iterate_over_regset_sections): New function.
11311 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11312 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11313
bda874f6
CB
113142020-02-11 Christian Biesinger <cbiesinger@google.com>
11315
11316 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11317 registers.
11318
754e1564
CB
113192020-02-11 Christian Biesinger <cbiesinger@google.com>
11320
11321 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11322
8ddd8e0e
SM
113232020-02-11 Simon Marchi <simon.marchi@efficios.com>
11324
11325 * configure: Re-generate.
11326
898e7f60
SM
113272020-02-11 Simon Marchi <simon.marchi@efficios.com>
11328
11329 * configure: Re-generate.
11330
58df732b
SM
113312020-02-11 Simon Marchi <simon.marchi@efficios.com>
11332
11333 * acinclude: Update warning.m4 path.
11334 * warning.m4: Move to gdbsupport.
11335
da5bd37e
TT
113362020-02-11 Tom Tromey <tromey@adacore.com>
11337
11338 * remote.c (remote_console_output): Update.
11339 * printcmd.c (printf_command): Update.
11340 * event-loop.c (gdb_wait_for_event): Update.
11341 * linux-nat.c (sigchld_handler): Update.
11342 * remote-sim.c (gdb_os_write_stdout): Update.
11343 (gdb_os_flush_stdout): Update.
11344 (gdb_os_flush_stderr): Update.
11345 (gdb_os_write_stderr): Update.
11346 * exceptions.c (print_exception): Update.
11347 * remote-fileio.c (remote_fileio_func_read): Update.
11348 (remote_fileio_func_write): Update.
11349 * tui/tui.c (tui_enable): Update.
11350 * tui/tui-interp.c (tui_interp::init): Update.
11351 * utils.c (init_page_info): Update.
11352 (putchar_unfiltered, fputc_unfiltered): Update.
11353 (gdb_flush): Update.
11354 (emit_style_escape): Update.
11355 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11356 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11357 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11358 (stderr_file::write): Update.
11359 (stderr_file::puts): Update.
11360 * ui-file.h (ui_file_isatty, ui_file_write)
11361 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11362 (ui_file_puts): Don't declare.
11363
85f0dd3c
TV
113642020-02-10 Tom de Vries <tdevries@suse.de>
11365
11366 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11367 sentinel to char *.
11368
2e927613
TV
113692020-02-09 Tom de Vries <tdevries@suse.de>
11370
11371 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11372 filename if it matches "<artificial>".
11373
6bafc845
HD
113742020-02-09 Hannes Domani <ssbssa@yahoo.de>
11375
11376 * windows-tdep.c (struct enum_value_name): New struct.
11377 (create_enum): New function.
11378 (windows_get_siginfo_type): Create and use enum types.
11379
7928d571
HD
113802020-02-09 Hannes Domani <ssbssa@yahoo.de>
11381
11382 * NEWS: Mention $_siginfo support for Windows.
11383 * windows-nat.c (handle_exception): Set siginfo_er.
11384 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11385 (windows_xfer_siginfo): New function.
11386 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11387 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11388 (init_windows_gdbarch_data): New function.
11389 (get_windows_gdbarch_data): New function.
11390 (windows_get_siginfo_type): New function.
11391 (windows_init_abi): Register windows_get_siginfo_type.
11392 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11393
6751ebae
TT
113942020-02-08 Tom Tromey <tom@tromey.com>
11395
11396 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11397 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11398 <keep>: Declare method.
11399 <m_keep>: Remove member.
11400 <~cutu_reader>: Remove.
11401 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11402 (cutu_reader::cutu_reader): Update.
11403 (cutu_reader::keep): Rename from ~cutu_reader.
11404 (process_psymtab_comp_unit, build_type_psymtabs_1)
11405 (process_skeletonless_type_unit, load_partial_comp_unit)
11406 (load_full_comp_unit, dwarf2_read_addr_index)
11407 (read_signatured_type): Update.
11408
135f5437
TT
114092020-02-08 Tom Tromey <tom@tromey.com>
11410
11411 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11412 "want_partial_unit" parameter.
11413 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11414 Inline check for DW_TAG_partial_unit.
11415 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11416
9f66ff1c
TT
114172020-02-08 Tom Tromey <tom@tromey.com>
11418
11419 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11420 read.c.
11421 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11422 read.c.
11423
c8a7a66f
TT
114242020-02-08 Tom Tromey <tom@tromey.com>
11425
11426 * dwarf2/read.c (read_address): Move to comp-unit.c.
11427 (dwarf2_rnglists_process, dwarf2_ranges_process)
11428 (read_attribute_value, dwarf_decode_lines_1)
11429 (var_decode_location, decode_locdesc): Update.
11430 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11431 read.c. Remove "cu" parameter.
11432 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11433 method.
11434
8266302d
TT
114352020-02-08 Tom Tromey <tom@tromey.com>
11436
11437 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11438 (read_indirect_line_string): Update.
11439 * dwarf2/comp-unit.c (read_offset): Remove.
11440 (read_comp_unit_head): Update.
11441 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11442 method.
11443 (read_offset): Don't declare.
11444
4057dfde
TT
114452020-02-08 Tom Tromey <tom@tromey.com>
11446
11447 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11448 * dwarf2/read.c (struct comp_unit_head): Move to
11449 dwarf2/comp-unit.h.
11450 (enum class rcuh_kind): Move to comp-unit.h.
11451 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11452 (read_comp_unit_head, error_check_comp_unit_head)
11453 (read_and_check_comp_unit_head): Move to comp-unit.c.
11454 (read_offset, dwarf_unit_type_name): Likewise.
11455 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11456 (cutu_reader::cutu_reader, read_call_site_scope)
11457 (find_partial_die, follow_die_offset): Update.
11458 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11459
24aa364d
TT
114602020-02-08 Tom Tromey <tom@tromey.com>
11461
11462 * dwarf2/read.c (read_offset_1): Move to leb.c.
11463 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11464 (dwarf_decode_macro_bytes): Update.
11465 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11466 * dwarf2/leb.h (read_offset): Declare.
11467
2c7d5afc
TT
114682020-02-08 Tom Tromey <tom@tromey.com>
11469
11470 * dwarf2/read.c (dwarf2_section_size): Remove.
11471 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11472 Update.
11473 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11474
4075cb26
TT
114752020-02-08 Tom Tromey <tom@tromey.com>
11476
11477 * dwarf2/read.c (read_initial_length): Move to leb.c.
11478 * dwarf2/leb.h (read_initial_length): Declare.
11479 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11480 handle_nonstd parameter.
11481 * dwarf2/frame.c (read_initial_length): Remove.
11482 (decode_frame_entry_1): Update.
11483
09ba997f
TT
114842020-02-08 Tom Tromey <tom@tromey.com>
11485
11486 * dwarf2/loc.c (dwarf2_find_location_expression)
11487 (dwarf_evaluate_loc_desc::get_tls_address)
11488 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11489 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11490 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11491 (dwarf2_compile_property_to_c)
11492 (dwarf2_loc_desc_get_symbol_read_needs)
11493 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11494 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11495 (loclist_describe_location, loclist_tracepoint_var_ref)
11496 (loclist_generate_c_location): Update.
11497 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11498 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11499 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11500 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11501 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11502 (dwarf2_per_cu_data::addr_size)
11503 (dwarf2_per_cu_data::ref_addr_size)
11504 (dwarf2_per_cu_data::text_offset)
11505 (dwarf2_per_cu_data::addr_type): Now methods.
11506 (per_cu_header_read_in): Make per_cu "const".
11507 (dwarf2_version): Remove.
11508 (dwarf2_per_cu_data::int_type): Now a method.
11509 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11510 (set_die_type, read_array_type, read_subrange_index_type)
11511 (read_tag_string_type, read_subrange_type): Update.
11512 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11513 offset_size, ref_addr_size, text_offset, addr_type, version,
11514 objfile, int_type, addr_sized_int_type>: Declare methods.
11515
96c738c0
TT
115162020-02-08 Tom Tromey <tom@tromey.com>
11517
11518 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11519 Move earlier.
11520
8fdd972c
TT
115212020-02-08 Tom Tromey <tom@tromey.com>
11522
11523 * dwarf2/read.h (dwarf_line_debug): Declare.
11524 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11525 * dwarf2/read.c: Move line_header code to new files.
11526 (dwarf_line_debug): No longer static.
11527 * dwarf2/line-header.c: New file.
11528 * dwarf2/line-header.h: New file.
11529
03075812
TT
115302020-02-08 Tom Tromey <tom@tromey.com>
11531
11532 * dwarf2/read.c (struct line_header) <file_full_name,
11533 file_file_name>: Return unique_xmalloc_ptr.
11534 (line_header::file_file_name): Update.
11535 (line_header::file_full_name): Update.
11536 (dw2_get_file_names_reader): Update.
11537 (macro_start_file): Update.
11538
bb822404
TT
115392020-02-08 Tom Tromey <tom@tromey.com>
11540
11541 * dwarf2/read.c (struct line_header) <file_full_name,
11542 file_file_name>: Declare methods.
11543 (dw2_get_file_names_reader): Update.
11544 (file_file_name): Now a method.
11545 (file_full_name): Likewise.
11546 (macro_start_file): Update.
11547
009b64fc
TT
115482020-02-08 Tom Tromey <tom@tromey.com>
11549
11550 * dwarf2/read.c (dwarf_always_disassemble)
11551 (show_dwarf_always_disassemble): Move to loc.c.
11552 (_initialize_dwarf2_read): Move "always-disassemble" registration
11553 to loc.c.
11554 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11555 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11556 static.
11557 (show_dwarf_always_disassemble): Move from read.c.
11558 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11559
5895093f
TT
115602020-02-08 Tom Tromey <tom@tromey.com>
11561
11562 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11563 (create_quick_file_names_table): Return htab_up.
11564 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11565 Update.
11566 * dwarf2/read.h (struct dwarf2_per_objfile)
11567 <quick_file_names_table>: Now htab_up.
11568
b3b32279
TT
115692020-02-08 Tom Tromey <tom@tromey.com>
11570
11571 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11572
1d33d811
TT
115732020-02-08 Tom Tromey <tom@tromey.com>
11574
11575 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11576 Rewrite.
11577 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11578 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11579 (abbrev_table::abbrev_table): No longer inline.
11580 (ABBREV_HASH_SIZE): Remove.
11581 (abbrev_table::m_abbrevs): Now an htab_up.
11582
86de1d91
TT
115832020-02-08 Tom Tromey <tom@tromey.com>
11584
11585 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11586 (cutu_reader): Update.
11587 (build_type_psymtabs_1): Update.
11588 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11589 (abbrev_table::alloc_abbrev): Update.
11590 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11591 (abbrev_table::read): New static method, renamed from
11592 abbrev_table_read_table.
11593 (abbrev_table::alloc_abbrev)
11594 (abbrev_table::add_abbrev): Now private.
11595 (abbrev_table::abbrev_table): Now private.
11596 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11597
0335378b
TT
115982020-02-08 Tom Tromey <tom@tromey.com>
11599
11600 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11601 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11602 htab_up.
11603
48b490f2
TT
116042020-02-08 Tom Tromey <tom@tromey.com>
11605
11606 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11607 htab_up.
11608 (lookup_dwo_unit_in_dwp): Update.
11609 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11610 on obstack.
11611
bc68fb19
TT
116122020-02-08 Tom Tromey <tom@tromey.com>
11613
11614 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11615 obstack.
11616
d15acc42
TT
116172020-02-08 Tom Tromey <tom@tromey.com>
11618
11619 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11620 line_header_hash.
11621 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11622 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11623 Change type to htab_up.
11624
eaa5fa8b
TT
116252020-02-08 Tom Tromey <tom@tromey.com>
11626
11627 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11628 htab_up. Don't allocate on obstack.
11629 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11630 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11631 Change type to htab_up.
11632
b0b6a987
TT
116332020-02-08 Tom Tromey <tom@tromey.com>
11634
11635 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11636 Change type to htab_up.
11637 * dwarf2/read.c (create_signatured_type_table_from_index)
11638 (create_signatured_type_table_from_debug_names)
11639 (create_all_type_units, add_type_unit)
11640 (lookup_dwo_signatured_type, lookup_signatured_type)
11641 (process_skeletonless_type_unit): Update.
11642 (create_debug_type_hash_table, create_debug_types_hash_table):
11643 Change type of types_htab.
11644 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11645 htab_up. Don't allocate on obstack.
11646 (create_cus_hash_table): Change type of cus_htab parameter.
11647 (struct dwo_file) <cus, tus>: Now htab_up.
11648 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11649 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11650 (queue_and_load_all_dwo_tus): Update.
11651 * dwarf2/index-write.c (write_gdbindex): Update.
11652 (write_debug_names): Update.
11653
39856def
TT
116542020-02-08 Tom Tromey <tom@tromey.com>
11655
11656 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11657 dwarf2/read.c. Remove "next" member. Add constructor ntad
11658 destructor.
11659 (struct dwarf2_per_objfile) <queue>: New member.
11660 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11661 dwarf2/read.h.
11662 (dwarf2_queue, dwarf2_queue_tail): Remove.
11663 (class dwarf2_queue_guard): Add parameter to constructor. Use
11664 DISABLE_COPY_AND_ASSIGN.
11665 <m_per_objfile>: New member.
11666 <~dwarf2_queue_guard>: Rewrite.
11667 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11668 Update.
11669 (~dwarf2_queue_item): New.
11670
3e225074
TT
116712020-02-08 Tom Tromey <tom@tromey.com>
11672
11673 * dwarf2/read.c (struct die_info) <has_children>: New member.
11674 (dw2_get_file_names_reader): Remove has_children.
11675 (dw2_get_file_names): Update.
11676 (read_cutu_die_from_dwo): Remove has_children.
11677 (cutu_reader::init_tu_and_read_dwo_dies)
11678 (cutu_reader::cutu_reader): Update.
11679 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11680 Remove has_children.
11681 (build_type_psymtabs_1, process_skeletonless_type_unit)
11682 (load_partial_comp_unit, load_full_comp_unit): Update.
11683 (create_dwo_cu_reader): Remove has_children.
11684 (create_cus_hash_table, read_die_and_children): Update.
11685 (read_full_die_1,read_full_die): Remove has_children.
11686 (read_signatured_type): Update.
11687 (class cutu_reader) <has_children>: Remove.
11688
82ca8957
TT
116892020-02-08 Tom Tromey <tom@tromey.com>
11690
11691 * dwarf2/expr.c: Rename from dwarf2expr.c.
11692 * dwarf2/expr.h: Rename from dwarf2expr.h.
11693 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11694 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11695 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11696 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11697 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11698 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11699 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11700 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11701 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11702 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11703 * dwarf2/loc.c: Rename from dwarf2loc.c.
11704 * dwarf2/loc.h: Rename from dwarf2loc.h.
11705 * dwarf2/read.c: Rename from dwarf2read.c.
11706 * dwarf2/read.h: Rename from dwarf2read.h.
11707 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11708 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11709 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11710 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11711 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11712 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11713 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11714 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11715 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11716 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11717 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11718 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11719 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11720 Update.
11721 * Makefile.in (COMMON_SFILES): Update.
11722 (HFILES_NO_SRCDIR): Update.
11723
9e35d499
TT
117242020-02-08 Tom Tromey <tom@tromey.com>
11725
11726 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11727 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11728
1eba2311
TT
117292020-02-08 Tom Tromey <tom@tromey.com>
11730
11731 * dwarf2read.h (struct die_info): Don't declare.
11732
e41c2da2
TT
117332020-02-08 Tom Tromey <tom@tromey.com>
11734
11735 * dwarf2read.h (die_info_ptr): Remove typedef.
11736
4fc6c0d5
TT
117372020-02-08 Tom Tromey <tom@tromey.com>
11738
11739 * dwarf2read.c (read_call_site_scope)
11740 (handle_data_member_location, dwarf2_add_member_fn)
11741 (mark_common_block_symbol_computed, read_common_block)
11742 (attr_to_dynamic_prop, partial_die_info::read)
11743 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11744 (dwarf2_symbol_mark_computed, set_die_type): Update.
11745 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11746 method.
11747 (attr_form_is_block): Don't declare.
11748 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11749
cd6c91b4
TT
117502020-02-08 Tom Tromey <tom@tromey.com>
11751
11752 * dwarf2read.c (dwarf2_find_base_address, )
11753 (read_call_site_scope, rust_containing_type)
11754 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11755 (handle_data_member_location, dwarf2_add_member_fn)
11756 (get_alignment, read_structure_type, process_structure_scope)
11757 (mark_common_block_symbol_computed, read_common_block)
11758 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11759 (partial_die_info::read, read_attribute_value, new_symbol)
11760 (lookup_die_type, dwarf2_get_ref_die_offset)
11761 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11762 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11763 (dwarf2_symbol_mark_computed): Update.
11764 * dwarf2/attribute.h (struct attribute) <value_as_address,
11765 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11766 methods.
11767 (value_as_address, attr_form_is_section_offset)
11768 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11769 * dwarf2/attribute.c (attribute::value_as_address)
11770 (attribute::form_is_section_offset, attribute::form_is_constant)
11771 (attribute::form_is_ref): Now methods.
11772
162dce55
TT
117732020-02-08 Tom Tromey <tom@tromey.com>
11774
11775 * dwarf2read.c (struct attribute, DW_STRING)
11776 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11777 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11778 (attr_form_is_block, attr_form_is_section_offset)
11779 (attr_form_is_constant, attr_form_is_ref): Move.
11780 * dwarf2/attribute.h: New file.
11781 * dwarf2/attribute.c: New file, from dwarf2read.c.
11782 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11783
3054dd54
TT
117842020-02-08 Tom Tromey <tom@tromey.com>
11785
11786 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11787 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11788 Move.
11789 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11790 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11791 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11792 abbrev.c.
11793 * dwarf2/abbrev.h: New file.
11794 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11795 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11796
96b79293
TT
117972020-02-08 Tom Tromey <tom@tromey.com>
11798
11799 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11800 (dwarf2_section_size, dwarf2_get_section_info)
11801 (create_signatured_type_table_from_debug_names)
11802 (create_addrmap_from_aranges, read_debug_names_from_section)
11803 (get_gdb_index_contents_from_section, read_comp_unit_head)
11804 (error_check_comp_unit_head, read_abbrev_offset)
11805 (create_debug_type_hash_table, init_cu_die_reader)
11806 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11807 (read_comp_units_from_section, create_cus_hash_table)
11808 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11809 (create_dwp_v2_section, dwarf2_rnglists_process)
11810 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11811 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11812 (read_indirect_string_from_dwz, read_addr_index_1)
11813 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11814 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11815 (fill_in_loclist_baton): Update.
11816 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11817 get_containing_section, get_bfd_owner, get_bfd_section,
11818 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11819 (dwarf2_read_section, get_section_name, get_section_file_name)
11820 (get_containing_section, get_section_bfd_owner)
11821 (get_section_bfd_section, get_section_name, get_section_file_name)
11822 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11823 declare.
11824 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11825 (dwarf2_section_info::get_bfd_owner)
11826 (dwarf2_section_info::get_bfd_section)
11827 (dwarf2_section_info::get_name)
11828 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11829 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11830 (dwarf2_section_info::read): Now methods.
11831 * dwarf-index-write.c (class debug_names): Update.
11832
2c86cff9
TT
118332020-02-08 Tom Tromey <tom@tromey.com>
11834
11835 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11836 Move to dwarf2/section.h.
11837 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11838 (get_section_bfd_section, get_section_name)
11839 (get_section_file_name, get_section_id, get_section_flags)
11840 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11841 dwarf2/section.c.
11842 * dwarf2/section.h: New file.
11843 * dwarf2/section.c: New file, from dwarf2read.c.
11844 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11845
f4382c45
TT
118462020-02-08 Tom Tromey <tom@tromey.com>
11847
11848 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11849 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11850 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11851 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11852 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11853 * dwarf2/leb.h: New file, from dwarf2read.c.
11854 * dwarf2/leb.c: New file, from dwarf2read.c.
11855 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11856 Remove.
11857 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11858 (COMMON_SFILES): Add dwarf2/leb.c.
11859
01840b7a
JB
118602020-02-08 Joel Brobecker <brobecker@adacore.com>
11861
11862 GDB 9.1 released.
11863
dfcb27e4
IB
118642020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11865
11866 PR gdb/25190:
aac66a4c
SM
11867 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11868 * gdb/remote.c (remote_console_output): Update.
11869 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11870 (ui_file_puts): ...this.
11871 * gdb/ui-file.h (ui_file_puts): Add declaration.
11872 * gdb/utils.c (emit_style_escape): Update.
11873 (flush_wrap_buffer): Update.
11874 (fputs_maybe_filtered): Update.
11875 (fputs_unfiltered): Add function.
dfcb27e4 11876
faa17681
IB
118772020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11878
aac66a4c
SM
11879 * gdb/event-loop.c (gdb_wait_for_event): Update.
11880 * gdb/printcmd.c (printf_command): Update.
11881 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11882 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11883 (gdb_os_flush_stderr): Update.
11884 * gdb/remote.c (remote_console_output): Update.
11885 * gdb/ui-file.c (gdb_flush): Rename to...
11886 (ui_file_flush): ...this.
11887 (stderr_file::write): Update.
11888 (stderr_file::puts): Update.
11889 * gdb/ui-file.h (gdb_flush): Rename to...
11890 (ui_file_flush): ...this.
11891 * gdb/utils.c (gdb_flush): Add function.
11892 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 11893
5abbbe1d
TT
118942020-02-07 Tom Tromey <tromey@adacore.com>
11895
11896 PR breakpoints/24915:
11897 * source.c (find_and_open_source): Do not check basenames_may_differ.
11898
919adfe8
TT
118992020-02-07 Tom Tromey <tom@tromey.com>
11900
11901 * README: Update gdbserver documentation.
11902 * gdbserver: Move to top level.
11903 * configure.tgt (build_gdbserver): Remove.
11904 * configure.ac: Remove --enable-gdbserver.
11905 * configure: Rebuild.
11906 * Makefile.in (distclean): Don't mention gdbserver.
11907
1d5d29e7
SV
119082020-02-06 Shahab Vahedi <shahab@synopsys.com>
11909
11910 * source-cache.c (source_cache::ensure): Surround
11911 get_plain_source_lines with a try/catch.
11912 (source_cache::get_line_charpos): Get rid of try/catch
11913 and only check for the return value of "ensure".
11914 * tui/tui-source.c (tui_source_window::set_contents):
11915 Simplify "nlines" calculation.
11916
6eb1129c
SV
119172020-02-06 Shahab Vahedi <shahab@synopsys.com>
11918
11919 * MAINTAINERS (Write After Approval): Add myself.
11920
c6a42d11
CB
119212020-02-05 Christian Biesinger <cbiesinger@google.com>
11922
11923 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11924 function call.
11925
c8ecdda6
CB
119262020-02-05 Christian Biesinger <cbiesinger@google.com>
11927
11928 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11929
f6480e70
MR
119302020-02-05 Maciej W. Rozycki <macro@wdc.com>
11931
11932 * nat/riscv-linux-tdesc.h: New file.
11933 * nat/riscv-linux-tdesc.c: New file, taking code from...
11934 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11935 ... here.
11936 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11937 NATDEPFILES.
11938
dcc9fbc6
AB
119392020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11940
11941 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11942 we don't set the fake simulator ptid to the null_ptid.
11943
719546c4
SM
119442020-02-03 Simon Marchi <simon.marchi@efficios.com>
11945
11946 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11947 * gdbthread.h (class thread_info) <resumed>: Likewise.
11948 * infrun.c (resume_1): Likewise.
11949 (proceed): Likewise.
11950 (infrun_thread_stop_requested): Likewise.
11951 (stop_all_threads): Likewise.
11952 (handle_inferior_event): Likewise.
11953 (restart_threads): Likewise.
11954 (finish_step_over): Likewise.
11955 (keep_going_stepped_thread): Likewise.
11956 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11957 (linux_handle_extended_wait): Likewise.
11958 * record-btrace.c (get_thread_current_frame_id): Likewise.
11959 * record-full.c (record_full_wait_1): Likewise.
11960 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11961 * target.c (target_resume): Likewise.
11962 * thread.c (set_running_thread): Likewise.
11963
e409c542
AKS
119642020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11965
11966 * f-valprint.c (f77_print_array_1): Changed datatype of index
11967 variable to LONGEST from int to enable it to contain bound
11968 values correctly.
11969
ee98c0da
MR
119702020-02-03 Maciej W. Rozycki <macro@wdc.com>
11971
11972 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11973 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11974 offsets according to FLEN determined.
11975 (riscv_linux_nat_target::read_description): Determine FLEN
11976 dynamically.
11977 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11978 according to FLEN determined.
11979 (riscv_linux_nat_target::store_registers): Likewise.
11980
aa66aac4
SV
119812020-02-01 Shahab Vahedi <shahab@synopsys.com>
11982
11983 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11984 when reg->group is empty and reggroup is not.
11985
fd9faca8
TT
119862020-01-31 Tom Tromey <tromey@adacore.com>
11987
11988 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11989 Call beneath target's mourn_inferior after unpushing.
11990
42330a68
AB
119912020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11992
11993 PR tui/9765
11994 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11995 have enough lines to fill the screen, still return the lowest
11996 address we found.
11997
7a27a45b
AB
119982020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11999
12000 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12001 '-', '<', and '>' commands.
12002
c47f70e2
PA
120032020-01-29 Pedro Alves <palves@redhat.com>
12004 Sergio Durigan Junior <sergiodj@redhat.com>
12005
12006 * infcmd.c (construct_inferior_arguments): Assert that
12007 'argc' is greater than 0.
12008
5133a315
LM
120092020-01-29 Luis Machado <luis.machado@linaro.org>
12010
12011 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12012 (BRK_INSN_MASK): Define to 0xd4200000.
12013 (aarch64_program_breakpoint_here_p): New function.
12014 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12015 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12016 breakpoint.c.
12017 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12018 breakpoint.h
12019 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12020 call gdbarch_program_breakpoint_here_p.
12021 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12022 default_program_breakpoint_here_p, changed return type to bool and
12023 simplified.
12024 * breakpoint.h (program_breakpoint_here): Moved prototype to
12025 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12026 return type to bool.
12027 * gdbarch.c: Regenerate.
12028 * gdbarch.h: Regenerate.
12029 * gdbarch.sh (program_breakpoint_here_p): New method.
12030 * infrun.c (handle_signal_stop): Call
12031 gdbarch_program_breakpoint_here_p.
12032
168f8c6b
TT
120332020-01-26 Tom Tromey <tom@tromey.com>
12034
12035 * ctfread.c (struct ctf_fp_info): Reindent.
12036 (_initialize_ctfread): Remove.
12037
128a391f
TT
120382020-01-26 Tom Tromey <tom@tromey.com>
12039
12040 * psymtab.c (partial_map_expand_apply)
12041 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12042 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12043 (psym_print_stats, psym_expand_symtabs_for_function)
12044 (psym_map_symbol_filenames, psym_map_matching_symbols)
12045 (psym_expand_symtabs_matching)
12046 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12047 (maintenance_check_psymtabs): Use new methods.
12048 * psympriv.h (struct partial_symtab) <readin_p,
12049 get_compunit_symtab>: New methods.
12050 <readin, compunit_symtab>: Remove members.
12051 (struct standard_psymtab): New.
12052 (struct legacy_psymtab): Derive from standard_psymtab.
12053 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12054 standard_psymtab.
12055 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12056
0494dbec
TT
120572020-01-26 Tom Tromey <tom@tromey.com>
12058
12059 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12060 read_dependencies. Add assert.
12061 * psymtab.c (partial_symtab::read_dependencies): New method.
12062 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12063 method.
12064 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12065 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12066 read_dependencies.
12067 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12068 Add assert.
12069
8566b89b
TT
120702020-01-26 Tom Tromey <tom@tromey.com>
12071
12072 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12073 Call expand_psymtab.
12074 (xcoff_read_symtab): Call expand_psymtab.
12075 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12076 legacy_expand_psymtab.
12077 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12078 method.
12079 (struct legacy_psymtab) <expand_psymtab>: Implement.
12080 <legacy_expand_psymtab>: New member.
12081 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12082 (parse_partial_symbols): Set legacy_expand_psymtab.
12083 (psymtab_to_symtab_1): Change argument order. Call
12084 expand_psymtab.
12085 (new_psymtab): Set legacy_expand_psymtab.
12086 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12087 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12088 expand_psymtab.
12089 (dwarf2_psymtab::expand_psymtab): Rename from
12090 psymtab_to_symtab_1. Call expand_psymtab.
12091 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12092 (dbx_end_psymtab): Likewise.
12093 (dbx_psymtab_to_symtab_1): Change argument order. Call
12094 expand_psymtab.
12095 (dbx_read_symtab): Call expand_psymtab.
12096 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12097 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12098 (ctf_psymtab::read_symtab): Call expand_psymtab.
12099
077cbab2
TT
121002020-01-26 Tom Tromey <tom@tromey.com>
12101
12102 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12103 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12104 messages.
12105 * mdebugread.c (mdebug_read_symtab): Remove prints.
12106 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12107 assert.
12108 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12109
891813be
TT
121102020-01-26 Tom Tromey <tom@tromey.com>
12111
12112 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12113 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12114 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12115 legacy_symtab.
12116 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12117 * psymtab.c (psymtab_to_symtab): Call method.
12118 (dump_psymtab): Update.
12119 * psympriv.h (struct partial_symtab): Add virtual destructor.
12120 <read_symtab>: New method.
12121 (struct legacy_symtab): New.
12122 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12123 (struct pst_map) <pst>: Now a legacy_psymtab.
12124 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12125 (new_psymtab): Use legacy_psymtab.
12126 * dwarf2read.h (struct dwarf2_psymtab): New.
12127 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12128 * dwarf2read.c (dwarf2_create_include_psymtab)
12129 (dwarf2_build_include_psymtabs, create_type_unit_group)
12130 (create_partial_symtab, process_psymtab_comp_unit_reader)
12131 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12132 (set_partial_user): Use dwarf2_psymtab.
12133 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12134 (psymtab_to_symtab_1, process_full_comp_unit)
12135 (process_full_type_unit, dwarf2_ranges_read)
12136 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12137 (dwarf_decode_lines): Use dwarf2_psymtab.
12138 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12139 (add_address_entry_worker, write_one_signatured_type)
12140 (recursively_count_psymbols, recursively_write_psymbols)
12141 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12142 (write_debug_names): Likewise.
12143 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12144 <pst>: Now a legacy_psymtab.
12145 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12146 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12147 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12148 * ctfread.c (struct ctf_psymtab): New.
12149 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12150 ctf_psymtab.
12151 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12152 (create_partial_symtab): Return a ctf_psymtab.
12153 (scan_partial_symbols): Update.
12154
c3693a1d
TT
121552020-01-26 Tom Tromey <tom@tromey.com>
12156
12157 * xcoffread.c (xcoff_start_psymtab): Use new.
12158 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12159 renamed from start_psymtab_common.
12160 * psympriv.h (struct partial_symtab): Add new constructor.
12161 (start_psymtab_common): Don't declare.
12162 * mdebugread.c (parse_partial_symbols): Use new.
12163 * dwarf2read.c (create_partial_symtab): Use new.
12164 * dbxread.c (start_psymtab): Use new.
12165 * ctfread.c (create_partial_symtab): Use new.
12166
32caafd0
TT
121672020-01-26 Tom Tromey <tom@tromey.com>
12168
12169 * xcoffread.c (xcoff_end_psymtab): Use new.
12170 * psymtab.c (start_psymtab_common): Use new.
12171 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12172 Update.
12173 * psympriv.h (struct partial_symtab): Add parameters to
12174 constructor. Don't inline.
12175 (allocate_psymtab): Don't declare.
12176 * mdebugread.c (new_psymtab): Use new.
12177 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12178 * dbxread.c (dbx_end_psymtab): Use new.
12179
abaa2f23
TT
121802020-01-26 Tom Tromey <tom@tromey.com>
12181
12182 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12183 allocate_psymtab. Update documentation.
12184 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12185 allocate_psymtab. Do not use new.
12186 (allocate_psymtab): Use new. Update.
12187
6d94535f
TT
121882020-01-26 Tom Tromey <tom@tromey.com>
12189
12190 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12191 * psymtab.c (psym_print_stats): Update.
12192 * psympriv.h (struct partial_symtab) <readin,
12193 psymtabs_addrmap_supported, anonymous>: Now bool.
12194 * mdebugread.c (psymtab_to_symtab_1): Update.
12195 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12196 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12197 (process_full_comp_unit, process_full_type_unit): Update.
12198 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12199 * ctfread.c (psymtab_to_symtab): Update.
12200
6f17252b
TT
122012020-01-26 Tom Tromey <tom@tromey.com>
12202
12203 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12204 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12205 * psymtab.c (psymtab_storage): Delete psymtabs.
12206 (psymtab_storage::allocate_psymtab): Use new.
12207 (psymtab_storage::discard_psymtab): Use delete.
12208 * psympriv.h (struct partial_symtab): Add constructor and
12209 initializers.
12210
f6f1cebc
TT
122112020-01-26 Tom Tromey <tom@tromey.com>
12212
12213 * machoread.c: Do not include psympriv.h.
12214
e47e48f6
PW
122152020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12216
12217 * NEWS: Mention the new option and the set/show commands.
12218
a2fedca9
PW
122192020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12220
12221 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12222 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12223 (validate_exec_file): New variables, enums, functions.
12224 (exec_file_locate_attach, print_section_info): Style the filenames.
12225 (_initialize_exec): Install show_exec_file_mismatch_command and
12226 set_exec_file_mismatch_command.
12227 * gdbcore.h (validate_exec_file): Declare.
12228 * infcmd.c (attach_command): Call validate_exec_file.
12229 * remote.c ( remote_target::remote_add_inferior): Likewise.
12230
7ffa82e1
AB
122312020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12232
12233 * frame.c (find_frame_sal): Move call to get_next_frame into more
12234 inner scope.
12235 * inline-frame.c (inilne_state) <inline_state>: Update argument
12236 types.
12237 (inilne_state) <skipped_symbol>: Rename to...
12238 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12239 (skip_inline_frames): Build vector of skipped symbols and use this
12240 to reate the inline_state.
12241 (inline_skipped_symbol): Add a comment and some assertions, fetch
12242 skipped symbol from the list.
12243
3d92a3e3
AB
122442020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12245
12246 * buildsym.c (lte_is_less_than): Delete.
12247 (buildsym_compunit::end_symtab_with_blockvector): Create local
12248 lambda function to sort line table entries, and use
12249 std::stable_sort instead of std::sort.
12250 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12251 markers when looking for a previous line.
12252
94a72be7
AB
122532020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12254
12255 * dwarf2read.c (lnp_state_machine::record_line): Include
12256 end_sequence parameter in debug print out. Record the line if we
12257 are at an end_sequence marker even if it's not the start of a
12258 statement.
12259 * symmisc.c (maintenance_print_one_line_table): Print end of
12260 sequence markers with 'END' not '0'.
12261
53af73bf
PA
122622020-01-24 Pedro Alves <palves@redhat.com>
12263
12264 PR gdb/25410
12265 * thread.c (scoped_restore_current_thread::restore): Use
12266 switch_to_inferior_no_thread.
12267 * exec.c: Include "progspace-and-thread.h".
12268 (add_target_sections, remove_target_sections):
12269 scoped_restore_current_pspace_and_thread instead of
12270 scoped_restore_current_thread.
12271 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12272 and aspace to the inferior before calling clone_program_space.
12273 Remove stale comment.
12274
3050c6f4
CB
122752020-01-24 Christian Biesinger <cbiesinger@google.com>
12276
12277 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12278 (arm_netbsd_nat_target::fetch_registers): ...this.
12279 (arm_nbsd_nat_target::store_registers): Rename to...
12280 (arm_netbsd_nat_target::store_registers): ...this.
12281
73685c7e
CB
122822020-01-24 Christian Biesinger <cbiesinger@google.com>
12283
12284 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12285 register_t.
12286
89203d40
CB
122872020-01-24 Christian Biesinger <cbiesinger@google.com>
12288
12289 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12290 Update comment.
12291 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12292 Likewise.
12293 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12294 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12295 the correct replacement (iterate_over_regset_sections).
12296 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12297 Update comment.
12298
1ba1ac88
AB
122992020-01-24 Graham Markall <graham.markall@embecosm.com>
12300
12301 PR gdb/23718
12302 * gdb/python/python.c (execute_gdb_command): Call
12303 async_enable_stdin in catch block.
12304
f3364a6d
AB
123052020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12306
12307 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12308 SWITCH_THRU_ALL_UIS.
12309
733d0a67
AB
123102020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12311
12312 PR tui/9765
12313 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12314 comment, add extra parameter, and update to store previous symbol
12315 when appropriate.
12316 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12317 add extra parameter.
12318 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12319 remove unneeded parameter, add try/catch around gdb_print_insn,
12320 rewrite to add items to asm_lines vector.
12321 (tui_find_backward_disassembly_start_address): New function.
12322 (tui_find_disassembly_address): Updated throughout.
12323 (tui_disasm_window::set_contents): Update for changes to
12324 tui_disassemble.
12325 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12326 number of lines to scroll.
12327
b3b3bada
SM
123282020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12329
12330 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12331 (SECT_OFF_DATA): Likewise.
12332 (SECT_OFF_RODATA): Likewise.
12333 (SECT_OFF_TEXT): Likewise.
12334 (SECT_OFF_BSS): Likewise.
12335 (struct objfile) <text_section_offset, data_section_offset>: New
12336 methods.
12337 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12338 objfile::text_section_offset.
12339 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12340 * coffread.c (coff_symtab_read): Likewise.
12341 (enter_linenos): Likewise.
12342 (process_coff_symbol): Likewise.
12343 * ctfread.c (get_objfile_text_range): Likewise.
12344 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12345 Use objfile::data_section_offset.
12346 * dwarf2-frame.c (execute_cfa_program): Use
12347 objfile::text_section_offset.
12348 (dwarf2_frame_find_fde): Likewise.
12349 * dwarf2read.c (create_addrmap_from_index): Likewise.
12350 (create_addrmap_from_aranges): Likewise.
12351 (dw2_find_pc_sect_compunit_symtab): Likewise.
12352 (process_psymtab_comp_unit_reader): Likewise.
12353 (add_partial_symbol): Likewise.
12354 (add_partial_subprogram): Likewise.
12355 (process_full_comp_unit): Likewise.
12356 (read_file_scope): Likewise.
12357 (read_func_scope): Likewise.
12358 (read_lexical_block_scope): Likewise.
12359 (read_call_site_scope): Likewise.
12360 (dwarf2_rnglists_process): Likewise.
12361 (dwarf2_ranges_process): Likewise.
12362 (dwarf2_ranges_read): Likewise.
12363 (dwarf_decode_lines_1): Likewise.
12364 (new_symbol): Likewise.
12365 (dwarf2_fetch_die_loc_sect_off): Likewise.
12366 (dwarf2_per_cu_text_offset): Likewise.
12367 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12368 * hppa-tdep.c (read_unwind_info): Likewise.
12369 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12370 * psympriv.h (struct partial_symtab): Likewise.
12371 * psymtab.c (find_pc_sect_psymtab): Likewise.
12372 * solib-svr4.c (enable_break): Likewise.
12373 * stap-probe.c (relocate_address): Use
12374 objfile::data_section_offset.
12375 * xcoffread.c (enter_line_range): Use
12376 objfile::text_section_offset.
12377 (read_xcoff_symtab): Likewise.
12378
ab53f382
SM
123792020-01-23 Simon Marchi <simon.marchi@efficios.com>
12380
12381 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12382 declaration to narrower scopes.
12383
e7eee665
SM
123842020-01-23 Simon Marchi <simon.marchi@efficios.com>
12385
12386 * darwin-nat.h (struct darwin_exception_msg, enum
12387 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12388 Move up.
12389 (class darwin_nat_target) <wait_1, check_new_threads,
12390 decode_exception_message, decode_message, stop_inferior,
12391 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12392 * darwin-nat.c (darwin_check_new_threads): Rename to...
12393 (darwin_nat_target::check_new_threads): ... this.
12394 (darwin_suspend_inferior_it): Remove.
12395 (darwin_decode_exception_message): Rename to...
12396 (darwin_nat_target::decode_exception_message): ... this.
12397 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12398 (darwin_decode_message): Rename to...
12399 (darwin_nat_target::decode_message): ... this.
12400 (cancel_breakpoint): Rename to...
12401 (darwin_nat_target::cancel_breakpoint): ... this.
12402 (darwin_wait): Rename to...
12403 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12404 instead of iterate_over_inferiors.
12405 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12406 (darwin_stop_inferior): Rename to...
12407 (darwin_nat_target::stop_inferior): ... this.
12408 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12409 (darwin_init_thread_list): Rename to...
12410 (darwin_nat_target::init_thread_list): ... this.
12411 (darwin_ptrace_him): Rename to...
12412 (darwin_nat_target::ptrace_him): ... this.
12413 (darwin_nat_target::create_inferior): Pass lambda function to
12414 fork_inferior.
12415 (darwin_nat_target::detach): Call stop_inferior instead of
12416 darwin_stop_inferior.
12417 * fork-inferior.h (fork_inferior): Change init_trace_fun
12418 parameter to gdb::function_view.
12419 * fork-inferior.c (fork_inferior): Likewise.
12420
c162ed3e
HD
124212020-01-23 Hannes Domani <ssbssa@yahoo.de>
12422
12423 * i386-cygwin-tdep.c (core_process_module_section): Update.
12424 * windows-nat.c (struct lm_info_windows): Add text_offset.
12425 (windows_xfer_shared_libraries): Update.
12426 * windows-tdep.c (windows_xfer_shared_library):
12427 Add text_offset_cached argument.
12428 * windows-tdep.h (windows_xfer_shared_library): Update.
12429
a1237872
SM
124302020-01-21 Simon Marchi <simon.marchi@efficios.com>
12431
12432 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12433
b3ee6dd9
SM
124342020-01-21 Simon Marchi <simon.marchi@efficios.com>
12435
12436 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12437 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12438 replace with range-based for.
12439 (gdbsim_interrupt_inferior): Remove.
12440 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12441 with a range-based for. Inline code from
12442 gdbsim_interrupt_inferior.
12443
f9fac3c8
SM
124442020-01-21 Simon Marchi <simon.marchi@efficios.com>
12445
12446 * infrun.c (proceed): Fix indentation.
12447
f6474de9
TT
124482020-01-21 Tom Tromey <tromey@adacore.com>
12449
12450 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12451 * python/python.c (python_extension_ops): Update.
12452 (gdbpy_colorize): New function.
12453 * python/lib/gdb/__init__.py (colorize): New function.
12454 * extension.h (ext_lang_colorize): Declare.
12455 * extension.c (ext_lang_colorize): New function.
12456 * extension-priv.h (struct extension_language_ops) <colorize>: New
12457 member.
12458 * cli/cli-style.c (_initialize_cli_style): Update help text.
12459
f0c702d4
LM
124602020-01-21 Luis Machado <luis.machado@linaro.org>
12461
12462 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12463 <cond>: Change type to bool.
12464 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12465 (aarch64_displaced_step_cb): Likewise.
12466 (aarch64_displaced_step_tb): Likewise.
12467
1ab139e5
LM
124682020-01-21 Luis Machado <luis.machado@linaro.org>
12469
12470 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12471 output.
12472
0c271889
LM
124732020-01-21 Luis Machado <luis.machado@linaro.org>
12474
12475 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12476 <pc_adjust>: Adjust the documentation.
12477 (aarch64_displaced_step_fixup): Check if PC really moved before
12478 adjusting it.
12479
4d89c1c7
TT
124802020-01-19 Tom Tromey <tom@tromey.com>
12481
12482 * disasm.c (~gdb_disassembler): New destructor.
12483 (gdb_buffered_insn_length): Call disassemble_free_target.
12484 * disasm.h (class gdb_disassembler): Declare destructor. Use
12485 DISABLE_COPY_AND_ASSIGN.
12486
c0ab21c2
TT
124872020-01-19 Tom Tromey <tom@tromey.com>
12488
12489 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12490 (die_reader_func_ftype): Remove.
12491 (cutu_reader): New class.
12492 (dw2_get_file_names_reader): Remove "data" parameter.
12493 (dw2_get_file_names): Use cutu_reader.
12494 (create_debug_type_hash_table): Update.
12495 (read_cutu_die_from_dwo): Update comment.
12496 (lookup_dwo_unit): Add dwo_name parameter.
12497 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12498 die_reader_func_ftype and data parameters.
12499 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12500 Remove die_reader_func_ftype and data parameters.
12501 (~cutu_reader): New; from init_cutu_and_read_dies.
12502 (cutu_reader::cutu_reader): Rename from
12503 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12504 and data parameters.
12505 (init_cutu_and_read_dies_simple): Remove.
12506 (struct process_psymtab_comp_unit_data): Remove.
12507 (process_psymtab_comp_unit_reader): Remove data parameter; add
12508 want_partial_unit and pretend_language parameters.
12509 (process_psymtab_comp_unit): Use cutu_reader.
12510 (build_type_psymtabs_reader): Remove data parameter.
12511 (build_type_psymtabs_1): Use cutu_reader.
12512 (process_skeletonless_type_unit): Likewise.
12513 (load_partial_comp_unit_reader): Remove.
12514 (load_partial_comp_unit): Use cutu_reader.
12515 (load_full_comp_unit_reader): Remove.
12516 (load_full_comp_unit): Use cutu_reader.
12517 (struct create_dwo_cu_data): Remove.
12518 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12519 dwo_unit parameters.
12520 (create_cus_hash_table): Use cutu_reader.
12521 (struct dwarf2_read_addr_index_data): Remove.
12522 (dwarf2_read_addr_index_reader): Remove.
12523 (dwarf2_read_addr_index): Use cutu_reader.
12524 (read_signatured_type_reader): Remove.
12525 (read_signatured_type): Use cutu_reader.
12526
45bbae5c
TT
125272020-01-19 Tom Tromey <tom@tromey.com>
12528
12529 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12530 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12531 (tui_wrefresh): Declare.
12532 * tui/tui-wingeneral.c (suppress_output): New global.
12533 (tui_suppress_output, ~tui_suppress_output): New constructor and
12534 destructor.
12535 (tui_wrefresh): New function.
12536 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12537 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12538 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12539 method.
12540 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12541 tui_wrefresh.
12542 (tui_data_window::no_refresh): New method.
12543 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12544 (tui_reg_command): Use tui_suppress_output
12545 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12546 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12547 method.
12548 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12549
4f13c1c0
TT
125502020-01-19 Tom Tromey <tom@tromey.com>
12551
12552 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12553 Handle case where symtab is null.
12554
fa47e446
SM
125552020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12556
12557 * linux-fork.c (one_fork_p): Simplify.
12558
26f42329
SM
125592020-01-17 Simon Marchi <simon.marchi@efficios.com>
12560
12561 * top.c (struct qt_args): Remove.
12562 (kill_or_detach): Change return type to void, replace `void *`
12563 parameter with a proper one.
12564 (print_inferior_quit_action): Likewise.
12565 (quit_confirm): Use range-based for loop to iterate over inferiors.
12566 (quit_force): Likewise.
12567
a9ac81b1
SM
125682020-01-17 Simon Marchi <simon.marchi@efficios.com>
12569
12570 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12571 `void *` parameter with proper parameters.
12572 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12573 (print_one_inferior): Change return type to void, replace `void *`
12574 parameter with proper parameters.
12575 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12576 inferiors.
12577 (get_other_inferior): Remove.
12578 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12579 inferiors.
12580
788eca49
SM
125812020-01-17 Simon Marchi <simon.marchi@efficios.com>
12582
12583 * mi/mi-interp.c (report_initial_inferior): Remove.
12584 (mi_interp::init): Use range-based for to iterate over inferiors.
12585
d9bc85b6
SM
125862020-01-17 Simon Marchi <simon.marchi@efficios.com>
12587
12588 * python/py-inferior.c (build_inferior_list): Remove.
12589 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12590
40c94099
CB
125912020-01-16 Christian Biesinger <cbiesinger@google.com>
12592
12593 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12594 (btrace_stitch_trace): Likewise.
12595 * charset.c (intermediate_encoding): Likewise (vaild).
12596 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12597 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12598 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12599
e0cdfe3c
HD
126002020-01-16 Hannes Domani <ssbssa@yahoo.de>
12601
12602 * windows-tdep.c (windows_get_tlb_type):
12603 Add rtl_user_process_parameters type.
12604
790f1718 126052020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12606 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12607
12608 PR build/24805
12609 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12610 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12611 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12612 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12613 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12614 (ps_plog): Redeclare exported functions with default visibility.
12615
3112ed97
NA
126162020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12617
12618 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12619 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12620
8dc3273e
SM
126212020-01-15 Simon Marchi <simon.marchi@efficios.com>
12622
12623 * infcmd.c (post_create_inferior): Use get_thread_regcache
12624 instead of get_current_regcache.
12625
ff47f4f0
TT
126262020-01-14 Tom Tromey <tom@tromey.com>
12627
12628 PR symtab/12535:
12629 * python/python.c (gdbpy_decode_line): Treat empty string the same
12630 as no argument.
12631
975f45b7
TT
126322020-01-14 Tom Tromey <tom@tromey.com>
12633
12634 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12635
25e57356
TT
126362020-01-14 Tom Tromey <tom@tromey.com>
12637
12638 * nat/linux-btrace.c: Don't include <config.h>.
12639 * nat/linux-ptrace.c: Don't include <config.h>.
12640 * nat/x86-linux-dregs.c: Don't include <config.h>.
12641
05ea2a05
TT
126422020-01-14 Tom Tromey <tom@tromey.com>
12643
12644 * configure: Rebuild.
12645 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12646
01027315
TT
126472020-01-14 Tom Tromey <tom@tromey.com>
12648
12649 * nat/x86-linux-dregs.c: Include configh.h.
12650 * nat/linux-ptrace.c: Include configh.h.
12651 * nat/linux-btrace.c: Include configh.h.
12652 * defs.h: Include config.h, bfd.h.
12653 * configure.ac: Don't source common.host.
12654 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12655 * configure: Rebuild.
12656 * acinclude.m4: Update path.
12657 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12658 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12659 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12660 (CLIBS): Add LIBSUPPORT.
12661 (CDEPS): Likewise.
12662 (COMMON_SFILES): Remove gdbsupport files.
12663 (HFILES_NO_SRCDIR): Likewise.
12664 (stamp-version): Update path to create-version.sh.
12665 (ALLDEPFILES): Remove gdbsupport files.
12666
b2ceabe8
TT
126672020-01-14 Tom Tromey <tom@tromey.com>
12668
12669 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12670 USE_WIN32API when needed.
12671 * configure.ac (USE_WIN32API): Don't define.
12672 (WIN32LIBS): Use WIN32APILIBS.
12673 * configure: Rebuild.
12674
25c51f71
TT
126752020-01-14 Tom Tromey <tom@tromey.com>
12676
12677 * configure: Rebuild.
12678 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12679
717c684d
BE
126802020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12681
12682 * skip.c (skip_function_command): Make skip w/o arguments use the
12683 name of the inlined function if pc is inside any inlined function.
12684
7da6a5b9
LM
126852020-01-14 Luis Machado <luis.machado@linaro.org>
12686
12687 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12688 * infrun.c (resume_1): Likewise.
12689 (handle_inferior_event): Remove stale comment.
12690 * linux-nat.c (linux_nat_target::resume): Update comments.
12691 (save_stop_reason): Likewise.
12692 (linux_nat_filter_event): Likewise.
12693 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12694
44e4c775
AB
126952020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12696
12697 * elfread.c (record_minimal_symbol): Set section index to 0 for
12698 non-allocatable sections.
12699
18a8505e
AT
12700
127012020-01-13 Ali Tamur <tamur@google.com>
12702
12703 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12704 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12705 to gdb::optional. Update comments.
12706 (dwo_file): Update comments.
12707 (read_attribute): Update API to take an additional out parameter,
12708 need_reprocess. This is used to mark attributes that need other
12709 attributes (e.g. str_offsets_base) for correct computation which may not
12710 have been read yet.
12711 (read_attribute_reprocess): New function declaration.
12712 (read_addr_index): Likewise.
12713 (read_dwo_str_index): Likewise.
12714 (read_stub_str_index): Likewise.
12715 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12716 (lookup_addr_base): New function definition.
12717 (lookup_ranges_base): Likewise.
12718 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12719 lookup_ranges_base.
12720 (init_cutu_and_read_dies): Update comments.
12721 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12722 unit. This is used to inherit parent's str_offsets_base and addr_base.
12723 Update comments.
12724 (init_cutu_and_read_dies_simple): Reflect API changes.
12725 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12726 (create_cus_hash_table): Change API to take parent compile unit.
12727 Reflect API changes.
12728 (open_and_init_dwo_file): Reflect API changes.
12729 (dwarf2_get_pc_bounds): Update comments.
12730 (dwarf2_record_block_ranges): Likewise.
12731 (read_full_die_1): Change implementation to reprocess attributes that
12732 need str_offsets_base and addr_base.
12733 (partial_die_info::read): Likewise.
12734 (read_attribute_reprocess): New function definition.
12735 (read_attribute_value): Change API to take an additional out parameter,
12736 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12737 when a non-dwo compile unit has index based attributes.
12738 (read_attribute): Reflect API changes.
12739 (read_addr_index_1): Reflect API changes. Update comments.
12740 (dwarf2_read_addr_index_data): Reflect API changes.
12741 (dwarf2_read_addr_index): Likewise.
12742 (read_str_index): Change API and implementation. This becomes a helper
12743 to be used by the new string index related methods. Update error
12744 message and comments.
12745 (read_dwo_str_index): New function definition.
12746 (read_stub_str_index): Likewise.
12747 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12748 * symfile.h (dwarf2_debug_sections): Likewise.
12749 * xcoffread.c (dwarf2_debug_sections): Likewise.
12750
0cac9354
SM
127512020-01-13 Simon Marchi <simon.marchi@efficios.com>
12752
12753 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12754 core_reg_sect type to gdb_byte *.
12755 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12756 * cris-tdep.c (fetch_core_registers): Likewise.
12757 * corelow.c (core_target::get_core_register_section): Change
12758 type of `contents` to gdb::byte_vector.
12759
9a6d629c
AB
127602020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12761
12762 * tui/tui-wingeneral.c (box_win): Position the title in the center
12763 of the border.
12764
d8b2f9e3
SM
127652020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12766
12767 * corelow.c (core_target::get_core_register_section): Use
12768 std::vector instead of alloca.
12769
bb564c58
SM
127702020-01-13 Simon Marchi <simon.marchi@efficios.com>
12771
12772 * warning.m4: Add -Wmissing-declarations to build_warnings.
12773 * configure: Re-generate.
12774
6b366111
SM
127752020-01-13 Simon Marchi <simon.marchi@efficios.com>
12776
12777 * python/python.c (init__gdb_module): Add declaration.
12778
6c265988
SM
127792020-01-13 Simon Marchi <simon.marchi@efficios.com>
12780
12781 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12782 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12783 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12784 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12785 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12786 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12787 * ada-exp.y (_initialize_ada_exp): Add declaration.
12788 * ada-lang.c (_initialize_ada_language): Add declaration.
12789 * ada-tasks.c (_initialize_tasks): Add declaration.
12790 * agent.c (_initialize_agent): Add declaration.
12791 * aix-thread.c (_initialize_aix_thread): Add declaration.
12792 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12793 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12794 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12795 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12796 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12797 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12798 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12799 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12800 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12801 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12802 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12803 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12804 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12805 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12806 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12807 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12808 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12809 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12810 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12811 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12812 * annotate.c (_initialize_annotate): Add declaration.
12813 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12814 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12815 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12816 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12817 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12818 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12819 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12820 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12821 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12822 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12823 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12824 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12825 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12826 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12827 * auto-load.c (_initialize_auto_load): Add declaration.
12828 * auxv.c (_initialize_auxv): Add declaration.
12829 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12830 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12831 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12832 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12833 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12834 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12835 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12836 * breakpoint.c (_initialize_breakpoint): Add declaration.
12837 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12838 * btrace.c (_initialize_btrace): Add declaration.
12839 * charset.c (_initialize_charset): Add declaration.
12840 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12841 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12842 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12843 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12844 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12845 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12846 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12847 * coffread.c (_initialize_coffread): Add declaration.
12848 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12849 * compile/compile.c (_initialize_compile): Add declaration.
12850 * complaints.c (_initialize_complaints): Add declaration.
12851 * completer.c (_initialize_completer): Add declaration.
12852 * copying.c (_initialize_copying): Add declaration.
12853 * corefile.c (_initialize_core): Add declaration.
12854 * corelow.c (_initialize_corelow): Add declaration.
12855 * cp-abi.c (_initialize_cp_abi): Add declaration.
12856 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12857 * cp-support.c (_initialize_cp_support): Add declaration.
12858 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12859 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12860 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12861 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12862 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12863 * ctfread.c (_initialize_ctfread): Add declaration.
12864 * d-lang.c (_initialize_d_language): Add declaration.
12865 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12866 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12867 * dbxread.c (_initialize_dbxread): Add declaration.
12868 * dcache.c (_initialize_dcache): Add declaration.
12869 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12870 * disasm.c (_initialize_disasm): Add declaration.
12871 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12872 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12873 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12874 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12875 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12876 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12877 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12878 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12879 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12880 * elfread.c (_initialize_elfread): Add declaration.
12881 * exec.c (_initialize_exec): Add declaration.
12882 * extension.c (_initialize_extension): Add declaration.
12883 * f-lang.c (_initialize_f_language): Add declaration.
12884 * f-valprint.c (_initialize_f_valprint): Add declaration.
12885 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12886 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12887 * filesystem.c (_initialize_filesystem): Add declaration.
12888 * findcmd.c (_initialize_mem_search): Add declaration.
12889 * findvar.c (_initialize_findvar): Add declaration.
12890 * fork-child.c (_initialize_fork_child): Add declaration.
12891 * frame-base.c (_initialize_frame_base): Add declaration.
12892 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12893 * frame.c (_initialize_frame): Add declaration.
12894 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12895 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12896 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12897 * gcore.c (_initialize_gcore): Add declaration.
12898 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12899 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12900 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12901 * gdbarch.c (_initialize_gdbarch): Add declaration.
12902 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12903 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12904 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12905 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12906 * go-lang.c (_initialize_go_language): Add declaration.
12907 * go32-nat.c (_initialize_go32_nat): Add declaration.
12908 * guile/guile.c (_initialize_guile): Add declaration.
12909 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12910 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12911 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12912 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12913 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12914 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12915 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12916 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12917 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12918 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12919 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12920 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12921 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12922 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12923 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12924 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12925 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12926 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12927 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12928 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12929 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12930 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12931 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12932 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12933 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12934 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12935 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12936 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12937 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12938 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12939 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12940 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12941 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12942 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12943 * infcall.c (_initialize_infcall): Add declaration.
12944 * infcmd.c (_initialize_infcmd): Add declaration.
12945 * inflow.c (_initialize_inflow): Add declaration.
12946 * infrun.c (_initialize_infrun): Add declaration.
12947 * interps.c (_initialize_interpreter): Add declaration.
12948 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12949 * jit.c (_initialize_jit): Add declaration.
12950 * language.c (_initialize_language): Add declaration.
12951 * linux-fork.c (_initialize_linux_fork): Add declaration.
12952 * linux-nat.c (_initialize_linux_nat): Add declaration.
12953 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12954 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12955 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12956 * m2-lang.c (_initialize_m2_language): Add declaration.
12957 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12958 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12959 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12960 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12961 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12962 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12963 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12964 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12965 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12966 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12967 * machoread.c (_initialize_machoread): Add declaration.
12968 * macrocmd.c (_initialize_macrocmd): Add declaration.
12969 * macroscope.c (_initialize_macroscope): Add declaration.
12970 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12971 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12972 * maint.c (_initialize_maint_cmds): Add declaration.
12973 * mdebugread.c (_initialize_mdebugread): Add declaration.
12974 * memattr.c (_initialize_mem): Add declaration.
12975 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12976 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12977 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12978 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12979 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12980 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12981 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12982 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12983 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12984 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12985 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12986 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12987 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12988 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12989 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12990 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12991 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12992 * mipsread.c (_initialize_mipsread): Add declaration.
12993 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12994 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12995 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12996 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12997 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12998 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12999 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13000 * nto-procfs.c (_initialize_procfs): Add declaration.
13001 * objc-lang.c (_initialize_objc_language): Add declaration.
13002 * observable.c (_initialize_observer): Add declaration.
13003 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13004 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13005 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13006 * osabi.c (_initialize_gdb_osabi): Add declaration.
13007 * osdata.c (_initialize_osdata): Add declaration.
13008 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13009 * parse.c (_initialize_parse): Add declaration.
13010 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13011 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13012 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13013 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13014 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13015 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13016 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13017 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13018 * printcmd.c (_initialize_printcmd): Add declaration.
13019 * probe.c (_initialize_probe): Add declaration.
13020 * proc-api.c (_initialize_proc_api): Add declaration.
13021 * proc-events.c (_initialize_proc_events): Add declaration.
13022 * proc-service.c (_initialize_proc_service): Add declaration.
13023 * procfs.c (_initialize_procfs): Add declaration.
13024 * producer.c (_initialize_producer): Add declaration.
13025 * psymtab.c (_initialize_psymtab): Add declaration.
13026 * python/python.c (_initialize_python): Add declaration.
13027 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13028 * record-btrace.c (_initialize_record_btrace): Add declaration.
13029 * record-full.c (_initialize_record_full): Add declaration.
13030 * record.c (_initialize_record): Add declaration.
13031 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13032 * regcache.c (_initialize_regcache): Add declaration.
13033 * reggroups.c (_initialize_reggroup): Add declaration.
13034 * remote-notif.c (_initialize_notif): Add declaration.
13035 * remote-sim.c (_initialize_remote_sim): Add declaration.
13036 * remote.c (_initialize_remote): Add declaration.
13037 * reverse.c (_initialize_reverse): Add declaration.
13038 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13039 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13040 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13041 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13042 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13043 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13044 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13045 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13046 Add declaration.
13047 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13048 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13049 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13050 * rust-exp.y (_initialize_rust_exp): Add declaration.
13051 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13052 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13053 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13054 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13055 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13056 * score-tdep.c (_initialize_score_tdep): Add declaration.
13057 * ser-go32.c (_initialize_ser_dos): Add declaration.
13058 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13059 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13060 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13061 * ser-uds.c (_initialize_ser_socket): Add declaration.
13062 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13063 * serial.c (_initialize_serial): Add declaration.
13064 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13065 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13066 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13067 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13068 * skip.c (_initialize_step_skip): Add declaration.
13069 * sol-thread.c (_initialize_sol_thread): Add declaration.
13070 * solib-aix.c (_initialize_solib_aix): Add declaration.
13071 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13072 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13073 * solib-frv.c (_initialize_frv_solib): Add declaration.
13074 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13075 * solib-target.c (_initialize_solib_target): Add declaration.
13076 * solib.c (_initialize_solib): Add declaration.
13077 * source-cache.c (_initialize_source_cache): Add declaration.
13078 * source.c (_initialize_source): Add declaration.
13079 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13080 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13081 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13082 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13083 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13084 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13085 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13086 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13087 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13088 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13089 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13090 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13091 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13092 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13093 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13094 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13095 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13096 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13097 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13098 * stabsread.c (_initialize_stabsread): Add declaration.
13099 * stack.c (_initialize_stack): Add declaration.
13100 * stap-probe.c (_initialize_stap_probe): Add declaration.
13101 * std-regs.c (_initialize_frame_reg): Add declaration.
13102 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13103 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13104 * symfile.c (_initialize_symfile): Add declaration.
13105 * symmisc.c (_initialize_symmisc): Add declaration.
13106 * symtab.c (_initialize_symtab): Add declaration.
13107 * target.c (_initialize_target): Add declaration.
13108 * target-connection.c (_initialize_target_connection): Add
13109 declaration.
13110 * target-dcache.c (_initialize_target_dcache): Add declaration.
13111 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13112 * thread.c (_initialize_thread): Add declaration.
13113 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13114 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13115 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13116 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13117 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13118 * tracectf.c (_initialize_ctf): Add declaration.
13119 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13120 * tracefile.c (_initialize_tracefile): Add declaration.
13121 * tracepoint.c (_initialize_tracepoint): Add declaration.
13122 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13123 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13124 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13125 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13126 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13127 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13128 * tui/tui.c (_initialize_tui): Add declaration.
13129 * typeprint.c (_initialize_typeprint): Add declaration.
13130 * ui-style.c (_initialize_ui_style): Add declaration.
13131 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13132 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13133 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13134 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13135 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13136 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13137 * unittests/filtered_iterator-selftests.c
13138 (_initialize_filtered_iterator_selftests): Add declaration.
13139 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13140 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13141 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13142 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13143 * unittests/main-thread-selftests.c
13144 (_initialize_main_thread_selftests): Add declaration.
13145 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13146 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13147 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13148 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13149 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13150 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13151 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13152 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13153 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13154 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13155 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13156 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13157 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13158 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13159 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13160 declaration.
13161 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13162 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13163 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13164 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13165 * user-regs.c (_initialize_user_regs): Add declaration.
13166 * utils.c (_initialize_utils): Add declaration.
13167 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13168 * valops.c (_initialize_valops): Add declaration.
13169 * valprint.c (_initialize_valprint): Add declaration.
13170 * value.c (_initialize_values): Add declaration.
13171 * varobj.c (_initialize_varobj): Add declaration.
13172 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13173 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13174 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13175 * windows-nat.c (_initialize_windows_nat): Add declaration.
13176 (_initialize_check_for_gdb_ini): Add declaration.
13177 (_initialize_loadable): Add declaration.
13178 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13179 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13180 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13181 * xcoffread.c (_initialize_xcoffread): Add declaration.
13182 * xml-support.c (_initialize_xml_support): Add declaration.
13183 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13184 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13185 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13186 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13187
e2de1eec
SM
131882020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13189
13190 * regformats/regdat.sh: Generate declaration for init function.
13191
e0037b4c
SM
131922020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13193
13194 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13195 up.
13196 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13197 close_one_inferior>: New methods.
13198 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13199 pass down target to find_inferior_pid.
13200 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13201 Pass down target to find_inferior_ptid.
13202 (gdbsim_target::create_inferior): Pass down target to
13203 add_thread_silent.
13204 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13205 target down to find_inferior_ptid and switch_to_thread.
13206 (gdbsim_target::close): Update to call close_one_inferior.
13207 (struct resume_data): Remove.
13208 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13209 directly, rather than through a void pointer.
13210 (gdbsim_target::resume): Update to call resume_one_inferior.
13211
58920b5b
SM
132122020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13213
13214 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13215
4ec89149
PA
132162020-01-12 Pedro Alves <palves@redhat.com>
13217
13218 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13219 directly for the current inferior instead of
13220 discard_all_inferiors.
13221 (discard_all_inferiors): Delete.
13222
7c392d1d
TT
132232020-01-11 Tom Tromey <tom@tromey.com>
13224
13225 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13226 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13227 deprecated_safe_get_selected_frame.
13228
d9ebdab7
TBA
132292020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13230
13231 * inferior.c (print_inferior): Switch inferior before printing it.
13232
f3c469b9
PA
132332020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13234 Pedro Alves <palves@redhat.com>
13235
13236 * progspace-and-thread.c (switch_to_program_space_and_thread):
13237 Assert there's an inferior for PSPACE. Use
13238 switch_to_inferior_no_thread to switch the inferior too.
13239 * progspace.c (program_space::~program_space): Call
13240 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13241 (program_space::free_all_objfiles): Don't call clear_symtab_users
13242 here.
13243 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13244
65c574f6
PA
132452020-01-10 Pedro Alves <palves@redhat.com>
13246
13247 * NEWS: Mention multi-target debugging, "info connections", and
13248 "add-inferior -no-connection".
13249
2f4fcf00
PA
132502020-01-10 Pedro Alves <palves@redhat.com>
13251
13252 * infrun.c: Include "target-connection.h".
13253 (check_multi_target_resumption): New.
13254 (proceed): Call it.
13255 * target-connection.c (make_target_connection_string): Make
13256 extern.
13257 * target-connection.h (make_target_connection_string): Declare.
13258
121b3efd
PA
132592020-01-10 Pedro Alves <palves@redhat.com>
13260
13261 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13262 * inferior.c (uiout_field_connection): New function.
13263 (print_inferior): Add new "connection-id" column.
13264 (add_inferior_command): Show connection number/string of added
13265 inferior.
13266 * process-stratum-target.h
13267 (process_stratum_target::connection_string): New virtual method.
13268 (process_stratum_target::connection_number): New field.
13269 * remote.c (remote_target::connection_string): New override.
13270 * target-connection.c: New file.
13271 * target-connection.h: New file.
13272 * target.c (decref_target): Remove process_stratum targets from
13273 the connection list.
13274 (target_stack::push): Add process_stratum targets to the
13275 connection list.
13276
4f837581
PA
132772020-01-10 Pedro Alves <palves@redhat.com>
13278
13279 Revert:
13280 2016-04-12 Pedro Alves <palves@redhat.com>
13281 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13282 Remove references to name.
13283 * serial.h (struct serial) <name>: Delete.
13284
f4ec508e
PA
132852020-01-10 Pedro Alves <palves@redhat.com>
13286
13287 * gdbarch-selftests.c (register_to_value_test): Remove "target
13288 already pushed" check.
13289
5b6d1e4f
PA
132902020-01-10 Pedro Alves <palves@redhat.com>
13291 John Baldwin <jhb@FreeBSD.org>
13292
13293 * aarch64-linux-nat.c
13294 (aarch64_linux_nat_target::thread_architecture): Adjust.
13295 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13296 (task_command_1): Likewise.
13297 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13298 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13299 (aix_thread_target::store_registers)
13300 (aix_thread_target::thread_alive): Adjust.
13301 * amd64-fbsd-tdep.c: Include "inferior.h".
13302 (amd64fbsd_get_thread_local_address): Pass down target.
13303 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13304 thread's gdbarch instead of target_gdbarch.
13305 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13306 get_last_target_status.
13307 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13308 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13309 inferiors.
13310 (update_inserted_breakpoint_locations): Skip if inferiors with no
13311 execution.
13312 (update_global_location_list): When handling moribund locations,
13313 find representative inferior for location's pspace, and use thread
13314 count of its process_stratum target.
13315 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13316 * bsd-uthread.c (bsd_uthread_target::wait): Use
13317 as_process_stratum_target and adjust thread_change_ptid and
13318 add_thread calls.
13319 (bsd_uthread_target::update_thread_list): Use
13320 as_process_stratum_target and adjust find_thread_ptid,
13321 thread_change_ptid and add_thread calls.
13322 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13323 find_thread_ptid call.
13324 * corelow.c (add_to_thread_list): Adjust add_thread call.
13325 (core_target_open): Adjust add_thread_silent and thread_count
13326 calls.
13327 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13328 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13329 * event-top.c (async_disconnect): Pop targets from all inferiors.
13330 * exec.c (add_target_sections): Push exec target on all inferiors
13331 sharing the program space.
13332 (remove_target_sections): Remove the exec target from all
13333 inferiors sharing the program space.
13334 (exec_on_vfork): New.
13335 * exec.h (exec_on_vfork): Declare.
13336 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13337 Pass it down.
13338 (fbsd_nat_target::update_thread_list): Adjust.
13339 (fbsd_nat_target::resume): Adjust.
13340 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13341 down.
13342 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13343 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13344 get_thread_arch_regcache call.
13345 * fork-child.c (gdb_startup_inferior): Pass target down to
13346 startup_inferior and set_executing.
13347 * gdbthread.h (struct process_stratum_target): Forward declare.
13348 (add_thread, add_thread_silent, add_thread_with_info)
13349 (in_thread_list): Add process_stratum_target parameter.
13350 (find_thread_ptid(inferior*, ptid_t)): New overload.
13351 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13352 parameter.
13353 (all_threads()): Delete overload.
13354 (all_threads, all_non_exited_threads): Add process_stratum_target
13355 parameter.
13356 (all_threads_safe): Use brace initialization.
13357 (thread_count): Add process_stratum_target parameter.
13358 (set_resumed, set_running, set_stop_requested, set_executing)
13359 (threads_are_executing, finish_thread_state): Add
13360 process_stratum_target parameter.
13361 (switch_to_thread): Use is_current_thread.
13362 * i386-fbsd-tdep.c: Include "inferior.h".
13363 (i386fbsd_get_thread_local_address): Pass down target.
13364 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13365 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13366 have_inferiors check.
13367 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13368 (inf_ptrace_target::attach): Adjust.
13369 * infcall.c (run_inferior_call): Adjust.
13370 * infcmd.c (run_command_1): Pass target to
13371 scoped_finish_thread_state.
13372 (proceed_thread_callback): Skip inferiors with no execution.
13373 (continue_command): Rename 'all_threads' local to avoid hiding
13374 'all_threads' function. Adjust get_last_target_status call.
13375 (prepare_one_step): Adjust set_running call.
13376 (signal_command): Use user_visible_resume_target. Compare thread
13377 pointers instead of inferior_ptid.
13378 (info_program_command): Adjust to pass down target.
13379 (attach_command): Mark target's 'thread_executing' flag.
13380 (stop_current_target_threads_ns): New, factored out from ...
13381 (interrupt_target_1): ... this. Switch inferior before making
13382 target calls.
13383 * inferior-iter.h
13384 (struct all_inferiors_iterator, struct all_inferiors_range)
13385 (struct all_inferiors_safe_range)
13386 (struct all_non_exited_inferiors_range): Filter on
13387 process_stratum_target too. Remove explicit.
13388 * inferior.c (inferior::inferior): Push dummy target on target
13389 stack.
13390 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13391 Add process_stratum_target parameter, and pass it down.
13392 (have_live_inferiors): Adjust.
13393 (switch_to_inferior_and_push_target): New.
13394 (add_inferior_command, clone_inferior_command): Handle
13395 "-no-connection" parameter. Use
13396 switch_to_inferior_and_push_target.
13397 (_initialize_inferior): Mention "-no-connection" option in
13398 the help of "add-inferior" and "clone-inferior" commands.
13399 * inferior.h: Include "process-stratum-target.h".
13400 (interrupt_target_1): Use bool.
13401 (struct inferior) <push_target, unpush_target, target_is_pushed,
13402 find_target_beneath, top_target, process_target, target_at,
13403 m_stack>: New.
13404 (discard_all_inferiors): Delete.
13405 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13406 (all_inferiors, all_non_exited_inferiors): Add
13407 process_stratum_target parameter.
13408 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13409 (target_last_proc_target): New global.
13410 (follow_fork_inferior): Push target on new inferior. Pass target
13411 to add_thread_silent. Call exec_on_vfork. Handle target's
13412 reference count.
13413 (follow_fork): Adjust get_last_target_status call. Also consider
13414 target.
13415 (follow_exec): Push target on new inferior.
13416 (struct execution_control_state) <target>: New field.
13417 (user_visible_resume_target): New.
13418 (do_target_resume): Call target_async.
13419 (resume_1): Set target's threads_executing flag. Consider resume
13420 target.
13421 (commit_resume_all_targets): New.
13422 (proceed): Also consider resume target. Skip threads of inferiors
13423 with no execution. Commit resumtion in all targets.
13424 (start_remote): Pass current inferior to wait_for_inferior.
13425 (infrun_thread_stop_requested): Consider target as well. Pass
13426 thread_info pointer to clear_inline_frame_state instead of ptid.
13427 (infrun_thread_thread_exit): Consider target as well.
13428 (random_pending_event_thread): New inferior parameter. Use it.
13429 (do_target_wait): Rename to ...
13430 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13431 down.
13432 (threads_are_resumed_pending_p, do_target_wait): New.
13433 (prepare_for_detach): Adjust calls.
13434 (wait_for_inferior): New inferior parameter. Handle it. Use
13435 do_target_wait_1 instead of do_target_wait.
13436 (fetch_inferior_event): Adjust. Switch to representative
13437 inferior. Pass target down.
13438 (set_last_target_status): Add process_stratum_target parameter.
13439 Save target in global.
13440 (get_last_target_status): Add process_stratum_target parameter and
13441 handle it.
13442 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13443 (context_switch): Check inferior_ptid == null_ptid before calling
13444 inferior_thread().
13445 (get_inferior_stop_soon): Pass down target.
13446 (wait_one): Rename to ...
13447 (poll_one_curr_target): ... this.
13448 (struct wait_one_event): New.
13449 (wait_one): New.
13450 (stop_all_threads): Adjust.
13451 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13452 event's target.
13453 (switch_back_to_stepped_thread): Also consider target.
13454 (print_stop_event): Update.
13455 (normal_stop): Update. Also consider the resume target.
13456 * infrun.h (wait_for_inferior): Remove declaration.
13457 (user_visible_resume_target): New declaration.
13458 (get_last_target_status, set_last_target_status): New
13459 process_stratum_target parameter.
13460 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13461 process_stratum_target parameter, and use it.
13462 (clear_inline_frame_state (thread_info*)): New.
13463 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13464 process_stratum_target parameter.
13465 (clear_inline_frame_state (thread_info*)): Declare.
13466 * linux-fork.c (delete_checkpoint_command): Pass target down to
13467 find_thread_ptid.
13468 (checkpoint_command): Adjust.
13469 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13470 instead of just tweaking inferior_ptid.
13471 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13472 (exit_lwp): Pass target down to find_thread_ptid.
13473 (attach_proc_task_lwp_callback): Pass target down to
13474 add_thread/set_running/set_executing.
13475 (linux_nat_target::attach): Pass target down to
13476 thread_change_ptid.
13477 (get_detach_signal): Pass target down to find_thread_ptid.
13478 Consider last target status's target.
13479 (linux_resume_one_lwp_throw, resume_lwp)
13480 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13481 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13482 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13483 (linux_nat_target::async_wait_fd): New.
13484 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13485 target down.
13486 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13487 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13488 * linux-thread-db.c (struct thread_db_info::process_target): New
13489 field.
13490 (add_thread_db_info): Save target.
13491 (get_thread_db_info): New process_stratum_target parameter. Also
13492 match target.
13493 (delete_thread_db_info): New process_stratum_target parameter.
13494 Also match target.
13495 (thread_from_lwp): Adjust to pass down target.
13496 (thread_db_notice_clone): Pass down target.
13497 (check_thread_db_callback): Pass down target.
13498 (try_thread_db_load_1): Always push the thread_db target.
13499 (try_thread_db_load, record_thread): Pass target down.
13500 (thread_db_target::detach): Pass target down. Always unpush the
13501 thread_db target.
13502 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13503 target down. Always unpush the thread_db target.
13504 (find_new_threads_callback, thread_db_find_new_threads_2)
13505 (thread_db_target::update_thread_list): Pass target down.
13506 (thread_db_target::pid_to_str): Pass current inferior down.
13507 (thread_db_target::get_thread_local_address): Pass target down.
13508 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13509 target down.
13510 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13511 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13512 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13513 (procfs_init_inferior): Rename to ...
13514 (procfs_target::procfs_init_inferior): ... this and adjust.
13515 (procfs_target::create_inferior, procfs_notice_thread)
13516 (procfs_do_thread_registers): Adjust.
13517 * ppc-fbsd-tdep.c: Include "inferior.h".
13518 (ppcfbsd_get_thread_local_address): Pass down target.
13519 * proc-service.c (ps_xfer_memory): Switch current inferior and
13520 program space as well.
13521 (get_ps_regcache): Pass target down.
13522 * process-stratum-target.c
13523 (process_stratum_target::thread_address_space)
13524 (process_stratum_target::thread_architecture): Pass target down.
13525 * process-stratum-target.h
13526 (process_stratum_target::threads_executing): New field.
13527 (as_process_stratum_target): New.
13528 * ravenscar-thread.c
13529 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13530 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13531 down.
13532 * record-btrace.c (record_btrace_target::info_record): Adjust.
13533 (record_btrace_target::record_method)
13534 (record_btrace_target::record_is_replaying)
13535 (record_btrace_target::fetch_registers)
13536 (get_thread_current_frame_id, record_btrace_target::resume)
13537 (record_btrace_target::wait, record_btrace_target::stop): Pass
13538 target down.
13539 * record-full.c (record_full_wait_1): Switch to event thread.
13540 Pass target down.
13541 * regcache.c (regcache::regcache)
13542 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13543 process_stratum_target parameter and handle it.
13544 (current_thread_target): New global.
13545 (get_thread_regcache): Add process_stratum_target parameter and
13546 handle it. Switch inferior before calling target method.
13547 (get_thread_regcache): Pass target down.
13548 (get_thread_regcache_for_ptid): Pass target down.
13549 (registers_changed_ptid): Add process_stratum_target parameter and
13550 handle it.
13551 (registers_changed_thread, registers_changed): Pass target down.
13552 (test_get_thread_arch_aspace_regcache): New.
13553 (current_regcache_test): Define a couple local test_target_ops
13554 instances and use them for testing.
13555 (readwrite_regcache): Pass process_stratum_target parameter.
13556 (cooked_read_test, cooked_write_test): Pass mock_target down.
13557 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13558 (get_thread_arch_aspace_regcache): Add process_stratum_target
13559 parameter.
13560 (regcache::target): New method.
13561 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13562 (regcache::registers_changed_ptid): Add process_stratum_target
13563 parameter.
13564 (regcache::m_target): New field.
13565 (registers_changed_ptid): Add process_stratum_target parameter.
13566 * remote.c (remote_state::supports_vCont_probed): New field.
13567 (remote_target::async_wait_fd): New method.
13568 (remote_unpush_and_throw): Add remote_target parameter.
13569 (get_current_remote_target): Adjust.
13570 (remote_target::remote_add_inferior): Push target.
13571 (remote_target::remote_add_thread)
13572 (remote_target::remote_notice_new_inferior)
13573 (get_remote_thread_info): Pass target down.
13574 (remote_target::update_thread_list): Skip threads of inferiors
13575 bound to other targets. (remote_target::close): Don't discard
13576 inferiors. (remote_target::add_current_inferior_and_thread)
13577 (remote_target::process_initial_stop_replies)
13578 (remote_target::start_remote)
13579 (remote_target::remote_serial_quit_handler): Pass down target.
13580 (remote_target::remote_unpush_target): New remote_target
13581 parameter. Unpush the target from all inferiors.
13582 (remote_target::remote_unpush_and_throw): New remote_target
13583 parameter. Pass it down.
13584 (remote_target::open_1): Check whether the current inferior has
13585 execution instead of checking whether any inferior is live. Pass
13586 target down.
13587 (remote_target::remote_detach_1): Pass down target. Use
13588 remote_unpush_target.
13589 (extended_remote_target::attach): Pass down target.
13590 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13591 (remote_target::append_resumption): Pass down target.
13592 (remote_target::append_pending_thread_resumptions)
13593 (remote_target::remote_resume_with_hc, remote_target::resume)
13594 (remote_target::commit_resume): Pass down target.
13595 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13596 (remote_target::interrupt_query)
13597 (remote_target::remove_new_fork_children)
13598 (remote_target::check_pending_events_prevent_wildcard_vcont)
13599 (remote_target::remote_parse_stop_reply)
13600 (remote_target::process_stop_reply): Pass down target.
13601 (first_remote_resumed_thread): New remote_target parameter. Pass
13602 it down.
13603 (remote_target::wait_as): Pass down target.
13604 (unpush_and_perror): New remote_target parameter. Pass it down.
13605 (remote_target::readchar, remote_target::remote_serial_write)
13606 (remote_target::getpkt_or_notif_sane_1)
13607 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13608 down target.
13609 (remote_target::mourn_inferior): Pass down target. Use
13610 remote_unpush_target.
13611 (remote_target::core_of_thread)
13612 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13613 (remote_target::pid_to_exec_file)
13614 (remote_target::thread_handle_to_thread_info): Pass down target.
13615 (remote_target::async_wait_fd): New.
13616 * riscv-fbsd-tdep.c: Include "inferior.h".
13617 (riscv_fbsd_get_thread_local_address): Pass down target.
13618 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13619 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13620 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13621 Adjust.
13622 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13623 * solib-svr4.c (enable_break): Pass down target.
13624 * spu-multiarch.c (parse_spufs_run): Pass down target.
13625 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13626 * target-delegates.c: Regenerate.
13627 * target.c (g_target_stack): Delete.
13628 (current_top_target): Return the current inferior's top target.
13629 (target_has_execution_1): Refer to the passed-in inferior's top
13630 target.
13631 (target_supports_terminal_ours): Check whether the initial
13632 inferior was already created.
13633 (decref_target): New.
13634 (target_stack::push): Incref/decref the target.
13635 (push_target, push_target, unpush_target): Adjust.
13636 (target_stack::unpush): Defref target.
13637 (target_is_pushed): Return bool. Adjust to refer to the current
13638 inferior's target stack.
13639 (dispose_inferior): Delete, and inline parts ...
13640 (target_preopen): ... here. Only dispose of the current inferior.
13641 (target_detach): Hold strong target reference while detaching.
13642 Pass target down.
13643 (target_thread_name): Add assertion.
13644 (target_resume): Pass down target.
13645 (target_ops::beneath, find_target_at): Adjust to refer to the
13646 current inferior's target stack.
13647 (get_dummy_target): New.
13648 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13649 has a thread running.
13650 (initialize_targets): Rename to ...
13651 (_initialize_target): ... this.
13652 * target.h: Include "gdbsupport/refcounted-object.h".
13653 (struct target_ops): Inherit refcounted_object.
13654 (target_ops::shortname, target_ops::longname): Make const.
13655 (target_ops::async_wait_fd): New method.
13656 (decref_target): Declare.
13657 (struct target_ops_ref_policy): New.
13658 (target_ops_ref): New typedef.
13659 (get_dummy_target): Declare function.
13660 (target_is_pushed): Return bool.
13661 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13662 (all_matching_threads_iterator::all_matching_threads_iterator):
13663 Handle filter target.
13664 * thread-iter.h (struct all_matching_threads_iterator, struct
13665 all_matching_threads_range, class all_non_exited_threads_range):
13666 Filter by target too. Remove explicit.
13667 * thread.c (threads_executing): Delete.
13668 (inferior_thread): Pass down current inferior.
13669 (clear_thread_inferior_resources): Pass down thread pointer
13670 instead of ptid_t.
13671 (add_thread_silent, add_thread_with_info, add_thread): Add
13672 process_stratum_target parameter. Use it for thread and inferior
13673 searches.
13674 (is_current_thread): New.
13675 (thread_info::deletable): Use it.
13676 (find_thread_ptid, thread_count, in_thread_list)
13677 (thread_change_ptid, set_resumed, set_running): New
13678 process_stratum_target parameter. Pass it down.
13679 (set_executing): New process_stratum_target parameter. Pass it
13680 down. Adjust reference to 'threads_executing'.
13681 (threads_are_executing): New process_stratum_target parameter.
13682 Adjust reference to 'threads_executing'.
13683 (set_stop_requested, finish_thread_state): New
13684 process_stratum_target parameter. Pass it down.
13685 (switch_to_thread): Also match inferior.
13686 (switch_to_thread): New process_stratum_target parameter. Pass it
13687 down.
13688 (update_threads_executing): Reimplement.
13689 * top.c (quit_force): Pop targets from all inferior.
13690 (gdb_init): Don't call initialize_targets.
13691 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13692 Declare.
13693 (windows_add_thread, windows_delete_thread): Adjust.
13694 (get_windows_debug_event): Rename to ...
13695 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13696 * tracefile-tfile.c (tfile_target_open): Pass down target.
13697 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13698 Forward declare.
13699 (switch_to_thread): Add process_stratum_target parameter.
13700 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13701 parameter. Use it.
13702 (mi_on_resume): Pass target down.
13703 * nat/fork-inferior.c (startup_inferior): Add
13704 process_stratum_target parameter. Pass it down.
13705 * nat/fork-inferior.h (startup_inferior): Add
13706 process_stratum_target parameter.
13707 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13708
75c6c844
PA
137092020-01-10 Pedro Alves <palves@redhat.com>
13710
13711 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13712 directly. Instead find the first thread in the thread list and
13713 use switch_to_thread.
13714
78f2c40a
PA
137152020-01-10 Pedro Alves <palves@redhat.com>
13716
13717 * remote.c (remote_target::remote_add_inferior): Don't bind a
13718 process to the current inferior if the current inferior is already
13719 bound to a process.
13720
e7af6c70
TBA
137212020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13722 Pedro Alves <palves@redhat.com>
13723
13724 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13725 If no process is specified, return null_ptid instead of
13726 inferior_ptid.
13727 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13728 TARGET_WAITKIND_SIGNALLED with no pid.
13729
31ba933e
PA
137302020-01-10 Pedro Alves <palves@redhat.com>
13731
13732 * remote.c (first_remote_resumed_thread): New.
13733 (remote_target::wait_as): Use it as default event_ptid instead of
13734 inferior_ptid.
13735
735fc2ca
PA
137362020-01-10 Pedro Alves <palves@redhat.com>
13737
13738 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13739
c17e02e1
PA
137402020-01-10 Pedro Alves <palves@redhat.com>
13741
13742 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13743 not -1.
13744
ab1ddbcf
PA
137452020-01-10 Pedro Alves <palves@redhat.com>
13746
13747 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13748 ptid to get_last_target_status.
13749 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13750 ptid to get_last_target_status.
13751 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13752 get_last_target_status.
13753 (info_program_command): Don't pass a target_waitstatus to
13754 get_last_target_status.
13755 * infrun.c (init_wait_for_inferior): Use
13756 nullify_last_target_wait_ptid.
13757 (get_last_target_status): Handle nullptr arguments.
13758 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13759 (print_stop_event): Don't pass a ptid to get_last_target_status.
13760 (normal_stop): Don't pass a ptid to get_last_target_status.
13761 * infrun.h (get_last_target_status, set_last_target_status): Move
13762 comments here and update.
13763 (nullify_last_target_wait_ptid): Declare.
13764 * linux-fork.c (fork_load_infrun_state): Remove local extern
13765 declaration of nullify_last_target_wait_ptid.
13766 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13767 to get_last_target_status.
13768
f3f8ece4
PA
137692020-01-10 Pedro Alves <palves@redhat.com>
13770
13771 * gdbthread.h (scoped_restore_current_thread)
13772 <dont_restore, restore, m_dont_restore>: Declare.
13773 * thread.c (thread_alive): Add assertion. Return bool.
13774 (switch_to_thread_if_alive): New.
13775 (prune_threads): Switch inferior/thread.
13776 (print_thread_info_1): Switch thread before calling target methods.
13777 (scoped_restore_current_thread::restore): New, factored out from
13778 ...
13779 (scoped_restore_current_thread::~scoped_restore_current_thread):
13780 ... this.
13781 (scoped_restore_current_thread::scoped_restore_current_thread):
13782 Add assertion.
13783 (thread_apply_all_command, thread_select): Use
13784 switch_to_thread_if_alive.
13785 * infrun.c (proceed, restart_threads, handle_signal_stop)
13786 (switch_back_to_stepped_thread): Switch current thread before
13787 calling target methods.
13788
db2d40f7
PA
137892020-01-10 Pedro Alves <palves@redhat.com>
13790
13791 * inferior.c (switch_to_inferior_no_thread): New function,
13792 factored out from ...
13793 (inferior_command): ... here.
13794 * inferior.h (switch_to_inferior_no_thread): Declare.
13795 * mi/mi-main.c (run_one_inferior): Use
13796 switch_to_inferior_no_thread.
13797
bd420a2d
PA
137982020-01-10 Pedro Alves <palves@redhat.com>
13799
13800 * infcmd.c (kill_command): Remove dead code.
13801
ddf5db90
PA
138022020-01-10 Pedro Alves <palves@redhat.com>
13803
13804 * remote.c (remote_target::mourn_inferior): No longer check
13805 whether the target is running.
13806
5018ce90
PA
138072020-01-10 Pedro Alves <palves@redhat.com>
13808
13809 * corelow.c (core_target::has_execution): Change parameter type to
13810 inferior pointer.
13811 * inferior.c (number_of_live_inferiors): Use
13812 inferior::has_execution instead of target_has_execution_1.
13813 * inferior.h (inferior::has_execution): New.
13814 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13815 inferior::has_execution instead of target_has_execution_1.
13816 * process-stratum-target.c
13817 (process_stratum_target::has_execution): Change parameter type to
13818 inferior pointer. Check the inferior's PID instead of
13819 inferior_ptid.
13820 * process-stratum-target.h
13821 (process_stratum_target::has_execution): Change parameter type to
13822 inferior pointer.
13823 * record-full.c (record_full_core_target::has_execution): Change
13824 parameter type to inferior pointer.
13825 * target.c (target_has_execution_1): Change parameter type to
13826 inferior pointer.
13827 (target_has_execution_current): Adjust.
13828 * target.h (target_ops::has_execution): Change parameter type to
13829 inferior pointer.
13830 (target_has_execution_1): Change parameter type to inferior
13831 pointer. Change return type to bool.
13832 * tracefile.h (tracefile_target::has_execution): Change parameter
13833 type to inferior pointer.
13834
74375d18
PA
138352020-01-10 Pedro Alves <palves@redhat.com>
13836
13837 * exceptions.c (print_flush): Remove current_top_target() check.
13838
acdf84a6
PA
138392020-01-10 Pedro Alves <palves@redhat.com>
13840
13841 * remote.c (show_remote_exec_file): Show the current inferior's
13842 exec-file instead of the command variable's value.
13843
ec506636
PA
138442020-01-10 Pedro Alves <palves@redhat.com>
13845
13846 * record-full.c (record_full_resume_ptid): New global.
13847 (record_full_target::resume): Set it.
13848 (record_full_wait_1): Use record_full_resume_ptid instead of
13849 inferior_ptid.
13850
873657b9
PA
138512020-01-10 Pedro Alves <palves@redhat.com>
13852
13853 * gdbthread.h (scoped_restore_current_thread)
13854 <dont_restore, restore, m_dont_restore>: Declare.
13855 * thread.c (thread_alive): Add assertion. Return bool.
13856 (switch_to_thread_if_alive): New.
13857 (prune_threads): Switch inferior/thread.
13858 (print_thread_info_1): Switch thread before calling target methods.
13859 (scoped_restore_current_thread::restore): New, factored out from
13860 ...
13861 (scoped_restore_current_thread::~scoped_restore_current_thread):
13862 ... this.
13863 (scoped_restore_current_thread::scoped_restore_current_thread):
13864 Add assertion.
13865 (thread_apply_all_command, thread_select): Use
13866 switch_to_thread_if_alive.
13867
7f0ae84c
GB
138682020-01-10 George Barrett <bob@bob131.so>
13869
13870 * stap-probe.c (stap_modify_semaphore): Don't check for null
13871 semaphores.
13872 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13873 for null semaphores.
13874
f5a7c406
AB
138752020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13876
13877 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13878 all source windows, and maintain horizontal scroll status while
13879 doing so.
13880
9ae6bf64
TT
138812020-01-09 Tom Tromey <tom@tromey.com>
13882
13883 PR tui/18932:
13884 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13885 update_source_window, not print_source_lines.
13886
b2efe70c
AB
138872020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13888
13889 * tui/tui.c (tui_enable): Register tui hooks after calling
13890 tui_display_main.
13891
5f23a082
CB
138922020-01-09 Christian Biesinger <cbiesinger@google.com>
13893
13894 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13895
3061113b
SM
138962020-01-08 Simon Marchi <simon.marchi@efficios.com>
13897
13898 * thread.c (print_thread_info_1): Fix indentation.
13899
57d75002
CB
139002020-01-09 Christian Biesinger <cbiesinger@google.com>
13901
13902 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13903 unique_xmalloc_ptr outside the if to always free the demangled name.
13904
6a053cb1
TT
139052020-01-08 Tom Tromey <tromey@adacore.com>
13906
13907 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13908 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13909 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13910 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13911 Remove.
13912 (section_offsets): New typedef.
13913 * symtab.c (fixup_section, get_msymbol_address): Update.
13914 * symmisc.c (dump_msymbols): Update.
13915 * symfile.h (relative_addr_info_to_section_offsets)
13916 (symfile_map_offsets_to_segments): Update.
13917 * symfile.c (build_section_addr_info_from_objfile)
13918 (init_objfile_sect_indices): Update.
13919 (struct place_section_arg): Change type of "offsets".
13920 (place_section): Update.
13921 (relative_addr_info_to_section_offsets): Change type of
13922 "section_offsets". Remove "num_sections" parameter.
13923 (default_symfile_offsets, syms_from_objfile_1)
13924 (set_objfile_default_section_offset): Update.
13925 (reread_symbols): No need to preserve section offsets by hand.
13926 (symfile_map_offsets_to_segments): Change type of "offsets".
13927 * stap-probe.c (relocate_address): Update.
13928 * stabsread.h (process_one_symbol): Update.
13929 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13930 (solib_target_relocate_section_addresses): Update.
13931 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13932 Update.
13933 * solib-frv.c (frv_relocate_main_executable): Update.
13934 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13935 * solib-aix.c (solib_aix_get_section_offsets): Change return
13936 type.
13937 (solib_aix_solib_create_inferior_hook): Update.
13938 * remote.c (remote_target::get_offsets): Update.
13939 * psymtab.c (find_pc_sect_psymtab): Update.
13940 * psympriv.h (struct partial_symbol) <address, text_low,
13941 text_high>: Update.
13942 * objfiles.h (obj_section_offset): Update.
13943 (struct objfile) <section_offsets>: Change type.
13944 <num_sections>: Remove.
13945 (objfile_relocate): Update.
13946 * objfiles.c (entry_point_address_query): Update
13947 (relocate_one_symbol): Change type of "section_offsets".
13948 (objfile_relocate1, objfile_relocate1): Change type of
13949 "new_offsets".
13950 (objfile_rebase1): Update.
13951 * mipsread.c (mipscoff_symfile_read): Update.
13952 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13953 parameter.
13954 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13955 (parse_external, psymtab_to_symtab_1): Update.
13956 * machoread.c (macho_symfile_offsets): Update.
13957 * ia64-tdep.c (ia64_find_unwind_table): Update.
13958 * hppa-tdep.c (read_unwind_info): Update.
13959 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13960 * dwarf2read.c (create_addrmap_from_index)
13961 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13962 (process_psymtab_comp_unit_reader, add_partial_symbol)
13963 (add_partial_subprogram, process_full_comp_unit)
13964 (read_file_scope, read_func_scope, read_lexical_block_scope)
13965 (read_call_site_scope, dwarf2_rnglists_process)
13966 (dwarf2_ranges_process, dwarf2_ranges_read)
13967 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13968 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13969 Update.
13970 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13971 Update.
13972 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13973 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13974 (process_one_symbol): Change type of "section_offsets".
13975 * ctfread.c (get_objfile_text_range): Update.
13976 * coffread.c (coff_symtab_read, enter_linenos)
13977 (process_coff_symbol): Update.
13978 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13979 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13980
456e800a
TT
139812020-01-08 Tom Tromey <tromey@adacore.com>
13982
13983 * dwarf2read.c (parse_macro_definition): Use std::string.
13984 (parse_macro_definition): Likewise.
13985
6dfa2fc2
TT
139862020-01-08 Tom Tromey <tromey@adacore.com>
13987
13988 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13989 (ATTR_ALLOC_CHUNK): Remove.
13990
421d1616
TT
139912020-01-08 Tom Tromey <tromey@adacore.com>
13992
13993 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13994
43816ebc
TT
139952020-01-08 Tom Tromey <tromey@adacore.com>
13996
13997 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13998 (dwarf2_compute_name, open_dwo_file): Likewise.
13999 (process_enumeration_scope): Use std::vector.
14000 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14001 (partial_die_info::fixup, dwarf2_start_subfile)
14002 (guess_full_die_structure_name, dwarf2_name): Likewise.
14003 (determine_prefix): Update.
14004 (guess_full_die_structure_name): Make return type const.
14005 (partial_die_full_name): Return unique_xmalloc_ptr.
14006 (DW_FIELD_ALLOC_CHUNK): Remove.
14007
4212d509
TT
140082020-01-07 Tom Tromey <tromey@adacore.com>
14009
14010 PR build/24937:
14011 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14012
06a6207a
JT
140132020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14014
14015 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14016
153d79c4
AB
140172020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14018
14019 * stack.c (print_frame_info): Move disassemble_next_line code
14020 inside source_print block.
14021
66182876
EZ
140222020-01-06 Eli Zaretskii <eliz@gnu.org>
14023
14024 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14025 gdb/signals.h, as we are now using native signal symbols.
14026
cbfa8581
SV
140272020-01-06 Shahab Vahedi <shahab@synopsys.com>
14028
14029 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14030 overflow by an early check of content vs threshold.
aac66a4c 14031 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14032 Likewise.
14033
3f602821
EZ
140342020-01-06 Eli Zaretskii <eliz@gnu.org>
14035
14036 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14037
a08c904d
JT
140382020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14039
14040 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14041 export table if no section contains it's RVA.
14042
89a65580
EZ
140432020-01-06 Eli Zaretskii <eliz@gnu.org>
14044
14045 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14046
8b7fcda2
HD
140472020-01-06 Hannes Domani <ssbssa@yahoo.de>
14048
14049 * source.c (print_source_lines_base): Set last_line_listed.
14050
a61b4f69
SV
140512020-01-06 Shahab Vahedi <shahab@synopsys.com>
14052
14053 * tui/tui-disasm.c: Remove trailing spaces.
14054
559e7e50
EZ
140552020-01-06 Eli Zaretskii <eliz@gnu.org>
14056 Pedro Alves <palves@redhat.com>
14057
14058 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14059 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14060 (windows_gdb_signal_to_target): New function, uses the above
14061 enumeration to convert GDB internal signal codes to equivalent
14062 Windows codes.
14063 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14064 * windows-nat.c: Include "gdb_wait.h".
14065 (get_windows_debug_event): Extract the fatal exception from the
14066 exit status and convert to the equivalent Posix signal number.
14067 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14068 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14069 * gdbsupport/gdb_wait.c: New file, implements
14070 windows_status_to_termsig.
14071 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14072 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14073
f2302a34
AB
140742020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14075
14076 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14077 show_layout.
14078
6a5206eb
LM
140792020-01-05 Luis Machado <luis.machado@linaro.org>
14080
14081 * aarch64-linux-nat.c
14082 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14083 and bfd_mach_aarch64.
14084
6ec1d75e
PW
140852020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14086
14087 * ui-file.c (stdio_file::can_emit_style_escape)
14088 (tee_file::can_emit_style_escape): Ensure style is used also on
14089 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14090 to gdb_stdout.
14091 * main.c (set_gdb_data_directory): Use file style to output the
14092 warning that the given pathname is not a directory.
14093 * top.c (show_history_filename, gdb_safe_append_history)
14094 (show_gdb_datadir): Use file style.
14095
44f81a76
HD
140962020-01-03 Hannes Domani <ssbssa@yahoo.de>
14097
14098 * solib-target.c (struct lm_info_target):
14099 Change offsets to be a unique_xmalloc_ptr.
14100 (solib_target_relocate_section_addresses): Update.
14101
25057eb0
HD
141022020-01-03 Hannes Domani <ssbssa@yahoo.de>
14103
14104 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14105
6e2118f5
BE
141062020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14107
14108 * MAINTAINERS (Write After Approval): Add myself.
14109
8133c7dc
LM
141102020-01-02 Luis Machado <luis.machado@linaro.org>
14111
14112 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14113 Cell BE architecture.
14114 * target.h (struct target_ops) <thread_architecture>: Likewise.
14115
48189bec
HD
141162020-01-01 Hannes Domani <ssbssa@yahoo.de>
14117
14118 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14119
ead1063b
HD
141202020-01-01 Hannes Domani <ssbssa@yahoo.de>
14121
14122 * MAINTAINERS (Write After Approval): Add myself.
14123
e5d78223
JB
141242020-01-01 Joel Brobecker <brobecker@adacore.com>
14125
14126 * gdbarch.sh: Update copyright year range of generated files.
14127
b811d2c2
JB
141282020-01-01 Joel Brobecker <brobecker@adacore.com>
14129
14130 Update copyright year range in all GDB files.
14131
5f4def5c
JB
141322020-01-01 Joel Brobecker <brobecker@adacore.com>
14133
14134 * copyright.py: Convert to Python 3.
14135
51fd4002
JB
141362020-01-01 Joel Brobecker <brobecker@adacore.com>
14137
14138 * copyright.py: Adapt after move of gnulib directory from gdb
14139 directory to toplevel directory.
14140
5fb651f2
JB
141412020-01-01 Joel Brobecker <brobecker@adacore.com>
14142
14143 * copyright.py (main): Exit if run from the wrong directory.
14144
5dd8bf88
JB
141452020-01-01 Joel Brobecker <brobecker@adacore.com>
14146
14147 * top.c (print_gdb_version): Change copyright year to 2020.
14148
9f71dacb 141492020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14150
9f71dacb 14151 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14152
9f71dacb 14153For older changes see ChangeLog-2019.
c906108c
SS
14154\f
14155Local Variables:
14156mode: change-log
14157left-margin: 8
14158fill-column: 74
14159version-control: never
57da7796 14160coding: utf-8
c906108c 14161End: