Use gdb_bfd_sections in dwarf2/read.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5bb6e9dd
TT
12020-09-19 Tom Tromey <tom@tromey.com>
2
3 * dwarf2/read.c (locate_dwz_sections): Change parameters.
4 (dwarf2_get_dwz_file): Use foreach.
5 (dwarf2_locate_dwo_sections): Change parameters.
6 (open_and_init_dwo_file): Use foreach.
7 (dwarf2_locate_common_dwp_sections): Change parameters.
8 (open_and_init_dwp_file): Use foreach.
9
ad7277da
TT
102020-09-19 Tom Tromey <tom@tromey.com>
11
12 * symfile.h: (find_lowest_section): Don't declare.
13 * symfile.c (find_lowest_section): Now static. Change
14 parameters.
15 (struct place_section_arg): Remove.
16 (place_section): Change parameters.
17 (addr_info_make_relative): Use foreach.
18 (symfile_dummy_outputs): Remove.
19 (default_symfile_relocate): Use foreach.
20
cb814f2e
TT
212020-09-19 Tom Tromey <tom@tromey.com>
22
23 * objfiles.c (add_to_objfile_sections): Rename from
24 add_to_objfile_sections_full.
25 (add_to_objfile_sections): Remove.
26 (build_objfile_section_table): Use foreach.
27
3cabfd26
TT
282020-09-19 Tom Tromey <tom@tromey.com>
29
30 * stap-probe.c (get_stap_base_address_1): Remove.
31 (get_stap_base_address): Use foreach.
32
1ce51eb5
TT
332020-09-19 Tom Tromey <tom@tromey.com>
34
35 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
36 parameters.
37 (gdb_bfd_close_or_warn): Use foreach.
38
a190fabb
TT
392020-09-19 Tom Tromey <tom@tromey.com>
40
41 * corelow.c (add_to_thread_list): Change parameters.
42 (core_target_open): Use foreach.
43
cafb0d81
TT
442020-09-19 Tom Tromey <tom@tromey.com>
45
46 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
47 existing function.
48
c8d5abea
AB
492020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
50
51 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
52 for arrays.
53
6d816919
AB
542020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
55
56 * eval.c: Remove 'f-lang.h' include.
57 (value_f90_subarray): Moved to f-lang.c.
58 (eval_call): Renamed to...
59 (evaluate_subexp_do_call): ...this, is no longer static, header
60 comment moved into header file.
61 (evaluate_funcall): Update call to eval_call.
62 (skip_undetermined_arglist): Moved to f-lang.c.
63 (fortran_value_subarray): Likewise.
64 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
65 moved to evaluate_subexp_f.
66 (calc_f77_array_dims): Moved to f-lang.c
67 * expprint.c (print_subexp_funcall): New function.
68 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
69 moved to print_subexp_f, OP_FUNCALL uses new function.
70 (dump_subexp_body_funcall): New function.
71 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
72 moved to dump_subexp_f, OP_FUNCALL uses new function.
73 * expression.h (evaluate_subexp_do_call): Declare.
74 * f-lang.c (value_f90_subarray): Moved from eval.c.
75 (skip_undetermined_arglist): Likewise.
76 (calc_f77_array_dims): Likewise.
77 (fortran_value_subarray): Likewise.
78 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
79 (operator_length_f): Likewise.
80 (print_subexp_f): Likewise.
81 (dump_subexp_body_f): Likewise.
82 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
83 declaration of this operation to here.
84 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
85 support moved to operator_length_f.
86 * parser-defs.h (dump_subexp_body_funcall): Declare.
87 (print_subexp_funcall): Declare.
88 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
89 fortran-operator.def.
90
8c37706a
AB
912020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
92
93 * eval.c (fortran_value_subarray): New function, content is taken
94 from...
95 (evaluate_subexp_standard): ...here, in two places. Now arrays
96 and strings both call the new function.
97 (calc_f77_array_dims): Add header comment, handle strings.
98
14f9473c
VC
992020-09-18 Victor Collod <vcollod@nvidia.com>
100
101 PR gdb/26635
102 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
103 (i386_analyze_prologue): Call i386_skip_endbr.
104
b60cea74
TT
1052020-09-18 Tom Tromey <tromey@adacore.com>
106
107 * windows-nat.c (struct windows_nat_target) <wait>: Update.
108 (windows_nat_target::wait): Update.
109 * target/wait.h (enum target_wait_flag): New. Use
110 DEF_ENUM_FLAGS_TYPE.
111 * target/target.h (target_wait): Change type of options.
112 * target.h (target_options_to_string, default_target_wait):
113 Update.
114 (struct target_ops) <wait>: Change type of options.
115 * target.c (target_wait, default_target_wait, do_option): Change
116 type of "options".
117 (target_options_to_string): Likewise.
118 * target-delegates.c: Rebuild.
119 * target-debug.h (target_debug_print_target_wait_flags): Rename
120 from target_debug_print_options.
121 * sol-thread.c (class sol_thread_target) <wait>: Update.
122 (sol_thread_target::wait): Update.
123 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
124 (rs6000_nat_target::wait): Update.
125 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
126 Update.
127 (remote_target::wait_ns, remote_target::wait_as): Change type of
128 "options".
129 (remote_target::wait): Update.
130 * remote-sim.c (struct gdbsim_target) <wait>: Update.
131 (gdbsim_target::wait): Update.
132 * record-full.c (class record_full_base_target) <wait>: Update.
133 (record_full_wait_1): Change type of "options".
134 (record_full_base_target::wait): Update.
135 * record-btrace.c (class record_btrace_target) <wait>: Update.
136 (record_btrace_target::wait): Update.
137 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
138 Update.
139 (ravenscar_thread_target::wait): Update.
140 * procfs.c (class procfs_target) <wait>: Update.
141 (procfs_target::wait): Update.
142 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
143 * obsd-nat.c (obsd_nat_target::wait): Update.
144 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
145 (nto_procfs_target::wait): Update.
146 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
147 * nbsd-nat.c (nbsd_wait): Change type of "options".
148 (nbsd_nat_target::wait): Update.
149 * linux-thread-db.c (class thread_db_target) <wait>: Update.
150 (thread_db_target::wait): Update.
151 * linux-nat.h (class linux_nat_target) <wait>: Update.
152 * linux-nat.c (linux_nat_target::wait): Update.
153 (linux_nat_wait_1): Update.
154 * infrun.c (do_target_wait_1, do_target_wait): Change type of
155 "options".
156 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
157 * inf-ptrace.c (inf_ptrace_target::wait): Update.
158 * go32-nat.c (struct go32_nat_target) <wait>: Update.
159 (go32_nat_target::wait): Update.
160 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
161 * gnu-nat.c (gnu_nat_target::wait): Update.
162 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
163 * fbsd-nat.c (fbsd_nat_target::wait): Update.
164 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
165 * darwin-nat.c (darwin_nat_target::wait): Update.
166 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
167 (bsd_uthread_target::wait): Update.
168 * aix-thread.c (class aix_thread_target) <wait>: Update.
169 (aix_thread_target::wait): Update.
170
0295dde6
AB
1712020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
172
173 * compile/compile-object-run.c (create_copied_type_recursive): New
174 function.
175 (compile_object_run): Use new function.
176
d3483b43
JT
1772020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
178
179 * NEWS: Mention x86_64 Cygwin core file support.
180
e7d612ad
JT
1812020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
182
183 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
184 (core_process_module_section): Handle NOTE_INFO_MODULE64.
185
aff9d387
JT
1862020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
187
62a5151b
JT
188 * windows-tdep.h: Add prototypes.
189 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
190 (i386_windows_core_pid_to_str): Move and rename ...
191 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
192 (windows_core_pid_to_str): ... and here.
193 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
194
1952020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
196 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
197 (amd64_windows_init_abi_common): ... and register.
198
7d155da3
JT
1992020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
200
201 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
202 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
203
e8ef12b9
PA
2042020-09-18 Pedro Alves <pedro@palves.net>
205
206 PR gdb/26631
207 * thread.c (thread_find_command): Switch inferior before calling
208 target methods.
209
c1e1314d
TT
2102020-09-17 Tom Tromey <tromey@adacore.com>
211
212 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
213 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
214 (tdesc_arch_data_up): New typedef.
215 (tdesc_use_registers, tdesc_data_alloc): Update.
216 (tdesc_data_cleanup): Don't declare.
217 * target-descriptions.c (tdesc_data_alloc): Return a
218 tdesc_arch_data_up.
219 (tdesc_arch_data_deleter::operator()): Rename from
220 tdesc_data_cleanup. Change argument type.
221 (tdesc_use_registers): Change early_data to an rvalue reference.
222 (tdesc_use_registers): Don't use delete.
223 * sparc-tdep.c (sparc32_gdbarch_init): Update.
224 * s390-tdep.c (s390_gdbarch_init): Update.
225 * rx-tdep.c (rx_gdbarch_init): Update.
226 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
227 * riscv-tdep.c (riscv_gdbarch_init): Update.
228 * or1k-tdep.c (or1k_gdbarch_init): Update.
229 * nios2-tdep.c (nios2_gdbarch_init): Update.
230 * nds32-tdep.c (nds32_gdbarch_init): Update.
231 * mips-tdep.c (mips_gdbarch_init): Update.
232 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
233 * m68k-tdep.c (m68k_gdbarch_init): Update.
234 * i386-tdep.c (i386_gdbarch_init): Update.
235 * arm-tdep.c (arm_gdbarch_init): Update.
236 * arc-tdep.c (arc_tdesc_init): Update.
237 (arc_gdbarch_init): Update.
238 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
239
0363df3d
HD
2402020-09-17 Hannes Domani <ssbssa@yahoo.de>
241
242 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
243 for WOW64 processes.
244
280a9412
TT
2452020-09-17 Tom Tromey <tom@tromey.com>
246
247 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
248
6108fd18
TT
2492020-09-17 Tom Tromey <tom@tromey.com>
250
251 * value.c (preserve_values): Update.
252 * python/py-type.c (save_objfile_types): Update.
253 * guile/scm-type.c (save_objfile_types): Update.
254 * gdbtypes.h (create_copied_types_hash): Return htab_up.
255 * gdbtypes.c (create_copied_types_hash): Return htab_up.
256 * compile/compile-object-run.c (compile_object_run): Update.
257
fa9b1164
TT
2582020-09-17 Tom Tromey <tom@tromey.com>
259
260 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
261 Remove.
262 <m_table>: Now htab_up.
263 * typeprint.c (typedef_hash_table::recursively_update)
264 (typedef_hash_table::add_template_parameters)
265 (typedef_hash_table::typedef_hash_table): Update.
266 (typedef_hash_table::~typedef_hash_table): Remove.
267 (typedef_hash_table::typedef_hash_table)
268 (typedef_hash_table::find_global_typedef)
269 (typedef_hash_table::find_typedef): Update.
270
eb53f105
TT
2712020-09-17 Tom Tromey <tom@tromey.com>
272
273 * target-descriptions.c (tdesc_use_registers): Use htab_up.
274
7a8a5d47
TT
2752020-09-17 Tom Tromey <tom@tromey.com>
276
277 * linespec.c (class decode_compound_collector)
278 <~decode_compound_collector>: Remove.
279 <m_unique_syms>: Now htab_up.
280 (decode_compound_collector::operator ()): Update.
281 (class symtab_collector) <~symtab_collector>: Remove.
282 <m_symtab_table>: Now htab_up.
283 (symtab_collector::operator ()): Update.
284
99032cfc
TT
2852020-09-17 Tom Tromey <tom@tromey.com>
286
287 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
288 (filename_seen_cache::clear): Update.
289 (~filename_seen_cache): Remove.
290 (filename_seen_cache::seen): Update.
291 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
292 htab_up.
293 <~filename_seen_cache>: Remove.
294 <traverse>: Update.
295
32580f6d
TT
2962020-09-17 Tom Tromey <tom@tromey.com>
297
298 * completer.c (completion_tracker::discard_completions)
299 (completion_tracker::~completion_tracker)
300 (completion_tracker::maybe_add_completion)
301 (completion_tracker::remove_completion)
302 (completion_tracker::recompute_lowest_common_denominator)
303 (completion_tracker::build_completion_result): Update.
304 * completer.h (class completion_tracker) <have_completions>:
305 Update.
306 <m_entries_hash>: Now htab_up.
307
c1fb9836
TT
3082020-09-17 Tom Tromey <tom@tromey.com>
309
310 * breakpoint.c (ambiguous_names_p): Use htab_up.
311
88f07206
TT
3122020-09-17 Tom Tromey <tom@tromey.com>
313
314 * auto-load.c (struct auto_load_pspace_info)
315 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
316 <loaded_script_files, loaded_script_texts>: Change type to
317 htab_up.
318 (~auto_load_pspace_info) Remove.
319 (init_loaded_scripts_info, maybe_add_script_file)
320 (maybe_add_script_text, auto_load_info_scripts): Update.
321
9519b2ee
TT
3222020-09-17 Tom Tromey <tromey@adacore.com>
323
324 * c-exp.y (name_obstack): Now static.
325
d2cd4113
CC
3262020-09-17 Chungyi Chi <demonic@csie.io>
327
328 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
329
b650a282
SM
3302020-09-16 Simon Marchi <simon.marchi@efficios.com>
331
332 * breakpoint.h (init_catchpoint): Change int parameter to bool.
333 (add_solib_catchpoint): Likewise.
334 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
335 to bool.
336 (add_solib_catchpoint): Change int parameter/variable to bool.
337 (catch_load_or_unload): Likewise.
338 (init_catchpoint): Likewise.
339 (create_fork_vfork_event_catchpoint): Likewise.
340 (catch_fork_command_1): Likewise.
341 (catch_exec_command_1): Likewise.
342
4d0bcfcf
SM
3432020-09-16 Simon Marchi <simon.marchi@efficios.com>
344
345 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
346 Change instance_flags to m_instance_flags.
347
fe830662
TT
3482020-09-16 Tom Tromey <tromey@adacore.com>
349
350 PR gdb/26598:
351 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
352
fe5ddfc3
JB
3532020-09-16 John Baldwin <jhb@FreeBSD.org>
354
355 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
356 PL_FLAG_EXEC.
357 (fbsd_nat_target::insert_exec_catchpoint)
358 (fbsd_nat_target::remove_exec_catchpoint): Always define.
359 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
360 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
361
e911c666
JB
3622020-09-16 John Baldwin <jhb@FreeBSD.org>
363
364 * configure.ac: Remove check for kinfo_getvmmap().
365 * configure, config.in: Regenerate.
366 * fbsd-nat.c (fbsd_read_mapping): Remove
367 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
368 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
369 kinfo_get_vmmap() are always present.
370
1f17d372
JB
3712020-09-16 John Baldwin <jhb@FreeBSD.org>
372
373 * fbsd-nat.c: Always include support for
374 TARGET_OBJECT_SIGNAL_INFO.
375
bcb1da7f
JB
3762020-09-16 John Baldwin <jhb@FreeBSD.org>
377
378 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
379 sysctl and remove procfs fallback.
380
5515f729
JB
3812020-09-16 John Baldwin <jhb@FreeBSD.org>
382
383 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
384 * fbsd-nat.h: Likewise.
385
da1df1db
TBA
3862020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
387
388 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
389 argument.
390
0e25e767
AB
3912020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
392
393 * ada-lang.c (ada_language_data): Delete.
394 (ada_language): Remove references to ada_language_data.
395 * c-lang.c (c_language_data): Delete.
396 (c_language): Remove references to c_language_data.
397 (cplus_language_data): Delete.
398 (cplus_language): Remove references to cplus_language_data.
399 (asm_language_data): Delete.
400 (asm_language): Remove references to asm_language_data.
401 (minimal_language_data): Delete.
402 (minimal_language): Remove references to minimal_language_data.
403 * d-lang.c (d_language_data): Delete.
404 (d_language): Remove references to d_language_data.
405 * f-lang.c (f_language_data): Delete.
406 (f_language): Remove references to f_language_data.
407 * go-lang.c (go_language_data): Delete.
408 (go_language): Remove references to go_language_data.
409 * language.c (unknown_language_data): Delete.
410 (unknown_language): Remove references to unknown_language_data.
411 (auto_language_data): Delete.
412 (auto_language): Remove references to auto_language_data.
413 * language.h (language_data): Delete struct.
414 (language_defn): No longer inherit from language_data.
415 * m2-lang.c (m2_language_data): Delete.
416 (m2_language): Remove references to m2_language_data.
417 * objc-lang.c (objc_language_data): Delete.
418 (objc_language): Remove references to objc_language_data.
419 * opencl-lang.c (opencl_language_data): Delete.
420 (opencl_language): Remove references to opencl_language_data.
421 * p-lang.c (pascal_language_data): Delete.
422 (pascal_language): Remove references to pascal_language_data.
423 * rust-lang.c (rust_language_data): Delete.
424 (rust_language): Remove references to rust_language_data.
425
b7c6e27d
AB
4262020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
427
428 * ada-lang.c (ada_language_data): Remove la_op_print_tab
429 initializer.
430 (ada_language::opcode_print_table): New member function.
431 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
432 (c_language::opcode_print_table): New member function.
433 (cplus_language_data): Remove la_op_print_tab initializer.
434 (cplus_language::opcode_print_table): New member function.
435 (asm_language_data): Remove la_op_print_tab initializer.
436 (asm_language::opcode_print_table): New member function.
437 (minimal_language_data): Remove la_op_print_tab initializer.
438 (minimal_language::opcode_print_table): New member function.
439 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
440 (d_language::opcode_print_table): New member function.
441 * expprint.c (print_subexp_standard): Update call to
442 opcode_print_table.
443 (op_string): Likewise.
444 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
445 (f_language::opcode_print_table): New member function.
446 * go-lang.c (go_language_data): Remove la_op_print_tab
447 initializer.
448 (go_language::opcode_print_table): New member function.
449 * language.c (unknown_language_data): Remove la_op_print_tab
450 initializer.
451 (unknown_language::opcode_print_table): New member function.
452 (auto_language_data): Remove la_op_print_tab initializer.
453 (auto_language::opcode_print_table): New member function.
454 * language.h (language_data): Remove la_op_print_tab field.
455 (language_defn::opcode_print_table): Declare new member function.
456 * m2-lang.c (m2_language_data): Remove la_op_print_tab
457 initializer.
458 (m2_language::opcode_print_table): New member function.
459 * objc-lang.c (objc_language_data): Remove la_op_print_tab
460 initializer.
461 (objc_language::opcode_print_table): New member function.
462 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
463 initializer.
464 (opencl_language::opcode_print_table): New member function.
465 * p-lang.c (pascal_language_data): Remove la_op_print_tab
466 initializer.
467 (pascal_language::opcode_print_table): New member function.
468 * rust-lang.c (rust_language_data): Remove la_op_print_tab
469 initializer.
470 (rust_language::opcode_print_table): New member function.
471
5aba6ebe
AB
4722020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
473
474 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
475 (ada_language::expression_ops): New member function.
476 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
477 (c_language::expression_ops): New member function.
478 (cplus_language_data): Remove la_exp_desc initializer.
479 (cplus_language::expression_ops): New member function.
480 (asm_language_data): Remove la_exp_desc initializer.
481 (asm_language::expression_ops): New member function.
482 (minimal_language_data): Remove la_exp_desc initializer.
483 (minimal_language::expression_ops): New member function.
484 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
485 (d_language::expression_ops): New member function.
486 * eval.c (evaluate_subexp): Update call to expression_ops.
487 * expprint.c (print_subexp): Likewise.
488 (op_name): Likewise.
489 (dump_subexp_body): Likewise.
490 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
491 (f_language::expression_ops): New member function.
492 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
493 (go_language::expression_ops): New member function.
494 * language.c (language_defn::expression_ops): New function.
495 (unknown_language_data): Remove la_exp_desc initializer.
496 (auto_language_data): Likewise.
497 * language.h (language_data): Remove la_exp_desc field.
498 (language_defn::expression_ops): Declare new member function.
499 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
500 (m2_language::expression_ops): New member function.
501 * objc-lang.c (objc_language_data): Remove la_exp_desc
502 initializer.
503 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
504 initializer.
505 (opencl_language::expression_ops): New member function.
506 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
507 * parse.c (operator_length): Update call to expression_ops.
508 (exp_iterate): Likewise.
509 * rust-lang.c (rust_language_data): Remove la_exp_desc
510 initializer.
511 (ruse_language::expression_ops): New member function.
512
b63a3f3f
AB
5132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
514
515 * ada-lang.c (ada_language_data): Remove la_varobj_ops
516 initializer.
517 (ada_language::varobj_ops): New member function.
518 * c-lang.c (c_language_data): Remove la_varobj_ops
519 initializer.
520 (cplus_language_data): Likewise.
521 (cplus_language::varobj_ops): New member function.
522 (asm_language_data): Remove la_varobj_ops initializer.
523 (minimal_language_data): Likewise.
524 * d-lang.c (d_language_data): Likewise.
525 * f-lang.c (f_language_data): Likewise.
526 * go-lang.c (go_language_data): Likewise.
527 * language.c (language_defn::varobj_ops): New function.
528 (unknown_language_data): Remove la_varobj_ops
529 initializer.
530 (auto_language_data): Likewise.
531 * language.h (language_data): Remove la_varobj_ops field.
532 (language_defn::varobj_ops): Declare new member function.
533 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
534 * objc-lang.c (objc_language_data): Likewise.
535 * opencl-lang.c (opencl_language_data): Likewise.
536 * p-lang.c (pascal_language_data): Likewise.
537 * rust-lang.c (rust_language_data): Likewise.
538 * varobj.c (varobj_create): Update call to varobj_ops.
539 * varobj.h (default_varobj_ops): Delete define.
540
1ac14a04
AB
5412020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
542
543 * ada-lang.c (ada_language_data): Remove la_macro_expansion
544 initializer.
545 * c-lang.c (c_language_data): Likewise.
546 (c_language::macro_expansion): New member function.
547 (cplus_language_data): Likewise.
548 (cplus_language::macro_expansion): New member function.
549 (asm_language_data): Likewise.
550 (asm_language::macro_expansion): New member function.
551 (minimal_language_data): Likewise.
552 (minimal_language::macro_expansion): New member function.
553 * d-lang.c (d_language_data): Remove la_macro_expansion
554 initializer.
555 * f-lang.c (f_language_data): Likewise.
556 * go-lang.c (go_language_data): Likewise.
557 * language.c (unknown_language_data): Likewise.
558 (auto_language_data): Likewise.
559 * language.h (language_data): Remove la_macro_expansion field.
560 (language_defn::macro_expansion): New member function.
561 * m2-lang.c (m2_language_data): Remove la_macro_expansion
562 initializer.
563 * objc-lang.c (objc_language_data): Likewise.
564 (objc_language::macro_expansion): New member function.
565 * opencl-lang.c (opencl_language_data): Likewise.
566 (opencl_language::macro_expansion): New member function.
567 * p-lang.c (pascal_language_data): Remove la_macro_expansion
568 initializer.
569 * rust-lang.c (rust_language_data): Likewise.
570 * symtab.c (default_collect_symbol_completion_matches_break_on):
571 Update call to macro_expansion.
572
3a3440fb
AB
5732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
574
575 * ada-lang.c (ada_language_data): Remove la_array_ordering
576 initializer.
577 * c-lang.c (c_language_data): Likewise.
578 (cplus_language_data): Likewise.
579 (asm_language_data): Likewise.
580 (minimal_language_data): Likewise.
581 * d-lang.c (d_language_data): Likewise.
582 * dwarf2/read.c (read_array_order): Update for call to
583 array_ordering.
584 * f-lang.c (f_language_data): Remove la_array_ordering
585 initializer.
586 (f_language::array_ordering): New member function.
587 * go-lang.c (go_language_data): Remove la_array_ordering
588 initializer.
589 * language.c (unknown_language_data): Likewise.
590 (auto_language_data): Likewise.
591 * language.h (language_data): Delete la_array_ordering field.
592 (language_defn::array_ordering): New member function.
593 * m2-lang.c (m2_language_data): Remove la_array_ordering
594 initializer.
595 * objc-lang.c (objc_language_data): Likewise.
596 * opencl-lang.c (opencl_language_data): Likewise.
597 * p-lang.c (pascal_language_data): Likewise.
598 * rust-lang.c (rust_language_data): Likewise.
599
0d201fa4
AB
6002020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
601
602 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
603 initializer.
604 * c-lang.c (c_language_data): Likewise.
605 (cplus_language_data): Likewise.
606 (asm_language_data): Likewise.
607 (minimal_language_data): Likewise.
608 * d-lang.c (d_language_data): Likewise.
609 * f-lang.c (f_language_data): Likewise.
610 (f_language::case_sensitivity): New member function.
611 * go-lang.c (go_language_data): Remove la_case_sensitivity
612 initializer.
613 * language.c (enum case_mode): Moved here from language.h.
614 (case_mode): Make static.
615 (show_case_command): Update for case_sensitivity being a method.
616 (set_case_command): Likewise.
617 (set_range_case): Likewise.
618 (unknown_language_data): Remove la_case_sensitivity initializer.
619 (auto_language_data): Likewise.
620 * language.h (case_mode): Delete, move enum declaration to
621 language.c.
622 (language_data): Delete la_case_sensitivity field.
623 (language_defn::case_sensitivity): New member function.
624 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
625 initializer.
626 * objc-lang.c (objc_language_data): Likewise.
627 * opencl-lang.c (opencl_language_data): Likewise.
628 * p-lang.c (pascal_language_data): Likewise.
629 * rust-lang.c (rust_language_data): Likewise.
630
efdf6a73
AB
6312020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
632
633 * ada-lang.c (ada_language_data): Remove la_range_check
634 initializer.
635 * c-lang.c (c_language_data): Likewise.
636 (cplus_language_data): Likewise.
637 (asm_language_data): Likewise.
638 (minimal_language_data): Likewise.
639 * d-lang.c (d_language_data): Likewise.
640 * f-lang.c (f_language_data): Likewise.
641 (f_language::range_checking_on_by_default): New member function.
642 * go-lang.c (go_language_data): Remove la_range_check initializer.
643 * language.c (enum range_mode): Moved here from language.h.
644 (range_mode): Made static.
645 (show_range_command): Update to use
646 range_checking_on_by_default.
647 (set_range_command): Likewise.
648 (set_range_case): Likewise.
649 (unknown_language_data): Remove la_range_check initializer.
650 (auto_language_data): Likewise.
651 * language.h (range_mode): Delete. Enum definition moved to
652 language.c.
653 (language_data): Remove la_range_check field.
654 (language_defn::range_checking_on_by_default): New member
655 function.
656 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
657 (m2_language::range_checking_on_by_default): New member function.
658 * objc-lang.c (objc_language_data): Remove la_range_check
659 initializer.
660 * opencl-lang.c (opencl_language_data): Likewise.
661 * p-lang.c (pascal_language_data): Likewise.
662 (pascal_language::range_checking_on_by_default): New member
663 function.
664 * rust-lang.c (rust_language_data): Remove la_range_check
665 initializer.
666 (rust_language::range_checking_on_by_default): New member
667 function.
668
bf92aec5
AB
6692020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
670
671 * dwarf2/read.c (dwarf2_physname): Remove special case for
672 language_go.
673 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
674 member function.
675
d3355e4d
AB
6762020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
677
678 * ada-lang.c (ada_language_data): Remove
679 la_store_sym_names_in_linkage_form_p initializer.
680 (ada_language::store_sym_names_in_linkage_form_p): New member
681 function.
682 * c-lang.c (c_language_data): Remove
683 la_store_sym_names_in_linkage_form_p initializer.
684 (c_language::store_sym_names_in_linkage_form_p): New member
685 function.
686 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
687 initializer.
688 (asm_language_data): Likewise.
689 (asm_language::store_sym_names_in_linkage_form_p): New member
690 function.
691 (minimal_language_data): Remove
692 la_store_sym_names_in_linkage_form_p initializer.
693 (minimal_language::store_sym_names_in_linkage_form_p): New member
694 function.
695 * d-lang.c (d_language_data): Remove
696 la_store_sym_names_in_linkage_form_p initializer.
697 * dwarf2/read.c (dwarf2_physname): Update call to
698 store_sym_names_in_linkage_form_p.
699 * f-lang.c (f_language_data): Remove
700 la_store_sym_names_in_linkage_form_p initializer.
701 * go-lang.c (go_language_data): Remove
702 la_store_sym_names_in_linkage_form_p initializer.
703 * language.c (unknown_language_data): Remove
704 la_store_sym_names_in_linkage_form_p initializer.
705 (unknown_language::store_sym_names_in_linkage_form_p): New member
706 function.
707 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
708 initializer.
709 (auto_language::store_sym_names_in_linkage_form_p): New member
710 function.
711 * language.h (language_data): Remove
712 la_store_sym_names_in_linkage_form_p member variable.
713 (language_defn::store_sym_names_in_linkage_form_p): New member
714 function.
715 * m2-lang.c (m2_language_data): Remove
716 la_store_sym_names_in_linkage_form_p initializer.
717 * objc-lang.c (objc_language_data): Likewise.
718 * opencl-lang.c (opencl_language_data): Likewise.
719 * p-lang.c (pascal_language_data): Likewise.
720 * rust-lang.c (rust_language_data): Likewise.
721
22c12a6c
AB
7222020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
723
724 * ada-lang.c (ada_language_data): Remove string_lower_bound
725 initializer.
726 * c-lang.c (c_language_data): Likewise.
727 (cplus_language_data): Likewise.
728 (asm_language_data): Likewise.
729 (minimal_language_data): Likewise.
730 * d-lang.c (d_language_data): Likewise.
731 * f-lang.c (f_language_data): Likewise.
732 * go-lang.c (go_language_data): Likewise.
733 * language.c (unknown_language_data): Likewise.
734 (auto_language_data): Likewise.
735 * language.h (language_data): Remove string_lower_bound field.
736 (language_defn::string_lower_bound): New member function.
737 * m2-lang.c (m2_language_data): Remove string_lower_bound
738 initializer.
739 (m2_language::string_lower_bound): New member function.
740 * objc-lang.c (objc_language_data): Remove string_lower_bound
741 initializer.
742 * opencl-lang.c (opencl_language_data): Likewise.
743 * p-lang.c (pascal_language_data): Likewise.
744 * rust-lang.c (rust_language_data): Likewise.
745 * valops.c (value_cstring): Update call to string_lower_bound.
746 (value_string): Likewise.
747 * value.c (allocate_repeated_value): Likewise.
748
1c236ddd
AB
7492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
750
751 * valops.c (value_repeat): Fix incorrect argument name in comment.
752
67bd3fd5
AB
7532020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
754
755 * ada-lang.c (ada_language_data): Remove c_style_arrays
756 initializer.
757 (ada_language::c_style_arrays_p): New member fuction.
758 * c-lang.c (c_language_data): Remove c_style_arrays
759 initializer.
760 (cplus_language_data): Likewise.
761 (asm_language_data): Likewise.
762 (minimal_language_data): Likewise.
763 * d-lang.c (d_language_data): Likewise.
764 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
765 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
766 (f_language::c_style_arrays_p): New member function.
767 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
768 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
769 * language.c (unknown_language_data): Remove c_style_arrays
770 initializer.
771 (auto_language_data): Likewise.
772 * language.h (language_data): Remove c_style_arrays field.
773 (language_defn::c_style_arrays_p): New member function.
774 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
775 (m2_language::c_style_arrays_p): New member function.
776 * objc-lang.c (objc_language_data): Remove c_style_arrays
777 initializer.
778 * opencl-lang.c (opencl_language_data): Likewise.
779 * p-lang.c (pascal_language_data): Likewise.
780 * rust-lang.c (rust_language_data): Likewise.
781 * valarith.c (value_subscript): Update call to c_style_arrays_p,
782 and update local variable to a bool.
783 * valops.c (value_cast): Update call to c_style_arrays_p.
784 (value_array): Likewise.
785 * value.c (coerce_array): Likewise.
786
85967615
AB
7872020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
788
789 * ada-lang.c (ada_language_data): Remove la_language initializer.
790 * c-lang.c (c_language_data): Likewise.
791 (cplus_language_data): Likewise.
792 (asm_language_data): Likewise.
793 (minimal_language_data): Likewise.
794 * d-lang.c (d_language_data): Likewise.
795 * f-lang.c (f_language_data): Likewise.
796 * go-lang.c (go_language_data): Likewise.
797 * language.c (unknown_language_data): Likewise.
798 (auto_language_data): Likewise.
799 * language.h (language_data): Remove la_language field.
800 (language_defn::language_defn): Initialise la_language field.
801 (language_defn::la_language): New member variable.
802 * m2-lang.c (m2_language_data): Remove la_language field.
803 * objc-lang.c (objc_language_data): Likewise.
804 * opencl-lang.c (opencl_language_data): Likewise.
805 * p-lang.c (pascal_language_data): Likewise.
806 * rust-lang.c (rust_language_data): Likewise.
807
e171d6f1
AB
8082020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
809
810 * ada-lang.c (ada_extensions): Delete, moved into
811 ada_language::filename_extensions.
812 (ada_language_data): Remove la_filename_extensions initializer.
813 (ada_language::filename_extensions): New member function.
814 * c-lang.c (c_extensions): Delete, moved into
815 c_language::filename_extensions.
816 (c_language_data): Remove la_filename_extensions initializer.
817 (c_language::filename_extensions): New member function.
818 (cplus_extensions): Delete, moved into
819 cplus_language::filename_extensions.
820 (cplus_language_data): Remove la_filename_extensions initializer.
821 (cplus_language::filename_extensions): New member function.
822 (asm_extensions): Delete, moved into
823 asm_language::filename_extensions.
824 (asm_language_data): Remove la_filename_extensions initializer.
825 (asm_language::filename_extensions): New member function.
826 (minimal_language_data): Remove la_filename_extensions
827 initializer.
828 * d-lang.c (d_extensions): Delete, moved into
829 d_language::filename_extensions.
830 (d_language_data): Remove la_filename_extensions initializer.
831 (d_language::filename_extensions): New member function.
832 * f-lang.c (f_extensions): Delete, moved into
833 f_language::filename_extensions.
834 (f_language_data): Remove la_filename_extensions initializer.
835 (f_language::filename_extensions): New member function.
836 * go-lang.c (go_language_data): Remove la_filename_extensions
837 initializer.
838 * language.c (add_set_language_command): Update now that
839 filename_extensions returns a vector.
840 (unknown_language_data): Remove la_filename_extensions
841 initializer.
842 (auto_language_data): Likewise.
843 * language.h (language_data): Remove la_filename_extensions field.
844 (language_defn::filename_extensions): New member function.
845 * m2-lang.c (m2_language_data): Remove la_filename_extensions
846 initializer.
847 * objc-lang.c (objc_extensions): Delete, moved into
848 objc_language::filename_extensions.
849 (objc_language_data): Remove la_filename_extensions initializer.
850 (objc_language::filename_extensions): New member function.
851 * opencl-lang.c (opencl_language_data): Remove
852 la_filename_extensions initializer.
853 * p-lang.c (pascal_extensions): Delete, moved into
854 pascal_language::filename_extensions.
855 (pascal_language_data): Remove la_filename_extensions initializer.
856 (pascal_language::filename_extensions): New member function.
857 * rust-lang.c (rust_extensions): Delete, moved into
858 rust_language::filename_extensions.
859 (rust_language_data): Remove la_filename_extensions initializer.
860 (rust_language::filename_extensions): New member function.
861 * symfile.c (add_filename_language): Add new assert.
862
6f7664a9
AB
8632020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
864
865 * ada-lang.c (ada_language_data): Remove la_name and
866 la_natural_name initializers.
867 (ada_language::name): New member function.
868 (ada_language::natural_name): New member function.
869 * c-lang.c (c_language_data): Remove la_name and
870 la_natural_name initializers.
871 (c_language::name): New member function.
872 (c_language::natural_name): New member function.
873 (cplus_language_data): Remove la_name and
874 la_natural_name initializers.
875 (cplus_language::name): New member function.
876 (cplus_language::natural_name): New member function.
877 (asm_language_data): Remove la_name and
878 la_natural_name initializers.
879 (asm_language::name): New member function.
880 (asm_language::natural_name): New member function.
881 (minimal_language_data): Remove la_name and
882 la_natural_name initializers.
883 (minimal_language::name): New member function.
884 (minimal_language::natural_name): New member function.
885 * compile/compile.c (compile_to_object): Update call to
886 lanugage_defn::name.
887 * d-lang.c (d_language_data): Remove la_name and
888 la_natural_name initializers.
889 (d_language::name): New member function.
890 (d_language::natural_name): New member function.
891 * expprint.c (print_subexp_standard): Update call to
892 language_defn::name.
893 (dump_raw_expression): Likewise
894 (dump_prefix_expression): Likewise.
895 * f-lang.c (f_language_data): Remove la_name and
896 la_natural_name initializers.
897 (f_language::name): New member function.
898 (f_language::natural_name): New member function.
899 * go-lang.c (go_language_data): Remove la_name and
900 la_natural_name initializers.
901 (go_language::name): New member function.
902 (go_language::natural_name): New member function.
903 * language.c (show_language_command): Update call to
904 language_defn::name.
905 (set_language_command): Likewise.
906 (language_enum): Likewise.
907 (language_str): Likewise.
908 (add_set_language_command): Likewise, use
909 language_defn::natural_name in the doc string.
910 (unknown_language_data): Remove la_name and
911 la_natural_name initializers.
912 (unknown_language::name): New member function.
913 (unknown_language::natural_name): New member function.
914 (auto_language_data): Remove la_name and
915 la_natural_name initializers.
916 (auto_language::name): New member function.
917 (auto_language::natural_name): New member function.
918 (language_lookup_primitive_type_as_symbol): Update call to
919 language_defn::name.
920 * language.h (language_data): Remove la_name and la_natural_name
921 member variables.
922 (language_defn::name): New member function.
923 (language_defn::natural_name): New member function.
924 * m2-lang.c (m2_language_data): Remove la_name and
925 la_natural_name initializers.
926 (m2_language::name): New member function.
927 (m2_language::natural_name): New member function.
928 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
929 language_defn::natural_name.
930 * objc-lang.c (objc_language_data): Remove la_name and
931 la_natural_name initializers.
932 (objc_language::name): New member function.
933 (objc_language::natural_name): New member function.
934 * opencl-lang.c (opencl_language_data): Remove la_name and
935 la_natural_name initializers.
936 (opencl_language::name): New member function.
937 (opencl_language::natural_name): New member function.
938 * p-lang.c (pascal_language_data): Remove la_name and
939 la_natural_name initializers.
940 (pascal_language::name): New member function.
941 (pascal_language::natural_name): New member function.
942 * rust-lang.c (rust_language_data): Remove la_name and
943 la_natural_name initializers.
944 (rust_language::name): New member function.
945 (rust_language::natural_name): New member function.
946 * symtab.c (lookup_language_this): Update call to
947 language_defn::name.
948
5bae7c4e
AB
9492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
950
951 * ada-lang.c (ada_language_data): Remove la_name_of_this
952 initializer.
953 * ax-gdb.c (gen_expr): Update call to name_of_this.
954 * c-exp.y (classify_name): Likewise.
955 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
956 (cplus_language_data): Likewise.
957 (cplus_language::name_of_this): New member function.
958 (asm_language_data): Remove la_name_of_this initializer.
959 (minimal_language_data): Likewise.
960 * d-lang.c (d_language_data): Likewise.
961 (d_language::name_of_this): New member function.
962 * expprint.c (print_subexp_standard): Update call to name_of_this.
963 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
964 * go-lang.c (go_language_data): Likewise.
965 * language.c (unknown_language_data): Likewise.
966 (unknown_language::name_of_this): New member function.
967 (auto_language_data): Remove la_name_of_this initializer.
968 (auto_language::name_of_this): New member function.
969 * language.h (language_data): Delete la_name_of_this member
970 variable.
971 (language_defn::name_of_this): New member function.
972 * m2-lang.c (m2_language_data): Remove la_name_of_this
973 initializer.
974 * objc-lang.c (objc_language_data): Likewise.
975 (objc_language::name_of_this): New member function.
976 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
977 initializer.
978 * p-lang.c (pascal_language_data): Likewise.
979 (pascal_language::name_of_this): New member function.
980 * rust-lang.c (rust_language_data): Remove la_name_of_this
981 initializer.
982 * symtab.c (lookup_language_this): Update call to name_of_this.
983 (lookup_symbol_aux): Likewise.
984 * valops.c (value_of_this): Likewise.
985
22e3f3ed
AB
9862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
987
988 * ada-lang.c (ada_language_data): Remove
989 la_struct_too_deep_ellipsis initializer.
990 (ada_language::struct_too_deep_ellipsis): New member function.
991 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
992 initializer.
993 (cplus_language_data): Likewise.
994 (asm_language_data): Likewise.
995 (minimal_language_data): Likewise.
996 * cp-valprint.c (cp_print_value): Update call to
997 struct_too_deep_ellipsis.
998 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
999 initializer.
1000 * f-lang.c (f_language_data): Likewise.
1001 (f_language::struct_too_deep_ellipsis): New member function.
1002 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1003 initializer.
1004 * language.c (unknown_language_data): Likewise.
1005 (auto_language_data): Likewise.
1006 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1007 member variable.
1008 (language_defn::struct_too_deep_ellipsis): New member function.
1009 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1010 initializer.Q
1011 * objc-lang.c (objc_language_data): Likewise.
1012 * opencl-lang.c (opencl_language_data): Likewise.
1013 * p-lang.c (pascal_language_data): Likewise.
1014 * rust-lang.c (rust_language_data): Likewise.
1015 * valprint.c (val_print_check_max_depth): Update call to
1016 struct_too_deep_ellipsis.
1017
ed29e1c7
FW
10182020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1019
1020 * MAINTAINERS (Write After Approval): Add myself.
1021
12d8f940
TT
10222020-09-15 Tom Tromey <tom@tromey.com>
1023
1024 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1025 Remove.
1026
6b5a7bc7
TT
10272020-09-15 Tom Tromey <tom@tromey.com>
1028
1029 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1030 and TYPE_CODE_METHODPTR cases.
1031 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1032 (c_value_print_inner): Update.
1033 * valprint.c (generic_value_print_memberptr): New function, from
1034 c_value_print_memberptr.
1035 (generic_value_print): Use it. Call cplus_print_method_ptr.
1036
47f0e2ff
TT
10372020-09-15 Tom Tromey <tromey@adacore.com>
1038
1039 * python/python-internal.h (PyInt_FromLong): Remove define.
1040 * python/py-value.c (convert_value_from_python): Use
1041 gdb_py_object_from_longest.
1042 * python/py-type.c (typy_get_code): Use
1043 gdb_py_object_from_longest.
1044 * python/py-symtab.c (salpy_get_line): Use
1045 gdb_py_object_from_longest.
1046 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1047 gdb_py_object_from_longest.
1048 * python/py-record.c (recpy_gap_reason_code): Use
1049 gdb_py_object_from_longest.
1050 * python/py-record-btrace.c (recpy_bt_insn_size)
1051 (recpy_bt_func_level, btpy_list_count): Use
1052 gdb_py_object_from_longest.
1053 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1054 gdb_py_object_from_longest. Fix error handling.
1055 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1056 gdb_py_object_from_longest.
1057 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1058 gdb_py_object_from_longest.
1059 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1060 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1061 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1062
512116ce
TT
10632020-09-15 Tom Tromey <tromey@adacore.com>
1064
1065 * python/python.c (gdbpy_parameter_value): Use
1066 gdb_py_object_from_ulongest.
1067
4ab1029c
TT
10682020-09-15 Tom Tromey <tromey@adacore.com>
1069
1070 * python/py-infevents.c (create_register_changed_event_object):
1071 Use gdb_py_object_from_longest.
1072 * python/py-exitedevent.c (create_exited_event_object): Use
1073 gdb_py_object_from_longest.
1074
062534d4
TT
10752020-09-15 Tom Tromey <tromey@adacore.com>
1076
1077 * python/python.c (gdbpy_parameter_value): Use
1078 gdb_py_object_from_longest.
1079 * python/py-type.c (convert_field, typy_range): Use
1080 gdb_py_object_from_longest.
1081 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1082 gdb_py_object_from_longest.
1083 * python/py-lazy-string.c (stpy_get_length): Use
1084 gdb_py_object_from_longest.
1085 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1086 gdb_py_object_from_longest.
1087 * python/py-infevents.c (create_memory_changed_event_object): Use
1088 gdb_py_object_from_longest.
1089 * python/py-inferior.c (infpy_get_num): Use
1090 gdb_py_object_from_longest.
1091 (infpy_get_pid): Likewise.
1092
d1cab987
TT
10932020-09-15 Tom Tromey <tromey@adacore.com>
1094
1095 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1096 defines.
1097 * python/py-value.c (valpy_long): Use
1098 gdb_py_object_from_ulongest.
1099 * python/py-symtab.c (salpy_get_pc): Use
1100 gdb_py_object_from_ulongest.
1101 (salpy_get_last): Likewise.
1102 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1103 gdb_py_object_from_ulongest.
1104 * python/py-lazy-string.c (stpy_get_address): Use
1105 gdb_py_object_from_ulongest.
1106 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1107 * python/py-arch.c (archpy_disassemble): Use
1108 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1109 error handling.
1110
4bde49dc
TT
11112020-09-15 Tom Tromey <tromey@adacore.com>
1112
1113 * python/python-internal.h (gdb_py_long_from_longest): Remove
1114 defines.
1115 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1116 * python/py-type.c (convert_field, typy_get_sizeof): Use
1117 gdb_py_object_from_longest.
1118 * python/py-record-btrace.c (btpy_list_index): Use
1119 gdb_py_object_from_longest.
1120
37431074
TT
11212020-09-15 Tom Tromey <tromey@adacore.com>
1122
1123 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1124 * python/py-record.c (recpy_element_number): Use
1125 gdb_py_object_from_longest.
1126 (recpy_gap_number): Likewise.
1127
cbe25684
TT
11282020-09-15 Tom Tromey <tromey@adacore.com>
1129
1130 * top.c (ui::ui): Update.
1131 (highest_ui_num): Remove.
1132 * top.h (struct ui) <num>: Remove.
1133
db92ac45
TT
11342020-09-15 Tom Tromey <tromey@adacore.com>
1135
1136 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1137 * ui-style.c (ansi_regex_text): Now array.
1138 * rust-exp.y (number_regex_text): Now array.
1139 * linespec.c (linespec_quote_characters): Now array.
1140 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1141 Now arrays.
1142
d2b31b67
SM
11432020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1144
1145 * debuginfod-support.c (debuginfod_client_deleter): New.
1146 (debuginfod_client_up): New.
1147 (debuginfod_init): Return debuginfod_client_up.
1148 (debuginfod_source_query): Adjust.
1149 (debuginfod_debuginfo_query): Adjust.
1150
3246bd8e
SM
11512020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1152
1153 * debuginfod-support.c (debuginfod_source_query): Use
1154 make_unique_xstrdup.
1155
10242f36
SM
11562020-09-14 Simon Marchi <simon.marchi@efficios.com>
1157
1158 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1159 with `type::instance_flags`.
1160
e1044e6a
MM
11612020-09-14 Michael Mullin <masmullin@gmail.com>
1162
1163 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1164 Remove baton parameter.
1165
04902b09
PA
11662020-09-14 Pedro Alves <pedro@palves.net>
1167
1168 * Makefile.in (SELFTESTS_SRCS): Add
1169 unittests/enum-flags-selftests.c.
1170 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1171 btrace_function_flags instead of enum btrace_function_flag.
1172 * compile/compile-c-types.c (convert_qualified): Use
1173 enum_flags::raw.
1174 * compile/compile-cplus-symbols.c (convert_one_symbol)
1175 (convert_symbol_bmsym):
1176 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1177 (compile_cplus_convert_struct_or_union_methods)
1178 (compile_cplus_instance::convert_qualified_base):
1179 * go-exp.y (parse_string_or_char): Add cast to int.
1180 * unittests/enum-flags-selftests.c: New file.
1181 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1182 type to btrace_thread_flags from btrace_thread_flag.
1183 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1184 local's type to btrace_thread_flags from btrace_thread_flag. Add
1185 cast in DEBUG call.
1186
69896a2c
PA
11872020-09-14 Pedro Alves <pedro@palves.net>
1188
1189 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1190 * gdbtypes.c (address_space_name_to_int): Rename to ...
1191 (address_space_name_to_type_instance_flags): ... this.
1192 (address_space_int_to_name): Rename to ...
1193 (address_space_type_instance_flags_to_name): ... this.
1194 * gdbtypes.h (address_space_name_to_int): Rename to ...
1195 (address_space_name_to_type_instance_flags): ... this.
1196 (address_space_int_to_name): Rename to ...
1197 (address_space_type_instance_flags_to_name): ... this.
1198 * type-stack.c (type_stack::insert): Adjust to rename.
1199 * type-stack.h (type_stack::insert): Likewise.
1200
314ad88d
PA
12012020-09-14 Pedro Alves <pedro@palves.net>
1202 Andrew Burgess <andrew.burgess@embecosm.com>
1203
1204 * avr-tdep.c (avr_address_class_type_flags): Return
1205 type_instance_flags.
1206 (avr_address_class_type_flags_to_name): Take a
1207 type_instance_flags.
1208 (avr_address_class_name_to_type_flags): Return bool and take a
1209 type_instance_flags.
1210 * d-lang.c (build_d_types): Use type::set_instance_flags.
1211 * ft32-tdep.c (ft32_address_class_type_flags): Return
1212 type_instance_flags.
1213 (ft32_address_class_type_flags_to_name): Take a
1214 type_instance_flags.
1215 (ft32_address_class_name_to_type_flags): Return bool and take a
1216 type_instance_flags.
1217 (ft32_gdbarch_init): Use type::set_instance_flags.
1218 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1219 * gdbarch.h, gdbarch.c: Regenerate.
1220 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1221 (address_class_name_to_type_flags): Use type_instance_flags and
1222 bool.
1223 * gdbtypes.c (address_space_name_to_int)
1224 (address_space_int_to_name, make_qualified_type): Use
1225 type_instance_flags.
1226 (make_qualified_type): Use type_instance_flags and
1227 type::set_instance_flags.
1228 (make_type_with_address_space, make_cv_type, make_vector_type)
1229 (check_typedef): Use type_instance_flags.
1230 (recursive_dump_type): Cast type_instance_flags to unsigned for
1231 printing.
1232 (copy_type_recursive): Use type::set_instance_flags.
1233 (gdbtypes_post_init): Use type::set_instance_flags.
1234 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1235 <m_instance_flags>: ... this.
1236 <instance_flags, set_instance_flags>: New methods.
1237 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1238 (SET_TYPE_INSTANCE_FLAGS): New.
1239 (address_space_name_to_int, address_space_int_to_name)
1240 (make_type_with_address_space): Pass flags using
1241 type_instance_flags instead of int.
1242 * stabsread.c (cleanup_undefined_types_noname): Use
1243 type::set_instance_flags.
1244 * s390-tdep.c (s390_address_class_type_flags): Return
1245 type_instance_flags.
1246 (s390_address_class_type_flags_to_name): Take a
1247 type_instance_flags.
1248 (s390_address_class_name_to_type_flags): Return bool and take a
1249 type_instance_flags.
1250 * type-stack.c (type_stack::follow_types): Use
1251 type_instance_flags.
1252 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1253
27087b7f
TT
12542020-09-14 Tom Tromey <tromey@adacore.com>
1255
1256 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1257 * x86-tdep.c (x86_is_thunk_register_name)
1258 (x86_in_indirect_branch_thunk): Update.
1259 * sparc64-tdep.c (sparc64_fpu_register_names)
1260 (sparc64_cp0_register_names, sparc64_register_names)
1261 (sparc64_pseudo_register_names): Now const.
1262 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1263 cp0_registers_num>: Now const.
1264 * sparc-tdep.c (sparc_core_register_names)
1265 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1266 (sparc32_pseudo_register_names): Now const.
1267 (validate_tdesc_registers): Update.
1268 * rust-lang.c (rust_extensions): Now const.
1269 * p-lang.c (p_extensions): Now const.
1270 * objc-lang.c (objc_extensions): Now const.
1271 * nto-tdep.c (nto_thread_state_str): Now const.
1272 * moxie-tdep.c (moxie_register_names): Now const.
1273 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1274 Now const.
1275 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1276 (mips_linux_reg_names): Now const.
1277 (mips_gdbarch_init): Update.
1278 * microblaze-tdep.c (microblaze_register_names): Now const.
1279 * m68k-tdep.c (m68k_register_names): Now const.
1280 * m32r-tdep.c (m32r_register_names): Now const.
1281 * ia64-tdep.c (ia64_register_names): Now const.
1282 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1283 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1284 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1285 ymm_avx512_register_names, pkeys_register_names>: Now const.
1286 * i386-tdep.c (i386_register_names, i386_zmm_names)
1287 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1288 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1289 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1290 * f-lang.c (f_extensions): Now const.
1291 * d-lang.c (d_extensions): Now const.
1292 * csky-tdep.c (csky_register_names): Now const.
1293 * charset.c (default_charset_names, charset_enum): Now const.
1294 (_initialize_charset): Update.
1295 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1296 const.
1297 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1298 (bsd_uthread_solib_loaded): Update.
1299 (bsd_uthread_state): Now const.
1300 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1301 (amd64_ymm_avx512_names, amd64_ymmh_names)
1302 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1303 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1304 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1305 (amd64_dword_names): Now const.
1306 * agent.c (can_use_agent_enum): Now const.
1307 * ada-tasks.c (task_states, long_task_states): Now const.
1308 * ada-lang.c (known_runtime_file_name_patterns)
1309 (known_auxiliary_function_name_patterns, attribute_names)
1310 (standard_exc, ada_extensions): Now const.
1311
89806626
SM
13122020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1313
1314 * bcache.h (struct bcache) <bcache>: Remove constructor.
1315 <m_hash_function, m_compare_function>: Remove.
1316 <~bcache>: Make virtual.
1317 <compare>: Remove static method, introduce virtual method.
1318 <default_hash>: Remove.
1319 <hash>: New virtual method.
1320 * bcache.c (bcache::expand_hash_table): Update.
1321 (bcache::insert): Update.
1322 (bcache::hash): New.
1323 (bcache::compare): Update comment and parameter names.
1324 * gdbtypes.c (types_deeply_equal): Update.
1325 * psymtab.h (struct psymbol_bcache): New struct.
1326 (class psymtab_storage) <psymtab_storage>: Make default.
1327 <psymbol_cache>: Change type to psymbol_bcache.
1328 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1329 (psymbol_hash): Change to...
1330 (psymbol_bcache::hash): ... this.
1331 (psymbol_compare): Change to...
1332 (psymbol_bcache::compare): ... this.
1333
677c92fe
SM
13342020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1335
1336 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1337 checking for initial lwp.
1338
3eba3a01
TT
13392020-09-14 Tom Tromey <tromey@adacore.com>
1340
1341 * m68k-tdep.c (m68k_extract_return_value): Use
1342 pointer_result_regnum.
1343 (m68k_store_return_value): Likewise.
1344 (m68k_reg_struct_return_p): Handle vectors and arrays.
1345 (m68k_return_value): Handle arrays.
1346 (m68k_svr4_return_value): Fix single-element aggregate handling.
1347 Handle long double. Adjust for embedded ABI.
1348 (m68k_svr4_init_abi): Set pointer_result_regnum.
1349 (m68k_embedded_init_abi): New function.
1350 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1351 (m68k_osabi_sniffer): New function.
1352 (_initialize_m68k_tdep): Register osabi sniffer.
1353 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1354 member.
1355
33f4dd48
SM
13562020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1357
1358 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1359 with gdb::unique_xmalloc_ptr<char>.
1360
8400a90d
SM
13612020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1362
1363 * xml-support.h (xml_fetch_another): Change type to be a
1364 function_view.
1365 (xml_process_xincludes): Remove baton parameter.
1366 (xml_fetch_content_from_file): Change baton parameter to
1367 dirname.
1368 * xml-support.c (struct xinclude_parsing_data)
1369 <xinclude_parsing_data>: Remove baton parameter.
1370 <fetcher_baton>: Remove.
1371 (xinclude_start_include): Adjust.
1372 (xml_process_xincludes): Adjust.
1373 (xml_fetch_content_from_file): Replace baton parameter with
1374 dirname.
1375 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1376 (xml_init_syscalls_info): Use a lambda.
1377 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1378 (file_read_description_xml): Use a lambda.
1379 (fetch_available_features_from_target): Change baton parameter
1380 to target_ops.
1381 (target_read_description_xml): Use a lambda.
1382 (target_fetch_description_xml): Use a lambda.
1383 (string_read_description_xml): Update.
1384
04f5bab2
SM
13852020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1386
1387 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1388 uses with type::endianity_is_not_default.
1389
db558e34
SM
13902020-09-14 Simon Marchi <simon.marchi@efficios.com>
1391
1392 * gdbtypes.h (struct type) <endianity_is_not_default,
1393 set_endianity_is_not_default>: New methods.
1394 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1395 type::endianity_is_not_default, change all write call sites to
1396 use type::set_endianity_is_not_default.
1397
22c4c60c
SM
13982020-09-14 Simon Marchi <simon.marchi@efficios.com>
1399
1400 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1401 uses with type::is_fixed_instance.
1402
9cdd0d12
SM
14032020-09-14 Simon Marchi <simon.marchi@efficios.com>
1404
1405 * gdbtypes.h (struct type) <is_fixed_instance,
1406 set_is_fixed_instance>: New methods.
1407 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1408 write call sites to use type::set_is_fixed_instance.
1409
0becda7a
SM
14102020-09-14 Simon Marchi <simon.marchi@efficios.com>
1411
1412 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1413 uses with type::is_gnu_ifunc.
1414
03cc7249
SM
14152020-09-14 Simon Marchi <simon.marchi@efficios.com>
1416
1417 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1418 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1419 use type::set_is_gnu_ifunc.
1420
3f46044c
SM
14212020-09-14 Simon Marchi <simon.marchi@efficios.com>
1422
1423 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1424 uses with type::stub_is_supported.
1425
9baccff6
SM
14262020-09-14 Simon Marchi <simon.marchi@efficios.com>
1427
1428 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1429 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1430 use type::set_stub_is_supported.
1431
bd63c870
SM
14322020-09-14 Simon Marchi <simon.marchi@efficios.com>
1433
1434 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1435 uses with type::is_vector.
1436
2062087b
SM
14372020-09-14 Simon Marchi <simon.marchi@efficios.com>
1438
1439 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1440 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1441 use type::set_is_vector.
1442
a409645d
SM
14432020-09-14 Simon Marchi <simon.marchi@efficios.com>
1444
1445 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1446 uses with type::has_varargs.
1447
1d6286ed
SM
14482020-09-14 Simon Marchi <simon.marchi@efficios.com>
1449
1450 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1451 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1452 use type::set_has_varargs.
1453
7f9f399b
SM
14542020-09-14 Simon Marchi <simon.marchi@efficios.com>
1455
1456 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1457 uses with type::is_prototyped.
1458
27e69b7a
SM
14592020-09-14 Simon Marchi <simon.marchi@efficios.com>
1460
1461 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1462 New methods.
1463 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1464 call sites to use type::set_is_prototyped.
1465
d2183968
SM
14662020-09-14 Simon Marchi <simon.marchi@efficios.com>
1467
1468 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1469 uses with type::target_is_stub.
1470
8f53807e
SM
14712020-09-14 Simon Marchi <simon.marchi@efficios.com>
1472
1473 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1474 New methods.
1475 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1476 sites to use type::set_target_is_stub.
1477
e46d3488
SM
14782020-09-14 Simon Marchi <simon.marchi@efficios.com>
1479
1480 * gdbtypes.h (TYPE_STUB): Remove, replace all
1481 uses with type::is_stub.
1482
b4b73759
SM
14832020-09-14 Simon Marchi <simon.marchi@efficios.com>
1484
1485 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1486 (TYPE_STUB): Use type::is_stub, change all write call sites to
1487 use type::set_is_stub.
1488
20ce4123
SM
14892020-09-14 Simon Marchi <simon.marchi@efficios.com>
1490
1491 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1492 type::has_no_signedness.
1493
15152a54
SM
14942020-09-14 Simon Marchi <simon.marchi@efficios.com>
1495
1496 * gdbtypes.h (struct type) <has_no_signedness,
1497 set_has_no_signedness>: New methods.
1498 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1499 call sites to use type::set_has_no_signedness.
1500
c6d940a9
SM
15012020-09-14 Simon Marchi <simon.marchi@efficios.com>
1502
1503 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1504 type::is_unsigned.
1505
653223d3
SM
15062020-09-14 Simon Marchi <simon.marchi@efficios.com>
1507
1508 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1509 methods.
1510 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1511 sites to use type::set_is_unsigned.
1512
55ea94da
FH
15132020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1514 Adam Renquinha <arenquinha@cimeq.qc.ca>
1515
1516 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1517 pointer and stack frame offset when unwinding.
1518
6791b117
PA
15192020-09-13 Pedro Alves <pedro@palves.net>
1520
1521 * NEWS: Document "-break-insert --qualified".
1522 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1523
77f2120b
PA
15242020-09-13 Pedro Alves <pedro@palves.net>
1525
1526 * linespec.c (classify_mtype, compare_msyms): Delete.
1527 (search_minsyms_for_name): Remove classification logic. Instead
1528 filter out trampoline symbols if we also found an external
1529 function of the same name.
1530
ed6a896c
JB
15312020-09-13 Joel Brobecker <brobecker@adacore.com>
1532
1533 * NEWS: Create a new section for the next release branch.
1534 Rename the section of the current branch, now that it has
1535 been cut.
1536
32aea73e
JB
15372020-09-13 Joel Brobecker <brobecker@adacore.com>
1538
1539 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1540 * version.in: Bump version to 11.0.50.DATE-git.
1541
8087c3fa
JB
15422020-09-12 Joel Brobecker <brobecker@adacore.com>
1543
1544 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1545
2a67f09d
FW
15462020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1547 Felix Willgerodt <Felix.Willgerodt@intel.com>
1548
1549 * gdbarch.sh: Added bfloat16 type.
1550 * gdbarch.c: Regenerated.
1551 * gdbarch.h: Regenerated.
1552 * gdbtypes.c (floatformats_bfloat16): New struct.
1553 (gdbtypes_post_init): Add builtin_bfloat16.
1554 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1555 (floatformats_bfloat16): New struct.
1556 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1557 (i386_ymm_type): Add field "v16_bfloat16"
1558 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1559 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1560 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1561 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1562 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1563 * features/i386/64bit-avx512.c: Regenerated.
1564 * features/i386/64bit-sse.xml: Add bfloat16 type.
1565 * features/i386/64bit-sse.c: Regenerated.
1566
1347d111
FW
15672020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1568
1569 * i386-tdep.c (i386_zmm_type): Fix field names.
1570 (i386_ymm_type): Fix field names.
1571
7a4e8e7d
TBA
15722020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1573
1574 * breakpoint.c: Fix typo in the help message of the
1575 "set breakpoint condition-evaluation" command.
1576
cf4ac4be
KR
15772020-09-10 Kamil Rytarowski <n54@gmx.com>
1578
1579 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1580 * (nbsd_nat_target::pid_to_exec_file)
1581 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1582 (nbsd_nat_target::post_startup_inferior)
1583 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1584 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1585 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1586 * (nbsd_thread_lister): Remove.
1587
f404573e
KR
15882020-09-10 Kamil Rytarowski <n54@gmx.com>
1589
1590 * fork-inferior.c (startup_inferior): Avoid double free.
1591
1ccb2c17
KR
15922020-09-10 Kamil Rytarowski <n54@gmx.com>
1593
1594 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1595 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1596
feedfcc7
KR
15972020-09-10 Kamil Rytarowski <n54@gmx.com>
1598
1599 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1600 * netbsd-nat.c: Include <sys/ptrace.h>.
1601 * (netbsd_nat::enable_proc_events): Add.
1602
c489f8c6
KR
16032020-09-10 Kamil Rytarowski <n54@gmx.com>
1604
1605 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1606 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1607 (netbsd_nat::for_each_thread): Add.
1608 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1609 "gdbsupport/common-debug.h".
1610 * (netbsd_nat::netbsd_thread_lister)
1611 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1612 (netbsd_nat::for_each_thread): Add.
1613
330662f6
KR
16142020-09-10 Kamil Rytarowski <n54@gmx.com>
1615
1616 * netbsd-nat.h: Include <unistd.h>.
1617 * (netbsd_nat::pid_to_exec_file): Add.
1618 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1619 * (netbsd_nat::pid_to_exec_file) Add.
1620
70b67307
KR
16212020-09-10 Kamil Rytarowski <n54@gmx.com>
1622
1623 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1624
99cf6da6
KR
16252020-09-10 Kamil Rytarowski <n54@gmx.com>
1626
1627 * netbsd-nat.h: New file.
1628 * netbsd-nat.c: Likewise.
1629
1b788fb6
TT
16302020-09-09 Tom Tromey <tromey@adacore.com>
1631
1632 * ada-lang.c (remove_extra_symbols): Do not increment when
1633 removing an element
1634
03b0a45f
TT
16352020-09-08 Tom Tromey <tromey@adacore.com>
1636
1637 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1638
3cae4447
TT
16392020-09-08 Tom Tromey <tromey@adacore.com>
1640
1641 PR win32/25302:
1642 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1643 (gdb_bfd_init_data): New function.
1644 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1645
7f08fd51
TBA
16462020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1647
1648 * infrun.c (fetch_inferior_event): Use
1649 `switch_to_target_no_thread` to switch the target.
1650
3e6ff933
TT
16512020-09-06 Tom Tromey <tom@tromey.com>
1652
1653 * symfile.h (dwarf2_free_objfile): Don't declare.
1654
e56798df
AKS
16552020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1656
1657 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1658 to match 16 byte real/complex type generated by Flang compiler.
1659
8f5c6526
TV
16602020-09-03 Tom de Vries <tdevries@suse.de>
1661
1662 PR breakpoint/26546
1663 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1664 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1665
c5065df0
SM
16662020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1667
1668 * maint.c (index_digits): New function.
1669 (struct maint_print_section_data): Remove.
1670 (print_bfd_section_info): Remove print_data parameter, add arg
1671 and index_digits.
1672 (print_objfile_section_info): Likewise.
1673 (print_bfd_section_info_maybe_relocated): Likewise (plus
1674 objfile).
1675 (maintenance_info_sections): Adjust calls.
1676
02c6f3f1
TT
16772020-09-02 Tom Tromey <tromey@adacore.com>
1678
1679 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1680 for null pointers.
1681 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1682
ef5e5b0b
SM
16832020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1684
1685 * bcache.h (struct bcache) <insert>: Change type of `added` to
1686 pointer to bool.
1687 * bcache.c (bcache::insert): Likewise.
1688 * gdbtypes.c (check_types_worklist): Adjust.
1689 * psymtab.c (add_psymbol_to_bcache): Adjust.
1690
973695d6
KB
16912020-08-31 Kevin Buettner <kevinb@redhat.com>
1692
1693 * corelow.c (unordered_set): Include.
1694 (class core_target): Add field 'm_core_unavailable_mappings'.
1695 (core_target::build_file_mappings): Print only one warning
1696 per inaccessible file. Add unavailable/broken mappings
1697 to m_core_unavailable_mappings.
1698 (core_target::xfer_partial): Call...
1699 (core_target::xfer_memory_via_mappings): New method.
1700
264fc0e2
SM
17012020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1702
1703 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1704 type to bool.
1705
2de01bdb
SM
17062020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1707
1708 * dwarf2/read.c (struct field_info): Fix indentation.
1709
f3bd50f1
SM
17102020-08-31 Simon Marchi <simon.marchi@efficios.com>
1711
1712 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1713 ordering in comment.
1714 * frame.c (frame_id_eq): Fix indentation.
1715
22b9b4b0
SL
17162020-08-31 Scott Linder <scott@scottlinder.com>
1717 Simon Marchi <simon.marchi@efficios.com>
1718
1719 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1720 inline frame ids in outer frame.
1721
84154d16
SM
17222020-08-31 Simon Marchi <simon.marchi@efficios.com>
1723
1724 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1725 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1726 (outer_frame_id): Use FID_STACK_OUTER instead of
1727 FID_STACK_INVALID.
1728 (frame_id_p): Don't check for outer_frame_id.
1729
8efaf6b3
SM
17302020-08-31 Simon Marchi <simon.marchi@efficios.com>
1731
1732 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1733 regnum/frame in value. Call allocate_value_lazy.
1734 * frame.c (frame_unwind_register_value): Use
1735 val_print_not_saved.
1736
fe1fe7ea
SM
17372020-08-31 Simon Marchi <simon.marchi@efficios.com>
1738
1739 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1740
f7c7700d
PA
17412020-08-29 Pedro Alves <pedro@palves.net>
1742
1743 * progspace.c (print_program_space): Use all_inferiors. Switch to
1744 the inferior before calling target_pid_to_str.
1745
e0814aae
TT
17462020-08-28 Tom Tromey <tom@tromey.com>
1747
1748 * xcoffread.c (xcoff_end_psymtab): Update comment.
1749 * dbxread.c (dbx_end_psymtab): Update comment.
1750
626d2320
TV
17512020-08-28 Tom de Vries <tdevries@suse.de>
1752
1753 PR breakpoint/26544
1754 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1755 event_location.
1756 (create_breakpoint): Same.
1757 (base_breakpoint_decode_location): Same.
1758 (bkpt_create_sals_from_location): Same.
1759 (bkpt_decode_location): Same.
1760 (bkpt_probe_create_sals_from_location): Same.
1761 (bkpt_probe_decode_location): Same.
1762 (tracepoint_create_sals_from_location): Same.
1763 (tracepoint_decode_location): Same.
1764 (tracepoint_probe_decode_location): Same.
1765 (strace_marker_create_sals_from_location): Same.
1766 (strace_marker_decode_location): Same.
1767 (create_sals_from_location_default): Same.
1768 (decode_location_default): Same.
1769 * breakpoint.h (struct breakpoint_ops): Same.
1770 (create_breakpoint): Same.
1771 * linespec.h (decode_line_full): Same.
1772 * linespec.c (decode_line_full): Same. Throw error if
1773 result.size () == 0.
1774
df631783
PA
17752020-08-27 Pedro Alves <pedro@palves.net>
1776
1777 PR gdb/26524
1778 * breakpoint.c (until_break_fsm) <location_breakpoint,
1779 caller_breakpoint>: Delete fields.
1780 <breakpoints>: New field.
1781 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1782 two individual breakpoints.
1783 (until_break_fsm::should_stop): Loop over breakpoints in the
1784 breakpoint vector.
1785 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1786 vector.
1787 (until_break_command): Handle location expanding into multiple
1788 sals.
1789
b2b38aa4
PA
17902020-08-27 Pedro Alves <pedro@palves.net>
1791
1792 PR gdb/26523
1793 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1794 bp_until breakpoints user-specified locations. Update intro
1795 comment.
1796
b886559f
SM
17972020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1798
1799 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1800 gdb_bfd_sections): New.
1801 * maint.c (print_bfd_section_info): Change param type to
1802 maint_print_section_data.
1803 (print_objfile_section_info): Likewise.
1804 (print_bfd_section_info_maybe_relocated): Likewise.
1805 (maintenance_info_sections): Use gdb_bfd_sections.
1806
4c6e63bf
SV
18072020-08-25 Shahab Vahedi <shahab@synopsys.com>
1808
1809 * MAINTAINERS: Add ARC target and maintainer.
1810
8d7f0635
AK
18112020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1812
1813 * configure.tgt: ARC support for GNU/Linux.
1814 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1815 * arc-linux-tdep.c: New file.
1816 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1817 * arc-tdep.c (arc_write_pc): Use it.
1818
fdd8731b
SV
18192020-08-25 Shahab Vahedi <shahab@synopsys.com>
1820
1821 * arc-tdep.c (arc_check_for_hardware_loop): New.
1822 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1823
22459524
SV
18242020-08-25 Shahab Vahedi <shahab@synopsys.com>
1825
1826 * arc-tdep.h: Include "gdbarch.h".
1827
995d3a19
SV
18282020-08-25 Shahab Vahedi <shahab@synopsys.com>
1829
1830 * arch/arc.h
1831 (arc_gdbarch_features): New class to stir the selection of target XML.
1832 (arc_create_target_description): Use FEATURES to choose XML target.
1833 (arc_lookup_target_description): Use arc_create_target_description
1834 to create _new_ target descriptions or return the already created
1835 ones if the FEATURES is the same.
1836 * arch/arc.c: Implementation of prototypes described above.
1837 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1838 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1839 * arc-tdep.c (*_feature_name): Make feature names consistent.
1840 (arc_register_feature): A new struct to hold information about
1841 registers of a particular target/feature.
1842 (arc_check_tdesc_feature): Check if XML provides registers in
1843 compliance with ARC_REGISTER_FEATURE structs.
1844 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1845 (determine_*_reg_feature_set): Which feature name to look for.
1846 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1847 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1848 to expected ISA enums to be used in arc_gdbarch_features structs.
1849 * features/Makefile (FEATURE_XMLFILES): Add new files.
1850 * gdb/features/arc/v1-aux.c: New file.
1851 * gdb/features/arc/v1-aux.xml: Likewise.
1852 * gdb/features/arc/v1-core.c: Likewise.
1853 * gdb/features/arc/v1-core.xml: Likewise.
1854 * gdb/features/arc/v2-aux.c: Likewise.
1855 * gdb/features/arc/v2-aux.xml: Likewise.
1856 * gdb/features/arc/v2-core.c: Likewise.
1857 * gdb/features/arc/v2-core.xml: Likewise.
1858 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1859
3945d2d7
GM
18602020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1861 Andrew Burgess <andrew.burgess@embecosm.com>
1862
1863 PR m2/26372
fc5d6901 1864 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
1865 an assert. Remove single element array indexing pattern as the
1866 MULTI_SUBSCRIPT support will handle this case too.
1867
2677f2d3
SM
18682020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1869
1870 * value.h (valprint_check_validity): Move declaration from
1871 here...
1872 * valprint.h (valprint_check_validity): ... to here.
1873
c426fddb
SM
18742020-08-24 Simon Marchi <simon.marchi@efficios.com>
1875
1876 * debug.h: New file.
1877 * debug.c (debug_prefixed_vprintf): New function.
1878 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1879 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1880
1eb8556f
SM
18812020-08-24 Simon Marchi <simon.marchi@efficios.com>
1882
1883 * infrun.h (infrun_debug_printf_1): New function declaration.
1884 (infrun_debug_printf): New macro.
1885 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1886 throughout.
1887 (infrun_debug_printf): New function.
1888 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1889 (handle_jit_event): Likewise.
1890
b8fff44e
MW
18912020-08-21 Mark Wielaard <mark@klomp.org>
1892
1893 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1894
d19c3068
SM
18952020-08-22 Simon Marchi <simon.marchi@efficios.com>
1896
1897 * frame.c (enum class frame_id_status): New.
1898 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1899 (fprintf_frame): Update.
1900 (compute_frame_id): Set frame id status to "computing" on entry.
1901 Set it back to "not_computed" on failure and to "computed" on
1902 success.
1903 (get_frame_id): Assert the frame id is not being computed.
1904 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1905 (create_new_frame): Likewise.
1906 (frame_cleanup_after_sniffer): Update assert.
1907
b70e516e
SM
19082020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1909
1910 * regcache.c (pid_ptid_regcache_map): New type.
1911 (target_ptid_regcache_map): Remove.
1912 (target_pid_ptid_regcache_map): New type.
1913 (regcaches): Change type to target_pid_ptid_regcache_map.
1914 (get_thread_arch_aspace_regcache): Update.
1915 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1916 case.
1917 (regcaches_size): Update.
1918 (regcache_count): Update.
1919 (registers_changed_ptid_target_pid_test): New.
1920 (_initialize_regcache): Register new test.
1921
cdd9148a
SM
19222020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1923
1924 * regcache.c (regcache_count): New.
1925 (struct regcache_test_data): New.
1926 (regcache_test_data_up): New.
1927 (populate_regcaches_for_test): New.
1928 (regcaches_test): Remove.
1929 (get_thread_arch_aspace_regcache_test): New.
1930 (registers_changed_ptid_all_test): New.
1931 (registers_changed_ptid_target_test): New.
1932 (registers_changed_ptid_target_ptid_test): New.
1933 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1934 (_initialize_regcache): Register new tests.
1935
dd125343
SM
19362020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1937
1938 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1939 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1940 gdbarch and aspace parameter. Use current inferior's aspace.
1941 Validate regcache's arch value.
1942 (regcaches_test): Update.
1943
3ee93972
SM
19442020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1945
1946 * regcache.c (regcaches_test): Call registers_changed.
1947
33bf4c5c
TBA
19482020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1949
1950 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1951
c2fd7fae
AKS
19522020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1953
1954 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1955 to find the end of prologue for flang compiled binaries.
1956 * arm-tdep.c (arm_skip_prologue): Likewise.
1957 * i386-tdep.c (i386_skip_prologue): Likewise.
1958 * producer.c (producer_is_llvm): New function.
1959 (producer_parsing_tests): Added new tests for clang/flang.
1960 * producer.h (producer_is_llvm): New declaration.
1961
9327494e
SM
19622020-08-18 Simon Marchi <simon.marchi@efficios.com>
1963
1964 * linux-nat.c (linux_nat_debug_printf): New function.
1965 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1966
d138725a
AM
19672020-08-18 Aaron Merey <amerey@redhat.com>
1968
1969 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1970 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1971 (CLIBS): Add DEBUGINFOD_LIBS.
1972
f9b11e6b
ST
19732020-08-17 Sergei Trofimovich <siarheit@google.com>
1974
1975 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1976 'gdbarch_num_regs'.
1977
3ae7ab99
TT
19782020-08-17 Tom Tromey <tromey@adacore.com>
1979
1980 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1981 ada_get_decoded_value returns NULL.
1982
b017825f
TT
19832020-08-17 Tom Tromey <tromey@adacore.com>
1984
1985 * python/py-inferior.c (infpy_search_memory): Use
1986 gdb_py_object_from_ulongest.
1987 * python/py-infevents.c (create_inferior_call_event_object)
1988 (create_memory_changed_event_object): Use
1989 gdb_py_object_from_ulongest.
1990 * python/py-linetable.c (ltpy_entry_get_pc): Use
1991 gdb_py_object_from_ulongest.
1992
7635cf79
SM
19932020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1994
1995 * loc.c (class symbol_needs_eval_context): Fix indentation.
1996
f54be24b
SM
19972020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1998
1999 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2000 bool.
2001
53d5a2a5
TV
20022020-08-17 Tom de Vries <tdevries@suse.de>
2003
2004 PR gdb/26393
2005 * gdbtypes.c (dump_dynamic_prop): New function.
2006 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2007
547ce8f0
TV
20082020-08-15 Tom de Vries <tdevries@suse.de>
2009
2010 PR backtrace/26390
2011 * stack.c (print_frame_args): Temporarily set the selected
2012 frame to FRAME while printing the frame's arguments.
2013
6ea815e7
PFC
20142020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2015
2016 PR breakpoints/26385
2017 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2018 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2019
6e562fa3
PFC
20202020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2021
2022 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2023 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2024 and >= to check return value instead of == -1 and != -1.
2025
d369b608
SM
20262020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2027
2028 * utils.h (class gdb_argv) <as_array_view>: New method.
2029 * utils.c (gdb_argv_as_array_view_test): New.
2030 (_initialize_utils): Register selftest.
2031 * maint.c (maintenance_selftest): Use the new method.
2032
b31488a3
KR
20332020-08-13 Kamil Rytarowski <n54@gmx.com>
2034
2035 * target.h (supports_dumpcore, dumpcore): New
2036 function declarations.
2037 * target.c (supports_dumpcore, dumpcore): New
2038 functions.
2039 * target-delegates.c: Rebuild.
2040 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2041 and target_dumpcore ().
2042
002a3166
AM
20432020-08-13 Aaron Merey <amerey@redhat.com>
2044
2045 * debuginfod-support.c: Replace global variables with user_data.
2046
ece5bc8a
SM
20472020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2048
2049 * maint.c (maintenance_selftest): Split args and pass array_view
2050 to run_tests.
2051
6d8a0a5e
LM
20522020-08-12 Luis Machado <luis.machado@linaro.org>
2053
2054 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2055 type's length.
2056 Use %s and pulongest to print the length.
2057
7cf663a9
PA
20582020-08-12 Pedro Alves <palves@redhat.com>
2059
2060 * NEWS: Move "Multi-target debugging support" item to the
2061 "Changes since GDB 9" section.
2062
27c7b875
PA
20632020-08-12 Pedro Alves <palves@redhat.com>
2064
2065 PR gdb/26336
2066 * progspace.c (program_space::remove_objfile): Invalidate the
2067 frame cache.
2068
1796a2a1
TV
20692020-08-11 Tom de Vries <tdevries@suse.de>
2070
2071 * MAINTAINERS: Mark ms1 as deleted.
2072
f8e3fe0d
LM
20732020-08-10 Luis Machado <luis.machado@linaro.org>
2074
2075 PR gdb/26310
2076
2077 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2078 act accordingly.
2079 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2080 movz/str/stur/stp skipping behavior.
2081
cc308722
LM
20822020-08-10 Luis Machado <luis.machado@linaro.org>
2083
2084 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2085 struct user_sve_header instead of struct sve_context.
2086
041d9819
SM
20872020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2088
2089 * read.h (dwarf2_fetch_die_loc_sect_off,
2090 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2091 `void *` parameter with function_view.
2092 * read.c (dwarf2_fetch_die_loc_sect_off,
2093 dwarf2_fetch_die_loc_cu_off): Likewise.
2094 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2095 (per_cu_dwarf_call): Adjust.
2096 (get_frame_address_in_block_wrapper): Remove.
2097 (indirect_synthetic_pointer): Adjust.
2098 (get_ax_pc): Remove.
2099 (dwarf2_compile_expr_to_ax): Adjust.
2100
38f8aa06
TV
21012020-08-08 Tom de Vries <tdevries@suse.de>
2102
2103 PR build/26344
2104 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2105 constructor.
2106 * regcache.c (get_thread_arch_aspace_regcache): Same.
2107
a52b3ae2
TT
21082020-08-07 Tom Tromey <tromey@adacore.com>
2109
2110 * ravenscar-thread.c
2111 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2112 New method.
2113 (ravenscar_thread_target::wait): Check
2114 runtime_initialized.
2115 (ravenscar_thread_target::prepare_to_store)
2116 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2117 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2118 (ravenscar_thread_target::stopped_by_watchpoint)
2119 (ravenscar_thread_target::stopped_data_address)
2120 (ravenscar_thread_target::core_of_thread): Use
2121 scoped_restore_current_thread and
2122 set_base_thread_from_ravenscar_task.
2123
0e29517d
TT
21242020-08-07 Tom Tromey <tromey@adacore.com>
2125
2126 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2127
592f9bd7
TT
21282020-08-07 Tom Tromey <tromey@adacore.com>
2129
2130 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2131 update_inferior_ptid before update_thread_list.
2132 (temporarily_change_regcache_ptid): New class.
2133 (ravenscar_thread_target::fetch_registers)
2134 (ravenscar_thread_target::store_registers)
2135 (ravenscar_thread_target::prepare_to_store): Use base thread when
2136 forwarding operation.
2137
39e2018a
TT
21382020-08-07 Tom Tromey <tromey@adacore.com>
2139
2140 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2141 "is_pid" case.
2142
2080266b
TT
21432020-08-07 Tom Tromey <tromey@adacore.com>
2144
2145 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2146 New methods.
2147 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2148 first.
2149 (ravenscar_thread_target::add_thread): Rename from
2150 ravenscar_add_thread.
2151 (ravenscar_thread_target::update_thread_list): Use a lambda.
2152 (ravenscar_thread_target::xfer_partial): New method.
2153
78c02f21
TT
21542020-08-07 Tom Tromey <tromey@adacore.com>
2155
2156 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2157 gdb::function_view.
2158 (iterate_over_live_ada_tasks): Change type of argument.
2159 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2160 of argument.
2161
d5d833af
TT
21622020-08-07 Tom Tromey <tromey@adacore.com>
2163
2164 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2165 Remove.
2166 (ravenscar_thread_target::extra_thread_info): Remove.
2167 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2168 defer to target beneath for non-Ravenscar threads.
2169
a8ac85bb
TT
21702020-08-07 Tom Tromey <tromey@adacore.com>
2171
2172 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2173 get_base_thread_from_ravenscar_task>: Now methods.
2174 <m_cpu_map>: New member.
2175 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2176 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2177 (ravenscar_thread_target::task_is_currently_active): Update.
2178 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2179 Now a method.
2180 (ravenscar_thread_target::add_active_thread): Put initial thread
2181 into the m_cpu_map.
2182
550ab58d
TT
21832020-08-07 Tom Tromey <tromey@adacore.com>
2184
2185 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2186 event_ptid.
2187
e9546579
TT
21882020-08-07 Tom Tromey <tromey@adacore.com>
2189
2190 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2191 runtime_initialized.
2192
3d4470e5
TT
21932020-08-07 Tom Tromey <tromey@adacore.com>
2194
2195 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2196 add_active_thread.
2197 (ravenscar_thread_target::add_active_thread): Now public.
2198 (ravenscar_inferior_created): Call add_active_thread after pushing
2199 the target.
2200
888bdb2b
SM
22012020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2202
2203 * regcache.c (ptid_regcache_map): New type.
2204 (target_ptid_regcache_map): New type.
2205 (regcaches): Change type to target_ptid_regcache_map.
2206 (get_thread_arch_aspace_regcache): Update to regcaches' new
2207 type.
2208 (regcache_thread_ptid_changed): Likewise.
2209 (registers_changed_ptid): Likewise.
2210 (regcaches_size): Likewise.
2211 (regcaches_test): Update.
2212 (regcache_thread_ptid_changed): Update.
2213 * regcache.h (regcache_up): New type.
2214 * gdbsupport/ptid.h (hash_ptid): New struct.
2215
b161a60d
SM
22162020-08-07 Simon Marchi <simon.marchi@efficios.com>
2217
2218 * observable.h (thread_ptid_changed): Add parameter
2219 `process_stratum_target *`.
2220 * infrun.c (infrun_thread_ptid_changed): Add parameter
2221 `process_stratum_target *` and use it.
2222 (selftests): New namespace.
2223 (infrun_thread_ptid_changed): New function.
2224 (_initialize_infrun): Register selftest.
2225 * regcache.c (regcache_thread_ptid_changed): Add parameter
2226 `process_stratum_target *` and use it.
2227 (regcache_thread_ptid_changed): New function.
2228 (_initialize_regcache): Register selftest.
2229 * thread.c (thread_change_ptid): Pass target to
2230 thread_ptid_changed observable.
2231
d2854d8d
CT
22322020-08-06 Caroline Tice <cmtice@google.com>
2233
fe4c3d43
SM
2234 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2235 (struct dwp_sections): Update field comments. Add loclists and
2236 rnglists fields.
2237 (struct virtual_v2_dwo_sections): Rename struct to
2238 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2239 size & offset fields for loclists and rnglists.
2240 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2241 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2242 skipping dummy type units.
2243 (create_dwp_hash_table): Update the large comment above the function to
2244 discuss Version 5 DWP files as well, with references. Update all the
2245 version checks in the function to check for version 5 as well. Add new
2246 section at the end to create dwp hash table for version 5.
2247 (create_dwp_v2_section): Rename function to
2248 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2249 Add V5 to error message text.
2250 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2251 into calls to create_dwp_v2_or_v5_section.
2252 (create_dwo_unit_in_dwp_v5): New function.
2253 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2254 check for version2; add else clause to handle version 5.
2255 (open_and_init_dwo_file): Add code to check dwarf version & only call
2256 create_debug_types_hash_table (with sections.types) if version is not 5;
2257 else call create_debug_type_hash_table, with sections.info.
2258 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2259 version 5.
2260 (dwarf2_locate_v5_dwp_sections): New function.
2261 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2262 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2263
159ed7d9
SM
22642020-08-06 Simon Marchi <simon.marchi@efficios.com>
2265
2266 * regcache.h (class regcache): Remove friend
2267 registers_changed_ptid.
2268 <regcache_thread_ptid_changed>: Remove.
2269 <regcaches>: Remove.
2270 * regcache.c (regcache::regcaches): Rename to...
2271 (regcaches): ... this. Make static.
2272 (get_thread_arch_aspace_regcache): Update.
2273 (regcache::regcache_thread_ptid_changed): Rename to...
2274 (regcache_thread_ptid_changed): ... this. Update.
2275 (class regcache_access): Remove.
2276 (regcaches_test): Update.
2277 (_initialize_regcache): Update.
2278 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2279 <forward_list>.
2280
174981ae
SM
22812020-08-06 Simon Marchi <simon.marchi@efficios.com>
2282
2283 * regcache.h (class regcache) <current_regcache>: Rename to...
2284 <regcaches>: ... this. Move doc here.
2285 * regcache.c (regcache::current_regcache) Rename to...
2286 (regcache::regcaches): ... this. Move doc to header.
2287 (get_thread_arch_aspace_regcache): Update.
2288 (regcache::regcache_thread_ptid_changed): Update.
2289 (registers_changed_ptid): Update.
2290 (class regcache_access) <current_regcache_size>: Rename to...
2291 <regcaches_size>: ... this.
2292 (current_regcache_test): Rename to...
2293 (regcaches_test): ... this.
2294 (_initialize_regcache): Update.
2295
ed908db6
VC
22962020-08-06 Victor Collod <vcollod@nvidia.com>
2297
2298 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2299
b5582ab7
KB
23002020-08-05 Kevin Buettner <kevinb@redhat.com>
2301
2302 * corelow.c (core_target::build_file_mappings): Don't output
2303 null pathname in warning.
2304
ea946b86
SM
23052020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2306
2307 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2308 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2309 gdb.dwarf2/dw2-single-line-discriminators.exp,
2310 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2311
57d02173
TT
23122020-08-05 Tom Tromey <tromey@adacore.com>
2313
2314 PR rust/26197:
2315 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2316 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2317 Fix off-by-one and type size errors in ordinary case.
2318
5555c86d
TV
23192020-08-05 Tom de Vries <tdevries@suse.de>
2320
2321 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2322 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2323
97916bfe
SM
23242020-08-04 Simon Marchi <simon.marchi@efficios.com>
2325
2326 * frame.h (frame_id_p): Return bool.
2327 (frame_id_artificial_p): Return bool.
2328 (frame_id_eq): Return bool.
2329 (has_stack_frames): Return bool.
2330 (get_selected_frame): Fix typo in comment.
2331 (get_frame_pc_if_available): Return bool.
2332 (get_frame_address_in_block_if_available): Return bool.
2333 (get_frame_func_if_available): Return bool.
2334 (read_frame_register_unsigned): Return bool.
2335 (get_frame_register_bytes): Return bool.
2336 (safe_frame_unwind_memory): Return bool.
2337 (deprecated_frame_register_read): Return bool.
2338 (frame_unwinder_is): Return bool.
2339 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2340 bool.
2341 <this_id::p>: Likewise.
2342 <prev_p>: Likewise.
2343 (frame_stash_add): Return bool.
2344 (get_frame_id): Use bool.
2345 (frame_id_build_special) Use bool.
2346 (frame_id_build_unavailable_stack): Use bool.
2347 (frame_id_build): Use bool.
2348 (frame_id_p): Return bool, use true/false instead of 1/0.
2349 (frame_id_artificial_p): Likewise.
2350 (frame_id_eq): Likewise.
2351 (frame_id_inner): Likewise.
2352 (get_frame_func_if_available): Likewise.
2353 (read_frame_register_unsigned): Likewise.
2354 (deprecated_frame_register_read): Likewise.
2355 (get_frame_register_bytes): Likewise.
2356 (has_stack_frames): Likewise.
2357 (inside_main_func): Likewise.
2358 (inside_entry_func): Likewise.
2359 (get_frame_pc_if_available): Likewise.
2360 (get_frame_address_in_block_if_available): Likewise.
2361 (frame_unwinder_is): Likewise.
2362 (safe_frame_unwind_memory): Likewise.
2363 (frame_unwind_arch): Likewise.
2364
fedfee88
SM
23652020-08-04 Simon Marchi <simon.marchi@efficios.com>
2366
2367 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2368 type to cached_copy_status.
2369 (fprintf_frame): Adjust.
2370 (get_frame_func_if_available): Adjust.
2371 (frame_cleanup_after_sniffer): Adjust.
2372
6cfa9b59
MW
23732020-08-04 Mark Wielaard <mark@klomp.org>
2374
2375 * MAINTAINERS (Write After Approval): Update email address.
2376
66d6346b
SM
23772020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2378
2379 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2380 dynamic_prop::const_val.
2381
8a6d5e35
SM
23822020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2383
2384 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2385 dynamic_prop::kind.
2386
51d6067d
SM
23872020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2388
2389 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2390
b26e2ae7
JM
23912020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2392
2393 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2394
39791af2
JM
23952020-08-04 Weimin Pan <weimin.pan@oracle.com>
2396 Jose E. Marchesi <jose.marchesi@oracle.com>
2397
2398 * configure.tgt: Add entry for bpf-*-*.
2399 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2400 (ALLDEPFILES): Add bpf-tdep.c.
2401 * bpf-tdep.c: New file.
2402 * MAINTAINERS: Add bpf target and maintainer.
2403 * NEWS: Mention the support for the new target.
2404
521894aa
TV
24052020-08-04 Tom de Vries <tdevries@suse.de>
2406
2407 PR symtab/23270
2408 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2409 Error.
2410
5d6356e9
JB
24112020-08-03 John Baldwin <jhb@FreeBSD.org>
2412
2413 * syscalls/freebsd.xml: Regenerate.
2414
0cf82b81
JB
24152020-08-03 John Baldwin <jhb@FreeBSD.org>
2416
2417 * syscalls/update-freebsd.sh: Fix usage and year range.
2418
8f34b746
TV
24192020-08-03 Tom de Vries <tdevries@suse.de>
2420
2421 PR symtab/26333
2422 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2423 DW_LNE_lo_user/DW_LNE_hi_user range.
2424
5e500d33
SM
24252020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2426
2427 PR ada/26318
2428 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2429 kind.
2430
78319c15
TBA
24312020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2432
2433 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2434
4c55e970
TBA
24352020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2436
2437 * breakpoint.c (set_breakpoint_condition): Update the condition
2438 expressions after checking that the input condition string parses
2439 successfully and does not contain junk at the end.
2440
1e620590
TBA
24412020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2442
2443 * breakpoint.c (set_breakpoint_condition): Update the
2444 condition string after parsing the new condition successfully.
2445
c8693053
RO
24462020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2447
2448 * proc-api.c (_STRUCTURED_PROC): Don't define.
2449 * proc-events.c: Likewise.
2450 * proc-flags.c: Likewise.
2451 * proc-why.c: Likewise.
2452 * procfs.c: Likewise.
2453
2454 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2455 * configure, config.in: Regenerate.
2456
5a99adb8
TV
24572020-07-30 Tom de Vries <tdevries@suse.de>
2458
2459 PR build/26320
2460 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2461 m_red/m_green/m_blue in a union.
2462
8ba83e91
TV
24632020-07-29 Tom de Vries <tdevries@suse.de>
2464
2465 PR tdep/26280
2466 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2467
f75a0693
AB
24682020-07-28 Tom Tromey <tromey@adacore.com>
2469
2470 PR symtab/26270:
2471 * symtab.h (find_pc_partial_function_sym): Declare.
2472 * cli/cli-cmds.c (disassemble_command): Use
2473 find_pc_partial_function_sym. Check asm_demangle.
2474 * blockframe.c (cache_pc_function_sym): New global.
2475 (cache_pc_function_name): Remove.
2476 (clear_pc_function_cache): Update.
2477 (find_pc_partial_function_sym): New function, from
2478 find_pc_partial_function.
2479 (find_pc_partial_function): Rewrite using
2480 find_pc_partial_function_sym.
2481
16f3242c
TT
24822020-07-28 Tom Tromey <tromey@adacore.com>
2483
2484 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2485 help. Add usage.
2486
4888741a
TT
24872020-07-28 Tom Tromey <tromey@adacore.com>
2488
2489 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2490 <DW_OP_GNU_variable_value>: Cast to address type.
2491
4d46f402
KR
24922020-07-28 Kamil Rytarowski <n54@gmx.com>
2493
2494 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2495 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2496 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2497 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2498 (nbsd_get_siginfo_type): New.
2499 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2500 (_initialize_nbsd_tdep): New.
2501
d70f978b
L
25022020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2503
2504 PR binutils/26301
2505 * configure: Regenerated.
2506
377170fa
L
25072020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2508
2509 PR binutils/26301
2510 * configure: Regenerated.
2511
43d5901d
AB
25122020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2513
2514 * python/py-frame.c: Remove 'user-regs.h' include.
2515 (frapy_read_register): Rewrite to make use of
2516 gdbpy_parse_register_id.
2517 * python/py-registers.c (gdbpy_parse_register_id): New function,
2518 moved here from python/py-unwind.c. Updated the return type, and
2519 also accepts register descriptor objects.
2520 * python/py-unwind.c: Remove 'user-regs.h' include.
2521 (pyuw_parse_register_id): Moved to python/py-registers.c.
2522 (unwind_infopy_add_saved_register): Update to use
2523 gdbpy_parse_register_id.
2524 (pending_framepy_read_register): Likewise.
2525 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2526
14fa8fb3
AB
25272020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2528
2529 * python/py-registers.c: Add 'user-regs.h' include.
2530 (register_descriptor_iter_find): New function.
2531 (register_descriptor_iterator_object_methods): New static global
2532 methods array.
2533 (register_descriptor_iterator_object_type): Add pointer to methods
2534 array.
2535
ddce1758
JB
25362020-07-27 John Baldwin <jhb@FreeBSD.org>
2537
2538 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2539 for all architectures on FreeBSD 11.3 and later.
2540
a4089f52
TT
25412020-07-27 Tom Tromey <tromey@adacore.com>
2542
2543 * gcore.h (load_corefile): Don't declare.
2544
95420d30
TV
25452020-07-27 Tom de Vries <tdevries@suse.de>
2546
2547 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2548 * config.in: Regenerate.
2549 * configure: Regenerate.
2550
05a6b8c2
EZ
25512020-07-26 Eli Zaretskii <eliz@gnu.org>
2552
2553 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2554 ws2tcpip.h. When checking whether socklen_t type is defined, use
2555 ws2tcpip.h if it is available and sys/socket.h isn't.
2556 * configure: Regenerate.
2557 * config.in: Regenerate.
2558
e79eb02f
AB
25592020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2560
2561 PR fortran/23051
2562 PR fortran/26139
2563 * valops.c (value_ind): Pass address to
2564 readjust_indirect_value_type.
2565 * value.c (readjust_indirect_value_type): Make parameter
2566 non-const, and add extra address parameter. Resolve original type
2567 before using it.
2568 * value.h (readjust_indirect_value_type): Update function
2569 signature and comment.
2570
876518dd
TV
25712020-07-25 Tom de Vries <tdevries@suse.de>
2572
2573 PR symtab/26243
2574 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2575 entries.
2576
f6720b1c
AM
25772020-07-24 Aaron Merey <amerey@redhat.com>
2578
2579 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2580 * configure: Rebuild.
2581
513487e1
KB
25822020-07-23 Kevin Buettner <kevinb@redhat.com>
2583
2584 PR corefiles/26294
2585 * corelow.c (_initialize_corelow): Add period to help text
2586 for "maintenance print core-file-backed-mappings".
2587
e7bc9db8
PA
25882020-07-23 Pedro Alves <pedro@palves.net>
2589
2590 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2591 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2592 meanwhile.
2593 * frame.c (frame_cache_generation, get_frame_cache_generation):
2594 New.
2595 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2596 (get_prev_frame_if_no_cycle): On exception, don't touch
2597 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2598 * frame.h (get_frame_cache_generation): Declare.
2599
90fcc466
TV
26002020-07-23 Tom de Vries <tdevries@suse.de>
2601
2602 PR tui/26282
2603 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2604 New default constructor.
2605
78344df7
AB
26062020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2607
2608 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2609 exclude non-statement entries.
2610
b089853a
KB
26112020-07-22 Kevin Buettner <kevinb@redhat.com>
2612
2613 * NEWS (New commands): Mention new command
2614 "maintenance print core-file-backed-mappings".
2615
09c2f5d4
KB
26162020-07-22 Kevin Buettner <kevinb@redhat.com>
2617
2618 * corelow.c (gdbcmd.h): Include.
2619 (core_target::info_proc_mappings): New method.
2620 (get_current_core_target): New function.
2621 (maintenance_print_core_file_backed_mappings): New function.
2622 (_initialize_corelow): Add core-file-backed-mappings to
2623 "maint print" commands.
2624
9c5ec5c2 26252020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 2626
9c5ec5c2
KB
2627 * linux-tdep.c (dump_note_entry_p): New function.
2628 (linux_dump_mapping_p_ftype): New typedef.
2629 (linux_find_memory_regions_full): Add new parameter,
2630 should_dump_mapping_p.
2631 (linux_find_memory_regions): Adjust call to
2632 linux_find_memory_regions_full.
2633 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2634 call to linux_find_memory_regions_full.
2635
db082f59
KB
26362020-07-22 Kevin Buettner <kevinb@redhat.com>
2637
2638 * corelow.c (solist.h, unordered_map): Include.
2639 (class core_target): Add field m_core_file_mappings and
2640 method build_file_mappings.
2641 (core_target::core_target): Call build_file_mappings.
2642 (core_target::~core_target): Free memory associated with
2643 m_core_file_mappings.
2644 (core_target::build_file_mappings): New method.
2645 (core_target::xfer_partial): Use m_core_file_mappings
2646 for memory transfers.
2647 * linux-tdep.c (linux_read_core_file_mappings): New
2648 function.
2649 (linux_core_info_proc_mappings): Rewrite to use
2650 linux_read_core_file_mappings.
2651 (linux_init_abi): Register linux_read_core_file_mappings.
2652
7e183d27
KB
26532020-07-22 Kevin Buettner <kevinb@redhat.com>
2654
2655 * arch-utils.c (default_read_core_file_mappings): New function.
2656 * arch-utils.c (default_read_core_file_mappings): Declare.
2657 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2658 * gdbarch.h, gdbarch.c: Regenerate.
2659
2735d421
KB
26602020-07-22 Kevin Buettner <kevinb@redhat.com>
2661
2662 PR corefiles/25631
2663 * corelow.c (core_target:xfer_partial): Revise
2664 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2665 case after first checking the stratum beneath the core
2666 target.
2667 (has_all_memory): Return true.
2668 * target.c (raw_memory_xfer_partial): Revise comment
2669 regarding use of has_all_memory.
2670
e56cb451
KB
26712020-07-22 Kevin Buettner <kevinb@redhat.com>
2672
2673 * exec.h (section_table_xfer_memory): Revise declaration,
2674 replacing section name parameter with an optional callback
2675 predicate.
2676 * exec.c (section_table_xfer_memory): Likewise.
2677 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2678 of section_table_xfer_memory.
2679
32fa152e
TT
26802020-07-22 Tom Tromey <tromey@adacore.com>
2681
2682 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2683 lookup_symbol_search_name.
2684
a67a1c41
AB
26852020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2686
2687 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2688 redundant local variable.
2689 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2690 reference, not pointer, update code accordingly.
2691
a7b4ff4f
SM
26922020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2693 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2694
2695 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2696 * jit.c (jit_breakpoint_re_set_internal): Use the
2697 `skip_jit_symbol_lookup` field.
2698
2340e834
SM
26992020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2700 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2701
2702 * jit.c (jit_read_descriptor): Define the descriptor address once,
2703 use twice.
2704 (jit_breakpoint_deleted): Move the declaration of the loop variable
2705 `iter` into the loop header.
2706 (jit_breakpoint_re_set_internal): Move the declaration of the local
2707 variable `objf_data` to the first point of definition.
2708 (jit_event_handler): Move the declaration of local variables
2709 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2710 Rename `objf` to `jited`.
2711
c1072906
SM
27122020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2713
2714 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2715 Remove.
2716 * jit.c (get_jiter_objfile_data): Update.
2717
c8474dc3
TBA
27182020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2719 Simon Marchi <simon.marchi@polymtl.ca>
2720
2721 * jit.c (struct jit_program_space_data): Remove.
2722 (jit_program_space_key): Remove.
2723 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2724 stuff.
2725 (get_jit_program_space_data): Remove.
2726 (jit_breakpoint_deleted): Iterate on all of the program space's
2727 objfiles.
2728 (jit_inferior_init): Likewise.
2729 (jit_breakpoint_re_set_internal): Likewise. Also change return
2730 type to void.
2731 (jit_breakpoint_re_set): Pass current_program_space to
2732 jit_breakpoint_re_set_internal.
2733
77208eb7
SM
27342020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2735
2736 * jit.h (struct jiter_objfile_data) <cached_code_address,
2737 jit_breakpoint>: Move to here from ...
2738 * jit.c (jit_program_space_data): ... here.
2739 (jiter_objfile_data::~jiter_objfile_data): Update.
2740 (jit_breakpoint_deleted): Update.
2741 (jit_breakpoint_re_set_internal): Update.
2742
8c1c720f
SM
27432020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2744
2745 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2746 checks.
2747 (jit_read_descriptor): Remove NULL check.
2748 (jit_event_handler): Add an assertion.
2749
0e74a041
SM
27502020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2751
2752 * jit.h (struct jit_objfile_data): Split into...
2753 (struct jiter_objfile_data): ... this ...
2754 (struct jited_objfile_data): ... and this.
2755 * objfiles.h (struct objfile) <jit_data>: Remove.
2756 <jiter_data, jited_data>: New fields.
2757 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2758 (jiter_objfile_data::~jiter_objfile_data): ... this.
2759 (get_jit_objfile_data): Rename to ...
2760 (get_jiter_objfile_data): ... this.
2761 (add_objfile_entry): Update.
2762 (jit_read_descriptor): Use get_jiter_objfile_data.
2763 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2764 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2765 (jit_inferior_exit_hook): Use objfile's jited_data field.
2766
238b5c9f
SM
27672020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2768
2769 * jit.h: Forward-declare `struct minimal_symbol`.
2770 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2771 constructor, destructor, and an objfile* field.
2772 * jit.c (jit_objfile_data): Remove.
2773 (struct jit_objfile_data): Migrate from here to jit.h.
2774 (jit_objfile_data::~jit_objfile_data): New destructor
2775 implementation with code moved from free_objfile_data.
2776 (free_objfile_data): Delete.
2777 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2778 (jit_find_objf_with_entry_addr): Ditto.
2779 (jit_inferior_exit_hook): Ditto.
2780 (_initialize_jit): Remove the call to
2781 register_objfile_data_with_cleanup.
2782 * objfiles.h (struct objfile) <jit_data>: New field.
2783
fe053b9e
TBA
27842020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2785
2786 * jit.h: Forward-declare `struct objfile`.
2787 (jit_event_handler): Add a second parameter, the JITer objfile.
2788 * jit.c (jit_read_descriptor): Change the signature to take the
2789 JITer objfile as an argument instead of the jit_program_space_data.
2790 (jit_inferior_init): Update the call to jit_read_descriptor.
2791 (jit_event_handler): Use the new JITer objfile argument when calling
2792 jit_read_descriptor.
2793 * breakpoint.c (handle_jit_event): Update the call to
2794 jit_event_handler to pass the JITer objfile.
2795
4cec0c66
JB
27962020-07-21 John Baldwin <jhb@FreeBSD.org>
2797
2798 * gdbarch.c: Regenerate.
2799 * gdbarch.h: Regenerate.
2800 * gdbarch.sh (handle_segmentation_fault): Remove method.
2801 * infrun.c (handle_segmentation_fault): Remove.
2802 (print_signal_received_reason): Remove call to
2803 handle_segmentation_fault.
2804
0e42f66a
JB
28052020-07-21 John Baldwin <jhb@FreeBSD.org>
2806
2807 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2808 Rename to sparc64_linux_report_signal_info and add siggnal
2809 argument.
2810 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2811 instead of sparc64_linux_handle_segmentation_fault.
2812
77bdfeb2
JB
28132020-07-21 John Baldwin <jhb@FreeBSD.org>
2814
2815 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2816 i386_linux_report_signal_info instead of
2817 i386_linux_handle_segmentation_fault.
2818 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2819 to i386_linux_report_signal_info and add siggnal argument.
2820 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2821 of i386_linux_handle_segmentation_fault.
2822 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2823 to i386_linux_report_signal_info and add siggnal argument.
2824
ad97bfc5
JB
28252020-07-21 John Baldwin <jhb@FreeBSD.org>
2826
2827 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2828 hook if present.
2829
272bb05c
JB
28302020-07-21 John Baldwin <jhb@FreeBSD.org>
2831
2832 * gdbarch.c: Regenerate.
2833 * gdbarch.h: Regenerate.
2834 * gdbarch.sh (report_signal_info): New method.
2835 * infrun.c (print_signal_received_reason): Invoke gdbarch
2836 report_signal_info hook if present.
2837
baf8791e
AB
28382020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2839
2840 * python/py-registers.c : Add 'unordered_map' include.
2841 (gdbpy_new_reggroup): Renamed to...
2842 (gdbpy_get_reggroup): ...this. Update to only create register
2843 group descriptors when needed.
2844 (gdbpy_reggroup_iter_next): Update.
2845
f7306dac
AB
28462020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2847
2848 * python/py-registers.c (gdbpy_register_object_data): New static
2849 global.
2850 (gdbpy_register_object_data_init): New function.
2851 (gdbpy_new_register_descriptor): Renamed to...
2852 (gdbpy_get_register_descriptor): ...this, and update to reuse
2853 existing register descriptors where possible.
2854 (gdbpy_register_descriptor_iter_next): Update.
2855 (gdbpy_initialize_registers): Register new gdbarch data.
2856
05c309a8
SM
28572020-07-21 Simon Marchi <simon.marchi@efficios.com>
2858
2859 * linux-nat.c (stopped_pids): Make static.
2860
d1fd641e
SM
28612020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2862
2863 PR ada/26235
2864 * gdbtypes.c (ada_discrete_type_low_bound,
2865 ada_discrete_type_high_bound): Handle undefined bounds.
2866
1de14d77
KR
28672020-07-21 Kamil Rytarowski <n54@gmx.com>
2868
2869 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2870 declaration.
2871 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2872 function.
2873
ed810cc7
JB
28742020-07-20 John Baldwin <jhb@FreeBSD.org>
2875
2876 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2877 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2878 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2879 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2880 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2881 method.
2882
ae5369e7
LC
28832020-07-20 Ludovic Courtès <ludo@gnu.org>
2884
2885 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2886 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2887 which are deprecated in Guile 3.0.
2888 * configure.ac (try_guile_versions): Add "guile-3.0".
2889 * configure (try_guile_versions): Regenerate.
2890 * NEWS: Update entry.
2891
68cf161c
LC
28922020-07-20 Ludovic Courtès <ludo@gnu.org>
2893 Doug Evans <dje@google.com>
2894
2895 PR gdb/21104
2896 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2897 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2898 USING_GUILE_BEFORE_2_2.
2899 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2900 Change type to 'scm_t_port_type *'.
2901 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2902 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2903 parameter and honor it. Update callers.
2904 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2905 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2906 functions.
2907 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2908 USING_GUILE_BEFORE_2_2.
2909 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2910 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2911 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2912 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2913 and 'SCM_PORT_TYPE'.
2914 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2915 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2916 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2917 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2918 [!USING_GUILE_BEFORE_2_2]: New functions.
2919 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2920 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2921 'gdbscm_memory_port_read'.
2922 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2923 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2924 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2925 function.
2926 (ioscm_init_memory_port): Remove.
2927 (ioscm_init_memory_port_stream): New function
2928 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2929 function.
2930 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2931 Return scm_from_uint (0).
2932 (gdbscm_set_memory_port_read_buffer_size_x)
2933 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2934 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2935 Return scm_from_uint (0).
2936 (gdbscm_set_memory_port_write_buffer_size_x)
2937 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2938 * configure.ac (try_guile_versions): Add "guile-2.2".
2939 * configure: Regenerate.
2940 * NEWS: Add entry.
2941
aee91db3
TT
29422020-07-18 Tom Tromey <tom@tromey.com>
2943
2944 * linux-nat.c (linux_multi_process): Remove.
2945 (linux_nat_target::supports_multi_process): Return true.
2946
0e267416
AB
29472020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2948
2949 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2950 (riscv_lookup_target_description): Return pointer out of
2951 unique_ptr.
2952 * target-descriptions.c (allocate_target_description): Add
2953 comment.
2954 (target_desc_deleter::operator()): Likewise.
2955 * target-descriptions.h (struct target_desc_deleter): Moved to
2956 gdbsupport/tdesc.h.
2957 (target_desc_up): Likewise.
2958
f80c8ec4
TT
29592020-07-17 Tom Tromey <tromey@adacore.com>
2960
2961 * linux-nat.c (linux_nat_target::supports_non_stop)
2962 (linux_nat_target::always_non_stop_p): Use "true".
2963 (linux_nat_target::supports_disable_randomization): Use "true" and
2964 "false".
2965
d0ce17d8
CT
29662020-07-16 Caroline Tice <cmtice@google.com>
2967
2968 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2969 (RNGLIST_HEADER_SIZE64): New constant definition.
2970 (struct dwop_section_names): Add rnglists_dwo.
2971 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2972 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2973 (struct dwo_sections): Add rnglists field.
2974 (read_attribut_reprocess): Add tag parameter.
2975 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2976 (cu_debug_rnglists_section): New function (decl & definition).
2977 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2978 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2979 die whose range is being checked; get rnglist section from
2980 cu_debug_rnglists_section, to get from either objfile or dwo file as
2981 appropriate. Add cases for DW_RLE_base_addressx,
2982 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2983 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2984 test inside if-condition and updating complaint message.
2985 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2986 dwarf2_rnglists_process.
2987 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2988 dwarf2_ranges_process.
2989 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2990 need_ranges_base and update comment appropriately. Also pass die tag
2991 to dwarf2_ranges_read.
2992 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2993 need_ranges_base and update comment appropriately. Also pass die tag
2994 to dwarf2_ranges_process.
2995 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2996 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2997 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2998 need_ranges_base and update comment appropriately. Also pass die tag
2999 to read_attribute_reprocess and dwarf2_ranges_read.
3000 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3001 and update function comment appropriately.
3002 (read_loclist_index): Call read_loclists_rnglists_header instead of
3003 read_loclist_header.
3004 (read_rnglist_index): New function.
3005 (read_attribute_reprocess): Add tag parameter. Add code for
3006 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3007 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3008
3dcc261c
AB
30092020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3010
3011 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3012 being resolved.
3013
ccb9eba6
AB
30142020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3015
3016 * arch-utils.c (show_architecture): Update formatting of messages.
3017
cf88be68
SM
30182020-07-12 Simon Marchi <simon.marchi@efficios.com>
3019
3020 * gdbtypes.h (struct type) <bounds>: Handle array and string
3021 types.
3022 * ada-lang.c (assign_aggregate): Use type::bounds on
3023 array/string type.
3024 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3025 * c-varobj.c (c_number_of_children): Likewise.
3026 (c_describe_child): Likewise.
3027 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3028 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3029 (f_type_print_base): Likewise.
3030 * f-valprint.c (f77_array_offset_tbl): Likewise.
3031 (f77_get_upperbound): Likewise.
3032 (f77_print_array_1): Likewise.
3033 * guile/scm-type.c (gdbscm_type_range): Likewise.
3034 * m2-typeprint.c (m2_array): Likewise.
3035 (m2_is_long_set_of_type): Likewise.
3036 * m2-valprint.c (get_long_set_bounds): Likewise.
3037 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3038 * python/py-type.c (typy_range): Likewise.
3039 * rust-lang.c (rust_internal_print_type): Likewise.
3040 * type-stack.c (type_stack::follow_types): Likewise.
3041 * valarith.c (value_subscripted_rvalue): Likewise.
3042 * valops.c (value_cast): Likewise.
3043
509971ae
SM
30442020-07-12 Simon Marchi <simon.marchi@efficios.com>
3045
3046 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3047 callers to use the equivalent accessor methods.
3048
107406b7
SM
30492020-07-12 Simon Marchi <simon.marchi@efficios.com>
3050
3051 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3052 (struct type) <bit_stride>: New method.
3053 (TYPE_BIT_STRIDE): Remove.
3054 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3055
bb789949
SM
30562020-07-12 Simon Marchi <simon.marchi@efficios.com>
3057
3058 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3059 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3060 callers to use the equivalent accessor methods instead.
3061
39498edb
SM
30622020-07-12 Simon Marchi <simon.marchi@efficios.com>
3063
3064 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3065 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3066 callers to use the equivalent accessor methods instead.
3067
3b606f38
SM
30682020-07-12 Simon Marchi <simon.marchi@efficios.com>
3069
3070 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3071 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3072 to use dynamic_prop::kind.
3073
064d9cb9
SM
30742020-07-12 Simon Marchi <simon.marchi@efficios.com>
3075
3076 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3077 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3078 to get the bound property's kind and check against
3079 PROP_UNDEFINED.
3080
5537ddd0
SM
30812020-07-12 Simon Marchi <simon.marchi@efficios.com>
3082
3083 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3084 all callers to use type::range_bounds followed by
3085 dynamic_prop::{low,high}.
3086
8c2e4e06
SM
30872020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3088
3089 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3090 const_val, set_const_val, baton, set_locexpr, set_loclist,
3091 set_addr_offset, variant_parts, set_variant_parts,
3092 original_type, set_original_type>: New methods.
3093 <kind>: Rename to...
3094 <m_kind>: ... this. Update all users to use the new methods
3095 instead.
3096 <data>: Rename to...
3097 <m_data>: ... this. Update all users to use the new methods
3098 instead.
3099
7c6f2712
SM
31002020-07-12 Simon Marchi <simon.marchi@efficios.com>
3101
3102 * gdbtypes.c (get_discrete_bounds): Return failure if
3103 the range type's bounds are not both defined and constant
3104 values.
3105 (get_array_bounds): Update comment. Remove undefined bound check.
3106
599088e3
SM
31072020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3108
3109 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3110 the type::bounds method directly.
3111
c4dfcb36
SM
31122020-07-12 Simon Marchi <simon.marchi@efficios.com>
3113
3114 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3115 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3116 are used to set the range type's bounds to use set_bounds.
3117
0a278aa7
PW
31182020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3119
3120 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3121
cce20f10
PA
31222020-07-10 Pedro Alves <pedro@palves.net>
3123
3124 * gdbthread.h (inferior_ref): Define.
3125 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3126 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3127 * thread.c
3128 (scoped_restore_current_thread::restore):
3129 Adjust to gdb::ref_ptr.
3130 (scoped_restore_current_thread::~scoped_restore_current_thread):
3131 Remove manual decref handling.
3132 (scoped_restore_current_thread::scoped_restore_current_thread):
3133 Adjust to use
3134 inferior_ref::new_reference/thread_info_ref::new_reference.
3135 Incref the thread before calling get_frame_id instead of after.
3136 Let TARGET_CLOSE_ERROR propagate.
3137
6d7aa592
PA
31382020-07-10 Pedro Alves <pedro@palves.net>
3139
3140 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3141 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3142 NOT_AVAILABLE_ERROR.
3143 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3144 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3145
b3e3a4c1
SM
31462020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3147 Pedro Alves <pedro@palves.net>
3148
3149 PR gdb/26199
3150 * infrun.c (threads_are_resumed_pending_p): Delete.
3151 (do_target_wait): Remove threads_are_executing and
3152 threads_are_resumed_pending_p checks from the inferior_matches
3153 lambda. Update comments.
3154
d6cc5d98
PA
31552020-07-10 Pedro Alves <pedro@palves.net>
3156
3157 PR gdb/26199
3158 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3159 executing threads.
3160
7d3badc6
PA
31612020-07-10 Pedro Alves <pedro@palves.net>
3162
3163 PR gdb/26199
3164 * infrun.c (handle_no_resumed): Handle multiple targets.
3165
42bd97a6
PA
31662020-07-10 Pedro Alves <pedro@palves.net>
3167
3168 PR gdb/26199
3169 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3170 target_is_async_p.
3171
43667cc6
PA
31722020-07-10 Pedro Alves <pedro@palves.net>
3173
3174 PR gdb/26199
3175 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3176 threads, not all threads.
3177
96118d11
PA
31782020-07-10 Pedro Alves <pedro@palves.net>
3179
3180 PR gdb/26199
3181 * remote.c (remote_target::open_1): Pass remote target pointer as
3182 data to create_async_event_handler.
3183 (remote_async_inferior_event_handler): Mark async event handler
3184 before returning if the remote target still has either pending
3185 events or unacknowledged notifications.
3186
54904d81
JB
31872020-07-10 John Baldwin <jhb@FreeBSD.org>
3188
3189 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3190 declaration.
3191 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3192 function.
3193
f37e5866
JB
31942020-07-09 John Baldwin <jhb@FreeBSD.org>
3195
3196 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3197 inferior_ptid.
3198
fc238d4a
JB
31992020-07-09 John Baldwin <jhb@FreeBSD.org>
3200
3201 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3202 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3203 AT_FREEBSD_PS_STRINGS.
3204
6e2469ff
HD
32052020-07-08 Hannes Domani <ssbssa@yahoo.de>
3206
3207 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3208 of debugfile path on Windows.
3209
d1076c41
JB
32102020-07-08 John Baldwin <jhb@FreeBSD.org>
3211
3212 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3213 argument to 'data'.
3214
15f3b077
TT
32152020-07-08 Tom Tromey <tromey@adacore.com>
3216
3217 * ada-lang.c (ada_exception_message_1): Use read_memory.
3218
9fc501fd
AB
32192020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3220
3221 PR python/22748
3222 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3223 special handling for inline frames.
3224 * findvar.c (value_of_register_lazy): Skip inline frames when
3225 creating lazy register values.
3226 * frame.c (frame_id_computed_p): Delete definition.
3227 * frame.h (frame_id_computed_p): Delete declaration.
3228
64cb3757
AB
32292020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3230
3231 * NEWS: Mention additions to Python API.
3232 * python/py-arch.c (archpy_register_groups): New function.
3233 (arch_object_methods): Add 'register_groups' method.
3234 * python/py-registers.c (reggroup_iterator_object): New struct.
3235 (reggroup_object): New struct.
3236 (gdbpy_new_reggroup): New function.
3237 (gdbpy_reggroup_to_string): New function.
3238 (gdbpy_reggroup_name): New function.
3239 (gdbpy_reggroup_iter): New function.
3240 (gdbpy_reggroup_iter_next): New function.
3241 (gdbpy_new_reggroup_iterator): New function
3242 (gdbpy_initialize_registers): Register new types.
3243 (reggroup_iterator_object_type): Define new Python type.
3244 (gdbpy_reggroup_getset): New static global.
3245 (reggroup_object_type): Define new Python type.
3246 * python/python-internal.h
3247
0f767f94
AB
32482020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3249
3250 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3251 * python/py-arch.c (archpy_registers): New function.
3252 (arch_object_methods): Add 'registers' method.
3253 * python/py-registers.c: New file.
3254 * python/python-internal.h
3255 (gdbpy_new_register_descriptor_iterator): Declare.
3256 (gdbpy_initialize_registers): Declare.
3257 * python/python.c (do_start_initialization): Call
3258 gdbpy_initialize_registers.
3259 * NEWS: Mention additions to the Python API.
3260
87dbc774
AB
32612020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3262
3263 * NEWS: Mention new Python API method.
3264 * python/py-unwind.c (pending_framepy_architecture): New function.
3265 (pending_frame_object_methods): Add architecture method.
3266
3bc98c0c
AB
32672020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3268
3269 * gdbarch.c: Regenerate.
3270 * gdbarch.h: Regenerate.
3271 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3272 (gdbarch_data): Use internal_error for the case where
3273 deprecated_set_gdbarch_data was originally needed.
3274 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3275 and use passed in obstack.
3276 (libunwind_frame_set_descr): Should no longer get back NULL from
3277 gdbarch_data.
3278 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3279 type.
3280 * user-regs.c (user_regs_init): Update parameters, and use passed
3281 in obstack.
3282 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3283 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3284
d8cc8af6
TV
32852020-07-06 Tom de Vries <tdevries@suse.de>
3286
3287 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3288 End-Of-Sequence in lte_is_less_than.
3289 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3290 "gdb: Don't reorder line table entries too much when sorting".
3291
947f7597
TV
32922020-07-06 Tom de Vries <tdevries@suse.de>
3293
3294 PR tui/26205
3295 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3296
1e7c1b22
TV
32972020-07-05 Tom de Vries <tdevries@suse.de>
3298
3299 PR build/26187
3300 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3301 std::uncaught_exceptions instead of deprecated
3302 std::uncaught_exception.
3303
a36158ec
SM
33042020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3305
3306 * macroexp.h (macro_stringify): Return
3307 gdb::unique_xmalloc_ptr<char>.
3308 * macroexp.c (macro_stringify): Likewise.
3309 * macrotab.c (fixup_definition): Update.
3310
14d960c8
SM
33112020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3312
3313 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3314 (lex_one_token): Update.
3315 * macroexp.c (struct macro_buffer) <release>: Return
3316 gdb::unique_xmalloc_ptr<char>.
3317 (macro_stringify): Update.
3318 (macro_expand): Update.
3319 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3320 * macroexp.h (macro_expand_next): Likewise.
3321
211d5b1c
SM
33222020-07-02 Simon Marchi <simon.marchi@efficios.com>
3323
3324 * macroexp.h (macro_lookup_ftype): Remove.
3325 (macro_expand, macro_expand_once, macro_expand_next): Remove
3326 lookup function parameters, add scope parameter.
3327 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3328 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3329 * macroscope.h (standard_macro_lookup): Change parameter type
3330 to macro_scope.
3331 * macroscope.c (standard_macro_lookup): Likewise.
3332 * c-exp.y (lex_one_token): Update.
3333 * macrocmd.c (macro_expand_command): Likewise.
3334 (macro_expand_once_command): Likewise.
3335
b1a35af2
SM
33362020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3337
3338 * inf-loop.c (inferior_event_handler): Remove client_data param.
3339 * inf-loop.h (inferior_event_handler): Likewise.
3340 * infcmd.c (step_1): Adjust.
3341 * infrun.c (proceed): Adjust.
3342 (fetch_inferior_event): Remove client_data param.
3343 (infrun_async_inferior_event_handler): Adjust.
3344 * infrun.h (fetch_inferior_event): Remove `void *` param.
3345 * linux-nat.c (handle_target_event): Adjust.
3346 * record-btrace.c (record_btrace_handle_async_inferior_event):
3347 Adjust.
3348 * record-full.c (record_full_async_inferior_event_handler):
3349 Adjust.
3350 * remote.c (remote_async_inferior_event_handler): Adjust.
3351
1cdf9e33
TT
33522020-07-01 Tom Tromey <tom@tromey.com>
3353
3354 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3355 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3356
32c1e210
TT
33572020-07-01 Tom Tromey <tom@tromey.com>
3358
3359 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3360 tui_gen_win_info.
3361 (tui_win_info::make_window): Merge with
3362 tui_gen_win_info::make_window.
3363 (tui_win_info::make_visible): Move from tui_gen_win_info.
3364 * tui/tui-win.c (tui_win_info::max_width): Move from
3365 tui_gen_win_info.
3366 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3367 type.
3368 <window_factory>: Likewise.
3369 * tui/tui-layout.c (tui_win_info::resize): Move from
3370 tui_gen_win_info.
3371 (make_standard_window): Change return type.
3372 (get_locator_window, tui_get_window_by_name): Likewise.
3373 (tui_layout_window::apply): Remove a cast.
3374 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3375 (struct tui_win_info): Merge with tui_gen_win_info.
3376 (struct tui_gen_win_info): Remove.
3377
a30cb6da
TT
33782020-07-01 Tom Tromey <tom@tromey.com>
3379
3380 * tui/tui-stack.h (struct tui_locator_window): Derive from
3381 tui_win_info.
3382 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3383 <can_box>: New method.
3384
1eb2161f
TT
33852020-07-01 Tom Tromey <tom@tromey.com>
3386
3387 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3388
7134f2eb
TT
33892020-07-01 Tom Tromey <tom@tromey.com>
3390
3391 * tui/tui-regs.c (tui_data_window::display_registers_from)
3392 (tui_data_window::display_registers_from)
3393 (tui_data_window::first_data_item_displayed)
3394 (tui_data_window::delete_data_content_windows): Update.
3395 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3396 Remove.
3397 (tui_data_window::check_register_values): Update.
3398 (tui_data_item_window::rerender): Add parameters. Update.
3399 (tui_data_item_window::refresh_window): Remove.
3400 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3401 virtual.
3402 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3403 tui_gen_win_info.
3404 <refresh_window, max_height, min_height>: Remove.
3405 <rerender>: Add parameters.
3406 <x, y, visible>: New members.
3407 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3408 <m_item_width>: New member.
3409
22b7b041
TT
34102020-07-01 Tom Tromey <tom@tromey.com>
3411
3412 * tui/tui-regs.c (tui_data_window::show_register_group)
3413 (tui_data_window::check_register_values): Update.
3414 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3415 from item_no.
3416
c9753adb
TT
34172020-07-01 Tom Tromey <tom@tromey.com>
3418
3419 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3420 useless "if".
3421
9ab26b4a
TT
34222020-07-01 Tom Tromey <tom@tromey.com>
3423
3424 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3425 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3426
e555083f
TT
34272020-07-01 Tom Tromey <tom@tromey.com>
3428
3429 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3430 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3431 (struct tui_line_or_address): Move from tui-data.h.
3432 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3433 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3434 (tui_cmd_window, tui_source_window_base, tui_source_window)
3435 (tui_disasm_window): Don't declare.
3436 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3437 to tui-winsource.h.
3438 (SINGLE_KEY): Move to tui-stack.c.
3439
7a02bab7
TT
34402020-07-01 Tom Tromey <tom@tromey.com>
3441
3442 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3443 std::string.
3444 * tui/tui-regs.c (class tab_expansion_file): New.
3445 (tab_expansion_file::write): New method.
3446 (tui_register_format): Change return type. Use
3447 tab_expansion_file.
3448 (tui_get_register, tui_data_window::display_registers_from)
3449 (tui_data_item_window::rerender): Update.
3450 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3451 * tui/tui-io.c (tui_expand_tabs): Remove.
3452
ea68593b
TT
34532020-07-01 Tom Tromey <tom@tromey.com>
3454
3455 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3456
a8caed5d
FS
34572020-07-01 Fangrui Song <maskray@google.com>
3458
3459 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3460
9cdf9820
AKS
34612020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3462
3463 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3464 forms for DW_AT_associated and DW_AT_allocated attributes,
3465 which is already checked in function attr_to_dynamic_prop.
3466
a1520ad8
TT
34672020-06-30 Tom Tromey <tromey@adacore.com>
3468
3469 * dwarf2/read.c (quirk_rust_enum): Correctly call
3470 alloc_rust_variant for default-less enum.
3471
5ac58899
TT
34722020-06-30 Tom Tromey <tromey@adacore.com>
3473
3474 PR build/26183:
3475 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3476 gdb::to_string.
3477
19b187a9
SM
34782020-06-29 Simon Marchi <simon.marchi@efficios.com>
3479
3480 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3481 * gdbarch.h: Re-generate.
3482
cd4c4c07
TT
34832020-06-28 Tom Tromey <tom@tromey.com>
3484
3485 * command.h (cmd_types): Remove.
3486 (cmd_type): Don't declare.
3487 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3488 typedef.
3489 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3490 * cli/cli-decode.c (cmd_type): Remove.
3491
05779d57
PA
34922020-06-27 Pedro Alves <palves@redhat.com>
3493
3494 * fork-child.c (prefork_hook): Adjust.
3495 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3496 Delete.
3497 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3498 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3499 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3500 Remove declarations.
3501 (struct inferior) <set_tty, tty>: New methods.
3502 (struct inferior) <terminal>: Rename to ...
3503 (struct inferior) <m_terminal>: ... this and make private.
3504 * main.c (captured_main_1): Adjust.
3505 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3506 (mi_cmd_inferior_tty_show): Adjust.
3507 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3508 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3509
1776e3e5
NA
35102020-06-26 Nick Alcock <nick.alcock@oracle.com>
3511
3512 * configure.ac: Add --enable-libctf: handle --disable-static
3513 properly.
3514 * acinclude.m4: sinclude ../config/enable.m4.
3515 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3516 (LIBCTF): Substitute in.
3517 (CTF_DEPS): New, likewise.
3518 (CLIBS): libctf needs symbols from libbfd: move earlier.
3519 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3520 flags.
3521 * ctfread.c: Surround in ENABLE_LIBCTF.
3522 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3523 * configure: Regenerate.
3524 * config.in: Likewise.
3525
58373b80
SM
35262020-06-25 Simon Marchi <simon.marchi@efficios.com>
3527
3528 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3529
277474ee
SM
35302020-06-25 Simon Marchi <simon.marchi@efficios.com>
3531
3532 * inferior.h (struct inferior) <terminal>: Change type to
3533 gdb::unique_xmalloc_ptr<char>.
3534 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3535 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3536 field, adjust to unique pointer.
3537 (get_inferior_io_terminal): Adjust to unique pointer.
3538
6d74da72
AB
35392020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3540
3541 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3542 registers, not just the known core set of registers.
3543
2e52d038
AB
35442020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3545
3546 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3547 fflags, frm, and fcsr registers.
3548 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3549 restore groups.
3550 (riscv_tdesc_unknown_reg): New function.
3551 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3552 tdesc_use_registers.
3553 * riscv-tdep.h (struct gdbarch_tdep): Add
3554 unknown_csrs_first_regnum, unknown_csrs_count,
3555 duplicate_fflags_regnum, duplicate_frm_regnum, and
3556 duplicate_fcsr_regnum fields.
3557
be64fd07
AB
35582020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3559
3560 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3561 callback, use the callback (when not null) to help number unknown
3562 registers.
3563 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3564 (tdesc_use_registers): Add extra parameter to declaration.
3565
3b9fce96
AB
35662020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3567
3568 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3569 in the file.
3570 (class riscv_pending_register_alias): Likewise.
3571 (riscv_register_feature::register_info): Change 'required_p' field
3572 to 'required', and change its type. Add 'check' member function.
3573 (riscv_register_feature::register_info::check): Define new member
3574 function.
3575 (riscv_xreg_feature): Change initialisation of 'required' field.
3576 (riscv_freg_feature): Likewise.
3577 (riscv_virtual_feature): Likewise.
3578 (riscv_csr_feature): Likewise.
3579 (riscv_check_tdesc_feature): Take extra parameter, the csr
3580 tdesc_feature, rewrite the function to use the new
3581 riscv_register_feature::register_info::check function.
3582 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3583
865bad26
AB
35842020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3585
3586 * features/Makefile: Remove all references to the deleted files
3587 below.
3588 * features/riscv/32bit-csr.c: Deleted.
3589 * features/riscv/32bit-csr.xml: Deleted.
3590 * features/riscv/64bit-csr.c: Deleted.
3591 * features/riscv/64bit-csr.xml: Deleted.
3592 * features/riscv/rebuild-csr-xml.sh: Deleted.
3593
ed69cbc8
AB
35942020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3595
3596 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3597 whitespace error for declaration of names member variable.
3598 (struct riscv_register_feature): Add new prefer_first_name member
3599 variable, and fix whitespace error in declaration of registers.
3600 (riscv_xreg_feature): Initialize prefer_first_name field.
3601 (riscv_freg_feature): Likewise.
3602 (riscv_virtual_feature): Likewise.
3603 (riscv_csr_feature): Likewise.
3604 (riscv_register_name): Expand on comments. Remove register name
3605 modifications for CSR and virtual registers.
3606
4445e8f5
AB
36072020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3608
3609 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3610 errors.
3611
767a879e
AB
36122020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3613
3614 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3615 riscv-opc.h.
3616 (class riscv_pending_register_alias): New class.
3617 (riscv_check_tdesc_feature): Take vector of pending aliases and
3618 populate it as appropriate.
3619 (riscv_setup_register_aliases): Delete.
3620 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3621 to riscv_check_tdesc_feature in all cases. Use the vector to
3622 create the register aliases.
3623
bb6e55f3
RO
36242020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3625
3626 * sol2-tdep.c (sol2_static_transform_name): Remove.
3627 (sol2_init_abi): Don't register it.
3628 * gdbarch.sh (static_transform_name): Remove.
3629 * gdbarch.c, gdbarch.h: Regenerate.
3630
3631 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3632 gdbarch_static_transform_name.
3633 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3634 * stabsread.c (define_symbol) <'X'>: Remove.
3635 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3636 handling.
3637 <'V'>: Likewise.
3638 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3639 <'S'>: Remove call to gdbarch_static_transform_name.
3640
c6d36836
RO
36412020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3642
3643 * procfs.c (procfs_pre_trace): New function.
3644 (procfs_target::create_inferior): Pass it to fork_inferior.
3645
a7e6196b
RO
36462020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3647
3648 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3649 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3650 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3651 sol2-tdep.o, sparc-sol2-tdep.o.
3652 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3653 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3654 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3655 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3656
d412e696
RO
36572020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3658
3659 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3660 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3661 Call sol2_init_abi.
3662 Remove calls to set_gdbarch_skip_solib_resolver,
3663 set_gdbarch_core_pid_to_str.
3664 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3665 (i386_sol2_static_transform_name): Remove.
3666 (i386_sol2_init_abi): Call sol2_init_abi.
3667 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3668 set_gdbarch_static_transform_name,
3669 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3670 Use sol2_sigtramp_p.
3671 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3672 (sol2_sigtramp_p): New function.
3673 (sol2_static_transform_name): New function.
3674 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3675 (sol2_init_abi): New function.
3676 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3677 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3678 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3679 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3680 (sparc_sol2_static_transform_name): Remove.
3681 (sparc32_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,
3685 set_gdbarch_core_pid_to_str.
3686 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3687 (sparc_sol2_static_transform_name): Remove
3688 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3689 call sol2_sigtramp_p.
3690 (sparc64_sol2_init_abi): Call sol2_init_abi.
3691 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3692 set_gdbarch_static_transform_name,
3693 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3694
a8654e7d
PW
36952020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3696
3697 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3698 * exec.c (validate_exec_file): If from_tty, set both
3699 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3700 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3701 and from_tty, unconditionally ask a confirmation.
3702
caa7fd04
AB
37032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3704
3705 * target-descriptions.c (tdesc_architecture_name): Protect against
3706 NULL pointer dereference.
3707 (maint_print_xml_tdesc_cmd): New function.
3708 (_initialize_target_descriptions): Register new 'maint print
3709 xml-tdesc' command and give it the filename completer.
3710 * NEWS: Mention new 'maint print xml-tdesc' command.
3711
fbf42f4e
AB
37122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3713
3714 * target-descriptions.c (class tdesc_compatible_info): New class.
3715 (struct target_desc): Change type of compatible vector.
3716 (tdesc_compatible_p): Update for change in type of
3717 target_desc::compatible.
3718 (tdesc_compatible_info_list): New function.
3719 (tdesc_compatible_info_arch_name): New function.
3720 (tdesc_add_compatible): Update for change in type of
3721 target_desc::compatible.
3722 (print_c_tdesc::visit_pre): Likewise.
3723
20821f4e
AB
37242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3725
3726 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3727 whitespace to underscore.
3728 (maint_print_c_tdesc_cmd): Use fake filename for target
3729 descriptions that came from the target.
3730 (_initialize_target_descriptions): Add filename command completion
3731 for 'maint print c-tdesc'.
3732
1fb5ee62
SM
37332020-06-23 Simon Marchi <simon.marchi@efficios.com>
3734
3735 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3736 lines.
3737
fc3ecb3e
SM
37382020-06-23 Simon Marchi <simon.marchi@efficios.com>
3739
3740 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3741 lines.
3742 (dwarf2_find_location_expression): Likewise.
3743 (call_site_parameter_matches): Likewise.
3744 (dwarf2_compile_expr_to_ax): Likewise.
3745 (disassemble_dwarf_expression): Likewise.
3746 (loclist_describe_location): Likewise.
3747
236ef034
PA
37482020-06-23 Pedro Alves <palves@redhat.com>
3749
3750 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3751 progspace-and-thread.h. Include scoped-mock-context.h instead.
3752 (register_to_value_test): Use scoped_mock_context.
3753 * regcache.c: Include "scoped-mock-context.h".
3754 (cooked_read_test): Don't error out if a target is already pushed.
3755 Use scoped_mock_context. Adjust.
3756 * scoped-mock-context.h: New file.
3757
39e7ecca
AB
37582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3759
3760 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3761 initializer.
3762 (ada_language::is_string_type_p): New member function.
3763 * c-lang.c (c_language_data): Delete la_is_string_type_p
3764 initializer.
3765 (cplus_language_data): Likewise.
3766 (asm_language_data): Likewise.
3767 (minimal_language_data): Likewise.
3768 * d-lang.c (d_language_data): Likewise.
3769 * f-lang.c (f_is_string_type_p): Delete function, implementation
3770 moved to f_language::is_string_type_p.
3771 (f_language_data): Delete la_is_string_type_p initializer.
3772 (f_language::is_string_type_p): New member function,
3773 implementation from f_is_string_type_p.
3774 * go-lang.c (go_is_string_type_p): Delete function, implementation
3775 moved to go_language::is_string_type_p.
3776 (go_language_data): Delete la_is_string_type_p initializer.
3777 (go_language::is_string_type_p): New member function,
3778 implementation from go_is_string_type_p.
3779 * language.c (language_defn::is_string_type_p): Define new member
3780 function.
3781 (default_is_string_type_p): Make static, add comment copied from
3782 header file.
3783 (unknown_language_data): Delete la_is_string_type_p initializer.
3784 (unknown_language::is_string_type_p): New member function.
3785 (auto_language_data): Delete la_is_string_type_p initializer.
3786 (auto_language::is_string_type_p): New member function.
3787 * language.h (language_data): Delete la_is_string_type_p field.
3788 (language_defn::is_string_type_p): Declare new function.
3789 (default_is_string_type_p): Delete desclaration, move comment to
3790 definition.
3791 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3792 moved to m2_language::is_string_type_p.
3793 (m2_language_data): Delete la_is_string_type_p initializer.
3794 (m2_language::is_string_type_p): New member function,
3795 implementation from m2_is_string_type_p.
3796 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3797 initializer.
3798 * opencl-lang.c (opencl_language_data): Likewise.
3799 * p-lang.c (pascal_is_string_type_p): Delete function,
3800 implementation moved to pascal_language::is_string_type_p.
3801 (pascal_language_data): Delete la_is_string_type_p initializer.
3802 (pascal_language::is_string_type_p): New member function,
3803 implementation from pascal_is_string_type_p.
3804 * rust-lang.c (rust_is_string_type_p): Delete function,
3805 implementation moved to rust_language::is_string_type_p.
3806 (rust_language_data): Delete la_is_string_type_p initializer.
3807 (rust_language::is_string_type_p): New member function,
3808 implementation from rust_is_string_type_p.
3809 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3810 is_string_type_p.
3811
4ffc13fb
AB
38122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3813
3814 * ada-lang.c (ada_language_data): Delete la_print_typedef
3815 initializer.
3816 (ada_language::print_typedef): New member function.
3817 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3818 (cplus_language_data): Likewise.
3819 (asm_language_data): Likewise.
3820 (minimal_language_data): Likewise.
3821 * d-lang.c (d_language_data): Likewise.
3822 * f-lang.c (f_language_data): Likewise.
3823 (f_language::print_typedef): New member function.
3824 * go-lang.c (go_language_data): Delete la_print_typedef
3825 initializer.
3826 * language.c (language_defn::print_typedef): Define member
3827 function.
3828 (unknown_language_data): Delete la_print_typedef initializer.
3829 (unknown_language::print_typedef): New member function.
3830 (auto_language_data): Delete la_print_typedef initializer.
3831 (auto_language::print_typedef): New member function.
3832 * language.h (language_data): Delete la_print_typedef field.
3833 (language_defn::print_typedef): Declare new member function.
3834 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3835 (default_print_typedef): Delete declaration.
3836 * m2-lang.c (m2_language_data): Delete la_print_typedef
3837 initializer.
3838 (m2_language::print_typedef): New member function.
3839 * objc-lang.c (objc_language_data): Delete la_print_typedef
3840 initializer.
3841 * opencl-lang.c (opencl_language_data): Likewise.
3842 * p-lang.c (pascal_language_data): Likewise.
3843 (pascal_language::print_typedef): New member function.
3844 * rust-lang.c (rust_print_typedef): Delete function,
3845 implementation moved to rust_language::print_typedef.
3846 (rust_language): Delete la_print_typedef initializer.
3847 (rust_language::print_typedef): New member function,
3848 implementation from rust_print_typedef.
3849 * typeprint.c (default_print_typedef): Delete.
3850
d711ee67
AB
38512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3852
3853 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3854 (ada_language::printstr): New member function.
3855 * c-lang.c (c_language_data): Delete la_printstr initializer.
3856 (cplus_language_data): Likewise.
3857 (asm_language_data): Likewise.
3858 (minimal_language_data): Likewise.
3859 * d-lang.c (d_language_data): Likewise.
3860 * f-lang.c (f_printstr): Rename to f_language::printstr.
3861 (f_language_data): Delete la_printstr initializer.
3862 (f_language::printstr): New member function, implementation from
3863 f_printstr.
3864 * go-lang.c (go_language_data): Delete la_printstr initializer.
3865 * language.c (language_defn::printstr): Define new member
3866 function.
3867 (unk_lang_printstr): Delete.
3868 (unknown_language_data): Delete la_printstr initializer.
3869 (unknown_language::printstr): New member function.
3870 (auto_language_data): Delete la_printstr initializer.
3871 (auto_language::printstr): New member function.
3872 * language.h (language_data): Delete la_printstr field.
3873 (language_defn::printstr): Declare new member function.
3874 (LA_PRINT_STRING): Update call to printstr.
3875 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3876 (m2_language_data): Delete la_printstr initializer.
3877 (m2_language::printstr): New member function, implementation from
3878 m2_printstr.
3879 * objc-lang.c (objc_language_data): Delete la_printstr
3880 initializer.
3881 * opencl-lang.c (opencl_language_data): Likewise.
3882 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3883 (pascal_language_data): Delete la_printstr initializer.
3884 (pascal_language::printstr): New member function, implementation
3885 from pascal_printstr.
3886 * p-lang.h (pascal_printstr): Delete declaration.
3887 * rust-lang.c (rust_printstr): Update header comment.
3888 (rust_language_data): Delete la_printstr initializer.
3889 (rust_language::printstr): New member function.
3890
52b50f2c
AB
38912020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3892
3893 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3894 (ada_language::printchar): New member function.
3895 * c-lang.c (c_language_data): Delete la_printchar initializer.
3896 (cplus_language_data): Likewise.
3897 (asm_language_data): Likewise.
3898 (minimal_language_data): Likewise.
3899 * d-lang.c (d_language_data): Likewise.
3900 * f-lang.c (f_printchar): Rename to f_language::printchar.
3901 (f_language_data): Delete la_printchar initializer.
3902 (f_language::printchar): New member function, implementation from
3903 f_printchar.
3904 * go-lang.c (go_language_data): Delete la_printchar initializer.
3905 * language.c (unk_lang_printchar): Delete.
3906 (language_defn::printchar): Define new member function.
3907 (unknown_language_data): Delete la_printchar initializer.
3908 (unknown_language::printchar): New member function.
3909 (auto_language_data): Delete la_printchar initializer.
3910 (auto_language::printchar): New member function.
3911 * language.h (language_data): Delete la_printchar field.
3912 (language_defn::printchar): Declare new member function.
3913 (LA_PRINT_CHAR): Update call to printchar.
3914 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3915 (m2_language::printchar): New member function.
3916 * objc-lang.c (objc_language_data): Delete la_printchar
3917 initializer.
3918 * opencl-lang.c (opencl_language_data): Likewise.
3919 * p-lang.c (pascal_language_data): Delete la_printchar
3920 initializer.
3921 (pascal_language::printchar): New member function.
3922 * rust-lang.c (rust_printchar): Rename to
3923 rust_language::printchar.
3924 (rust_language_data): Delete la_printchar initializer.
3925 (rust_language::printchar): New member function, implementation
3926 from rust_printchar.
3927
ec8cec5b
AB
39282020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3929
3930 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3931 (ada_language_data): Delete la_emitchar initializer.
3932 (ada_language::emitchar): New member function, implementation from
3933 emit_char.
3934 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3935 (cplus_language_data): Likewise.
3936 (asm_language_data): Likewise.
3937 (minimal_language_data): Likewise.
3938 * d-lang.c (d_language_data): Likewise.
3939 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3940 (f_language_data): Delete la_emitchar initializer.
3941 (f_language::emitchar): New member function, implementation from
3942 f_emit_char.
3943 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3944 * language.c (unk_lang_emit_char): Delete.
3945 (language_defn::emitchar): New member function definition.
3946 (unknown_language_data): Delete la_emitchar initializer.
3947 (unknown_language::emitchar): New member function.
3948 (auto_language_data): Delete la_emitchar initializer.
3949 (auto_language::emitchar): New member function.
3950 * language.h (language_data): Delete la_emitchar field.
3951 (language_defn::emitchar): New member field declaration.
3952 (LA_EMIT_CHAR): Update call to emitchar.
3953 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3954 (m2_language_data): Delete la_emitchar initializer.
3955 (m2_language::emitchar): New member function, implementation from
3956 m2_emit_char.
3957 * objc-lang.c (objc_language_data): Delete la_emitchar
3958 initializer.
3959 * opencl-lang.c (opencl_language_data): Likewise.
3960 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3961 (pascal_language_data): Delete la_emitchar initializer.
3962 (pascal_language::emitchar): New member function, implementation
3963 from pascal_emit_char.
3964 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3965 (rust_language_data): Delete la_emitchar initializer.
3966 (rust_language::emitchar): New member function, implementation
3967 from rust_emitchar.
3968
1bf9c363
AB
39692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3970
3971 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3972 (ada_language_data): Delete la_post_parser initializer.
3973 (ada_language::post_parser): New member function.
3974 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3975 (cplus_language_data): Likewise.
3976 (asm_language_data): Likewise.
3977 (minimal_language_data): Likewise.
3978 * d-lang.c (d_language_data): Likewise.
3979 * f-lang.c (f_language_data): Likewise.
3980 * go-lang.c (go_language_data): Likewise.
3981 * language.c (unknown_language_data): Likewise.
3982 (auto_language_data): Likewise.
3983 * language.h (language_data): Delete la_post_parser field.
3984 (language_defn::post_parser): New member function.
3985 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3986 * objc-lang.c (objc_language_data): Likewise.
3987 * opencl-lang.c (opencl_language_data): Likewise.
3988 * p-lang.c (pascal_language_data): Likewise.
3989 * parse.c (parse_exp_in_context): Update call to post_parser.
3990 (null_post_parser): Delete definition.
3991 * parser-defs.h (null_post_parser): Delete declaration.
3992 * rust-lang.c (rust_language_data): Delete la_post_parser
3993 initializer.
3994
87afa652
AB
39952020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3996
3997 * ada-lang.c (parse): Rename to ada_language::parser.
3998 (ada_language_data): Delete la_parser initializer.
3999 (ada_language::parser): New member function, implementation from
4000 parse.
4001 * c-lang.c (c_language_data): Delete la_parser initializer.
4002 (cplus_language_data): Likewise.
4003 (asm_language_data): Likewise.
4004 (minimal_language_data): Likewise.
4005 * d-lang.c (d_language_data): Likewise.
4006 (d_language::parser): New member function.
4007 * f-lang.c (f_language_data): Delete la_parser initializer.
4008 (f_language::parser): New member function.
4009 * go-lang.c (go_language_data): Delete la_parser initializer.
4010 (go_language::parser): New member function.
4011 * language.c (unk_lang_parser): Delete.
4012 (language_defn::parser): Define new member function.
4013 (unknown_language_data): Delete la_parser initializer.
4014 (unknown_language::parser): New member function.
4015 (auto_language_data): Delete la_parser initializer.
4016 (auto_language::parser): New member function.
4017 * language.h (language_data): Delete la_parser field.
4018 (language_defn::parser): Declare new member function.
4019 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4020 (m2_language::parser): New member function.
4021 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4022 * opencl-lang.c (opencl_language_data): Likewise.
4023 * p-lang.c (pascal_language_data): Likewise.
4024 (pascal_language::parser): New member function.
4025 * parse.c (parse_exp_in_context): Update call to parser.
4026 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4027 (rust_language::parser): New member function.
4028
37825800
AB
40292020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4030
4031 * top.c (print_gdb_configuration): Print --with-python-libdir
4032 configuration value.
4033
5b860c93
PW
40342020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4035
4036 * NEWS: Mention change to the alias command.
4037
cf00cd6f
PW
40382020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4039
4040 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4041 (alias_command_completer)
4042 (make_alias_options_def_group): New functions.
4043 (alias_opts, alias_option_defs): New struct and array.
4044 (alias_usage_error): Update usage.
4045 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4046 Use option framework.
4047 (_initialize_cli_cmds): Update alias command help.
4048 Update aliases command help.
4049 (show_user):
4050 Add NULL for new default_args lookup_cmd argument.
4051 (valid_command_p): Rename to validate_aliased_command.
4052 Add NULL for new default_args lookup_cmd argument. Verify that the
4053 aliased_command has no default args.
4054 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4055 (lookup_cmd_1, lookup_cmd): New argument default_args.
4056 (add_alias_cmd):
4057 Add NULL for new default_args lookup_cmd argument.
4058 (print_help_for_command): Show default args under the layout
4059 alias some_alias = some_aliased_cmd some_alias_default_arg.
4060 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4061 xfree default_args in destructor.
4062 * cli/cli-script.c (process_next_line, do_define_command):
4063 Add NULL for new default_args lookup_cmd argument.
4064 * command.h: Declare new default_args argument in lookup_cmd
4065 and lookup_cmd_1.
4066 * completer.c (complete_line_internal_1):
4067 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4068 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4069 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4070 Likewise.
4071 * infcmd.c (_initialize_infcmd): Likewise.
4072 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4073 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4074 * python/py-param.c (add_setshow_generic): Likewise.
4075 * remote.c (_initialize_remote): Likewise.
4076 * top.c (execute_command): Prepend default_args if command has some.
4077 (set_verbose):
4078 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4079 * tracepoint.c (validate_actionline, encode_actions_1):
4080 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4081
bd920864
TBA
40822020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4083
4084 * jit.c (jit_read_descriptor): Use bool as the return type.
4085 (jit_breakpoint_re_set_internal): Use bool as the return type.
4086 Invert the return value logic; return true if the jit breakpoint
4087 has been successfully initialized.
4088 (jit_inferior_init): Update the call to
4089 jit_breakpoint_re_set_internal.
4090
f8098322
PA
40912020-06-22 Pedro Alves <palves@redhat.com>
4092
4093 PR gdb/25939
4094 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4095 Use the current inferior instead. Don't return
4096 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4097 wait again.
4098 * sol-thread.c (sol_thread_target::wait): Don't reference
4099 inferior_ptid.
4100 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4101 (sol_update_thread_list_callback): Use the current inferior's pid
4102 instead of inferior_ptid.
4103
196535a6
RO
41042020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4105
4106 * procfs.c: Cleanup many comments.
4107
4108 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4109 (AFTER_WATCHFLAG): Replace by value.
4110
4111 (MAIN_PROC_NAME_FORMAT): Inline ...
4112 (create_procinfo): ... here.
4113
4114 (procfs_debug_inferior): Remove SYS_exec handling.
4115 (syscall_is_exec): Likewise.
4116 (procfs_set_exec_trap): Likewise.
4117
4118 (syscall_is_lwp_exit): Inline in callers.
4119 (syscall_is_exit): Likewise.
4120 (syscall_is_exec): Likewise.
4121 (syscall_is_lwp_create): Likewise.
4122
4123 (invalidate_cache): Remove #if 0 code.
4124
4125 (make_signal_thread_runnable): Remove.
4126 (procfs_target::resume): Remove #if 0 code.
4127
cf6f3e86
RO
41282020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4129
4130 PR gdb/25939
4131 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4132 call ...
4133 (procfs_target::create_inferior): ... here.
4134
48e9cc84
PW
41352020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4136
4137 * exec.c (validate_exec_file): Ensure the build-id is up to
4138 date by calling reopen_exec_file (that checks file timestamp
4139 to decide to re-read the file).
4140
3922b302
PA
41412020-06-18 Pedro Alves <palves@redhat.com>
4142
4143 PR gdb/25412
4144 * gdbthread.h (delete_thread, delete_thread_silent)
4145 (find_thread_ptid): Update comments.
4146 * thread.c (current_thread_): New global.
4147 (is_current_thread): Move higher, and reimplement.
4148 (inferior_thread): Reimplement.
4149 (set_thread_exited): Use bool. Add assertions.
4150 (add_thread_silent): Simplify thread-reuse handling by always
4151 calling delete_thread.
4152 (delete_thread): Remove intro comment.
4153 (find_thread_ptid): Skip exited threads.
4154 (switch_to_thread_no_regs): Write to current_thread_.
4155 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4156 INFERIOR_PTID. Clear current_thread_.
4157
6dbdab44
PA
41582020-06-18 Pedro Alves <palves@redhat.com>
4159
4160 * aix-thread.c (pd_update): Use switch_to_thread.
4161
2da4b788
PA
41622020-06-18 Pedro Alves <palves@redhat.com>
4163
4164 * ravenscar-thread.c (ravenscar_thread_target): Update.
4165 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4166 (ravenscar_thread_target::add_active_thread): ... this. Don't
4167 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4168 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4169
50838d1b
PA
41702020-06-18 Pedro Alves <palves@redhat.com>
4171
4172 * nat/windows-nat.c (current_windows_thread): Remove.
4173 * nat/windows-nat.h (current_windows_thread): Remove.
4174 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4175 Adjust.
4176 (display_selectors): Adjust to fetch the current
4177 windows_thread_info based on inferior_ptid.
4178 (fake_create_process): No longer write to current_windows_thread.
4179 (windows_nat_target::get_windows_debug_event):
4180 Don't set inferior_ptid or current_windows_thread.
4181 (windows_nat_target::wait): Adjust to not rely on
4182 current_windows_thread.
4183 (do_initial_windows_stuff): Now a method of windows_nat_target.
4184 Switch to the last_ptid thread.
4185 (windows_nat_target::attach): Adjust.
4186 (windows_nat_target::detach): Use switch_to_no_thread instead of
4187 writing to inferior_ptid directly.
4188 (windows_nat_target::create_inferior): Adjust.
4189
31ce04e9
PA
41902020-06-18 Pedro Alves <palves@redhat.com>
4191
4192 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4193
1ee1a363
PA
41942020-06-18 Pedro Alves <palves@redhat.com>
4195
4196 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4197 after creating it, instead of writing to inferior_ptid. Don't
4198 write to inferior_ptid.
4199
6d350754
PA
42002020-06-18 Pedro Alves <palves@redhat.com>
4201
4202 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4203
5d971d48
PA
42042020-06-18 Pedro Alves <palves@redhat.com>
4205
4206 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4207 it, instead of writing to inferior_ptid.
4208
86e57d1b
PA
42092020-06-18 Pedro Alves <palves@redhat.com>
4210
4211 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4212 to inferior_ptid.
4213
f2e1c129
PA
42142020-06-18 Pedro Alves <palves@redhat.com>
4215
4216 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4217 instead of writing to inferior_ptid directly.
4218
60db1b85
PA
42192020-06-18 Pedro Alves <palves@redhat.com>
4220
4221 * corelow.c (core_target::close): Use switch_to_no_thread instead
4222 of writing to inferior_ptid directly.
4223 (add_to_thread_list, core_target_open): Use switch_to_thread
4224 instead of writing to inferior_ptid directly.
4225
fe7d6a8d
PA
42262020-06-18 Pedro Alves <palves@redhat.com>
4227
4228 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4229 inferior_ptid.
4230 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4231 inferior_ptid.
4232 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4233 inferior_ptid directly.
4234 (darwin_nat_target::init_thread_list): Switch to thread, instead
4235 of writing to inferior_ptid.
4236 (darwin_nat_target::attach): Don't write to inferior_ptid.
4237 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4238
975f8708
PA
42392020-06-18 Pedro Alves <palves@redhat.com>
4240
4241 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4242 thread.
4243 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4244 Instead use switch_to_thread.
4245 (gnu_nat_target::detach): Use switch_to_no_thread
4246 instead of writing to inferior_ptid directly. Used passed-in
4247 inferior instead of looking up the inferior by pid.
4248
1a204730
PA
42492020-06-18 Pedro Alves <palves@redhat.com>
4250
4251 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4252 inferior_ptid.
4253
ebe84f23
PA
42542020-06-18 Pedro Alves <palves@redhat.com>
4255
4256 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4257 inferior_ptid.
4258 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4259 thread.
4260 (nto_procfs_target::detach): Avoid referencing
4261 inferior_ptid. Use switch_to_no_thread instead of writing to
4262 inferior_ptid directly.
4263 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4264 instead of writing to inferior_ptid directly.
4265 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4266 to thread.
4267
191f02e5
PA
42682020-06-18 Pedro Alves <palves@redhat.com>
4269
4270 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4271 after creating it, instead of writing to inferior_ptid.
4272 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4273 to inferior_ptid directly.
4274 (gdbsim_target::wait): Don't write to inferior_ptid.
4275
0ac55310
PA
42762020-06-18 Pedro Alves <palves@redhat.com>
4277
4278 * remote.c (remote_target::remote_notice_new_inferior): Use
4279 switch_to_thread instead of writing to inferior_ptid directly.
4280 (remote_target::add_current_inferior_and_thread): Use
4281 switch_to_no_thread instead of writing to inferior_ptid directly.
4282 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4283 and switch_to_thread instead of using set_current_inferior or
4284 writing to inferior_ptid directly.
4285
5233f39b
PA
42862020-06-18 Pedro Alves <palves@redhat.com>
4287
4288 * tracectf.c (ctf_target_open): Switch to added thread instead of
4289 writing to inferior_ptid directly.
4290 (ctf_target::close): Use switch_to_no_thread instead of writing to
4291 inferior_ptid directly.
4292
087e161b
PA
42932020-06-18 Pedro Alves <palves@redhat.com>
4294
4295 * tracefile-tfile.c (tfile_target_open): Don't write to
4296 inferior_ptid directly, instead switch to added thread.
4297 (tfile_target::close): Use switch_to_no_thread instead of writing
4298 to inferior_ptid directly.
4299
7fb43e53
PA
43002020-06-18 Pedro Alves <palves@redhat.com>
4301
4302 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4303 (procfs_target::detach): Use switch_to_no_thread
4304 instead of writing to inferior_ptid directly.
4305 (do_attach): Change return type to void. Switch to the added
4306 thread.
4307 (procfs_target::create_inferior): Switch to the added thread.
4308 (procfs_do_thread_registers): Don't write to inferior_ptid.
4309
18493a00
PA
43102020-06-18 Pedro Alves <palves@redhat.com>
4311
4312 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4313 of writing to inferior_ptid.
4314 (scoped_restore_exited_inferior): Delete.
4315 (handle_vfork_child_exec_or_exit): Simplify using
4316 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4317 instead of writing to inferior_ptid.
4318 (THREAD_STOPPED_BY): Delete.
4319 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4320 (thread_stopped_by_hw_breakpoint): Delete.
4321 (save_waitstatus): Use
4322 scoped_restore_current_thread+switch_to_thread, and call
4323 target_stopped_by_watchpoint instead of
4324 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4325 instead of thread_stopped_by_sw_breakpoint, and
4326 target_stopped_by_hw_breakpoint instead of
4327 thread_stopped_by_hw_breakpoint.
4328 (handle_inferior_event)
4329 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4330 inferior_ptid directly, nor
4331 set_current_inferior/set_current_program_space. Use
4332 switch_to_thread / switch_to_inferior_no_thread instead.
4333
a0776b13
PA
43342020-06-18 Pedro Alves <palves@redhat.com>
4335
4336 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4337 instead of writing to inferior_ptid.
4338
6155c136
PA
43392020-06-18 Pedro Alves <palves@redhat.com>
4340
4341 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4342 added thread.
4343 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4344 to the added thread.
4345 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4346 instead of writing to inferior_ptid.
4347
c5316fc6
PA
43482020-06-18 Pedro Alves <palves@redhat.com>
4349
4350 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4351 (register_to_value_test): Mock a program_space too. Heap-allocate
4352 the address space. Don't write to inferior_ptid. Use
4353 switch_to_thread instead.
4354
8df01799
PA
43552020-06-18 Pedro Alves <palves@redhat.com>
4356
4357 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4358 Delete.
4359 (find_signalled_thread()): New, factored out from
4360 linux_make_corefile_notes and adjusted to handle exited threads.
4361 (linux_make_corefile_notes): Adjust to use the new
4362 find_signalled_thread.
4363
41792d68
PA
43642020-06-18 Pedro Alves <palves@redhat.com>
4365
4366 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4367 of saving/restoring inferior_ptid.
4368
612f258a
TT
43692020-06-17 Tom Tromey <tom@tromey.com>
4370
4371 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4372 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4373 declare.
4374 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4375
efb763a5
SM
43762020-06-15 Simon Marchi <simon.marchi@efficios.com>
4377
4378 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4379 of partial symtabs.
4380
2951f6c0
SM
43812020-06-17 Simon Marchi <simon.marchi@efficios.com>
4382
4383 * regformats/reg-arm.dat: Remove.
4384 * regformats/reg-bfin.dat: Remove.
4385 * regformats/reg-cris.dat: Remove.
4386 * regformats/reg-crisv32.dat: Remove.
4387 * regformats/reg-m32r.dat: Remove.
4388 * regformats/reg-tilegx.dat: Remove.
4389 * regformats/reg-tilegx32.dat: Remove.
4390
7d458ea5
SM
43912020-06-17 Simon Marchi <simon.marchi@efficios.com>
4392
4393 * features/Makefile (WHICH): Remove arm files.
4394 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4395 * regformats/arm/arm-with-neon.dat: Remove.
4396 * regformats/arm/arm-with-vfpv2.dat: Remove.
4397 * regformats/arm/arm-with-vfpv3.dat: Remove.
4398
3af96c0d
SM
43992020-06-17 Simon Marchi <simon.marchi@efficios.com>
4400
4401 * features/Makefile (XMLTOC): Remove rx.xml.
4402
b25e22fd
PA
44032020-06-17 Pedro Alves <palves@redhat.com>
4404
4405 * gdbthread.h (thread_control_state) <trap_expected> Update
4406 comments.
4407
a78a19b1
AB
44082020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4409
4410 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4411 ada_language::lookup_symbol_nonlocal.
4412 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4413 (ada_language::lookup_symbol_nonlocal): New member function,
4414 implementation from ada_lookup_symbol_nonlocal.
4415 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4416 initializer.
4417 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4418 initializer.
4419 (cplus_language::lookup_symbol_nonlocal): New member function.
4420 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4421 (minimal_language_data) Likewise.
4422 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4423 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4424 initializer.
4425 (d_language::lookup_symbol_nonlocal): New member function.
4426 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4427 initializer.
4428 (f_language::lookup_symbol_nonlocal): New member function.
4429 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4430 initializer.
4431 * language.c (unknown_language_data): Likewise.
4432 (auto_language_data): Likewise.
4433 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4434 field.
4435 (language_defn::lookup_symbol_nonlocal): New member function.
4436 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4437 initializer.
4438 * objc-lang.c (objc_language_data): Likewise.
4439 * opencl-lang.c (opencl_language_data): Likewise.
4440 * p-lang.c (pascal_language_data): Likewise.
4441 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4442 rust_language::lookup_symbol_nonlocal.
4443 (rust_language_data): Delete la_lookup_symbol_nonlocal
4444 initializer.
4445 (rust_language::lookup_symbol_nonlocal): New member function,
4446 implementation from rust_lookup_symbol_nonlocal.
4447 * symtab.c (lookup_symbol_aux): Update call to
4448 lookup_symbol_nonlocal.
4449 (basic_lookup_symbol_nonlocal): Rename to...
4450 (language_defn::lookup_symbol_nonlocal): ...this, and update
4451 header comment. Remove language_defn parameter, and replace with
4452 uses of `this'.
4453 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4454
ebe2334e
AB
44552020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4456
4457 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4458 initializer.
4459 (ada_language::value_print_inner): New member function.
4460 * c-lang.c (c_language_data): Delete la_value_print_inner
4461 initializer.
4462 (cplus_language_data): Likewise.
4463 (asm_language_data): Likewise.
4464 (minimal_language_data): Likewise.
4465 * d-lang.c (d_language_data): Likewise.
4466 (d_language::value_print_inner): New member function.
4467 * f-lang.c (f_language_data): Delete la_value_print_inner
4468 initializer.
4469 (f_language::value_print_inner): New member function.
4470 * f-lang.h (f_value_print_innner): Rename to...
4471 (f_value_print_inner): ...this (note spelling of 'inner').
4472 * f-valprint.c (f_value_print_innner): Rename to...
4473 (f_value_print_inner): ...this (note spelling of 'inner').
4474 * go-lang.c (go_language_data): Delete la_value_print_inner
4475 initializer.
4476 (go_language::value_print_inner): New member function.
4477 * language.c (language_defn::value_print_inner): Define new member
4478 function.
4479 (unk_lang_value_print_inner): Delete.
4480 (unknown_language_data): Delete la_value_print_inner initializer.
4481 (unknown_language::value_print_inner): New member function.
4482 (auto_language_data): Delete la_value_print_inner initializer.
4483 (auto_language::value_print_inner): New member function.
4484 * language.h (language_data): Delete la_value_print_inner field.
4485 (language_defn::value_print_inner): Delcare new member function.
4486 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4487 initializer.
4488 (m2_language::value_print_inner): New member function.
4489 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4490 initializer.
4491 * opencl-lang.c (opencl_language_data): Likewise.
4492 * p-lang.c (pascal_language_data): Likewise.
4493 (pascal_language::value_print_inner): New member function.
4494 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4495 initializer.
4496 (rust_language::value_print_inner): New member function.
4497 * valprint.c (do_val_print): Update call to value_print_inner.
4498
a1d1fa3e
AB
44992020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4500
4501 * ada-lang.c (ada_language_data): Delete la_value_print
4502 initializer.
4503 (ada_language::value_print): New member function.
4504 * c-lang.c (c_language_data): Delete la_value_print initializer.
4505 (cplus_language_data): Likewise.
4506 (asm_language_data): Likewise.
4507 (minimal_language_data): Likewise.
4508 * d-lang.c (d_language_data): Likewise.
4509 * f-lang.c (f_language_data): Likewise.
4510 * go-lang.c (go_language_data): Likewise.
4511 * language.c (unk_lang_value_print): Delete.
4512 (language_defn::value_print): Define new member function.
4513 (unknown_language_data): Delete la_value_print initializer.
4514 (unknown_language::value_print): New member function.
4515 (auto_language_data): Delete la_value_print initializer.
4516 (auto_language::value_print): New member function.
4517 * language.h (language_data): Delete la_value_print field.
4518 (language_defn::value_print): Declare new member function.
4519 (LA_VALUE_PRINT): Update call to value_print.
4520 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4521 * objc-lang.c (objc_language_data): Likewise.
4522 * opencl-lang.c (opencl_language_data): Likewise.
4523 * p-lang.c (pascal_language_data): Likewise.
4524 (pascal_language::value_print): New member function.
4525 * rust-lang.c (rust_language_data): Delete la_value_print
4526 initializer.
4527
f16a9f57
AB
45282020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4529
4530 * ada-lang.c (ada_watch_location_expression): Rename to
4531 ada_language::watch_location_expression.
4532 (ada_language_data): Delete la_watch_location_expression
4533 initializer.
4534 (ada_language::watch_location_expression): New member function,
4535 implementation from ada_watch_location_expression.
4536 * breakpoint.c (watch_command_1): Update call to
4537 watch_location_expression.
4538 * c-lang.c (c_watch_location_expression): Rename to
4539 language_defn::watch_location_expression.
4540 (c_language_data): Delete la_watch_location_expression
4541 initializer.
4542 (cplus_language_data): Likewise.
4543 (asm_language_data): Likewise.
4544 (minimal_language_data): Likewise.
4545 * c-lang.h (c_watch_location_expression): Delete declaration.
4546 * d-lang.c (d_language_data): Delete la_watch_location_expression
4547 initializer.
4548 * f-lang.c (f_language_data): Likewise.
4549 * go-lang.c (go_language_data): Likewise.
4550 * language.c (language_defn::watch_location_expression): Member
4551 function implementation from c_watch_location_expression.
4552 (unknown_language_data): Delete la_watch_location_expression
4553 initializer.
4554 (auto_language_data): Likewise.
4555 * language.h (language_data): Delete la_watch_location_expression
4556 field.
4557 (language_defn::watch_location_expression): Declare new member
4558 function.
4559 * m2-lang.c (m2_language_data): Delete
4560 la_watch_location_expression initializer.
4561 * objc-lang.c (objc_language_data): Likewise.
4562 * opencl-lang.c (opencl_language_data): Likewise.
4563 * p-lang.c (pascal_language_data): Likewise.
4564 * rust-lang.c (rust_watch_location_expression): Rename to
4565 rust_language::watch_location_expression.
4566 (rust_language_data): Delete la_watch_location_expression
4567 initializer.
4568 (rust_language::watch_location_expression): New member function,
4569 implementation from rust_watch_location_expression.
4570
7e56227d
AB
45712020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4572
4573 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4574 ada_language::collect_symbol_completion_matches.
4575 (ada_language_data): Delete la_collect_symbol_completion_matches
4576 initializer.
4577 (ada_language::collect_symbol_completion_matches): New member
4578 function, implementation from
4579 ada_collect_symbol_completion_matches.
4580 * c-lang.c (c_language_data): Delete
4581 la_collect_symbol_completion_matches initializer.
4582 (cplus_language_data): Likewise.
4583 (asm_language_data): Likewise.
4584 (minimal_language_data): Likewise.
4585 * d-lang.c (d_language_data): Likewise.
4586 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4587 f_language::collect_symbol_completion_matches.
4588 (f_language_data): Delete la_collect_symbol_completion_matches
4589 initializer.
4590 (f_language::collect_symbol_completion_matches) New member
4591 function, implementation from f_collect_symbol_completion_matches.
4592 * go-lang.c (go_language_data): Delete
4593 la_collect_symbol_completion_matches initializer.
4594 * language.c (unknown_language_data): Likewise.
4595 (auto_language_data): Likewise.
4596 * language.h (language_data): Delete
4597 la_collect_symbol_completion_matches field.
4598 (language_defn::collect_symbol_completion_matches): New member
4599 function.
4600 * m2-lang.c (m2_language_data): Delete
4601 la_collect_symbol_completion_matches initializer.
4602 * objc-lang.c (objc_language_data): Likewise.
4603 * opencl-lang.c (opencl_language_data): Likewise.
4604 * p-lang.c (pascal_language_data): Likewise.
4605 * rust-lang.c (rust_language_data): Likewise.
4606 * symtab.c (default_collect_symbol_completion_matches): Delete.
4607 (collect_symbol_completion_matches): Update call to
4608 collect_symbol_completion_matches.
4609 (collect_symbol_completion_matches_type): Likewise.
4610 * symtab.h (default_collect_symbol_completion_matches): Delete
4611 declaration.
4612
53fc67f8
AB
46132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4614
4615 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4616 (ada_language_data): Delete la_word_break_characters initializer.
4617 (ada_language::word_break_characters): New member function.
4618 * c-lang.c (c_language_data): Delete la_word_break_characters
4619 initializer.
4620 (cplus_language_data): Likewise.
4621 (asm_language_data): Likewise.
4622 (minimal_language_data): Likewise.
4623 * completer.c: Update global comment.
4624 (advance_to_expression_complete_word_point): Update call to
4625 word_break_characters.
4626 (complete_files_symbols): Likewise.
4627 (complete_line_internal_1): Likewise.
4628 (default_completer_handle_brkchars): Likewise.
4629 (skip_quoted_chars): Likewise.
4630 * d-lang.c (d_language_data): Delete la_word_break_characters
4631 initializer.
4632 * f-lang.c (f_word_break_characters): Delete.
4633 (f_language_data): Delete la_word_break_characters initializer.
4634 (f_language::word_break_characters): New member function.
4635 * go-lang.c (go_language_data): Delete la_word_break_characters
4636 initializer.
4637 * language.c (unknown_language_data): Likewise.
4638 (auto_language_data): Likewise.
4639 * language.h (default_word_break_characters): Move declaration to
4640 earlier in the file.
4641 (language_data): Delete la_word_break_characters field.
4642 (language_defn::word_break_characters): New member function.
4643 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4644 initializer.
4645 * objc-lang.c (objc_language_data): Likewise.
4646 * opencl-lang.c (opencl_language_data): Likewise.
4647 * p-lang.c (pascal_language_data): Likewise.
4648 * rust-lang.c (rust_language_data): Likewise.
4649
c9debfb9
AB
46502020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4651
4652 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4653 (ada_language_data): Delete la_get_symbol_name_matcher
4654 initializer.
4655 (language_defn::get_symbol_name_matcher_inner): New member
4656 function.
4657 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4658 initializer.
4659 (cplus_language_data): Likewise.
4660 (cplus_language::get_symbol_name_matcher_inner): New member
4661 function.
4662 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4663 (minimal_language_data): Likewise.
4664 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4665 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4666 initializer.
4667 * dictionary.c (iter_match_first_hashed): Update call to
4668 get_symbol_name_matcher.
4669 (iter_match_next_hashed): Likewise.
4670 (iter_match_next_linear): Likewise.
4671 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4672 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4673 initializer.
4674 (f_language::get_symbol_name_matcher_inner): New member function.
4675 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4676 initializer.
4677 * language.c (default_symbol_name_matcher): Update header comment,
4678 make static.
4679 (language_defn::get_symbol_name_matcher): New definition.
4680 (language_defn::get_symbol_name_matcher_inner): Likewise.
4681 (get_symbol_name_matcher): Delete.
4682 (unknown_language_data): Delete la_get_symbol_name_matcher
4683 initializer.
4684 (auto_language_data): Likewise.
4685 * language.h (language_data): Delete la_get_symbol_name_matcher
4686 field.
4687 (language_defn::get_symbol_name_matcher): New member function.
4688 (language_defn::get_symbol_name_matcher_inner): Likewise.
4689 (default_symbol_name_matcher): Delete declaration.
4690 * linespec.c (find_methods): Update call to
4691 get_symbol_name_matcher.
4692 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4693 initializer.
4694 * minsyms.c (lookup_minimal_symbol): Update call to
4695 get_symbol_name_matcher.
4696 (iterate_over_minimal_symbols): Likewise.
4697 * objc-lang.c (objc_language_data): Delete
4698 la_get_symbol_name_matcher initializer.
4699 * opencl-lang.c (opencl_language_data): Likewise.
4700 * p-lang.c (pascal_language_data): Likewise.
4701 * psymtab.c (psymbol_name_matches): Update call to
4702 get_symbol_name_matcher.
4703 * rust-lang.c (rust_language_data): Delete
4704 la_get_symbol_name_matcher initializer.
4705 * symtab.c (symbol_matches_search_name): Update call to
4706 get_symbol_name_matcher.
4707 (compare_symbol_name): Likewise.
4708
9a49ad8c
AB
47092020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4710
4711 * ada-lang.c (ada_language_data): Delete la_compute_program
4712 initializer.
4713 * c-lang.c (c_language_data): Likewise.
4714 (c_language::compute_program): New member function.
4715 (cplus_language_data): Delete la_compute_program initializer.
4716 (cplus_language::compute_program): New member function.
4717 (asm_language_data): Delete la_compute_program initializer.
4718 (minimal_language_data): Likewise.
4719 * c-lang.h (c_compute_program): Update comment.
4720 (cplus_compute_program): Likewise.
4721 * compile/compile-c-support.c (c_compute_program): Likewise.
4722 (cplus_compute_program): Likewise.
4723 * compile/compile.c (compile_to_object): Update call to
4724 la_compute_program.
4725 * d-lang.c (d_language_data): Delete la_compute_program
4726 initializer.
4727 * f-lang.c (f_language_data): Likewise.
4728 * go-lang.c (go_language_data): Likewise.
4729 * language.c (unknown_language_data): Likewise.
4730 (auto_language_data): Likewise.
4731 * language.h (language_data): Delete la_compute_program field.
4732 (language_defn::compute_program): New member function.
4733 * m2-lang.c (m2_language_data): Delete la_compute_program
4734 initializer.
4735 * objc-lang.c (objc_language_data): Likewise.
4736 * opencl-lang.c (opencl_language_data): Likewise.
4737 * p-lang.c (pascal_language_data): Likewise.
4738 * rust-lang.c (rust_language_data): Likewise.
4739
eff93b4d
AB
47402020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4741
4742 * ada-lang.c (ada_language_data) Delete
4743 la_class_name_from_physname initializer.
4744 * c-lang.c (c_language_data): Likewise.
4745 (cplus_language_data): Likewise.
4746 (cplus_language::class_name_from_physname): New member function.
4747 (asm_language_data): Delete la_class_name_from_physname
4748 initializer.
4749 (minimal_language_data): Likewise.
4750 * d-lang.c (d_language_data): Likewise.
4751 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4752 method on language_defn class.
4753 (guess_full_die_structure_name): Likewise.
4754 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4755 initializer.
4756 * go-lang.c (go_language_data): Likewise.
4757 * language.c (language_class_name_from_physname): Delete.
4758 (unk_lang_class_name): Delete.
4759 (unknown_language_data): Delete la_class_name_from_physname
4760 initializer.
4761 (auto_language_data): Likewise.
4762 * language.h (language_data): Delete la_class_name_from_physname
4763 field.
4764 (language_defn::class_name_from_physname): New function.
4765 (language_class_name_from_physname): Delete declaration.
4766 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4767 initializer.
4768 * objc-lang.c (objc_language_data): Likewise.
4769 * opencl-lang.c (opencl_language_data): Likewise.
4770 * p-lang.c (pascal_language_data): Likewise.
4771 * rust-lang.c (rust_language_data): Likewise.
4772
de543742
TT
47732020-06-16 Tom Tromey <tom@tromey.com>
4774
4775 * tui/tui-data.h (STATUS_NAME): New macro.
4776 * tui/tui-layout.c (tui_remove_some_windows)
4777 (initialize_known_windows, tui_register_window)
4778 (tui_layout_split::remove_windows, initialize_layouts)
4779 (tui_new_layout_command): Don't use hard-coded window names.
4780
a350efd4
TT
47812020-06-16 Tom Tromey <tom@tromey.com>
4782
4783 PR tui/25348:
4784 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4785 tui_initialize_readline. Only run once. Call rl_initialize.
4786 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4787 tui_initialize_readline.
4788 * tui/tui-io.c (tui_setup_io): Call
4789 tui_ensure_readline_initialized.
4790 * tui/tui-interp.c (tui_interp::init): Update.
4791
39ec0490
TT
47922020-06-16 Tom Tromey <tom@tromey.com>
4793
4794 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4795 Also preserve the status window.
4796
d2d1ea20
TT
47972020-06-16 Tom Tromey <tom@tromey.com>
4798
4799 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4800 where m_window==nullptr.
4801
66920317
TT
48022020-06-15 Tom Tromey <tromey@adacore.com>
4803
4804 * windows-nat.c (windows_nat::handle_output_debug_string):
4805 Update.
4806 (windows_nat::handle_ms_vc_exception): Update.
4807 * target.h (target_read_string): Change API.
4808 * target.c (target_read_string): Change API.
4809 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4810 Update.
4811 * solib-frv.c (frv_current_sos): Update.
4812 * solib-dsbt.c (dsbt_current_sos): Update.
4813 * solib-darwin.c (darwin_current_sos): Update.
4814 * linux-thread-db.c (inferior_has_bug): Update.
4815 * expprint.c (print_subexp_standard): Update.
4816 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4817 (ada_exception_message_1): Update.
4818
a5d871dd
TT
48192020-06-15 Tom Tromey <tromey@adacore.com>
4820
4821 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4822
670e35fa
TT
48232020-06-15 Tom Tromey <tromey@adacore.com>
4824
4825 * valprint.c (read_string): Update comment.
4826 * target.c (MIN): Remove.
4827 (target_read_string): Rewrite.
4828
f5272a3b
TT
48292020-06-15 Tom Tromey <tromey@adacore.com>
4830
4831 * corefile.c (read_memory_string): Remove.
4832 * ada-valprint.c (ada_value_print_ptr): Update.
4833 * ada-lang.h (ada_tag_name): Change return type.
4834 * ada-lang.c (type_from_tag): Update.
4835 (ada_tag_name_from_tsd): Change return type. Use
4836 target_read_string.
4837 (ada_tag_name): Likewise.
4838 * gdbcore.h (read_memory_string): Don't declare.
4839
2c074f49
HD
48402020-06-14 Hannes Domani <ssbssa@yahoo.de>
4841
4842 * symtab.c (rbreak_command): Ignore Windows drive colon.
4843
6a17d503
SM
48442020-06-12 Simon Marchi <simon.marchi@efficios.com>
4845
4846 * NEWS: Mention removed GDBserver host support.
4847
453c733f
NC
48482020-06-12 Nelson Chu <nelson.chu@sifive.com>
4849
4850 * features/riscv/rebuild-csr-xml.sh: Updated.
4851
2b4e6a3f
TT
48522020-06-11 Tom Tromey <tom@tromey.com>
4853
4854 PR gdb/18318:
4855 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4856
4412332f
JG
48572020-06-09 Jonny Grant <jg@jguk.org>
48582020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4859
4860 * main.c (captured_main_1): Don't print new line after help.
4861 (print_gdb_help): add mailing list and IRC channel information
4862 to --help. Add new lines between items in the footer. Remove
4863 quotes around bug url.
4864
2f33032a
KS
48652020-06-11 Keith Seitz <keiths@redhat.com>
4866
4867 PR gdb/21356
4868 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4869 Resolve typedefs for type length calculations.
4870
7ab96794
TV
48712020-06-10 Tom de Vries <tdevries@suse.de>
4872
4873 PR ada/24713
4874 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4875 (write_psymbols): Enable .gdb_index for ada.
4876 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4877 ada.
4878
e5f3ece2
TV
48792020-06-10 Tom de Vries <tdevries@suse.de>
4880
4881 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4882 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4883 namei" instead of "const char *name" argument.
4884 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4885 dw2_symtab_iter_init.
4886
940da03e
SM
48872020-06-08 Simon Marchi <simon.marchi@efficios.com>
4888
4889 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4890 to use type::field and field::type instead.
4891
b6cdac4b
SM
48922020-06-08 Simon Marchi <simon.marchi@efficios.com>
4893
4894 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4895 to use field::type instead.
4896
5d14b6e5
SM
48972020-06-08 Simon Marchi <simon.marchi@efficios.com>
4898
4899 * gdbtypes.h (struct field) <type, set_type>: New methods.
4900 Rename `type` field to...
4901 <m_type>: ... this. Change references throughout to use type or
4902 set_type methods.
4903 (FIELD_TYPE): Use field::type. Change call sites that modify
4904 the field's type to use field::set_type instead.
4905
3d967001
SM
49062020-06-08 Simon Marchi <simon.marchi@efficios.com>
4907
4908 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4909 to use type::index_type instead.
4910
262abc0d
SM
49112020-06-08 Simon Marchi <simon.marchi@efficios.com>
4912
4913 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4914 methods.
4915 (TYPE_INDEX_TYPE): Use type::index_type.
4916 * gdbtypes.c (create_array_type_with_stride): Likewise.
4917
82836c92
TT
49182020-06-07 Tom Tromey <tom@tromey.com>
4919
4920 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4921 parameter.
4922 (generic_value_print): Update.
4923
940dace9
AB
49242020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4925
4926 Revert commit 982a38f60b0.
4927 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4928
982a38f6
AB
49292020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4930
4931 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4932 avoid use after free.
4933
82f06518
TV
49342020-06-05 Tom de Vries <tdevries@suse.de>
4935
4936 * NEWS: Fix typos.
4937
f8c41851
SM
49382020-06-04 Simon Marchi <simon.marchi@efficios.com>
4939
4940 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4941 the per_bfd object.
4942 (dwarf2_read_debug_names): Likewise.
4943 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4944 object when re-using a per_bfd object with an index.
4945
f9b5d5ea
TV
49462020-06-03 Tom de Vries <tdevries@suse.de>
4947
4948 PR symtab/26046
4949 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4950 children for C++.
4951 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4952 DW_TAG_subprogram.
4953
f6eee2d0
AB
49542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4955
4956 * ada-lang.c (ada_language_data): Delete skip_trampoline
4957 initializer.
4958 * c-lang.c (c_language_data): Likewise.
4959 (cplus_language_data): Likewise.
4960 (cplus_language::skip_trampoline): New member function.
4961 (asm_language_data): Delete skip_trampoline initializer.
4962 (minimal_language_data): Likewise.
4963 * d-lang.c (d_language_data): Likewise.
4964 * f-lang.c (f_language_data): Likewise.
4965 * go-lang.c (go_language_data): Likewise.
4966 * language.c (unk_lang_trampoline): Delete function.
4967 (skip_language_trampoline): Update.
4968 (unknown_language_data): Delete skip_trampoline initializer.
4969 (auto_language_data): Likewise.
4970 * language.h (language_data): Delete skip_trampoline field.
4971 (language_defn::skip_trampoline): New function.
4972 * m2-lang.c (m2_language_data): Delete skip_trampoline
4973 initializer.
4974 * objc-lang.c (objc_skip_trampoline): Delete function, move
4975 implementation to objc_language::skip_trampoline.
4976 (objc_language_data): Delete skip_trampoline initializer.
4977 (objc_language::skip_trampoline): New member function with
4978 implementation from objc_skip_trampoline.
4979 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4980 initializer.
4981 * p-lang.c (pascal_language_data): Likewise.
4982 * rust-lang.c (rust_language_data): Likewise.
4983
0a50df5d
AB
49842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4985
4986 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4987 (ada_language::demangle): New member function.
4988 * c-lang.c (c_language_data): Delete la_demangle initializer.
4989 (cplus_language_data): Delete la_demangle initializer.
4990 (cplus_language::demangle): New member function.
4991 (asm_language_data): Delete la_demangle initializer.
4992 (minimal_language_data): Delete la_demangle initializer.
4993 * d-lang.c (d_language_data): Delete la_demangle initializer.
4994 (d_language::demangle): New member function.
4995 * f-lang.c (f_language_data): Delete la_demangle initializer.
4996 (f_language::demangle): New member function.
4997 * go-lang.c (go_language_data): Delete la_demangle initializer.
4998 (go_language::demangle): New member function.
4999 * language.c (language_demangle): Update.
5000 (unk_lang_demangle): Delete.
5001 (unknown_language_data): Delete la_demangle initializer.
5002 (unknown_language::demangle): New member function.
5003 (auto_language_data): Delete la_demangle initializer.
5004 (auto_language::demangle): New member function.
5005 * language.h (language_data): Delete la_demangle field.
5006 (language_defn::demangle): New function.
5007 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5008 * objc-lang.c (objc_language_data): Delete la_demangle
5009 initializer.
5010 (objc_language::demangle): New member function.
5011 * opencl-lang.c (opencl_language_data): Delete la_demangle
5012 initializer.
5013 * p-lang.c (pascal_language_data): Likewise.
5014 * rust-lang.c (rust_language_data): Likewise.
5015 (rust_language::demangle): New member function.
5016
fbfb0a46
AB
50172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5018
5019 * ada-lang.c (ada_language_data): Delete la_print_type
5020 initializer.
5021 (ada_language::print_type): New member function.
5022 * c-lang.c (c_language_data): Delete la_print_type initializer.
5023 (c_language::print_type): New member function.
5024 (cplus_language_data): Delete la_print_type initializer.
5025 (cplus_language::print_type): New member function.
5026 (asm_language_data): Delete la_print_type initializer.
5027 (asm_language::print_type): New member function.
5028 (minimal_language_data): Delete la_print_type initializer.
5029 (minimal_language::print_type): New member function.
5030 * d-lang.c (d_language_data): Delete la_print_type initializer.
5031 (d_language::print_type): New member function.
5032 * f-lang.c (f_language_data): Delete la_print_type initializer.
5033 (f_language::print_type): New member function.
5034 * go-lang.c (go_language_data): Delete la_print_type initializer.
5035 (go_language::print_type): New member function.
5036 * language.c (unk_lang_print_type): Delete.
5037 (unknown_language_data): Delete la_print_type initializer.
5038 (unknown_language::print_type): New member function.
5039 (auto_language_data): Delete la_print_type initializer.
5040 (auto_language::print_type): New member function.
5041 * language.h (language_data): Delete la_print_type field.
5042 (language_defn::print_type): New function.
5043 (LA_PRINT_TYPE): Update.
5044 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5045 (m2_language::print_type): New member function.
5046 * objc-lang.c (objc_language_data): Delete la_print_type
5047 initializer.
5048 (objc_language::print_type): New member function.
5049 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5050 to opencl_language::print_type.
5051 (opencl_language_data): Delete la_print_type initializer.
5052 (opencl_language::print_type): New member function, implementation
5053 from opencl_print_type.
5054 * p-lang.c (pascal_language_data): Delete la_print_type
5055 initializer.
5056 (pascal_language::print_type): New member function.
5057 * rust-lang.c (rust_print_type): Delete, implementation moved to
5058 rust_language::print_type.
5059 (rust_language_data): Delete la_print_type initializer.
5060 (rust_language::print_type): New member function, implementation
5061 from rust_print_type.
5062
6f827019
AB
50632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5064
5065 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5066 implementation moves to...
5067 (ada_language::sniff_from_mangled_name): ...here. Update return
5068 type.
5069 (ada_language_data): Delete la_sniff_from_mangled_name
5070 initializer.
5071 * c-lang.c (c_language_data): Likewise.
5072 (cplus_language_data): Likewise.
5073 (cplus_language::sniff_from_mangled_name): New member function,
5074 implementation taken from gdb_sniff_from_mangled_name.
5075 (asm_language_data): Delete la_sniff_from_mangled_name
5076 initializer.
5077 (minimal_language_data): Likewise.
5078 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5079 implementation moves to cplus_language::sniff_from_mangled_name.
5080 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5081 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5082 moves to...
5083 (d_language::sniff_from_mangled_name): ...here.
5084 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5085 * f-lang.c (f_language_data): Likewise.
5086 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5087 moves to...
5088 (go_language::sniff_from_mangled_name): ...here.
5089 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5090 * language.c (language_sniff_from_mangled_name): Delete.
5091 (unknown_language_data): Delete la_sniff_from_mangled_name
5092 initializer.
5093 (auto_language_data): Likewise.
5094 * language.h (language_data): Delete la_sniff_from_mangled_name
5095 field.
5096 (language_defn::sniff_from_mangled_name): New function.
5097 (language_sniff_from_mangled_name): Delete declaration.
5098 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5099 field.
5100 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5101 implementation moves to...
5102 (objc_language::sniff_from_mangled_name): ...here.
5103 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5104 * opencl-lang.c (opencl_language_data): Likewise.
5105 * p-lang.c (pascal_language_data): Likewise.
5106 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5107 implementation moves to...
5108 (rust_language::sniff_from_mangled_name): ...here.
5109 (rust_language_data): Delete la_sniff_from_mangled_name
5110 initializer.
5111 * symtab.c (symbol_find_demangled_name): Call
5112 sniff_from_mangled_name member function.
5113
fb8006fd
AB
51142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5115
5116 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5117 initializer.
5118 * c-lang.c (c_language_data): Likewise.
5119 (cplus_language_data): Likewise.
5120 (cplus_language::search_name_hash): New member function.
5121 (asm_language_data): Delete la_search_name_hash initializer.
5122 (minimal_language_data): Likewise.
5123 * d-lang.c (d_language_data): Likewise.
5124 * dictionary.c (default_search_name_hash): Rename to...
5125 (language_defn::search_name_hash): ...this.
5126 * f-lang.c (f_language_data): Likewise.
5127 (f_language::search_name_hash): New member function.
5128 * go-lang.c (go_language_data): Delete la_search_name_hash
5129 initializer.
5130 * language.c (unknown_language_data): Likewise.
5131 (auto_language_data): Likewise.
5132 * language.h (struct language_data): Delete la_search_name_hash
5133 field.
5134 (language_defn::search_name_hash): Declare new member function.
5135 (default_search_name_hash): Delete declaration.
5136 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5137 initializer.
5138 * objc-lang.c (objc_language_data): Likewise.
5139 * opencl-lang.c (opencl_language_data): Likewise.
5140 * p-lang.c (pascal_language_data): Likewise.
5141 * rust-lang.c (rust_language_data): Likewise.
5142 * symtab.c (search_name_hash): Update call.
5143
8e25bafe
AB
51442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5145
5146 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5147 initializer.
5148 * c-lang.c (class compile_instance): Declare.
5149 (c_language_data): Delete la_get_compile_instance initializer.
5150 (c_language::get_compile_instance): New member function.
5151 (cplus_language_data): Delete la_get_compile_instance initializer.
5152 (cplus_language::get_compile_instance): New member function.
5153 (asm_language_data): Delete la_get_compile_instance initializer.
5154 (minimal_language_data): Likewise.
5155 * c-lang.h (c_get_compile_context): Update comment.
5156 (cplus_get_compile_context): Update comment.
5157 * compile/compile.c (compile_to_object): Update calls, don't rely
5158 on function pointer being NULL.
5159 * d-lang.c (d_language_data): Delete la_get_compile_instance
5160 initializer.
5161 * f-lang.c (f_language_data): Likewise.
5162 * go-lang.c (go_language_data): Likewise.
5163 * language.c (unknown_language_data): Likewise.
5164 (auto_language_data): Likewise.
5165 * language.h (language_data): Delete la_get_compile_instance field.
5166 (language_defn::get_compile_instance): New member function.
5167 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5168 initializer.
5169 * objc-lang.c (objc_language_data): Likewise.
5170 * opencl-lang.c (opencl_language_data): Likewise.
5171 * p-lang.c (pascal_language_data): Likewise.
5172 * rust-lang.c (rust_language_data): Likewise.
5173
4009ee92
AB
51742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5175
5176 * ada-lang.c (ada_add_all_symbols): Update comment.
5177 (ada_iterate_over_symbols): Delete, move implementation to...
5178 (ada_language::iterate_over_symbols): ...here, a new member
5179 function, rewrite to use range based for loop.
5180 (ada_language_data): Delete la_iterate_over_symbols initializer.
5181 * c-lang.c (c_language_data): Likewise.
5182 (cplus_language_data): Likewise.
5183 (asm_language_data): Likewise.
5184 (minimal_language_data): Likewise.
5185 * d-lang.c (d_language_data): Likewise.
5186 * f-lang.c (f_language_data): Likewise.
5187 * go-lang.c (go_language_data): Likewise.
5188 * language.c (unknown_language_data): Likewise.
5189 (auto_language_data): Likewise.
5190 * language.h (language_data): Delete la_iterate_over_symbols field.
5191 (language_defn::iterate_over_symbols): New member function.
5192 (LA_ITERATE_OVER_SYMBOLS): Update.
5193 * linespec.c (iterate_over_all_matching_symtabs): Update.
5194 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5195 initializer.
5196 * objc-lang.c (objc_language_data): Likewise.
5197 * opencl-lang.c (opencl_language_data): Likewise.
5198 * p-lang.c (pascal_language_data): Likewise.
5199 * rust-lang.c (rust_language_data): Likewise.
5200
54f4ca46
AB
52012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5202
5203 * ada-lang.c (ada_language_data): Delete
5204 la_lookup_transparent_type initializer.
5205 * c-lang.c (c_language_data): Likewise.
5206 (cplus_language_data): Likewise.
5207 (cplus_language::lookup_transparent_type): New member function.
5208 (asm_language_data): Delete la_lookup_transparent_type
5209 initializer.
5210 (minimal_language_data): Likewise.
5211 * d-lang.c (d_language_data): Likewise.
5212 * f-lang.c (f_language_data): Likewise.
5213 * go-lang.c (go_language_data): Likewise.
5214 * language.c (unknown_language_data): Likewise.
5215 (auto_language_data): Likewise.
5216 * language.h (struct language_data): Delete
5217 la_lookup_transparent_type field.
5218 (language_defn::lookup_transparent_type): New member function.
5219 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5220 initializer.
5221 * objc-lang.c (objc_language_data): Likewise.
5222 * opencl-lang.c (opencl_language_data): Likewise.
5223 * p-lang.c (pascal_language_data): Likewise.
5224 * rust-lang.c (rust_language_data): Likewise.
5225 * symtab.c (symbol_matches_domain): Update call.
5226
1fb314aa
AB
52272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5228
5229 * ada-lang.c (ada_language_arch_info): Delete function, move
5230 implementation to...
5231 (ada_language::language_arch_info): ...here, a new member
5232 function.
5233 (ada_language_data): Delete la_language_arch_info.
5234 * c-lang.c (c_language_data): Likewise.
5235 (c_language::language_arch_info): New member function.
5236 (cplus_language_arch_info): Delete function, move
5237 implementation to...
5238 (cplus_language::language_arch_info): ...here, a new member
5239 function.
5240 (cplus_language_data): Delete la_language_arch_info.
5241 (asm_language_data): Likewise.
5242 (asm_language::language_arch_info): New member function.
5243 (minimal_language_data): Delete la_language_arch_info.
5244 (minimal_language::language_arch_info): New member function.
5245 * d-lang.c (d_language_arch_info): Delete function, move
5246 implementation to...
5247 (d_language::language_arch_info): ...here, a new member
5248 function.
5249 (d_language_data): Delete la_language_arch_info.
5250 * f-lang.c (f_language_arch_info): Delete function, move
5251 implementation to...
5252 (f_language::language_arch_info): ...here, a new member
5253 function.
5254 (f_language_data): Delete la_language_arch_info.
5255 * go-lang.c (go_language_arch_info): Delete function, move
5256 implementation to...
5257 (go_language::language_arch_info): ...here, a new member
5258 function.
5259 (go_language_data): Delete la_language_arch_info.
5260 * language.c (unknown_language_data): Likewise.
5261 (unknown_language::language_arch_info): New member function.
5262 (auto_language_data): Delete la_language_arch_info.
5263 (auto_language::language_arch_info): New member function.
5264 (language_gdbarch_post_init): Update call to
5265 la_language_arch_info.
5266 * language.h (language_data): Delete la_language_arch_info
5267 function pointer.
5268 (language_defn::language_arch_info): New function.
5269 * m2-lang.c (m2_language_arch_info): Delete function, move
5270 implementation to...
5271 (m2_language::language_arch_info): ...here, a new member
5272 function.
5273 (m2_language_data): Delete la_language_arch_info.
5274 * objc-lang.c (objc_language_arch_info): Delete function, move
5275 implementation to...
5276 (objc_language::language_arch_info): ...here, a new member
5277 function.
5278 (objc_language_data): Delete la_language_arch_info.
5279 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5280 implementation to...
5281 (opencl_language::language_arch_info): ...here, a new member
5282 function.
5283 (opencl_language_data): Delete la_language_arch_info.
5284 * p-lang.c (pascal_language_arch_info): Delete function, move
5285 implementation to...
5286 (pascal_language::language_arch_info): ...here, a new member
5287 function.
5288 (pascal_language_data): Delete la_language_arch_info.
5289 * rust-lang.c (rust_language_arch_info): Delete function, move
5290 implementation to...
5291 (rust_language::language_arch_info): ...here, a new member
5292 function.
5293 (rust_language_data): Delete la_language_arch_info.
5294
48448202
AB
52952020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5296
5297 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5298 initializer.
5299 * c-lang.c (c_language_data): Likewise.
5300 (cplus_language_data): Likewise.
5301 (cplus_language::pass_by_reference_info): New method.
5302 (asm_language_data): Delete la_pass_by_reference initializer.
5303 (minimal_language_data): Likewise.
5304 * cp-abi.c (cp_pass_by_reference): Remove use of
5305 default_pass_by_reference.
5306 * d-lang.c (d_language_data): Likewise.
5307 * f-lang.c (f_language_data): Likewise.
5308 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5309 default_pass_by_reference.
5310 * go-lang.c (go_language_data): Likewise.
5311 * language.c (language_pass_by_reference): Update.
5312 (default_pass_by_reference): Delete.
5313 (unknown_language_data): Delete la_pass_by_reference
5314 initializer.
5315 (auto_language_data): Likewise.
5316 * language.h (struct language_data): Delete la_pass_by_reference
5317 field.
5318 (language_defn::pass_by_reference_info): New member function.
5319 (default_pass_by_reference): Delete declaration.
5320 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5321 initializer.
5322 * objc-lang.c (objc_language_data): Likewise.
5323 * opencl-lang.c (opencl_language_data): Likewise.
5324 * p-lang.c (pascal_language_data): Likewise.
5325 * rust-lang.c (rust_language_data): Likewise.
5326
15e5fd35
AB
53272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5328
5329 * ada-lang.c (ada_read_var_value): Delete function, move
5330 implementation to...
5331 (ada_language::read_var_value): ...here.
5332 (ada_language_data): Delete la_read_var_value initializer.
5333 * c-lang.c (c_language_data): Likewise.
5334 (cplus_language_data): Likewise.
5335 (minimal_language_data): Likewise.
5336 * d-lang.c (d_language_data): Likewise.
5337 * f-lang.c (f_language_data): Likewise.
5338 * findvar.c (default_read_var_value): Rename to...
5339 (language_defn::read_var_value): ...this.
5340 * findvar.c (read_var_value): Update header comment, and change to
5341 call member function instead of function pointer.
5342 * go-lang.c (go_language_data): Likewise.
5343 * language.c (unknown_language_data): Delete la_read_var_value
5344 initializer.
5345 (auto_language_data): Likewise.
5346 * language.h (struct language_data): Delete la_read_var_value
5347 field.
5348 (language_defn::read_var_value): New member function.
5349 (default_read_var_value): Delete declaration.
5350 * m2-lang.c (m2_language_data): Delete la_read_var_value
5351 initializer.
5352 * objc-lang.c (objc_language_data): Likewise.
5353 * opencl-lang.c (opencl_language_data): Likewise.
5354 * p-lang.c (pascal_language_data): Likewise.
5355 * rust-lang.c (rust_language_data): Likewise.
5356 * value.h (default_read_var_value): Delete declaration.
5357
5bd40f2a
AB
53582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5359
5360 * ada-lang.c (ada_print_array_index): Delete function, move
5361 implementation to...
5362 (ada_language::print_array_index): ...here.
5363 (ada_language_data): Delete la_print_array_index initializer.
5364 * c-lang.c (c_language_data): Likewise.
5365 (cplus_language_data): Likewise.
5366 (minimal_language_data): Likewise.
5367 * d-lang.c (d_language_data): Likewise.
5368 * f-lang.c (f_language_data): Likewise.
5369 * go-lang.c (go_language_data): Likewise.
5370 * language.c (default_print_array_index): Delete function, move
5371 implementation to...
5372 (language_defn::print_array_index): ...here.
5373 (unknown_language_data): Delete la_print_array_index initializer.
5374 (auto_language_data): Likewise.
5375 * language.h (struct language_data): Delete la_print_array_index
5376 field.
5377 (language_defn::print_array_index): New member function.
5378 (LA_PRINT_ARRAY_INDEX): Update.
5379 (default_print_array_index): Delete declaration.
5380 * m2-lang.c (m2_language_data): Delete la_print_array_index
5381 initializer.
5382 * objc-lang.c (objc_language_data): Likewise.
5383 * opencl-lang.c (opencl_language_data): Likewise.
5384 * p-lang.c (pascal_language_data): Likewise.
5385 * rust-lang.c (rust_language_data): Likewise.
5386
0874fd07
AB
53872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5388
5389 * gdb/ada-lang.c (ada_language_defn): Convert to...
5390 (ada_language_data): ...this.
5391 (class ada_language): New class.
5392 (ada_language_defn): New static global.
5393 * gdb/c-lang.c (c_language_defn): Convert to...
5394 (c_language_data): ...this.
5395 (class c_language): New class.
5396 (c_language_defn): New static global.
5397 (cplus_language_defn): Convert to...
5398 (cplus_language_data): ...this.
5399 (class cplus_language): New class.
5400 (cplus_language_defn): New static global.
5401 (asm_language_defn): Convert to...
5402 (asm_language_data): ...this.
5403 (class asm_language): New class.
5404 (asm_language_defn): New static global.
5405 (minimal_language_defn): Convert to...
5406 (minimal_language_data): ...this.
5407 (class minimal_language): New class.
5408 (minimal_language_defn): New static global.
5409 * gdb/d-lang.c (d_language_defn): Convert to...
5410 (d_language_data): ...this.
5411 (class d_language): New class.
5412 (d_language_defn): New static global.
5413 * gdb/f-lang.c (f_language_defn): Convert to...
5414 (f_language_data): ...this.
5415 (class f_language): New class.
5416 (f_language_defn): New static global.
5417 * gdb/go-lang.c (go_language_defn): Convert to...
5418 (go_language_data): ...this.
5419 (class go_language): New class.
5420 (go_language_defn): New static global.
5421 * gdb/language.c (unknown_language_defn): Remove declaration.
5422 (current_language): Initialize to nullptr, real initialization is
5423 moved to _initialize_language.
5424 (languages): Delete global.
5425 (language_defn::languages): Define.
5426 (set_language_command): Use language_defn::languages.
5427 (set_language): Likewise.
5428 (range_error): Likewise.
5429 (language_enum): Likewise.
5430 (language_def): Likewise.
5431 (add_set_language_command): Use language_def::languages for the
5432 language list, and language_def to lookup language pointers.
5433 (skip_language_trampoline): Use language_defn::languages.
5434 (unknown_language_defn): Convert to...
5435 (unknown_language_data): ...this.
5436 (class unknown_language): New class.
5437 (unknown_language_defn): New static global.
5438 (auto_language_defn): Convert to...
5439 (auto_language_data): ...this.
5440 (class auto_language): New class.
5441 (auto_language_defn): New static global.
5442 (language_gdbarch_post_init): Use language_defn::languages.
5443 (_initialize_language): Initialize current_language.
5444 * gdb/language.h (struct language_defn): Rename to...
5445 (struct language_data): ...this.
5446 (struct language_defn): New.
5447 (auto_language_defn): Delete.
5448 (unknown_language_defn): Delete.
5449 (minimal_language_defn): Delete.
5450 (ada_language_defn): Delete.
5451 (asm_language_defn): Delete.
5452 (c_language_defn): Delete.
5453 (cplus_language_defn): Delete.
5454 (d_language_defn): Delete.
5455 (f_language_defn): Delete.
5456 (go_language_defn): Delete.
5457 (m2_language_defn): Delete.
5458 (objc_language_defn): Delete.
5459 (opencl_language_defn): Delete.
5460 (pascal_language_defn): Delete.
5461 (rust_language_defn): Delete.
5462 * gdb/m2-lang.c (m2_language_defn): Convert to...
5463 (m2_language_data): ...this.
5464 (class m2_language): New class.
5465 (m2_language_defn): New static global.
5466 * gdb/objc-lang.c (objc_language_defn): Convert to...
5467 (objc_language_data): ...this.
5468 (class objc_language): New class.
5469 (objc_language_defn): New static global.
5470 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5471 (opencl_language_data): ...this.
5472 (class opencl_language): New class.
5473 (opencl_language_defn): New static global.
5474 * gdb/p-lang.c (pascal_language_defn): Convert to...
5475 (pascal_language_data): ...this.
5476 (class pascal_language): New class.
5477 (pascal_language_defn): New static global.
5478 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5479 language pointer, update comment format.
5480 * gdb/rust-lang.c (rust_language_defn): Convert to...
5481 (rust_language_data): ...this.
5482 (class rust_language): New class.
5483 (rust_language_defn): New static global.
5484
1313c56e
AB
54852020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5486
5487 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5488 member variable.
5489 <m_stmt_at_address>: New member variable.
5490 (lnp_state_machine::record_line): Don't record some lines, update
5491 tracking of is_stmt at the same address.
5492 (lnp_state_machine::lnp_state_machine): Initialise new member
5493 variables.
5494
b7ed9f3d
ST
54952020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5496
5497 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5498 "-include gnu-nat-mig.h".
5499 * gnu-nat-mig.h: New file.
5500 * gnu-nat.c: Include "gnu-nat-mig.h".
5501 (exc_server, msg_reply_server, notify_server,
5502 process_reply_server): Remove declarations.
5503
14a8ad62
ST
55042020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5505
5506 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5507 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5508 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5509 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5510 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5511 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5512 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5513 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5514 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5515 to gnu_nat_target class.
5516 * gnu-nat.c: Likewise.
5517 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5518 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5519 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5520 object.
5521 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5522 instead of `gnu_target'.
5523
0af5e106
ST
55242020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5525
5526 * i386-gnu-tdep.c: Include "gdbcore.h"
5527 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5528 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5529 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5530 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5531 i386_gnu_sigcontext_addr): New functions
5532 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5533 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5534 tdep.
5535
078f2fc9
ST
55362020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5537
5538 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5539 before fork_inferior call. Avoid calling it if target_is_pushed returns
5540 true.
5541
53dff92c
ST
55422020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5543
5544 * gnu-nat.h (gnu_target): New variable declaration.
5545 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5546 gnu_target.
5547 * gnu-nat.c (gnu_target): New variable.
5548 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5549 add_thread_silent, and add_thread calls.
5550 (gnu_nat_target::create_inferior): Pass gnu_target to
5551 add_thread_silent, thread_change_ptid call.
5552 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5553 call.
5554
5a8b8627
ST
55552020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5556
5557 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5558 (gnu_nat_target::find_memory_regions): Remove unused
5559 `old_address' variable.
5560
366f550a
ST
55612020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5562
5563 * gnu-nat.c: Include "gdbarch.h".
5564
f14871bf
ST
55652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5566
5567 * reply_mig_hack.awk (Error return): Cast function through
5568 void *, to bypass compiler function call check.
5569
c6887cfb
ST
55702020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5571
5572 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5573 $(srcdir)/reply_mig_hack.awk.
5574
6930bffe
ST
55752020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5576
5577 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5578
112c22ed
JG
55792020-05-30 Jonny Grant <jg@jguk.org>
5580
5581 * configure.ac (ACX_BUGURL): change bug URL to https.
5582
f68f85b5
PA
55832020-05-30 Pedro Alves <palves@redhat.com>
5584
5585 * cp-support.c (replace_typedefs_template): New.
5586 (replace_typedefs_qualified_name): Handle
5587 DEMANGLE_COMPONENT_TEMPLATE.
5588
976ca316
SM
55892020-05-29 Simon Marchi <simon.marchi@efficios.com>
5590
5591 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5592 dwarf2/index-cache.h, dwarf2/index-write.c,
5593 dwarf2/index-write.h, dwarf2/line-header.c,
5594 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5595 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5596 variables and fields from `dwarf2_per_objfile` to just
5597 `per_objfile` throughout.
5598
989ade05
SM
55992020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5600
5601 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5602 <push_dwarf_reg_entry_value>: Add comment.
5603
c47bae85
KB
56042020-05-28 Kevin Buettner <kevinb@redhat.com>
5605 Keith Seitz <keiths@redhat.com>
5606
5607 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5608 instead of PyEval_ReleaseLock.
5609 (class gdbpy_gil): Move to earlier in file.
5610 (finalize_python): Set gdb_python_initialized.
5611 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5612 when not initialized.
5613
44486dcf
SM
56142020-05-28 Simon Marchi <simon.marchi@efficios.com>
5615
5616 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5617 <push_dwarf_reg_entry_value>: Remove assert. Override
5618 per_objfile with caller_per_objfile.
5619
f030440d
TV
56202020-05-28 Tom de Vries <tdevries@suse.de>
5621
5622 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5623 PR gold/15646 workaround to symbol kind "type".
5624
f0fbb768
TT
56252020-05-27 Tom Tromey <tromey@adacore.com>
5626
5627 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5628
af0b2a3e
TT
56292020-05-27 Tom Tromey <tromey@adacore.com>
5630
5631 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5632 Use htab_find_with_hash.
5633 <add_abbrev>: Remove "abbrev_number" parameter.
5634 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5635 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5636 (hash_abbrev): Add comment.
5637 (abbrev_table::lookup_abbrev): Move to header file.
5638 (abbrev_table::read): Update.
5639
7d00ffec
TT
56402020-05-27 Tom Tromey <tromey@adacore.com>
5641
5642 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5643 method.
5644 <canonical_name>: New member.
5645 <raw_name>: Rename from "name".
5646 (partial_die_info): Initialize canonical_name.
5647 (scan_partial_symbols): Check raw_name.
5648 (partial_die_parent_scope, partial_die_full_name)
5649 (add_partial_symbol, add_partial_subprogram)
5650 (add_partial_enumeration, load_partial_dies): Use "name" method.
5651 (partial_die_info::name): New method.
5652 (partial_die_info::read, guess_partial_die_structure_name)
5653 (partial_die_info::fixup): Update.
5654
697bba18
TT
56552020-05-27 Tom Tromey <tromey@adacore.com>
5656
5657 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5658 <get_ref_die_offset>: Inline.
5659 <get_ref_die_offset_complaint>: New method.
5660 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5661 (attribute::get_ref_die_offset_complaint): Rename from
5662 get_ref_die_offset. Just issue complaint.
5663
c17ace43
HD
56642020-05-27 Hannes Domani <ssbssa@yahoo.de>
5665
5666 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5667
96445f0b
HD
56682020-05-27 Hannes Domani <ssbssa@yahoo.de>
5669
5670 * exec.c (exec_file_attach): Use errno value of first openp failure.
5671
ac637ec3
HD
56722020-05-27 Hannes Domani <ssbssa@yahoo.de>
5673
5674 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5675 Don't close thread handle.
5676
17ee85fc
TT
56772020-05-27 Tom Tromey <tom@tromey.com>
5678 Simon Marchi <simon.marchi@efficios.com>
5679
5680 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5681 shared_ptr.
5682 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5683 member.
5684 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5685 dwarf2_per_bfd_objfile_data_key>: New globals.
5686 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5687 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5688 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5689 shared.
5690 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5691 short-circuit when sharing.
5692 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5693 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5694
39b16f87
SM
56952020-05-27 Simon Marchi <simon.marchi@efficios.com>
5696
5697 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5698 to...
5699 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5700 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5701
fcf23d5b
SM
57022020-05-27 Simon Marchi <simon.marchi@efficios.com>
5703
5704 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5705 build_name_components, find_name_components_bounds>:
5706 Add per_objfile parameter.
5707 (struct mapped_index) <symbol_name_at>: Likewise.
5708 (struct mapped_debug_names): Remove constructor.
5709 <dwarf2_per_objfile>: Remove field.
5710 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5711 (mapped_index_base::find_name_components_bounds,
5712 mapped_index_base::build_name_components,
5713 dw2_expand_symtabs_matching_symbol): Likewise.
5714 (class mock_mapped_index) <symbol_name_at>: Likewise.
5715 (check_match): Likewise.
5716 (check_find_bounds_finds): Likewise.
5717 (test_mapped_index_find_name_component_bounds): Update.
5718 (CHECK_MATCH): Update.
5719 (dw2_expand_symtabs_matching): Update.
5720 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5721 per_objfile parameter.
5722 <find_vec_in_debug_names>: Likewise.
5723 <m_per_objfile>: New field.
5724 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5725 parameter.
5726 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5727 (dw2_debug_names_iterator::next): Update.
5728 (dw2_debug_names_lookup_symbol): Update.
5729 (dw2_debug_names_expand_symtabs_for_function): Update.
5730 (dw2_debug_names_map_matching_symbols): Update.
5731 (dw2_debug_names_expand_symtabs_matching): Update.
5732 (dwarf2_read_debug_names): Update.
5733
7188ed02
SM
57342020-05-27 Simon Marchi <simon.marchi@efficios.com>
5735
5736 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5737 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5738 move to dwarf2_per_objfile.
5739 <read_in_chain>: Remove.
5740 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5741 remove_all_cus, age_comp_units>: New methods.
5742 <m_dwarf2_cus>: New member.
5743 (struct dwarf2_per_cu_data) <cu>: Remove.
5744 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5745 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5746 moved to methods of dwarf2_per_objfile.
5747 (dwarf2_clear_marks): Remove.
5748 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5749 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5750 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5751 (dwarf2_per_objfile::remove_all_cus): New.
5752 (class free_cached_comp_units) <~free_cached_comp_units>:
5753 Update.
5754 (load_cu): Update.
5755 (dw2_do_instantiate_symtab): Adjust.
5756 (fill_in_sig_entry_from_dwo_entry): Adjust.
5757 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5758 (cutu_reader::cutu_reader): Likewise.
5759 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5760 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5761 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5762 and dwarf2_per_objfile::age_comp_units.
5763 (load_partial_comp_unit): Update.
5764 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5765 (process_queue): Likewise.
5766 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5767 backlink.
5768 (dwarf2_read_addr_index): Likewise.
5769 (follow_die_offset): Likewise.
5770 (dwarf2_fetch_die_loc_sect_off): Likewise.
5771 (dwarf2_fetch_constant_bytes): Likewise.
5772 (dwarf2_fetch_die_type_sect_off): Likewise.
5773 (follow_die_sig_1): Likewise.
5774 (load_full_type_unit): Likewise.
5775 (read_signatured_type): Likewise.
5776 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5777 (dwarf2_cu::~dwarf2_cu): Remove.
5778 (dwarf2_per_objfile::get_cu): New.
5779 (dwarf2_per_objfile::set_cu): New.
5780 (age_cached_comp_units): Rename to...
5781 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5782 to std::unordered_map.
5783 (free_one_cached_comp_unit): Rename to...
5784 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5785 to std::unordered_map.
5786 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5787 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5788 a dwarf2_per_objfile in data.
5789 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5790 (dwarf2_clear_marks): Remove.
5791
2e671100
SM
57922020-05-27 Simon Marchi <simon.marchi@efficios.com>
5793
5794 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5795 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5796 (init_tu_and_read_dwo_dies): Likewise.
5797 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5798 (cutu_reader::cutu_reader): Likewise.
5799 (load_partial_comp_unit): Likewise.
5800 (process_psymtab_comp_unit): Update.
5801 (build_type_psymtabs_1): Update.
5802 (process_skeletonless_type_unit): Update.
5803 (load_full_comp_unit): Update.
5804 (find_partial_die): Update.
5805 (dwarf2_read_addr_index): Update.
5806 (read_signatured_type): Update.
5807
2e6a9f79
SM
58082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5809
5810 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5811 m_header_read_in>: New fields.
5812 <get_header>: New method.
5813 * dwarf2/read.c (per_cu_header_read_in): Remove.
5814 (dwarf2_per_cu_data::get_header): New.
5815 (dwarf2_per_cu_data::addr_size): Update.
5816 (dwarf2_per_cu_data::offset_size): Update.
5817 (dwarf2_per_cu_data::ref_addr_size): Update.
5818
1b555f17
SM
58192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5820
5821 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5822 (dw2_do_instantiate_symtab): Update.
5823 (queue_and_load_all_dwo_tus): Change parameter from
5824 dwarf2_per_cu_data to dwarf2_cu.
5825 (dwarf2_fetch_die_loc_sect_off): Update.
5826 (dwarf2_fetch_constant_bytes): Update.
5827 (dwarf2_fetch_die_type_sect_off): Update.
5828
8fc0b21d
SM
58292020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5830
5831 * dwarf2/read.c (process_full_comp_unit,
5832 process_full_type_unit): Remove per_cu, per_objfile paramters.
5833 Add dwarf2_cu parameter.
5834 (process_queue): Update.
5835
168c9250
SM
58362020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5837
5838 * dwarf2/read.c (create_cu_from_index_list): Replace
5839 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5840 (create_cus_from_index_list): Likewise.
5841 (create_cus_from_index): Likewise.
5842 (create_signatured_type_table_from_index): Likewise.
5843 (create_cus_from_debug_names_list): Likewise.
5844 (create_cus_from_debug_names): Likewise.
5845 (dwarf2_read_gdb_index): Update.
5846 (dwarf2_read_debug_names): Update.
5847
e286671b
TT
58482020-05-27 Tom Tromey <tom@tromey.com>
5849 Simon Marchi <simon.marchi@efficios.com>
5850
5851 * dwarf2/read.h (struct dwarf2_per_objfile)
5852 <get_type_for_signatured_type, set_type_for_signatured_type>:
5853 New methods.
5854 <m_type_map>: New member.
5855 (struct signatured_type) <type>: Remove.
5856 * dwarf2/read.c
5857 (dwarf2_per_objfile::get_type_for_signatured_type,
5858 dwarf2_per_objfile::set_type_for_signatured_type): New.
5859 (get_signatured_type): Use new methods.
5860
8adb8487
TT
58612020-05-27 Tom Tromey <tom@tromey.com>
5862 Simon Marchi <simon.marchi@efficios.com>
5863
5864 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5865 (struct dwarf2_per_objfile) <type_units>: New member.
5866 <get_type_unit_group_unshareable>: New method.
5867 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5868 num_symtabs, symtabs>: Remove; move to
5869 type_unit_group_unshareable.
5870 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5871 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5872 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5873
127bbf4b
SM
58742020-05-27 Simon Marchi <simon.marchi@efficios.com>
5875
5876 * dwarf2/read.h (struct dwarf2_per_cu_data):
5877 <dwarf2_per_objfile>: Remove.
5878 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5879 dwarf2_per_objfile.
5880 (create_signatured_type_table_from_index): Likewise.
5881 (create_signatured_type_table_from_debug_names): Likewise.
5882 (create_debug_type_hash_table): Likewise.
5883 (fill_in_sig_entry_from_dwo_entry): Likewise.
5884 (create_type_unit_group): Likewise.
5885 (read_comp_units_from_section): Likewise.
5886 (create_cus_hash_table): Likewise.
5887
f6e649dd
SM
58882020-05-27 Simon Marchi <simon.marchi@efficios.com>
5889
5890 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5891 dwarf2_per_cu_data::dwarf2_per_objfile.
5892 (compute_compunit_symtab_includes): Likewise.
5893 (dwarf2_cu::start_symtab): Likewise.
5894
aa66c379
SM
58952020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5896
5897 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5898 parameter.
5899 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5900 (read_namespace_alias): Update.
5901 (lookup_die_type): Update.
5902 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5903 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5904 Update.
5905 (disassemble_dwarf_expression): Update.
5906
120ce1b5
SM
59072020-05-27 Simon Marchi <simon.marchi@efficios.com>
5908
5909 * dwarf2/read.h (struct dwarf2_queue_item): Add
5910 dwarf2_per_objfile parameter, assign new parameter.
5911 <per_objfile>: New field.
5912 * dwarf2/read.c (free_one_cached_comp_unit): Add
5913 dwarf2_per_objfile parameter.
5914 (queue_comp_unit): Likewise.
5915 (dw2_do_instantiate_symtab): Update.
5916 (process_psymtab_comp_unit): Update.
5917 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5918 (process_imported_unit_die): Update.
5919 (queue_and_load_dwo_tu): Update.
5920 (follow_die_offset): Update.
5921 (follow_die_sig_1): Update.
5922
9f47c707
SM
59232020-05-27 Simon Marchi <simon.marchi@efficios.com>
5924
5925 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5926 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5927 (read_call_site_scope): Assign per_objfile.
5928 (dwarf2_per_cu_data::objfile): Remove.
5929 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5930 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5931 dwarf2_per_objfile parameter.
5932 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5933 dwarf2_per_objfile parameter.
5934 (dwarf_expr_reg_to_entry_parameter): Add output
5935 dwarf2_per_objfile parameter.
5936 (locexpr_get_frame_base): Update.
5937 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5938 <push_dwarf_reg_entry_value>: Update.
5939 <call_site_to_target_addr>: Update.
5940 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5941 parameter.
5942 (value_of_dwarf_reg_entry): Update.
5943 (rw_pieced_value): Update.
5944 (indirect_synthetic_pointer): Update.
5945 (dwarf2_evaluate_property): Update.
5946 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5947 parameter.
5948 (locexpr_read_variable): Update.
5949 (locexpr_get_symbol_read_needs): Update.
5950 (loclist_read_variable): Update.
5951
14095eb3
SM
59522020-05-27 Simon Marchi <simon.marchi@efficios.com>
5953
5954 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5955 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5956 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5957 parameter.
5958 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5959 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5960 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5961 parameter.
5962 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5963 sect_variable_value): Add dwarf2_per_objfile parameter.
5964 (class dwarf_evaluate_loc_desc) <dwarf_call,
5965 dwarf_variable_value>: Update.
5966 (fetch_const_value_from_synthetic_pointer): Add
5967 dwarf2_per_objfile parameter.
5968 (fetch_const_value_from_synthetic_pointer): Update.
5969 (coerced_pieced_ref): Update.
5970 (class symbol_needs_eval_context) <dwarf_call,
5971 dwarf_variable_value>: Update.
5972 (dwarf2_compile_expr_to_ax): Update.
5973
3c3cd3d4
SM
59742020-05-27 Simon Marchi <simon.marchi@efficios.com>
5975
5976 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5977 parameter.
5978 (dwarf2_evaluate_loc_desc_full): Update.
5979
82ca3f51
SM
59802020-05-27 Simon Marchi <simon.marchi@efficios.com>
5981
5982 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5983 parameter.
5984 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5985 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5986 dwarf2_per_objfile parameter.
5987 (decode_debug_loc_dwo_addresses): Likewise.
5988 (dwarf2_find_location_expression): Update.
5989 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5990 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5991 parameter.
5992 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5993 parameter.
5994 (locexpr_describe_location_1): Likewise.
5995 (locexpr_describe_location): Update.
5996
4b167ea1
SM
59972020-05-27 Simon Marchi <simon.marchi@efficios.com>
5998
5999 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6000 Remove.
6001 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6002 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6003 (dwarf2_compile_property_to_c): Update.
6004 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6005 use text offset from objfile.
6006 (locexpr_tracepoint_var_ref): Update.
6007 (locexpr_generate_c_location): Update.
6008 (loclist_describe_location): Update.
6009 (loclist_tracepoint_var_ref): Update.
6010 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6011 dwarf2_per_objfile parameter.
6012 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6013 use text offset from objfile.
6014 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6015
89b07335
SM
60162020-05-27 Simon Marchi <simon.marchi@efficios.com>
6017
6018 * dwarf2/expr.h (struct dwarf_expr_context)
6019 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6020 <offset>: Remove.
6021 <per_objfile>: New member.
6022 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6023 dwarf2_per_objfile parameter. Don't set offset, set
6024 per_objfile.
6025 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6026 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6027 a dwarf2_per_objfile object instead of an offset.
6028 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6029 constructor.
6030 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6031 to dwarf2_expr_executor constructor. Don't set offset.
6032 (dwarf2_fetch_cfa_info): Update.
6033 (struct dwarf2_frame_cache) <text_offset>: Remove.
6034 <per_objfile>: New field.
6035 (dwarf2_frame_cache): Update.
6036 (dwarf2_frame_prev_register): Update.
6037 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6038 <dwarf_evaluate_loc_desc>: Add constructor.
6039 (dwarf2_evaluate_loc_desc_full): Update.
6040 (dwarf2_locexpr_baton_eval): Update.
6041 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6042 Add constructor.
6043 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6044
293e7e51
SM
60452020-05-27 Simon Marchi <simon.marchi@efficios.com>
6046
6047 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6048 addr_sized_int_type>: Move to dwarf2_cu.
6049 <int_type>: Move to dwarf2_per_objfile.
6050 (struct dwarf2_per_objfile) <int_type>: Move here.
6051 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6052 addr_sized_int_type>: Move here.
6053 (read_func_scope): Update.
6054 (read_array_type): Update.
6055 (read_tag_string_type): Update.
6056 (attr_to_dynamic_prop): Update.
6057 (dwarf2_per_cu_data::int_type): Rename to...
6058 (dwarf2_per_objfile::int_type): ... this.
6059 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6060 (dwarf2_cu::addr_sized_int_type): ... this.
6061 (read_subrange_type): Update.
6062 (dwarf2_per_cu_data::addr_type): Rename to...
6063 (dwarf2_cu::addr_type): ... this.
6064 (set_die_type): Update.
6065
64874a40
SM
60662020-05-27 Simon Marchi <simon.marchi@efficios.com>
6067
6068 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6069 data through per_cu->cu.
6070
4ab09049
SM
60712020-05-27 Simon Marchi <simon.marchi@efficios.com>
6072
6073 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6074 dwarf2_per_cu_data parameter fo dwarf2_cu.
6075 (lookup_dwo_type_unit): Likewise.
6076 (read_cutu_die_from_dwo): Likewise.
6077 (lookup_dwo_unit): Likewise.
6078 (open_and_init_dwo_file): Likewise.
6079 (lookup_dwo_cutu): Likewise.
6080 (lookup_dwo_comp_unit): Likewise.
6081 (lookup_dwo_type_unit): Likewise.
6082 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6083 (cutu_reader::cutu_reader): Update.
6084
47b14e86
SM
60852020-05-27 Simon Marchi <simon.marchi@efficios.com>
6086
6087 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6088 parameter.
6089 (process_full_type_unit): Likewise.
6090 (process_queue): Update.
6091
43182c09
SM
60922020-05-27 Simon Marchi <simon.marchi@efficios.com>
6093
6094 * dwarf2/read.c (recursively_compute_inclusions): Add
6095 dwarf2_per_objfile parameter.
6096 (compute_compunit_symtab_includes): Likewise.
6097 (process_cu_includes): Update.
6098
7aa104c4
SM
60992020-05-27 Simon Marchi <simon.marchi@efficios.com>
6100
6101 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6102 parameter.
6103 (create_type_unit_group): Update.
6104 (process_psymtab_comp_unit_reader): Update.
6105 (build_type_psymtabs_reader): Update.
6106
e3beb21d
SM
61072020-05-27 Simon Marchi <simon.marchi@efficios.com>
6108
6109 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6110 object through m_this_cu->cu.
6111
d460f660
SM
61122020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6113
6114 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6115 the info parameter.
6116 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6117
ab432490
SM
61182020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6119
6120 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6121 per_objfile parameter.
6122 (load_full_type_unit): Add per_objfile parameter.
6123 (read_signatured_type): Likewise.
6124 (load_full_comp_unit): Likewise.
6125 (load_cu): Likewise.
6126 (dw2_do_instantiate_symtab): Likewise.
6127 (dw2_get_file_names): Likewise.
6128 (dw2_map_symtabs_matching_filename): Update.
6129 (dw_expand_symtabs_matching_file_matcher): Update.
6130 (dw2_map_symbol_filenames): Update.
6131 (process_psymtab_comp_unit): Add per_objfile parameter.
6132 (build_type_psymtabs_1): Update.
6133 (process_skeletonless_type_unit): Update.
6134 (dwarf2_build_psymtabs_hard): Update.
6135 (load_partial_comp_unit): Add per_objfile parameter.
6136 (scan_partial_symbols): Update.
6137 (load_full_comp_unit): Add per_objfile parameter.
6138 (process_imported_unit_die): Update.
6139 (create_cus_hash_table): Update.
6140 (find_partial_die): Update.
6141 (dwarf2_read_addr_index): Update.
6142 (follow_die_offset): Update.
6143 (dwarf2_fetch_die_loc_sect_off): Update.
6144 (dwarf2_fetch_constant_bytes): Update.
6145 (dwarf2_fetch_die_type_sect_off): Update.
6146 (follow_die_sig_1): Update.
6147 (load_full_type_unit): Add per_objfile parameter.
6148 (read_signatured_type): Likewise.
6149
313bad1b
SM
61502020-05-27 Simon Marchi <simon.marchi@efficios.com>
6151
6152 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6153 of objfile_name.
6154
c3699833
SM
61552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6156
6157 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6158 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6159 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6160 field.
6161 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6162 (create_cus_from_index): Update.
6163 (dwarf2_read_gdb_index): Update.
6164 (create_cus_from_debug_names): Update.
6165 (dwarf2_read_debug_names): Update.
6166 (get_abbrev_section_for_cu): Update.
6167 (create_all_comp_units): Update.
6168 (read_attribute_value): Update.
6169 (get_debug_line_section): Update.
6170 * dwarf2/index-cache.c (index_cache::store): Update.
6171 * dwarf2/index-write.c (save_gdb_index_command): Update.
6172 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6173
1859c670
SM
61742020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6175
6176 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6177 member.
6178 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6179 dwarf2_per_cu_data::per_bfd.
6180 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6181 (create_type_unit_group): Likewise.
6182 (queue_comp_unit): Remove reference to
6183 per_cu->dwarf2_per_objfile.
6184 (maybe_queue_comp_unit): Likewise.
6185 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6186 (create_cus_hash_table): Assign new field.
6187
5e22e966
SM
61882020-05-27 Simon Marchi <simon.marchi@efficios.com>
6189
6190 * dwarf2/read.c: Replace
6191 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6192 dwarf2_cu->per_objfile throughout.
6193
97a1449a
SM
61942020-05-27 Simon Marchi <simon.marchi@efficios.com>
6195
6196 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6197 parameter, don't use per_cu->dwarf2_per_objfile.
6198 (dw2_instantiate_symtab): Likewise.
6199 (dw2_find_last_source_symtab): Update.
6200 (dw2_map_expand_apply): Update.
6201 (dw2_lookup_symbol): Update.
6202 (dw2_expand_symtabs_for_function): Update.
6203 (dw2_expand_all_symtabs): Update.
6204 (dw2_expand_symtabs_with_fullname): Update.
6205 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6206 don't use per_cu->dwarf2_per_objfile.
6207 (dw2_expand_marked_cus): Update.
6208 (dw2_find_pc_sect_compunit_symtab): Update.
6209 (dw2_debug_names_lookup_symbol): Update.
6210 (dw2_debug_names_expand_symtabs_for_function): Update.
6211 (dw2_debug_names_map_matching_symbols): Update.
6212 (dwarf2_psymtab::expand_psymtab): Update.
6213
9e021579
SM
62142020-05-27 Simon Marchi <simon.marchi@efficios.com>
6215
6216 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6217 <per_objfile>: New member.
6218 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6219 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6220 call to dwarf2_cu.
6221 (cutu_reader::cutu_reader): Update.
6222 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6223
ae090bdb
SM
62242020-05-27 Simon Marchi <simon.marchi@efficios.com>
6225
6226 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6227 struct dwarf2_per_objfile.
6228 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6229 dwarf2_per_bfd.
6230 * dwarf2/read.c (set_die_type): Update.
6231 (get_die_type_at_offset): Update.
6232
af758d11
SM
62332020-05-27 Tom Tromey <tom@tromey.com>
6234 Simon Marchi <simon.marchi@efficios.com>
6235
6236 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6237 method.
6238 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6239 get_symtab, set_symtab>: New methods.
6240 <m_symtabs>: New field.
6241 (struct dwarf2_psymtab): Derive from partial_symtab.
6242 <readin_p, get_compunit_symtab>: Declare methods.
6243 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6244 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6245 New methods.
6246 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6247 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6248 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6249 (dw2_symtab_iter_next, dw2_print_stats)
6250 (dw2_expand_symtabs_with_fullname)
6251 (dw2_expand_symtabs_matching_one)
6252 (dw_expand_symtabs_matching_file_matcher)
6253 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6254 (dw2_debug_names_iterator::next)
6255 (dw2_debug_names_map_matching_symbols)
6256 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6257 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6258 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6259 New methods.
6260 (get_compunit_symtab, process_full_comp_unit)
6261 (process_full_type_unit): Update.
6262 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6263
5989a64e
SM
62642020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6265
6266 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6267 then introduce a new dwarf2_per_objfile type.
6268 <read_line_string>: Move to the new dwarf2_per_objfile type.
6269 <objfile>: Likewise.
6270 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6271 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6272 dwarf2_per_objfile->per_bfd.
6273 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6274 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6275 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6276 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6277 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6278 (dwarf2_per_objfile::locate_sections): Rename to...
6279 (dwarf2_per_bfd::locate_sections): ... this.
6280 (dwarf2_per_objfile::get_cutu): Rename to...
6281 (dwarf2_per_bfd::get_cutu): ... this.
6282 (dwarf2_per_objfile::get_cu): Rename to...
6283 (dwarf2_per_bfd::get_cu): ... this.
6284 (dwarf2_per_objfile::get_tu): Rename to...
6285 (dwarf2_per_bfd::get_tu): ... this.
6286 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6287 (dwarf2_per_bfd::allocate_per_cu): ... this.
6288 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6289 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6290 (get_gdb_index_contents_ftype): Change parameter from
6291 dwarf2_per_objfile to dwarf2_per_bfd.
6292 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6293 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6294
a50264ba
TT
62952020-05-27 Tom Tromey <tom@tromey.com>
6296 Simon Marchi <simon.marchi@efficios.com>
6297
6298 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6299 (allocate_piece_closure): Set "per_objfile" member.
6300 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6301 (locexpr_describe_location, loclist_describe_location): Use new
6302 member.
6303 * dwarf2/read.c (read_call_site_scope)
6304 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6305 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6306 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6307 handle_data_member_location): Set per_objfile member.
6308 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6309 member.
6310 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6311
d3473f0c
TT
63122020-05-27 Tom Tromey <tom@tromey.com>
6313
6314 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6315 allocate_signatured_type>: Declare new methods.
6316 <m_num_psymtabs>: New member.
6317 (struct dwarf2_per_cu_data) <index>: New member.
6318 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6319 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6320 (create_cu_from_index_list): Use allocate_per_cu.
6321 (create_signatured_type_table_from_index)
6322 (create_signatured_type_table_from_debug_names)
6323 (create_debug_type_hash_table, add_type_unit)
6324 (read_comp_units_from_section): Use allocate_signatured_type.
6325
5717c425
TT
63262020-05-27 Tom Tromey <tom@tromey.com>
6327
6328 * psymtab.c (partial_map_expand_apply)
6329 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6330 (psym_lookup_global_symbol_language)
6331 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6332 (psym_print_stats, psym_expand_symtabs_for_function)
6333 (psym_map_symbol_filenames, psym_map_matching_symbols)
6334 (psym_expand_symtabs_matching)
6335 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6336 (maintenance_check_psymtabs): Update.
6337 * psympriv.h (struct partial_symtab) <readin_p,
6338 get_compunit_symtab>: Add objfile parameter.
6339 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6340 Likewise.
6341 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6342 get_compunit_symtab>: Likewise.
6343 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6344
45940949
TT
63452020-05-27 Tom Tromey <tom@tromey.com>
6346
6347 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6348 member.
6349 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6350 (create_cu_from_index_list)
6351 (create_signatured_type_table_from_index)
6352 (create_signatured_type_table_from_debug_names)
6353 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6354 (dwarf2_create_include_psymtab)
6355 (create_debug_type_hash_table, add_type_unit)
6356 (create_type_unit_group, read_comp_units_from_section)
6357 (dwarf2_compute_name, create_cus_hash_table)
6358 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6359 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6360 obstack.
6361 (dw2_get_real_path): Likewise. Change argument to
6362 dwarf2_per_objfile.
6363
f8c6d152
LM
63642020-05-27 Luis Machado <luis.machado@linaro.org>
6365
6366 PR tdep/26000
6367 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6368 for ldrd (immediate).
6369
e98d2e6d
PW
63702020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6371
6372 * command.h: Add comment giving the name of class_tui.
6373 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6374 create the fake command for the help for class_tui.
6375
53a47a3e
TT
63762020-05-26 Tom Tromey <tromey@adacore.com>
6377
6378 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6379 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6380 (val_atr): New function.
6381 (value_val_atr): Use it.
6382 * ada-valprint.c (print_optional_low_bound): Change low bound
6383 handling for enums.
6384 (val_print_packed_array_elements): Don't call discrete_position.
6385 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6386 discrete_position for enum types.
6387 * language.c (default_print_array_index): Change type.
6388 * language.h (struct language_defn) <la_print_array_index>: Add
6389 index_type parameter, change type of index_value.
6390 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6391 (default_print_array_index): Update.
6392 * valprint.c (maybe_print_array_index): Don't call
6393 value_from_longest. Update.
6394 (value_print_array_elements): Don't call discrete_position.
6395
0bc2354b
TT
63962020-05-26 Tom Tromey <tromey@adacore.com>
6397
6398 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6399 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6400
1218a4bf
CDA
64012020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6402
6403 PR gdb/13519
6404 * avr-tdep.c (avr_integer_to_address): Return data or code
6405 address accordingly to the second 'type' argument of the
6406 function.
6407
92651b1d
MW
64082020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6409
6410 * infcmd.c, inferior.h: (construct_inferior_arguments):
6411 Moved function from here to gdbsupport/common-inferior.{h,cc}
6412
0a4f5f8c
TT
64132020-05-23 Tom Tromey <tom@tromey.com>
6414
6415 Revert commit eca1f90c:
6416 * NEWS: Remove entry for completion styling.
6417 * completer.c (_rl_completion_prefix_display_length): Move
6418 declaration later.
6419 (gdb_fnprint): Revert.
6420 (gdb_display_match_list_1): Likewise.
6421 * cli/cli-style.c (completion_prefix_style)
6422 (completion_difference_style, completion_suffix_style): Remove.
6423 (_initialize_cli_style): Revert.
6424 * cli/cli-style.h (completion_prefix_style)
6425 (completion_difference_style, completion_suffix_style): Don't
6426 declare.
6427
e08bd6c5
PA
64282020-05-24 Pedro Alves <palves@redhat.com>
6429
6430 * symtab.c (completion_list_add_name): Return boolean indication
6431 of whether the symbol matched.
6432 (completion_list_add_symbol): Don't try to remove C++ aliases if
6433 the symbol didn't match in the first place.
6434 * symtab.h (completion_list_add_name): Return bool.
6435
ceacbf6e
SM
64362020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6437
6438 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6439 type::field.
6440
26f16254
JB
64412020-05-23 Joel Brobecker <brobecker@adacore.com>
6442
6443 GDB 9.2 released.
6444
eca1f90c
TT
64452020-05-23 Tom Tromey <tom@tromey.com>
6446
6447 * NEWS: Add entry for completion styling.
6448 * completer.c (_rl_completion_prefix_display_length): Move
6449 declaration earlier.
6450 (gdb_fnprint): Use completion_style.
6451 (gdb_display_match_list_1): Likewise.
6452 * cli/cli-style.c (completion_prefix_style)
6453 (completion_difference_style, completion_suffix_style): New
6454 globals.
6455 (_initialize_cli_style): Register new globals.
6456 * cli/cli-style.h (completion_prefix_style)
6457 (completion_difference_style, completion_suffix_style): Declare.
6458
51e2cfa2
PA
64592020-05-23 Pedro Alves <palves@redhat.com>
6460
6461 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6462 (parse_escape): Use ISDIGIT instead of isdigit.
6463 (puts_debug): Use gdb_isprint instead of isprint.
6464 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6465 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6466 ISSPACE instead of isspace.
6467 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6468 instead of isspace.
6469 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6470 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6471 instead of isxdigit and ISDIGIT instead of isdigit.
6472
80fc5e77
SM
64732020-05-22 Simon Marchi <simon.marchi@efficios.com>
6474
6475 * gdbtypes.h (struct type) <field>: New method.
6476 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6477 or type::field.
6478
3cabb6b0
SM
64792020-05-22 Simon Marchi <simon.marchi@efficios.com>
6480
6481 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6482 (TYPE_FIELDS): Use type::fields. Change all call sites that
6483 modify the propery to use type::set_fields instead.
6484
1f704f76
SM
64852020-05-22 Simon Marchi <simon.marchi@efficios.com>
6486
6487 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6488 type::num_fields instead.
6489
5e33d5f4
SM
64902020-05-22 Simon Marchi <simon.marchi@efficios.com>
6491
6492 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6493 methods.
6494 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6495 that modify the number of fields to use type::set_num_fields
6496 instead.
6497
9392ebb3
TT
64982020-05-22 Tom Tromey <tromey@adacore.com>
6499
6500 * compile/compile-object-load.h (munmap_list_free): Don't
6501 declare.
6502
7c13f4e8
AB
65032020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6504
6505 * annotate.c (annotate_source_line): Update return type, add call
6506 to update current symtab and line.
6507 * annotate.h (annotate_source_line): Update return type, and
6508 extend header comment.
6509 * source.c (info_line_command): Check annotation_level before
6510 calling annotate_source_line.
6511 * stack.c (print_frame_info): If calling annotate_source_line
6512 returns true, then don't print any other source line information.
6513
aa370940
SM
65142020-05-21 Simon Marchi <simon.marchi@efficios.com>
6515
6516 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6517
84d53fa9
SM
65182020-05-21 Simon Marchi <simon.marchi@efficios.com>
6519
6520 * coffread.c (patch_type): Remove NULL check before xfree.
6521 * corefile.c (set_gnutarget): Likewise.
6522 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6523 * exec.c (build_section_table): Likewise.
6524 * remote.c (remote_target::pass_signals): Likewise.
6525 * utils.c (n_spaces): Likewise.
6526 * cli/cli-script.c (document_command): Likewise.
6527 * i386-windows-tdep.c (core_process_module_section): Likewise.
6528 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6529
9d428aae
SM
65302020-05-20 Simon Marchi <simon.marchi@efficios.com>
6531
6532 * symfile.c (reread_symbols): Clear objfile's section_offsets
6533 vector and section indices, re-compute them by calling
6534 sym_offsets.
6535
250106a7
TT
65362020-05-20 Tom Tromey <tromey@adacore.com>
6537
6538 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6539 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6540
9a0bacfb
TV
65412020-05-20 Tom de Vries <tdevries@suse.de>
6542
6543 PR symtab/25833
6544 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6545
7b958a48
AM
65462020-05-20 Alan Modra <amodra@gmail.com>
6547
6548 PR 25993
6549 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6550 bfd_set_filename.
6551 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6552 passed to bfd_set_filename.
6553 * symfile-mem.c (add_vsyscall_page): Likewise for string
6554 passed to symbol_file_add_from_memory.
6555 (symbol_file_add_from_memory): Make name param a const char* and
6556 don't strdup.
6557
c7e97679
AM
65582020-05-20 Alan Modra <amodra@gmail.com>
6559
6560 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6561 rather than accessing bfd->filename directly.
6562 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6563 and use bfd_section_name.
6564 * dwarf2/frame.c (decode_frame_entry): Likewise.
6565 * exec.c (exec_set_section_address): Likewise.
6566 * solib-aix.c (solib_aix_bfd_open): Likewise.
6567 * stap-probe.c (get_stap_base_address): Likewise.
6568 * symfile.c (reread_symbols): Likewise.
6569
563c591b
TT
65702020-05-19 Tom Tromey <tromey@adacore.com>
6571
6572 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6573
f408d82c
SM
65742020-05-19 Simon Marchi <simon.marchi@efficios.com>
6575
6576 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6577
98c59b52
PA
65782020-05-19 Pedro Alves <palves@redhat.com>
6579
6580 * NEWS (set exec-file-mismatch): Adjust entry.
6581 * exec.c: Include "build-id.h".
6582 (validate_exec_file): Try to match build IDs instead of filenames.
6583 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6584 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6585 and pass down 'warn_if_slow'.
6586 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6587 gdb_bfd_open_closure to pass it down.
6588 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6589
4111f652
PA
65902020-05-19 Pedro Alves <palves@redhat.com>
6591
6592 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6593 * target.c (target_fileio_open_1): Rename to target_fileio_open
6594 and make extern. Use bool.
6595 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6596 (target_fileio_read_alloc_1): Adjust.
6597 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6598 (target_fileio_open_warn_if_slow): Delete declaration.
6599
ad80db5b
PA
66002020-05-19 Pedro Alves <palves@redhat.com>
6601
6602 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6603 Adjust all callers.
6604
1d6ce4d3
YS
66052020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6606
6607 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6608 whether disp is negative.
6609
9005fbbb
SM
66102020-05-19 Simon Marchi <simon.marchi@efficios.com>
6611
6612 * symfile.h (struct symfile_segment_data)
6613 <~symfile_segment_data>: Remove.
6614 <segment_info>: Change to std::vector.
6615 * symfile.c (default_symfile_segments): Update.
6616 * elfread.c (elf_symfile_segments): Update.
6617
68b888ff
SM
66182020-05-19 Simon Marchi <simon.marchi@efficios.com>
6619
6620 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6621 <segments>: New.
6622 <segment_bases, segment_sizes>: Remove.
6623 * symfile.c (default_symfile_segments): Update.
6624 * elfread.c (elf_symfile_segments): Update.
6625 * remote.c (remote_target::get_offsets): Update.
6626 * solib-target.c (solib_target_relocate_section_addresses):
6627 Update.
6628
62982abd
SM
66292020-05-19 Simon Marchi <simon.marchi@efficios.com>
6630
6631 * symfile.h (struct symfile_segment_data): Initialize fields.
6632 <~symfile_segment_data>: Add.
6633 (symfile_segment_data_up): New.
6634 (struct sym_fns) <sym_segments>: Return a
6635 symfile_segment_data_up.
6636 (default_symfile_segments): Return a symfile_segment_data_up.
6637 (free_symfile_segment_data): Remove.
6638 (get_symfile_segment_data): Return a symfile_segment_data_up.
6639 * symfile.c (default_symfile_segments): Likewise.
6640 (get_symfile_segment_data): Likewise.
6641 (free_symfile_segment_data): Remove.
6642 (symfile_find_segment_sections): Update.
6643 * elfread.c (elf_symfile_segments): Return a
6644 symfile_segment_data_up.
6645 * remote.c (remote_target::get_offsets): Update.
6646 * solib-target.c (solib_target_relocate_section_addresses):
6647 Update.
6648 * symfile-debug.c (debug_sym_segments): Return a
6649 symfile_segment_data_up.
6650
7f204339
RO
66512020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6652
e52a0f1b
RO
6653 PR build/25981
6654 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6655 Hardcode register numbers.
6656
7f204339
RO
6657 PR build/25981
6658 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6659 procfs_find_LDT_entry): Remove.
6660 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6661 procfs_find_LDT_entry): Remove.
6662 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6663 Remove.
6664
7f32a4d5
PA
66652020-05-17 Pedro Alves <palves@redhat.com>
6666 Andrew Burgess <andrew.burgess@embecosm.com>
6667 Keno Fischer <keno@juliacomputing.com>
6668
6669 PR gdb/25741
6670 * breakpoint.c (build_target_condition_list): Update comments.
6671 (build_target_command_list): Update comments and skip matching
6672 locations.
6673 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6674 a separate function. Simplify "set breakpoint auto-hw off"
6675 handling.
6676 (insert_breakpoints): Update comment.
6677 (tracepoint_locations_match): New parameter. For breakpoints,
6678 compare location types too, if the caller wants to.
6679 (handle_automatic_hardware_breakpoints): New functions.
6680 (bp_location_is_less_than): Also sort by location type and
6681 hardware breakpoint length.
6682 (update_global_location_list): Handle "set breakpoint auto-hw on"
6683 here.
6684 (update_breakpoint_locations): Ask breakpoint_locations_match to
6685 ignore location types.
6686
7d93a1e0
SM
66872020-05-16 Simon Marchi <simon.marchi@efficios.com>
6688
6689 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6690 type::name instead.
6691
d0e39ea2
SM
66922020-05-16 Simon Marchi <simon.marchi@efficios.com>
6693
6694 * gdbtypes.h (struct type) <name, set_name>: New methods.
6695 (TYPE_CODE): Use type::name. Change all call sites used to set
6696 the name to use type::set_name instead.
6697
2dab0c7b
TT
66982020-05-16 Tom Tromey <tom@tromey.com>
6699
6700 * top.c (quit_force): Update.
6701 * infrun.c (handle_no_resumed): Update.
6702 * top.h (all_uis): New function.
6703 (ALL_UIS): Remove.
6704
59f7bd8d
SM
67052020-05-16 Simon Marchi <simon.marchi@efficios.com>
6706
6707 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6708
9bf058f0
PA
67092020-05-16 Pedro Alves <palves@redhat.com>
6710
6711 * ia64-linux-nat.c
6712 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6713 Declare method.
6714 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6715
8f86ae1a
SM
67162020-05-15 Simon Marchi <simon.marchi@efficios.com>
6717
6718 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6719 (sparc64_adi_info): Likewise.
6720
d6bc0792
TT
67212020-05-15 Tom Tromey <tom@tromey.com>
6722
6723 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6724 block_objfile.
6725 (lookup_objfile_from_block): Remove.
6726 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6727 (lookup_global_symbol): Use block_objfile.
6728 * symtab.h (lookup_objfile_from_block): Don't declare.
6729 * printcmd.c (clear_dangling_display_expressions): Use
6730 block_objfile.
6731 * parse.c (operator_check_standard): Use block_objfile.
6732
8c14c3a3
TT
67332020-05-15 Tom Tromey <tom@tromey.com>
6734
6735 * language.c (language_alloc_type_symbol): Set
6736 SYMBOL_SECTION.
6737 * symtab.c (initialize_objfile_symbol): Remove.
6738 (allocate_symbol): Remove.
6739 (allocate_template_symbol): Remove.
6740 * dwarf2/read.c (fixup_go_packaging): Use "new".
6741 (new_symbol): Use "new".
6742 (read_variable): Don't call initialize_objfile_symbol. Use
6743 "new".
6744 (read_func_scope): Use "new".
6745 * xcoffread.c (process_xcoff_symbol): Don't call
6746 initialize_objfile_symbol.
6747 (SYMBOL_DUP): Remove.
6748 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6749 "new".
6750 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6751 (allocate_template_symbol): Don't declare.
6752 (struct symbol): Add copy constructor. Change defaults.
6753 * jit.c (finalize_symtab): Use "new".
6754 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6755 Use "new".
6756 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6757 (common_block_end): Use "new".
6758 * mdebugread.c (parse_symbol): Use "new".
6759 (new_symbol): Likewise.
6760
5b4a1a8d
PW
67612020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6762
6763 * NEWS: Mention changes to help and apropos.
6764
57b4f16e
PW
67652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6766
6767 * command.h (enum command_class): Improve comments, document
6768 that class_alias is for user-defined aliases, give the class
6769 name for each class, remove unused class_xdb.
6770 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6771 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6772 by a precise class.
6773 * infcmd.c (_initialize_infcmd): Likewise.
6774 * reverse.c (_initialize_reverse): Likewise.
6775 * stack.c (_initialize_stack): Likewise.
6776 * symfile.c (_initialize_symfile): Likewise.
6777 * tracepoint.c (_initialize_tracepoint): Likewise.
6778
7c05caf7
PW
67792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6780
6781 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6782 when their aliased command is traversed.
6783 (help_cmd): Add fput_command_names_styled call to
6784 output command name and aliases when command has an alias.
6785
3b3aaacb
PW
67862020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6787
6788 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6789 * cli/cli-decode.c (help_cmd_list): Declare as static,
6790 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6791 a command together with the command.
6792 (fput_command_name_styled, fput_command_names_styled): New functions.
6793 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6794 fput_command_name_styled.
6795 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6796 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6797
7aa1b46f
PW
67982020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6799
6800 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6801 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6802 * command.h (cmd_show_list): Likewise.
6803 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6804 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6805
89bcba74
PW
68062020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6807
6808 * unittests/command-def-selftests.c (traverse_command_structure):
6809 Verify all commands of a list have the same prefix command and
6810 that only the top cmdlist commands have a null prefix.
6811
3f4d92eb
PW
68122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6813
6814 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6815 as prefix, not one of its aliases.
6816 (set_cmd_prefix): Remove.
6817 (do_add_cmd): Centralize the setting of the prefix of a command, when
6818 command is defined after its full chain of prefix commands.
6819 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6820 (add_setshow_cmd_full): Likewise.
6821 (update_prefix_field_of_prefixed_commands): New function.
6822 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6823 update_prefix_field_of_prefixed_commands.
6824 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6825 addresses of remote_set_cmdlist and remote_show_cmdlist given
6826 as argument, not the address of an argument.
6827 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6828 * gdb/remote.c (_initialize_remote): Likewise.
6829
0605465f
PW
68302020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6831
6832 * cli/cli-cmds.c (alias_command): Check for an existing alias
6833 using lookup_cmd_composition, as valid_command_p is too strict
6834 and forbids aliases that are the prefix of an existing alias
6835 or command.
6836 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6837 command is properly recognised as a valid command.
6838
58e6ac70
PW
68392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6840
6841 * unittests/help-doc-selftests.c: Rename to
6842 unittests/command-def-selftests.c
6843 * unittests/command-def-selftests.c (help_doc_tests): Update some
6844 comments.
6845 (command_structure_tests, traverse_command_structure): New namespace
6846 and function.
6847 (command_structure_invariants_tests): New function.
6848 (_initialize_command_def_selftests) Renamed from
6849 _initialize_help_doc_selftests, register command_structure_invariants
6850 selftest.
6851
a7b9ceb8
PW
68522020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6853
6854 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6855 an alias of 'show'.
6856
b2188a06
JB
68572020-05-15 Joel Brobecker <brobecker@adacore.com>
6858
6859 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6860 ada_is_fixed_point_type. Update all callers.
6861 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6862 all callers.
6863 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6864 Update all callers.
6865 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6866 print_fixed_point_type. Update all callers.
6867 * ada-valprint.c (ada_value_print_num): Replace call to
6868 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6869
a51951c2
KB
68702020-05-14 Kevin Buettner <kevinb@redhat.com>
6871
6872 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6873 processors.
6874 (cpu_supports_bts): Add CV_AMD case.
6875
29d6859f
LM
68762020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6877 Simon Marchi <simon.marchi@efficios.com>
6878
6879 * infrun.c (stop_all_threads): Collect multiple wait events at
6880 each pass.
6881
78134374
SM
68822020-05-14 Simon Marchi <simon.marchi@efficios.com>
6883
6884 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6885 type::code instead.
6886
67607e24
SM
68872020-05-14 Simon Marchi <simon.marchi@efficios.com>
6888
6889 * gdbtypes.h (struct type) <code, set_code>: New methods.
6890 (TYPE_CODE): Use type::code. Change all call sites used to set
6891 the code to use type::set_code instead.
6892
a05575d3
TBA
68932020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6894 Tom de Vries <tdevries@suse.de>
6895 Pedro Alves <palves@redhat.com>
6896
6897 PR threads/25478
6898 * infrun.c (stop_all_threads): Do NOT ignore
6899 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6900 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6901 received.
6902 (handle_no_resumed): Remove code handling a live inferior with no
6903 threads.
6904 * remote.c (has_single_non_exited_thread): New.
6905 (remote_target::update_thread_list): Do not delete a thread if is
6906 the last thread of the process.
6907 * thread.c (thread_select): Call delete_exited_threads instead of
6908 prune_threads.
6909
6ad82919
TBA
69102020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6911
6912 * infrun.c (stop_all_threads): Enable/disable thread events of all
6913 targets. Move a debug message denoting the end of the function
6914 into the SCOPED_EXIT block.
6915
d890404b
TBA
69162020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6917
6918 * process-stratum-target.h: Include <set>.
6919 (all_non_exited_process_targets, switch_to_target_no_thread): New
6920 function declarations.
6921 * process-stratum-target.c (all_non_exited_process_targets)
6922 (switch_to_target_no_thread): New function implementations.
6923
293b3ebc
TBA
69242020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6925
6926 * infrun.c (handle_inferior_event): Extract out a piece of code
6927 into...
6928 (mark_non_executing_threads): ...this new function.
6929
7ca9b62a
TBA
69302020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6931
6932 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6933 use.
6934
fc75c28b
TBA
69352020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6936
6937 * regcache.c (regcache_read_pc_protected): New function
6938 implementation that returns 0 if the PC cannot read via
6939 'regcache_read_pc'.
6940 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6941 instead of 'regcache_read_pc'.
6942 (keep_going_pass_signal): Ditto.
6943
a89febbd
TT
69442020-05-13 Tom Tromey <tromey@adacore.com>
6945
6946 * ada-lang.c (align_value): Remove.
6947 (ada_template_to_fixed_record_type_1): Use align_up.
6948
f7e23710
TBA
69492020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6950
6951 * async-event.c: Update the copyright year.
6952 * async-event.h: Update the copyright year.
6953
02ff80c2
SM
69542020-05-12 Simon Marchi <simon.marchi@efficios.com>
6955
6956 * objfiles.h (is_addr_in_objfile,
6957 shared_objfile_contains_address_p): Return bool.
6958 * objfile.c (is_addr_in_objfile,
6959 shared_objfile_contains_address_p): Return bool.
6960
4fd6c7e8
TT
69612020-05-11 Tom Tromey <tromey@adacore.com>
6962
6963 * cli/cli-cmds.c (info_command): Restore.
6964 (_initialize_cli_cmds): Use add_prefix_command for "info".
6965 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6966
5eb68a39
TT
69672020-05-11 Tom Tromey <tromey@adacore.com>
6968
6969 * ada-lang.c (ada_value_primitive_field): Now public.
6970 * ada-lang.h (ada_value_primitive_field): Declare.
6971 * ada-valprint.c (print_field_values): Use
6972 ada_value_primitive_field for wrapper fields.
6973
7666722f
TV
69742020-05-11 Tom de Vries <tdevries@suse.de>
6975
6976 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6977 MODULE_DOMAIN.
6978
3ee6bb11
TV
69792020-05-11 Tom de Vries <tdevries@suse.de>
6980
6981 PR symtab/25941
6982 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6983 with length 0, if not gdb-produced.
6984 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6985
43434996
TV
69862020-05-09 Tom de Vries <tdevries@suse.de>
6987
6988 PR gdb/25955
6989 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6990 calculation.
6991
2f78cffc
TT
69922020-05-09 Tom Tromey <tom@tromey.com>
6993
6994 * top.c (server_command): Now bool.
6995 * top.h (server_command): Now bool.
6996
4f7bc5ed
TT
69972020-05-08 Tom Tromey <tromey@adacore.com>
6998
6999 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7000 already being processed.
7001
8be4b118
TT
70022020-05-08 Tom Tromey <tom@tromey.com>
7003
7004 * printcmd.c (struct display) <next>: Remove.
7005 <display>: New constructor.
7006 <exp_string>: Now a std::string.
7007 <enabled_p>: Now a bool.
7008 (display_number): Move definition earlier.
7009 (displays): Rename from display_chain. Now a std::vector.
7010 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7011 (display_command): Update.
7012 (do_one_display, disable_display)
7013 (enable_disable_display_command, do_enable_disable_display):
7014 Update.
7015 (free_display): Remove.
7016 (clear_displays): Rewrite.
7017 (delete_display): Update.
7018 (map_display_numbers): Use function_view. Remove "data"
7019 parameter. Update.
7020 (do_delete_display): Remove.
7021 (undisplay_command): Update.
7022 (do_one_display, do_displays, disable_display)
7023 (info_display_command): Update.
7024 (do_enable_disable_display): Remove.
7025 (enable_disable_display_command)
7026 (clear_dangling_display_expressions): Update.
7027
94c93c35
TT
70282020-05-08 Tom Tromey <tom@tromey.com>
7029
7030 * symtab.c (set_symbol_cache_size)
7031 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7032 (maintenance_print_symbol_cache_statistics): Update.
7033 * symmisc.c (print_symbol_bcache_statistics)
7034 (print_objfile_statistics, maintenance_print_objfiles)
7035 (maintenance_info_symtabs, maintenance_check_symtabs)
7036 (maintenance_expand_symtabs, maintenance_info_line_tables):
7037 Update.
7038 * symfile-debug.c (set_debug_symfile): Update.
7039 * source.c (forget_cached_source_info): Update.
7040 * python/python.c (gdbpy_progspaces): Update.
7041 * psymtab.c (maintenance_info_psymtabs): Update.
7042 * probe.c (parse_probes): Update.
7043 * linespec.c (iterate_over_all_matching_symtabs)
7044 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7045 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7046 * exec.c (exec_target::close): Update.
7047 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7048 * breakpoint.c (print_one_breakpoint_location)
7049 (create_longjmp_master_breakpoint)
7050 (create_std_terminate_master_breakpoint): Update.
7051 * progspace.c (program_spaces): Now a std::vector.
7052 (maybe_new_address_space): Update.
7053 (add_program_space): Remove.
7054 (program_space::program_space): Update.
7055 (remove_program_space): Update.
7056 (number_of_program_spaces): Remove.
7057 (print_program_space, update_address_spaces): Update.
7058 * progspace.h (program_spaces): Change type.
7059 (ALL_PSPACES): Remove.
7060 (number_of_program_spaces): Don't declare.
7061 (struct program_space) <next>: Remove.
7062
a1fd1ac9
TT
70632020-05-08 Tom Tromey <tom@tromey.com>
7064
7065 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7066 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7067 (enable_break): Update.
7068 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7069 (frv_fdpic_find_canonical_descriptor): Update.
7070 (frv_fetch_objfile_link_map): Update.
7071 * progspace.c (program_space::free_all_objfiles): Update.
7072 (program_space::solibs): New method.
7073 * progspace.h (struct program_space) <solibs>: New method.
7074 * solist.h (master_so_list): Don't declare.
7075 (ALL_SO_LIBS): Remove.
7076 * solib.h (so_list_head): Remove.
7077 (update_solib_list): Update comment.
7078 * solib.c (master_so_list): Remove.
7079 (solib_used, update_solib_list, solib_add)
7080 (info_sharedlibrary_command, clear_solib)
7081 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7082
38eae084
TT
70832020-05-08 Tom Tromey <tom@tromey.com>
7084
7085 * extension.c (extension_languages): Now a std::array.
7086 (ALL_EXTENSION_LANGUAGES): Remove.
7087 (get_ext_lang_defn, get_ext_lang_of_file)
7088 (eval_ext_lang_from_control_command): Update.
7089 (finish_ext_lang_initialization)
7090 (auto_load_ext_lang_scripts_for_objfile)
7091 (ext_lang_type_printers::ext_lang_type_printers)
7092 (apply_ext_lang_type_printers)
7093 (ext_lang_type_printers::~ext_lang_type_printers)
7094 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7095 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7096 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7097 (get_matching_xmethod_workers, ext_lang_colorize)
7098 (ext_lang_before_prompt): Update.
7099 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7100
596dc4ad
TT
71012020-05-08 Tom Tromey <tom@tromey.com>
7102
7103 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7104 overload.
7105 <swap_string, m_string>: Remove.
7106 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7107 Update.
7108 * stabsread.c (define_symbol, read_type): Update.
7109 * linespec.c (find_linespec_symbols): Update.
7110 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7111 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7112 * dbxread.c (read_dbx_symtab): Update.
7113 * cp-support.h (cp_canonicalize_string_full)
7114 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7115 Return unique_xmalloc_ptr.
7116 * cp-support.c (inspect_type): Update.
7117 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7118 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7119 Likewise.
7120 * c-typeprint.c (print_name_maybe_canonical): Update.
7121 * break-catch-throw.c (check_status_exception_catchpoint):
7122 Update.
7123
bf4cb9be
TV
71242020-05-08 Tom de Vries <tdevries@suse.de>
7125
7126 * infrun.c (follow_fork): Copy current_line and current_symtab to
7127 child thread.
7128
a1b68f28
SM
71292020-05-07 Simon Marchi <simon.marchi@efficios.com>
7130
7131 * async-event.c (struct async_signal_handler, struct
7132 async_event_handler): Reformat, remove typedef.
7133
98d48915
SM
71342020-05-07 Simon Marchi <simon.marchi@efficios.com>
7135
7136 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7137 access thistype->main_type->dyn_prop_list directly.
7138
7aa91313
SM
71392020-05-07 Simon Marchi <simon.marchi@efficios.com>
7140
7141 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7142 (remove_dyn_prop): Remove. Update all users to use
7143 type::remove_dyn_prop.
7144 * gdbtypes.c (remove_dyn_prop): Rename to...
7145 (type::remove_dyn_prop): ... this.
7146
5c54719c
SM
71472020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7148
7149 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7150 (add_dyn_prop): Remove. Update all users to use
7151 type::add_dyn_prop.
7152 * gdbtypes.c (add_dyn_prop): Rename to...
7153 (type::add_dyn_prop): ... this.
7154
24e99c6c
SM
71552020-05-07 Simon Marchi <simon.marchi@efficios.com>
7156
7157 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7158 (get_dyn_prop): Remove. Update all users to use
7159 type::dyn_prop.
7160 * gdbtypes.c (get_dyn_prop): Rename to...
7161 (type::dyn_prop): ... this.
7162
0d4bf016
SM
71632020-05-06 Simon Marchi <simon.marchi@efficios.com>
7164
7165 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7166
ac4a4f1c
SM
71672020-05-06 Simon Marchi <simon.marchi@efficios.com>
7168
7169 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7170 instruction, skip it if it's there.
7171
a3bbacc1
SM
71722020-05-05 Simon Marchi <simon.marchi@efficios.com>
7173
7174 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7175
c3236f84
SM
71762020-05-04 Simon Marchi <simon.marchi@efficios.com>
7177
7178 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7179 * gdbtypes.c (recursive_dump_type): Remove use of
7180 TYPE_INCOMPLETE.
7181
3b6acaee
TT
71822020-05-03 Tom Tromey <tom@tromey.com>
7183
7184 * breakpoint.c (catch_command, tcatch_command): Remove.
7185 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7186 add_show_prefix_cmd.
7187 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7188 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7189 Remove.
7190 (add_internal_problem_command): Use add_basic_prefix_cmd,
7191 add_show_prefix_cmd.
7192 * mips-tdep.c (set_mipsfpu_command): Remove.
7193 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7194 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7195 (_initialize_index_cache): Use add_basic_prefix_cmd.
7196 * memattr.c (dummy_cmd): Remove.
7197 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7198 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7199 (_initialize_tui_win): Use add_basic_prefix_cmd,
7200 add_show_prefix_cmd.
7201 * cli/cli-logging.c (set_logging_command): Remove.
7202 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7203 add_show_prefix_cmd.
7204 (show_logging_command): Remove.
7205 * target.c (target_command): Remove.
7206 (add_target): Use add_basic_prefix_cmd.
7207
a51119cd
HD
72082020-05-02 Hannes Domani <ssbssa@yahoo.de>
7209
7210 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7211
652fc23a 72122020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7213
652fc23a
PW
7214 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7215 info_command.
7216
117539e6
KR
72172020-04-30 Kamil Rytarowski <n54@gmx.com>
7218
7219 * nbsd-nat.c (nbsd_enable_proc_events)
7220 (nbsd_nat_target::post_startup_inferior): Add.
7221 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7222 (nbsd_nat_target::update_thread_list): Rewrite.
7223 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7224 "PTRACE_LWP_CREATE".
7225 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7226
102e38eb 72272020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7228
102e38eb
PW
7229 * stack.c (_initialize_stack): Remove duplicated creation
7230 of "frame" command and "f" alias.
7231
ee9d1e5f
HD
72322020-04-30 Hannes Domani <ssbssa@yahoo.de>
7233
7234 PR gdb/18706
7235 * gdbtypes.c (check_typedef): Calculate size of array of
7236 stubbed type.
7237
627c7fb8
HD
72382020-04-30 Hannes Domani <ssbssa@yahoo.de>
7239
7240 PR gdb/15559
7241 * i386-tdep.c (i386_push_dummy_call): Call
7242 i386_thiscall_push_dummy_call.
7243 (i386_thiscall_push_dummy_call): New function.
7244 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7245 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7246 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7247
ffc2844e
SM
72482020-04-29 Simon Marchi <simon.marchi@efficios.com>
7249
7250 * gdbarch.sh (do_read): Add shellcheck disable directive for
7251 warning SC2162.
7252
1207375d
SM
72532020-04-29 Simon Marchi <simon.marchi@efficios.com>
7254
7255 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7256 "referenced but not assigned" warning.
7257
9fdb2916
SM
72582020-04-29 Simon Marchi <simon.marchi@efficios.com>
7259
7260 * gdbarch.sh: Remove code that sets fallbackdefault.
7261
759cea5e
SM
72622020-04-29 Simon Marchi <simon.marchi@efficios.com>
7263
7264 * gdbarch.sh: Use shell operators && and || instead of
7265 -a and -o.
7266
cb02ab24
SM
72672020-04-29 Simon Marchi <simon.marchi@efficios.com>
7268
7269 * gdbarch.sh: Use $(...) instead of `...`.
7270
a6fc5ffc
SM
72712020-04-29 Simon Marchi <simon.marchi@efficios.com>
7272
7273 * gdbarch.sh: Use double quotes around variables.
7274
8d113d13
SM
72752020-04-29 Simon Marchi <simon.marchi@efficios.com>
7276
7277 * gdbarch.sh: Use %s with printf, instead of variables in the
7278 format string.
7279
ed6acedd
TT
72802020-04-29 Tom Tromey <tromey@adacore.com>
7281
7282 PR ada/25875:
7283 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7284 type fields here.
7285 (read_enumeration_type): Call
7286 update_enumeration_type_from_children later. Update comments.
7287 (process_enumeration_scope): Don't create type fields.
7288
b68b1b58
KR
72892020-04-29 Kamil Rytarowski <n54@gmx.com>
7290
7291 * nbsd-tdep.c: Include "xml-syscall.h".
7292 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7293
f94b2e03
KR
72942020-04-29 Kamil Rytarowski <n54@gmx.com>
7295
7296 * nbsd-nat.c: Include "sys/wait.h".
7297 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7298 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7299 (nbsd_nat_target::remove_exec_catchpoint)
7300 (nbsd_nat_target::set_syscall_catchpoint): Add.
7301 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7302 (nbsd_nat_target::insert_exec_catchpoint)
7303 (nbsd_nat_target::remove_exec_catchpoint)
7304 (nbsd_nat_target::set_syscall_catchpoint): Add.
7305 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7306 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7307 `nbsd_get_syscall_number'.
7308
fc49bc72
TT
73092020-04-29 Tom Tromey <tom@tromey.com>
7310
7311 * stack.c (print_block_frame_labels): Remove.
7312
d642b692
HD
73132020-04-29 Hannes Domani <ssbssa@yahoo.de>
7314
7315 PR gdb/17320
7316 * ada-valprint.c (val_print_packed_array_elements): Move array
7317 end bracket to new line.
7318 (ada_val_print_string): Remove extra spaces before first array
7319 element.
7320 * c-valprint.c (c_value_print_array): Likewise.
7321 * m2-valprint.c (m2_print_array_contents): Likewise.
7322 (m2_value_print_inner): Likewise.
7323 * p-valprint.c (pascal_value_print_inner): Likewise.
7324 * valprint.c (generic_val_print_array): Likewise.
7325 (value_print_array_elements): Move first array element and array
7326 end bracket to new line.
7327
ea90f227
TV
73282020-04-29 Tom de Vries <tdevries@suse.de>
7329
7330 PR symtab/25889
7331 * linespec.c (find_method): Fix ix calculation.
7332
4498ef4f
KR
73332020-04-28 Kamil Rytarowski <n54@gmx.com>
7334
7335 * syscalls/update-netbsd.sh: New file.
7336 * syscalls/netbsd.xml: Regenerate.
7337 * data-directory/Makefile.in: Register `netbsd.xml' in
7338 `SYSCALLS_FILES'.
7339
a55e30b5
SM
73402020-04-28 Simon Marchi <simon.marchi@efficios.com>
7341
7342 * syscalls/update-freebsd.sh: Add double quotes.
7343
2b2fbab8
TT
73442020-04-28 Tom Tromey <tom@tromey.com>
7345
7346 * NEWS: Update.
7347 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7348 (cmdpy_init): Allow class_tui.
7349
a65189c9
TV
73502020-04-28 Mark Williams <mark@myosotissp.com>
7351
7352 PR gdb/24480
7353 * dwarf2read.c: Add missing assingments to list_in_scope when
7354 start_symtab was already called.
7355
1b95cdb7
SM
73562020-04-28 Simon Marchi <simon.marchi@efficios.com>
7357
7358 PR gdb/25881
7359 * dwarf2/read.c (offset_map_type): Use
7360 gdb:hash_enum<sect_offset> as hash function.
7361
15cd93d0
TV
73622020-04-28 Tom de Vries <tdevries@suse.de>
7363
7364 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7365 with DW_AT_signature.
7366
1eb39914
SM
73672020-04-27 Simon Marchi <simon.marchi@efficios.com>
7368
7369 * configure.ac: Remove check for fs_base/gs_base in
7370 user_regs_struct.
7371 * configure: Re-generate.
7372 * config.in: Re-generate.
7373 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7374 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7375 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7376
991a3e2e
LM
73772020-04-27 Luis Machado <luis.machado@linaro.org>
7378
7379 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7380 problematic inline frame unwinding situation.
7381 * frame.c (frame_id_computed_p): New function.
7382 * frame.h (frame_id_computed_p): New prototype.
7383
361ba0e8
TT
73842020-04-26 Tom Tromey <tom@tromey.com>
7385
7386 * command.h (enum command_class) <class_pseudo>: Remove.
7387
bc3609fd
PW
73882020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7389
7390 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7391 and whitespace.
7392
b9771db7
KR
73932020-04-25 Kamil Rytarowski <n54@gmx.com>
7394
ec16513e
SM
7395 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7396 `PT_GET_PROCESS_STATE' block.
b9771db7 7397
7151c1af
TT
73982020-04-24 Tom Tromey <tom@tromey.com>
7399
7400 * symtab.h (symbol_get_demangled_name): Don't declare.
7401 * symtab.c (symbol_get_demangled_name): Remove.
7402 (general_symbol_info::natural_name)
7403 (general_symbol_info::demangled_name): Update.
7404
906bb4c5
TT
74052020-04-24 Tom Tromey <tom@tromey.com>
7406
7407 PR rust/25025:
7408 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7409
bcfe6157
TT
74102020-04-24 Tom Tromey <tom@tromey.com>
7411
7412 PR symtab/12707:
7413 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7414 exists.
7415 (new_symbol): Likewise.
7416 * compile/compile-object-load.c (get_out_value_type): Use
7417 symbol_matches_search_name.
7418
f049a313
TT
74192020-04-24 Tom Tromey <tom@tromey.com>
7420
7421 * dwarf2/read.c (add_partial_symbol): Do not call
7422 compute_and_set_names.
7423
76e288d1
TT
74242020-04-24 Tom Tromey <tom@tromey.com>
7425
7426 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7427 overload.
7428
2467f4f6
TT
74292020-04-24 Tom Tromey <tom@tromey.com>
7430
7431 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7432 (add_psymbol_to_list): New overload. Make old overload call new
7433 one.
7434 * psympriv.h (add_psymbol_to_list): New overload.
7435
e61108c9
TT
74362020-04-24 Tom Tromey <tom@tromey.com>
7437
7438 * dwarf2/read.c (partial_die_info::read) <case
7439 DW_AT_linkage_name>: Use value_as_string.
7440 (dwarf2_string_attr): Use value_as_string.
7441 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7442 method.
7443 * dwarf2/attribute.c (attribute::value_as_string): New method.
7444
8c87a452
TT
74452020-04-24 Tom Tromey <tom@tromey.com>
7446
7447 * symtab.c (general_symbol_info::natural_name)
7448 (general_symbol_info::demangled_name): Check for language_rust.
7449
787de330
TT
74502020-04-24 Tom Tromey <tom@tromey.com>
7451
7452 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7453 (dwarf2_physname): ... from here.
7454 (partial_die_info::read): Add Rust "{" hack.
7455
ff985671
TT
74562020-04-24 Tom Tromey <tom@tromey.com>
7457
7458 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7459 method.
7460 (symbol_set_demangled_name): Don't declare.
7461 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7462 symbol_set_demangled_name.
7463 (general_symbol_info::set_language)
7464 (general_symbol_info::compute_and_set_names): Update.
7465 * minsyms.c (minimal_symbol_reader::install): Update.
7466 * dwarf2/read.c (new_symbol): Update.
7467
1acda803
TT
74682020-04-24 Tom Tromey <tromey@adacore.com>
7469
7470 PR python/23662:
7471 * python/py-type.c (convert_field): Handle
7472 FIELD_LOC_KIND_DWARF_BLOCK.
7473 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7474 (typy_get_dynamic): Nw function.
7475 (type_object_getset): Add "dynamic".
7476 * NEWS: Add entry.
7477
d656f129
TT
74782020-04-24 Tom Tromey <tromey@adacore.com>
7479
7480 * ada-typeprint.c (print_choices, print_variant_part)
7481 (print_record_field_types_dynamic): New functions.
7482 (print_record_field_types): Use print_record_field_types_dynamic.
7483
7d79de9a
TT
74842020-04-24 Tom Tromey <tromey@adacore.com>
7485
7486 * dwarf2/read.c (handle_data_member_location): New overload.
7487 (dwarf2_add_field): Use it.
7488 (decode_locdesc): Add "computed" parameter. Update comment.
7489 * gdbtypes.c (is_dynamic_type_internal): Also look for
7490 FIELD_LOC_KIND_DWARF_BLOCK.
7491 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7492 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7493 virtual base classes.
7494 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7495 FIELD_LOC_KIND_DWARF_BLOCK.
7496
f8e89861
TT
74972020-04-24 Tom Tromey <tromey@adacore.com>
7498
7499 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7500 * gdbtypes.c (is_dynamic_type_internal): Check
7501 TYPE_HAS_DYNAMIC_LENGTH.
7502 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7503 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7504 New macros.
7505 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7506 constant.
7507
9c6a1327
TT
75082020-04-24 Tom Tromey <tromey@adacore.com>
7509
7510 * dwarf2/read.c (struct variant_field): Rewrite.
7511 (struct variant_part_builder): New.
7512 (struct nextfield): Remove "variant" field. Add "offset".
7513 (struct field_info): Add "current_variant_part" and
7514 "variant_parts".
7515 (alloc_discriminant_info): Remove.
7516 (alloc_rust_variant): New function.
7517 (quirk_rust_enum): Update.
7518 (dwarf2_add_field): Set "offset" member. Don't handle
7519 DW_TAG_variant_part.
7520 (offset_map_type): New typedef.
7521 (convert_variant_range, create_one_variant)
7522 (create_one_variant_part, create_variant_parts)
7523 (add_variant_property): New functions.
7524 (dwarf2_attach_fields_to_type): Call add_variant_property.
7525 (read_structure_type): Don't handle DW_TAG_variant_part.
7526 (handle_variant_part, handle_variant): New functions.
7527 (handle_struct_member_die): Use them.
7528 (process_structure_scope): Don't handle variant parts.
7529 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7530 (struct discriminant_info): Remove.
7531 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7532 (struct main_type) <flag_discriminated_union>: Remove.
7533 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7534 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7535 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7536 Update.
7537 * valops.c (value_union_variant): Remove.
7538 * value.h (value_union_variant): Don't declare.
7539
b249d2c2
TT
75402020-04-24 Tom Tromey <tromey@adacore.com>
7541
7542 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7543 (ada_value_primitive_packed_val): Update.
7544 * ada-valprint.c (ada_value_print_1): Update.
7545 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7546 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7547 just an address. Use evaluate_for_locexpr_baton.
7548 (dwarf2_evaluate_property): Update.
7549 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7550 array_view.
7551 * findvar.c (default_read_var_value): Update.
7552 * gdbtypes.c (compute_variant_fields_inner)
7553 (resolve_dynamic_type_internal): Update.
7554 (resolve_dynamic_type): Change type of valaddr parameter.
7555 * gdbtypes.h (resolve_dynamic_type): Update.
7556 * valarith.c (value_subscripted_rvalue): Update.
7557 * value.c (value_from_contents_and_address): Update.
7558
61122aa9
TT
75592020-04-24 Tom Tromey <tromey@adacore.com>
7560
7561 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7562 "push_initial_value" parameter.
7563 (dwarf2_evaluate_property): Likewise.
7564 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7565
ef83a141
TT
75662020-04-24 Tom Tromey <tromey@adacore.com>
7567
7568 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7569 (variant::matches, compute_variant_fields_recurse)
7570 (compute_variant_fields_inner, compute_variant_fields): New
7571 functions.
7572 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7573 Use resolved_type after type is made.
7574 (operator==): Add new cases.
7575 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7576 (struct discriminant_range, struct variant, struct variant_part):
7577 New.
7578 (union dynamic_prop_data) <variant_parts, original_type>: New
7579 members.
7580 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7581 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7582 constants.
7583 * value.c (unpack_bits_as_long): Now public.
7584 * value.h (unpack_bits_as_long): Declare.
7585
675127ec
TT
75862020-04-24 Tom Tromey <tromey@adacore.com>
7587
7588 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7589 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7590
9852ceef
HD
75912020-04-24 Hannes Domani <ssbssa@yahoo.de>
7592
7593 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7594
7632c6ce
KR
75952020-04-24 Kamil Rytarowski <n54@gmx.com>
7596
7597 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7598 (remove_fork_catchpoint, post_startup_inferior)
7599 (post_attach): Move...
7600 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7601 (remove_fork_catchpoint, post_startup_inferior)
7602 (post_attach): ...here.
7603 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7604 (remove_fork_catchpoint, post_startup_inferior)
7605 (post_attach): Move...
7606 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7607 (remove_fork_catchpoint, post_startup_inferior)
7608 (post_attach): ...here.
7609
7be2bb4f
TT
76102020-04-24 Tom Tromey <tromey@adacore.com>
7611
7612 * nat/windows-nat.h (struct windows_thread_info)
7613 <pc_adjusted>: New member.
7614 * windows-nat.c (windows_fetch_one_register): Check
7615 pc_adjusted.
7616 (windows_nat_target::get_windows_debug_event)
7617 (windows_nat_target::wait): Set pc_adjusted.
7618
f80cb3b4
TV
76192020-04-24 Tom de Vries <tdevries@suse.de>
7620
7621 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7622 Run gdb-add-index inside temp dir.
7623
29514b87
TT
76242020-04-23 Tom Tromey <tromey@adacore.com>
7625
7626 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7627 in loop.
7628
5939967b
LM
76292020-04-23 Luis Machado <luis.machado@linaro.org>
7630
7631 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7632 get_frame_register instead of gdbarch_unwind_pc.
7633
70bc38f5
TV
76342020-04-23 Tom de Vries <tdevries@suse.de>
7635
7636 * symtab.c (lookup_global_symbol): Prefer def over decl.
7637
de82891c
TV
76382020-04-23 Tom de Vries <tdevries@suse.de>
7639
7640 PR symtab/25807
7641 * block.c (best_symbol, better_symbol): Promote to external.
7642 * block.h (best_symbol, better_symbol): Declare.
7643 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7644 decl.
7645
ecc6c606
TT
76462020-04-23 Tom Tromey <tromey@adacore.com>
7647
7648 PR ada/25837:
7649 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7650 "const char *", not a "const std::string &".
7651 <name_and_matcher::operator==>: Update.
7652 * unittests/lookup_name_info-selftests.c: Change type of
7653 "result".
7654
740480b8
TT
76552020-04-23 Tom Tromey <tom@tromey.com>
7656
7657 * inferior.h (iterate_over_inferiors): Don't declare.
7658 * inferior.c (iterate_over_inferiors): Remove.
7659 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7660 Remove.
7661 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7662 use iterate_over_inferiors.
7663 (darwin_resume_inferior_it)
7664 (struct resume_inferior_threads_param)
7665 (darwin_resume_inferior_threads_it): Remove.
7666 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7667
ae3ab1f0
TV
76682020-04-23 Tom de Vries <tdevries@suse.de>
7669
7670 * blockframe.c (find_pc_partial_function): Use
7671 find_pc_sect_compunit_symtab rather than
7672 objfile->sf->qf->find_pc_sect_compunit_symtab.
7673
317d2668
TV
76742020-04-22 Tom de Vries <tdevries@suse.de>
7675
7676 PR symtab/25764
7677 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7678 in psymtabs.
7679
eea9e357
TV
76802020-04-22 Tom de Vries <tdevries@suse.de>
7681
7682 PR symtab/25801
7683 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7684 symtabs.
7685
3d5afab3
TV
76862020-04-22 Tom de Vries <tdevries@suse.de>
7687
7688 PR symtab/25700
7689 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7690 CU if already created.
7691
d43b7a2d
TBA
76922020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7693
7694 * infrun.c (displaced_step_fixup): Switch to the event_thread
7695 before calling displaced_step_restore, not after.
7696
d89edf9b
MM
76972020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7698
7699 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7700 its inferior is not recorded by us.
7701 (record_btrace_target_open): Replace call to
7702 all_non_exited_threads () with call to current_inferior
7703 ()->non_exited_threads ().
7704 (record_btrace_target::stop_recording): Likewise.
7705 (record_btrace_target::close): Likewise.
7706 (record_btrace_target::wait): Likewise.
7707 (record_btrace_target::record_stop_replaying): Likewise.
7708
5897fd49
MM
77092020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7710
7711 * btrace.c (btrace_enable): Throw an error on double enables and
7712 when enabling recording fails.
7713 (btrace_disable): Throw an error if the thread is not recorded.
7714
1a476b6d
MM
77152020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7716
7717 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7718 request if we do not have a thread_info.
7719
4778a5f8
TV
77202020-04-21 Tom de Vries <tdevries@suse.de>
7721
7722 PR gdb/25471
7723 * thread.c
7724 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7725 exception in get_frame_id.
7726
0fa7617d
TT
77272020-04-20 Tom Tromey <tromey@adacore.com>
7728
7729 * python/python.c (struct gdbpy_event): Mark move constructor as
7730 noexcept.
7731 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7732 constructor as noexcept.
7733 * completer.h (struct completion_result): Mark move constructor as
7734 noexcept.
7735 * completer.c (completion_result::completion_result): Use
7736 initialization style. Don't call reset_match_list.
7737
ad23bda0
MS
77382020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7739
7740 * MAINTAINERS (Write After Approval): Add myself.
7741
45e1f031
TT
77422020-04-18 Tom Tromey <tom@tromey.com>
7743
7744 * windows-tdep.c (init_w32_command_list)
7745 (w32_prefix_command_valid): Restore.
7746 (_initialize_windows_tdep): Call init_w32_command_list.
7747
08feed99
TT
77482020-04-18 Tom Tromey <tom@tromey.com>
7749
7750 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7751 * value.c (value_fn_field): Update.
7752 * valops.c (find_function_in_inferior)
7753 (value_allocate_space_in_inferior): Update.
7754 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7755 Update.
7756 * tui/tui-source.c (tui_source_window::set_contents): Update.
7757 * symtab.c (lookup_global_or_static_symbol)
7758 (find_function_start_sal_1, skip_prologue_sal)
7759 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7760 * symmisc.c (dump_msymbols, dump_symtab_1)
7761 (maintenance_print_one_line_table): Update.
7762 * symfile.c (init_entry_point_info, section_is_mapped)
7763 (list_overlays_command, simple_read_overlay_table)
7764 (simple_overlay_update_1): Update.
7765 * stap-probe.c (handle_stap_probe): Update.
7766 * stabsread.c (dbx_init_float_type, define_symbol)
7767 (read_one_struct_field, read_enum_type, read_range_type): Update.
7768 * source.c (info_line_command): Update.
7769 * python/python.c (gdbpy_source_objfile_script)
7770 (gdbpy_execute_objfile_script): Update.
7771 * python/py-type.c (save_objfile_types): Update.
7772 * python/py-objfile.c (py_free_objfile): Update.
7773 * python/py-inferior.c (python_new_objfile): Update.
7774 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7775 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7776 (maintenance_check_psymtabs): Update.
7777 * printcmd.c (info_address_command): Update.
7778 * objfiles.h (struct objfile) <arch>: New method, from
7779 get_objfile_arch.
7780 (get_objfile_arch): Don't declare.
7781 * objfiles.c (get_objfile_arch): Remove.
7782 (filter_overlapping_sections): Update.
7783 * minsyms.c (msymbol_is_function): Update.
7784 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7785 (output_nondebug_symbol): Update.
7786 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7787 (mdebug_expand_psymtab): Update.
7788 * machoread.c (macho_add_oso_symfile): Update.
7789 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7790 Update.
7791 * linux-fork.c (checkpoint_command): Update.
7792 * linespec.c (convert_linespec_to_sals): Update.
7793 * jit.c (finalize_symtab): Update.
7794 * infrun.c (insert_exception_resume_from_probe): Update.
7795 * ia64-tdep.c (ia64_find_unwind_table): Update.
7796 * hppa-tdep.c (internalize_unwinds): Update.
7797 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7798 Update.
7799 * gcore.c (call_target_sbrk): Update.
7800 * elfread.c (record_minimal_symbol, elf_symtab_read)
7801 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7802 (elf_gnu_ifunc_resolve_by_got): Update.
7803 * dwarf2/read.c (create_addrmap_from_index)
7804 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7805 (read_debug_names_from_section)
7806 (process_psymtab_comp_unit_reader, add_partial_symbol)
7807 (add_partial_subprogram, process_full_comp_unit)
7808 (read_file_scope, read_func_scope, read_lexical_block_scope)
7809 (read_call_site_scope, dwarf2_ranges_read)
7810 (dwarf2_record_block_ranges, dwarf2_add_field)
7811 (mark_common_block_symbol_computed, read_tag_pointer_type)
7812 (read_tag_string_type, dwarf2_init_float_type)
7813 (dwarf2_init_complex_target_type, read_base_type)
7814 (partial_die_info::read, partial_die_info::read)
7815 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7816 (dwarf2_fetch_die_loc_sect_off): Update.
7817 * dwarf2/loc.c (dwarf2_find_location_expression)
7818 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7819 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7820 (dwarf2_loc_desc_get_symbol_read_needs)
7821 (locexpr_describe_location_piece, locexpr_describe_location_1)
7822 (loclist_describe_location): Update.
7823 * dwarf2/index-write.c (write_debug_names): Update.
7824 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7825 * dtrace-probe.c (dtrace_process_dof): Update.
7826 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7827 (process_one_symbol): Update.
7828 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7829 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7830 (coff_read_enum_type): Update.
7831 * cli/cli-cmds.c (edit_command, list_command): Update.
7832 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7833 * breakpoint.c (create_overlay_event_breakpoint)
7834 (create_longjmp_master_breakpoint)
7835 (create_std_terminate_master_breakpoint)
7836 (create_exception_master_breakpoint, get_sal_arch): Update.
7837 * block.c (block_gdbarch): Update.
7838 * annotate.c (annotate_source_line): Update.
7839
0743fc83
TT
78402020-04-17 Tom Tromey <tromey@adacore.com>
7841
7842 * auto-load.c (show_auto_load_cmd): Remove.
7843 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7844 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7845 (maintenance_print_arc_command): Remove.
7846 * tui/tui-win.c (tui_command): Remove.
7847 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7848 * tui/tui-layout.c (tui_layout_command): Remove.
7849 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7850 * python/python.c (user_set_python, user_show_python): Remove.
7851 (_initialize_python): Use add_basic_prefix_cmd,
7852 add_show_prefix_cmd.
7853 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7854 (install_gdb_commands): Use add_basic_prefix_cmd,
7855 add_show_prefix_cmd.
7856 (info_guile_command): Remove.
7857 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7858 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7859 add_show_prefix_cmd.
7860 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7861 Remove do_set and do_show parameters.
7862 * cli/cli-style.c (set_style, show_style): Remove.
7863 (_initialize_cli_style): Use add_basic_prefix_cmd,
7864 add_show_prefix_cmd.
7865 (cli_style_option::add_setshow_commands): Remove do_set and
7866 do_show parameters.
7867 (cli_style_option::add_setshow_commands): Use
7868 add_basic_prefix_cmd, add_show_prefix_cmd.
7869 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7870 (set_style_name): Remove.
7871 * cli/cli-dump.c (dump_command, append_command): Remove.
7872 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7873 (tekhex_dump_command, binary_dump_command)
7874 (binary_append_command): Remove.
7875 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7876 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7877 (init_w32_command_list): Remove; move into ...
7878 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7879 * valprint.c (set_print, show_print, set_print_raw)
7880 (show_print_raw): Remove.
7881 (_initialize_valprint): Use add_basic_prefix_cmd,
7882 add_show_prefix_cmd.
7883 * typeprint.c (set_print_type, show_print_type): Remove.
7884 (_initialize_typeprint): Use add_basic_prefix_cmd,
7885 add_show_prefix_cmd.
7886 * record.c (set_record_command, show_record_command): Remove.
7887 (_initialize_record): Use add_basic_prefix_cmd,
7888 add_show_prefix_cmd.
7889 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7890 add_show_prefix_cmd.
7891 (info_command, show_command, set_debug, show_debug): Remove.
7892 * top.h (set_history, show_history): Don't declare.
7893 * top.c (set_history, show_history): Remove.
7894 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7895 (unset_tdesc_cmd): Remove.
7896 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7897 add_show_prefix_cmd.
7898 * symtab.c (info_module_command): Remove.
7899 (_initialize_symtab): Use add_basic_prefix_cmd.
7900 * symfile.c (overlay_command): Remove.
7901 (_initialize_symfile): Use add_basic_prefix_cmd.
7902 * sparc64-tdep.c (info_adi_command): Remove.
7903 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7904 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7905 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7906 add_show_prefix_cmd.
7907 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7908 (_initialize_serial): Use add_basic_prefix_cmd,
7909 add_show_prefix_cmd.
7910 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7911 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7912 add_show_prefix_cmd.
7913 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7914 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7915 add_show_prefix_cmd.
7916 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7917 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7918 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7919 add_show_prefix_cmd.
7920 * remote.c (remote_command, set_remote_cmd): Remove.
7921 (_initialize_remote): Use add_basic_prefix_cmd.
7922 * record-full.c (set_record_full_command)
7923 (show_record_full_command): Remove.
7924 (_initialize_record_full): Use add_basic_prefix_cmd,
7925 add_show_prefix_cmd.
7926 * record-btrace.c (cmd_set_record_btrace)
7927 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7928 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7929 (cmd_show_record_btrace_pt): Remove.
7930 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7931 add_show_prefix_cmd.
7932 * ravenscar-thread.c (set_ravenscar_command)
7933 (show_ravenscar_command): Remove.
7934 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7935 add_show_prefix_cmd.
7936 * mips-tdep.c (show_mips_command, set_mips_command)
7937 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7938 add_show_prefix_cmd.
7939 * maint.c (maintenance_command, maintenance_info_command)
7940 (maintenance_check_command, maintenance_print_command)
7941 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7942 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7943 add_show_prefix_cmd.
7944 (show_per_command_cmd): Remove.
7945 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7946 Remove.
7947 (maintenance_show_test_settings_cmd): Remove.
7948 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7949 add_show_prefix_cmd.
7950 * maint-test-options.c (maintenance_test_options_command):
7951 Remove.
7952 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7953 * macrocmd.c (macro_command): Remove
7954 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7955 * language.c (set_check, show_check): Remove.
7956 (_initialize_language): Use add_basic_prefix_cmd,
7957 add_show_prefix_cmd.
7958 * infcmd.c (unset_command): Remove.
7959 (_initialize_infcmd): Use add_basic_prefix_cmd.
7960 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7961 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7962 add_show_prefix_cmd.
7963 * go32-nat.c (go32_info_dos_command): Remove.
7964 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7965 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7966 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7967 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7968 (_initialize_frame): Use add_basic_prefix_cmd,
7969 add_show_prefix_cmd.
7970 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7971 (_initialize_dcache): Use add_basic_prefix_cmd,
7972 add_show_prefix_cmd.
7973 * cp-support.c (maint_cplus_command): Remove.
7974 (_initialize_cp_support): Use add_basic_prefix_cmd.
7975 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7976 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7977 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7978 add_basic_prefix_cmd, add_show_prefix_cmd.
7979 * breakpoint.c (save_command): Remove.
7980 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7981 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7982 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7983 add_show_prefix_cmd.
7984 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7985 (set_ada_command, show_ada_command): Remove.
7986 (_initialize_ada_language): Use add_basic_prefix_cmd,
7987 add_show_prefix_cmd.
7988 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7989
3557f442
KR
79902020-04-16 Kamil Rytarowski <n54@gmx.com>
7991
7992 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7993 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7994
16197208
SM
79952020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7996
7997 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7998 warning messages.
7999
00ac85d3
SM
80002020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8001
8002 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8003 import table is not at beginning of .idata section.
8004
381ce63f
PA
80052020-04-16 Pedro Alves <palves@redhat.com>
8006
8007 * inferior.c (delete_inferior): Use delete operator directly
8008 instead of delete_program_space.
8009 * progspace.c (add_program_space): New, factored out from
8010 program_space::program_space.
8011 (remove_program_space): New, factored out from
8012 delete_program_space.
8013 (program_space::program_space): Remove intro comment. Rewrite.
8014 (program_space::~program_space): Remove intro comment. Call
8015 remove_program_space.
8016 (delete_program_space): Delete.
8017 * progspace.h (program_space::program_space): Make explicit. Move
8018 intro comment here, adjusted.
8019 (program_space::~program_space): Move intro comment here,
8020 adjusted.
8021 (delete_program_space): Remove.
8022
a010605f
TT
80232020-04-16 Tom Tromey <tromey@adacore.com>
8024
8025 * windows-nat.c (windows_nat::handle_access_violation): New
8026 function.
8027 * nat/windows-nat.h (handle_access_violation): Declare.
8028 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8029 windows-nat.c. Call handle_access_violation.
8030
efba5c23
TV
80312020-04-16 Tom de Vries <tdevries@suse.de>
8032
8033 PR symtab/25791
8034 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8035 CUs without psymtab.
8036
97ed802d
KB
80372020-04-16 Kevin Buettner <kevinb@redhat.com>
8038
8039 * python/python.c (do_start_initialization): Don't call
8040 PyEval_InitThreads for Python 3.9 and beyond.
8041
c7d64809
KR
80422020-04-15 Kamil Rytarowski <n54@gmx.com>
8043
8044 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8045 thread functions.
8046 (obsd_nat_target::wait): Likewise.
8047
ce127a96
TT
80482020-04-15 Tom Tromey <tromey@adacore.com>
8049
8050 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8051 (DEBUG_EXCEPT): Use debug_printf.
8052
99f1bc6a
AB
80532020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8054
8055 * completer.c (class completion_tracker::completion_hash_entry)
8056 <hash_name>: New member function.
8057 (completion_tracker::discard_completions): New callback to hash a
8058 completion_hash_entry, pass this to htab_create_alloc.
8059
a0e9b532
JT
80602016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8061
8062 * windows-nat.c (windows_make_so): Warn rather than stopping with
8063 an error if realpath() fails.
8064
06ca5dd4
KR
80652020-04-14 Kamil Rytarowski <n54@gmx.com>
8066
8067 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8068 (nbsd_nat_target::info_proc): Add do_status.
8069
194d088f
TV
80702020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8071 Tom de Vries <tdevries@suse.de>
8072
8073 PR symtab/25718
8074 * psympriv.h (struct partial_symtab::read_symtab)
8075 (struct partial_symtab::expand_psymtab)
8076 (struct partial_symtab::read_dependencies): Update comments.
8077 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8078 read_symtab for includer.
8079 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8080 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8081 (struct dwarf2_include_psymtab::m_readin): Remove.
8082 (struct dwarf2_include_psymtab::includer): New member function.
8083 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8084
c1a66c06
TV
80852020-04-14 Tom de Vries <tdevries@suse.de>
8086
8087 PR symtab/25720
8088 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8089 with NULL symbol_matcher and lookup_name.
8090 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8091 and lookup_name.
8092 * dwarf2/read.c (dw2_expand_symtabs_matching)
8093 (dw2_debug_names_expand_symtabs_matching): Same.
8094 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8095 Make lookup_name a pointer. Update comment.
8096 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8097 lookup_name being a pointer.
8098 * symfile.c (expand_symtabs_matching): Same.
8099 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8100 * linespec.c (iterate_over_all_matching_symtabs): Same.
8101
400b5eca
TT
81022020-04-13 Tom Tromey <tom@tromey.com>
8103
8104 * run-on-main-thread.c: Update include.
8105 * unittests/main-thread-selftests.c: Update include.
8106 * tui/tui-win.c: Update include.
8107 * tui/tui-io.c: Update include.
8108 * tui/tui-interp.c: Update include.
8109 * tui/tui-hooks.c: Update include.
8110 * top.h: Update include.
8111 * top.c: Update include.
8112 * ser-base.c: Update include.
8113 * remote.c: Update include.
8114 * remote-notif.c: Update include.
8115 * remote-fileio.c: Update include.
8116 * record-full.c: Update include.
8117 * record-btrace.c: Update include.
8118 * python/python.c: Update include.
8119 * posix-hdep.c: Update include.
8120 * mingw-hdep.c: Update include.
8121 * mi/mi-main.c: Update include.
8122 * mi/mi-interp.c: Update include.
8123 * main.c: Update include.
8124 * linux-nat.c: Update include.
8125 * interps.c: Update include.
8126 * infrun.c: Update include.
8127 * inf-loop.c: Update include.
8128 * event-top.c: Update include.
8129 * event-loop.c: Move to ../gdbsupport/.
8130 * event-loop.h: Move to ../gdbsupport/.
8131 * async-event.h: Update include.
8132 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8133
93b54c8e
TT
81342020-04-13 Tom Tromey <tom@tromey.com>
8135
8136 * tui/tui-win.c: Include async-event.h.
8137 * remote.c: Include async-event.h.
8138 * remote-notif.c: Include async-event.h.
8139 * record-full.c: Include async-event.h.
8140 * record-btrace.c: Include async-event.h.
8141 * infrun.c: Include async-event.h.
8142 * event-top.c: Include async-event.h.
8143 * event-loop.h: Move some declarations to async-event.h.
8144 * event-loop.c: Don't include ser-event.h or top.h. Move some
8145 code to async-event.c.
8146 * async-event.h: New file.
8147 * async-event.c: New file.
8148 * Makefile.in (COMMON_SFILES): Add async-event.c.
8149 (HFILES_NO_SRCDIR): Add async-event.h.
8150
c1cd3163
TT
81512020-04-13 Tom Tromey <tom@tromey.com>
8152
8153 * utils.c (flush_streams): New function.
8154 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8155
29f2bf4f
TT
81562020-04-13 Tom Tromey <tom@tromey.com>
8157
8158 * event-loop.c (handle_file_event): Use warning, not
8159 printf_unfiltered.
8160
98029d02
TT
81612020-04-13 Tom Tromey <tom@tromey.com>
8162
8163 * event-loop.c: Include <chrono>.
8164
06cc9596
TT
81652020-04-13 Tom Tromey <tom@tromey.com>
8166
8167 * gdb_select.h: Move to ../gdbsupport/.
8168 * event-loop.c: Update include path.
8169 * top.c: Update include path.
8170 * ser-base.c: Update include path.
8171 * ui-file.c: Update include path.
8172 * ser-tcp.c: Update include path.
8173 * guile/scm-ports.c: Update include path.
8174 * posix-hdep.c: Update include path.
8175 * ser-unix.c: Update include path.
8176 * gdb_usleep.c: Update include path.
8177 * mingw-hdep.c: Update include path.
8178 * inflow.c: Update include path.
8179 * infrun.c: Update include path.
8180 * event-top.c: Update include path.
8181
8ae8e197
TT
81822020-04-13 Tom Tromey <tom@tromey.com>
8183
8184 * configure: Rebuild.
8185 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8186
58cf28e8
TT
81872020-04-13 Tom Tromey <tom@tromey.com>
8188
8189 * event-loop.h (start_event_loop): Don't declare.
8190 * event-loop.c (start_event_loop): Move...
8191 * main.c (start_event_loop): ...here. Now static.
8192
b7f999ae
SDJ
81932020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8194
8195 * MAINTAINERS: Update my email address.
8196
1085dfd4
KR
81972020-04-12 Kamil Rytarowski <n54@gmx.com>
8198
8199 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8200 IP_ALL.
8201
49d1d1f5
KR
82022020-04-12 Kamil Rytarowski <n54@gmx.com>
8203
8204 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8205 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8206
b4848d2a
KR
82072020-04-12 Kamil Rytarowski <n54@gmx.com>
8208
8209 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8210 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8211
51c133d5
KR
82122020-04-12 Kamil Rytarowski <n54@gmx.com>
8213
8214 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8215
54b8cbd0
KR
82162020-04-11 Kamil Rytarowski <n54@gmx.com>
8217
8218 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8219 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8220 (nbsd_nat_target::info_proc): New functions.
8221 * nbsd-nat.c (kinfo_get_vmmap): New function.
8222 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8223 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8224 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8225 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8226 functions.
8227 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8228 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8229 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8230 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8231 (KINFO_VME_FLAG_GROWS_DOWN): New.
8232
cf83625d
AS
82332020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8234
8235 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8236 bit shift.
8237
0c4311ab
TT
82382020-04-10 Tom Tromey <tromey@adacore.com>
8239
8240 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8241
3e65b3e9
TT
82422020-04-10 Tom Tromey <tromey@adacore.com>
8243
8244 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8245 separate debug files.
8246
13302e95
HD
82472020-04-10 Hannes Domani <ssbssa@yahoo.de>
8248
8249 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8250 Move to...
8251 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8252 ... here.
8253 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8254 Check for STATUS_WX86_BREAKPOINT.
8255 (windows_nat_target::wait): Same.
8256
bdfc1e8a
TV
82572020-04-10 Tom de Vries <tdevries@suse.de>
8258
8259 PR cli/25808
8260 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8261
f4460aec
SM
82622020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8263
8264 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8265 (Write After Approval): Remove Tom de Vries.
8266
a25198bb
BE
82672020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8268
8269 revert partially:
8270 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8271
aac66a4c
SM
8272 * buildsym.c (record_line): Fix undefined behavior and preserve
8273 lines at eof.
a25198bb 8274
206c98a6
KR
82752020-04-09 Kamil Rytarowski <n54@gmx.com>
8276
8277 * auxv.h (svr4_auxv_parse): New.
8278 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8279 and generic_auxv_parse.
8280 (svr4_auxv_parse): Add.
8281 * obsd-tdep.c: Include "auxv.h".
8282 (obsd_auxv_parse): Remove.
8283 (obsd_init_abi): Remove comment.
8284 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8285 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8286 * nbsd-tdep.c: Include "auxv.h".
8287 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8288
71fbdbaf
TT
82892020-04-08 Tom Tromey <tromey@adacore.com>
8290
8291 * nat/windows-nat.h (last_wait_event): Don't declare.
8292 (wait_for_debug_event): Update comment.
8293 * nat/windows-nat.c (last_wait_event): Now static.
8294
2c1d95e8
TT
82952020-04-08 Tom Tromey <tromey@adacore.com>
8296
8297 * windows-nat.c (wait_for_debug_event): Move to
8298 nat/windows-nat.c.
8299 * nat/windows-nat.h (wait_for_debug_event): Declare.
8300 * nat/windows-nat.c (wait_for_debug_event): Move from
8301 windows-nat.c. No longer static.
8302
d2977bc4
TT
83032020-04-08 Tom Tromey <tromey@adacore.com>
8304
8305 * windows-nat.c (get_windows_debug_event): Use
8306 fetch_pending_stop.
8307 * nat/windows-nat.h (fetch_pending_stop): Declare.
8308 * nat/windows-nat.c (fetch_pending_stop): New function.
8309
e758e19c
TT
83102020-04-08 Tom Tromey <tromey@adacore.com>
8311
8312 * windows-nat.c (windows_continue): Use matching_pending_stop and
8313 continue_last_debug_event.
8314 * nat/windows-nat.h (matching_pending_stop)
8315 (continue_last_debug_event): Declare.
8316 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8317 (matching_pending_stop, continue_last_debug_event): New
8318 functions.
8319
8d30e395
TT
83202020-04-08 Tom Tromey <tromey@adacore.com>
8321
8322 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8323 (handle_exception_result): Move to nat/windows-nat.h.
8324 (DEBUG_EXCEPTION_SIMPLE): Remove.
8325 (windows_nat::handle_ms_vc_exception): New function.
8326 (handle_exception): Move to nat/windows-nat.c.
8327 (get_windows_debug_event): Update.
8328 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8329 nat/windows-nat.c.
8330 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8331 (handle_exception_result): Move from windows-nat.c.
8332 (handle_exception): Declare.
8333 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8334 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8335 windows-nat.c.
8336
29de418d
TT
83372020-04-08 Tom Tromey <tromey@adacore.com>
8338
8339 * windows-nat.c (exception_count, event_count): Remove.
8340 (handle_exception, get_windows_debug_event)
8341 (do_initial_windows_stuff): Update.
8342
a816ba18
TT
83432020-04-08 Tom Tromey <tromey@adacore.com>
8344
8345 * windows-nat.c (windows_nat::handle_load_dll)
8346 (windows_nat::handle_unload_dll): Rename. No longer static.
8347 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8348 Declare.
8349
a00caa12
TT
83502020-04-08 Tom Tromey <tromey@adacore.com>
8351
8352 * complaints.h (stop_whining): Declare at top-level.
8353 (complaint): Don't declare stop_whining.
8354
d41b524f
TT
83552020-04-08 Tom Tromey <tromey@adacore.com>
8356
8357 * windows-nat.c (windows_nat::handle_output_debug_string):
8358 Rename. No longer static.
8359 * nat/windows-nat.h (handle_output_debug_string): Declare.
8360
3c76026d
TT
83612020-04-08 Tom Tromey <tromey@adacore.com>
8362
8363 * windows-nat.c (current_process_handle, current_process_id)
8364 (main_thread_id, last_sig, current_event, last_wait_event)
8365 (current_windows_thread, desired_stop_thread_id, pending_stops)
8366 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8367 (display_selectors, fake_create_process)
8368 (get_windows_debug_event): Update.
8369 * nat/windows-nat.h (current_process_handle, current_process_id)
8370 (main_thread_id, last_sig, current_event, last_wait_event)
8371 (current_windows_thread, desired_stop_thread_id, pending_stops)
8372 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8373 * nat/windows-nat.c (current_process_handle, current_process_id)
8374 (main_thread_id, last_sig, current_event, last_wait_event)
8375 (current_windows_thread, desired_stop_thread_id, pending_stops)
8376 (siginfo_er): New globals. Move from windows-nat.c.
8377
9d8679cc
TT
83782020-04-08 Tom Tromey <tromey@adacore.com>
8379
8380 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8381 (handle_load_dll): Update.
8382 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8383
28688adf
TT
83842020-04-08 Tom Tromey <tromey@adacore.com>
8385
8386 * windows-nat.c (enum thread_disposition_type): Move to
8387 nat/windows-nat.h.
8388 (windows_nat::thread_rec): Rename from thread_rec. No longer
8389 static.
8390 (windows_add_thread, windows_nat_target::fetch_registers)
8391 (windows_nat_target::store_registers, handle_exception)
8392 (windows_nat_target::resume, get_windows_debug_event)
8393 (windows_nat_target::get_tib_address)
8394 (windows_nat_target::thread_name)
8395 (windows_nat_target::thread_alive): Update.
8396 * nat/windows-nat.h (enum thread_disposition_type): Move from
8397 windows-nat.c.
8398 (thread_rec): Declare.
8399
4834dad0
TT
84002020-04-08 Tom Tromey <tromey@adacore.com>
8401
8402 * windows-nat.c: Add "using namespace".
8403 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8404 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8405
65bafd5b
TT
84062020-04-08 Tom Tromey <tromey@adacore.com>
8407
8408 * nat/windows-nat.h (struct windows_thread_info): Declare
8409 destructor.
8410 * nat/windows-nat.c (~windows_thread_info): New.
8411
0a4afda3
TT
84122020-04-08 Tom Tromey <tromey@adacore.com>
8413
8414 PR gdb/22992
8415 * windows-nat.c (current_event): Update comment.
8416 (last_wait_event, desired_stop_thread_id): New globals.
8417 (struct pending_stop): New.
8418 (pending_stops): New global.
8419 (windows_nat_target) <stopped_by_sw_breakpoint>
8420 <supports_stopped_by_sw_breakpoint>: New methods.
8421 (windows_fetch_one_register): Add assertions. Adjust PC.
8422 (windows_continue): Handle pending stops. Suspend other threads
8423 when stepping. Use last_wait_event
8424 (wait_for_debug_event): New function.
8425 (get_windows_debug_event): Use wait_for_debug_event. Handle
8426 pending stops. Queue spurious stops.
8427 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8428 (windows_nat_target::kill): Use wait_for_debug_event.
8429 * nat/windows-nat.h (struct windows_thread_info)
8430 <stopped_at_software_breakpoint>: New field.
8431 * nat/windows-nat.c (windows_thread_info::resume): Clear
8432 stopped_at_software_breakpoint.
8433
8e61ebec
TT
84342020-04-08 Tom Tromey <tromey@adacore.com>
8435
8436 * windows-nat.c (enum thread_disposition_type): New.
8437 (thread_rec): Replace "get_context" parameter with "disposition";
8438 change type.
8439 (windows_add_thread, windows_nat_target::fetch_registers)
8440 (windows_nat_target::store_registers, handle_exception)
8441 (windows_nat_target::resume, get_windows_debug_event)
8442 (windows_nat_target::get_tib_address)
8443 (windows_nat_target::thread_name)
8444 (windows_nat_target::thread_alive): Update.
8445
98a03287
TT
84462020-04-08 Tom Tromey <tromey@adacore.com>
8447
8448 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8449 (windows_continue): Use windows_continue::resume.
8450 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8451 resume>: Declare new methods.
8452 * nat/windows-nat.c: New file.
8453 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8454
7c7411bc
TT
84552020-04-08 Tom Tromey <tromey@adacore.com>
8456
8457 * windows-nat.c (windows_add_thread, windows_delete_thread)
8458 (windows_nat_target::fetch_registers)
8459 (windows_nat_target::store_registers, fake_create_process)
8460 (windows_nat_target::resume, windows_nat_target::resume)
8461 (get_windows_debug_event, windows_nat_target::wait)
8462 (windows_nat_target::pid_to_str)
8463 (windows_nat_target::get_tib_address)
8464 (windows_nat_target::get_ada_task_ptid)
8465 (windows_nat_target::thread_name)
8466 (windows_nat_target::thread_alive): Use lwp, not tid.
8467
2950fdf7
TT
84682020-04-08 Tom Tromey <tromey@adacore.com>
8469
8470 * windows-nat.c (handle_exception)
8471 (windows_nat_target::thread_name): Update.
8472 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8473 <name>: Now unique_xmalloc_ptr.
8474
62fe396b
TT
84752020-04-08 Tom Tromey <tromey@adacore.com>
8476
8477 * windows-nat.c (thread_rec)
8478 (windows_nat_target::fetch_registers): Update.
8479 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8480 Update comment.
8481 <debug_registers_changed, reload_context>: Now bool.
8482
e9534bd2
TT
84832020-04-08 Tom Tromey <tromey@adacore.com>
8484
8485 * windows-nat.c (windows_add_thread): Use new.
8486 (windows_init_thread_list, windows_delete_thread): Use delete.
8487 (get_windows_debug_event): Update.
8488 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8489 destructor, and initializers.
8490
ae1f8880
TT
84912020-04-08 Tom Tromey <tromey@adacore.com>
8492
8493 * windows-nat.c (struct windows_thread_info): Remove.
8494 * nat/windows-nat.h: New file.
8495
55a1e039
TT
84962020-04-08 Tom Tromey <tromey@adacore.com>
8497
8498 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8499 (thread_rec, windows_add_thread, windows_delete_thread)
8500 (windows_continue): Update.
8501
93366324
TT
85022020-04-08 Tom Tromey <tromey@adacore.com>
8503
8504 * windows-nat.c (struct windows_thread_info): Remove typedef.
8505 (thread_head): Remove.
8506 (thread_list): New global.
8507 (thread_rec, windows_add_thread, windows_init_thread_list)
8508 (windows_delete_thread, windows_continue): Update.
8509
0f2265e2
SM
85102020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8511
8512 * windows-tdep.h (windows_init_abi): Add comment.
8513 (cygwin_init_abi): New declaration.
8514 * windows-tdep.c: Split signal enumeration in two, one for
8515 Windows and one for Cygwin.
8516 (windows_gdb_signal_to_target): Only deal with signal of the
8517 Windows OS ABI.
8518 (cygwin_gdb_signal_to_target): New function.
8519 (windows_init_abi): Rename to windows_init_abi_common, don't set
8520 gdb_signal_to_target gdbarch method. Add new new function with
8521 this name.
8522 (cygwin_init_abi): New function.
8523 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8524 comment. Don't call windows_init_abi.
8525 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8526 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8527 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8528 i386_windows_init_abi_common, don't call windows_init_abi. Add
8529 a new function of this name.
8530 (i386_cygwin_init_abi): New function.
8531 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8532 OS ABI Cygwin.
8533
3810f182
SM
85342020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8535
8536 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8537 parameter.c.
8538 (dwarf2_read_gdb_index): Update.
8539
063f8e80
KR
85402020-04-07 Kamil Rytarowski <n54@gmx.com>
8541
8542 * nbsd-tdep.c: Include "objfiles.h".
8543 (nbsd_skip_solib_resolver): New.
8544 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8545
85a9510c 85462020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8547
8548 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8549 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8550 with DW_LLE_base_addressx are being emitted in DWARFv5.
8551 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8552 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8553 unsigned integer.
8554
9fc3eaae 85552020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8556
8557 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8558 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8559 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8560 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8561 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8562 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8563 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8564
8565
41144253 85662020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8567
8568 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8569 (read_loclist_index): New function definition.
8570 (lookup_loclist_base): New function definition.
8571 (read_loclist_header): New function definition.
8572 (dwarf2_cu): Add loclist_base and loclist_header field.
8573 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8574 (read_full_die_1): Read the value of DW_AT_loclists_base.
8575 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8576 (read_attribute_value): Handle DW_FORM_loclistx.
8577 (skip_one_die): Handle DW_FORM_loclistx.
8578 (loclist_header): New structure declaration.
8579 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8580
9f4e76a4
SM
85812020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8582
8583 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8584 constructor. Remove `addr` parameter from other constructor and
8585 add `per_cu` parameter.
8586 * dwarf2/read.c (create_partial_symtab): Update.
8587
25c11aca
TV
85882020-04-07 Tom de Vries <tdevries@suse.de>
8589
8590 PR symtab/25796
8591 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8592 (partial_die_info::fixup): Inherit has_const_value.
8593
5707e24b
TV
85942020-04-07 Tom de Vries <tdevries@suse.de>
8595
8596 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8597 symbols without address.
8598
05f00e22
KR
85992020-04-06 Kamil Rytarowski <n54@gmx.com>
8600
8601 * nbsd-nat.h (struct thread_info): Add forward declaration.
8602 (nbsd_nat_target::thread_alive): Add.
8603 (nbsd_nat_target::thread_name): Likewise.
8604 (nbsd_nat_target::update_thread_list): Likewise.
8605 (update_thread_list::post_attach): Likewise.
8606 (post_attach::pid_to_str): Likewise.
8607 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8608 (nbsd_thread_lister): Add.
8609 (nbsd_nat_target::thread_alive): Likewise.
8610 (nbsd_nat_target::thread_name): Likewise.
8611 (nbsd_add_threads): Likewise.
8612 (update_thread_list::post_attach): Likewise.
8613 (nbsd_nat_target::update_thread_list): Likewise.
8614 (post_attach::pid_to_str): Likewise.
8615
6ee448cc
TT
86162020-04-06 Tom Tromey <tromey@adacore.com>
8617
8618 * ada-valprint.c (print_variant_part): Extract the variant field.
8619 (print_field_values): Use the field as the outer value when
8620 recursing.
8621
dea34e8c
TT
86222020-04-06 Tom Tromey <tromey@adacore.com>
8623
8624 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8625 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8626 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8627 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8628 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8629
93689ce9
TT
86302020-04-06 Tom Tromey <tromey@adacore.com>
8631
8632 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8633 TYPE_CODE_ERROR.
8634
79743962
KR
86352020-04-06 Kamil Rytarowski <n54@gmx.com>
8636
8637 * nbsd-tdep.c: Include "gdbarch.h".
8638 Define enum with NetBSD signal numbers.
8639 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8640 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8641 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8642 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8643 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8644 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8645 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8646 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8647 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8648 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8649 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8650 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8651
9e7c9a03
HD
86522020-04-03 Hannes Domani <ssbssa@yahoo.de>
8653
8654 PR gdb/25325
8655 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8656
d9e49b61
TT
86572020-04-03 Tom Tromey <tromey@adacore.com>
8658
8659 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8660 Read constant block.
8661
e0fc5c3f
SM
86622020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8663
8664 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8665 (gdb_bfd_get_full_section_contents): New declaration.
8666 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8667 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8668 gdb_bfd_get_full_section_contents.
8669
e2ff18a0
SM
86702020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8671
8672 * exec.c (build_section_table): Replace internal_error with
8673 gdb_assert.
8674 (section_table_xfer_memory_partial): Likewise.
8675 * mdebugread.c (parse_partial_symbols): Likewise.
8676 * psymtab.c (lookup_partial_symbol): Likewise.
8677 * utils.c (wrap_here): Likewise.
8678
0830d301
TT
86792020-04-02 Tom Tromey <tromey@adacore.com>
8680
8681 * f-lang.c (build_fortran_types): Use arch_type to initialize
8682 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8683
e7da7f8f
TT
86842020-04-02 Tom Tromey <tromey@adacore.com>
8685
8686 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8687 of attributes.
8688
c90d28ac
AB
86892020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8690 Bernd Edlinger <bernd.edlinger@hotmail.de>
8691 Tom Tromey <tromey@adacore.com>
8692
8693 * buildsym.c (buildsym_compunit::record_line): Remove
8694 deduplication code.
8695
1aa98955
TV
86962020-04-02 Tom de Vries <tdevries@suse.de>
8697
8698 PR ada/24671
8699 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8700
d3214198
TV
87012020-04-02 Tom de Vries <tdevries@suse.de>
8702
8703 * dwarf2/read.c (dwarf2_gdb_index_functions,
8704 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8705 NULL.
8706 * psymtab.c (psym_lookup_global_symbol_language): New function.
8707 (psym_functions): Init psym_lookup_global_symbol_language with
8708 psym_lookup_global_symbol_language.
8709 * symfile-debug.c (debug_sym_quick_functions): Init
8710 lookup_global_symbol_language with NULL.
8711 * symfile.c (set_initial_language): Remove fixme comment.
8712 * symfile.h (struct quick_symbol_functions): Add
8713 lookup_global_symbol_language.
8714 * symtab.c (find_quick_global_symbol_language): New function.
8715 (find_main_name): Use find_quick_global_symbol_language.
8716
2836752f
SM
87172020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8718
8719 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8720
64dc2d4b
BE
87212020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8722
8723 * buildsym.c (record_line): Fix undefined behavior and preserve
8724 lines at eof.
8725
bbe3dc41
BE
87262020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8727
8728 * buildsym.c (record_line): Fix the resizing condition.
8729
6b4a335b
TT
87302020-04-01 Tom Tromey <tom@tromey.com>
8731
8732 * value.h (value_literal_complex): Add comment.
8733 * valops.c (value_literal_complex): Refer to value.h.
8734
3638a098
TT
87352020-04-01 Tom Tromey <tom@tromey.com>
8736
8737 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8738 (scalar_type): New rule, from typebase.
8739 (typebase): Use scalar_type. Recognize complex types.
8740 (field_name): Handle FLOAT_KEYWORD.
8741 (ident_tokens): Add _Complex and __complex__.
8742
c34e8714
TT
87432020-04-01 Tom Tromey <tom@tromey.com>
8744
8745 PR exp/25299:
8746 * valarith.c (promotion_type, complex_binop): New functions.
8747 (scalar_binop): Handle complex numbers. Use promotion_type.
8748 (value_pos, value_neg, value_complement): Handle complex numbers.
8749
fa649bb7
TT
87502020-04-01 Tom Tromey <tom@tromey.com>
8751
8752 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8753 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8754 (parse_number): Handle complex numbers.
8755
981c08ce
TT
87562020-04-01 Tom Tromey <tom@tromey.com>
8757
8758 * c-valprint.c (c_decorations): Change complex suffix to "i".
8759
4c99290d
TT
87602020-04-01 Tom Tromey <tom@tromey.com>
8761
8762 * valprint.c (generic_value_print_complex): Use accessors.
8763 * value.h (value_real_part, value_imaginary_part): Declare.
8764 * valops.c (value_real_part, value_imaginary_part): New
8765 functions.
8766 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8767
5b930b45
TT
87682020-04-01 Tom Tromey <tom@tromey.com>
8769
8770 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8771 (read_range_type): Update.
8772 * mdebugread.c (basic_type): Update.
8773 * go-lang.c (build_go_types): Use init_complex_type.
8774 * gdbtypes.h (struct main_type) <complex_type>: New member.
8775 (init_complex_type): Update.
8776 (arch_complex_type): Don't declare.
8777 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8778 Make name if none given. Use alloc_type_copy. Look for cached
8779 complex type.
8780 (arch_complex_type): Remove.
8781 (gdbtypes_post_init): Use init_complex_type.
8782 * f-lang.c (build_fortran_types): Use init_complex_type.
8783 * dwarf2/read.c (read_base_type): Update.
8784 * d-lang.c (build_d_types): Use init_complex_type.
8785 * ctfread.c (read_base_type): Update.
8786
53cccef1
TBA
87872020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8788
8789 * infrun.c (stop_all_threads): Update assertion, plus when
8790 stopping threads, take into account that we might be trying
8791 to stop an all-stop target.
8792 (stop_waiting): Call 'stop_all_threads' if there exists a
8793 non-stop target.
8794
a0714d30
TBA
87952020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8796
8797 * target.h (exists_non_stop_target): New function declaration.
8798 * target.c (exists_non_stop_target): New function.
8799
60e22c1e
HD
88002020-04-01 Hannes Domani <ssbssa@yahoo.de>
8801
8802 PR gdb/24789
8803 * eval.c (is_integral_or_integral_reference): New function.
8804 (evaluate_subexp_standard): Allow integer references in
8805 pointer arithmetic.
8806
e139a727
TBA
88072020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8808
8809 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8810 check for no ptid in the stop reply when the target is non-stop.
8811
e0802d59
TT
88122020-04-01 Tom Tromey <tromey@adacore.com>
8813
8814 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8815 "name" parameter to rvalue reference. Initialize m_name_holder.
8816 <lookup_name_info>: New overloads.
8817 <name>: Return gdb::string_view.
8818 <c_str>: New method.
8819 <make_ignore_params>: Update.
8820 <search_name_hash>: Update.
8821 <language_lookup_name>: Return const char *.
8822 <m_name>: Change type.
8823 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8824 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8825 (lookup_name_info::match_any): Update.
8826 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8827 Update.
8828 * minsyms.c (linkage_name_str): Update.
8829 * language.c (default_symbol_name_matcher): Update.
8830 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8831 Update.
8832 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8833 (ada_lookup_name_info::ada_lookup_name_info): Update.
8834 (literal_symbol_name_matcher): Update.
8835
8c072cb6
TT
88362020-04-01 Tom Tromey <tromey@adacore.com>
8837
8838 * psymtab.c (psymtab_search_name): Remove function.
8839 (psym_lookup_symbol): Create search name and lookup name here.
8840 (lookup_partial_symbol): Remove "name" parameter; add
8841 lookup_name.
8842 (psym_expand_symtabs_for_function): Update.
8843
6f29a534
TT
88442020-03-31 Joel Jones <joelkevinjones@gmail.com>
8845
8846 PR tui/25597:
8847 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8848
af62665e
TT
88492020-03-31 Tom Tromey <tromey@adacore.com>
8850
8851 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8852 memcpy.
8853
d1a89da5
NC
88542020-03-30 Nelson Chu <nelson.chu@sifive.com>
8855
8856 * features/riscv/32bit-csr.xml: Regenerated.
8857 * features/riscv/64bit-csr.xml: Regenerated.
8858
d8af9068
TT
88592020-03-30 Tom Tromey <tromey@adacore.com>
8860
8861 * ada-valprint.c (print_variant_part): Update.
8862 * ada-lang.h (ada_which_variant_applies): Update.
8863 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8864 outer_valaddr parameters; replace with "outer" value parameter.
8865 (to_fixed_variant_branch_type): Update.
8866
227c0bf4
PFC
88672020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8868
8869 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8870 <list>. Remove inclusion of observable.h.
8871 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8872 (struct arch_lwp_info): New struct.
8873 (class ppc_linux_dreg_interface): New class.
8874 (struct ppc_linux_process_info): New struct.
8875 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8876 <low_new_clone, low_forget_process, low_prepare_to_resume>
8877 <copy_thread_dreg_state, mark_thread_stale>
8878 <mark_debug_registers_changed, register_hw_breakpoint>
8879 <clear_hw_breakpoint, register_wp, clear_wp>
8880 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8881 <num_memory_accesses, get_trigger_type>
8882 <create_watchpoint_request, hwdebug_point_cmp>
8883 <init_arch_lwp_info, get_arch_lwp_info>
8884 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8885 methods.
8886 <struct ptid_hash>: New inner struct.
8887 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8888 members.
8889 (saved_dabr_value, hwdebug_info, max_slots_number)
8890 (struct hw_break_tuple, struct thread_points, ppc_threads)
8891 (have_ptrace_hwdebug_interface)
8892 (hwdebug_find_thread_points_by_tid)
8893 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8894 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8895 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8896 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8897 use m_dreg_interface.
8898 (hwdebug_point_cmp): Change to...
8899 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8900 reference arguments instead of pointers.
8901 (ppc_linux_nat_target::ranged_break_num_registers): Use
8902 m_dreg_interface.
8903 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8904 m_dreg_interface. Call register_hw_breakpoint.
8905 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8906 m_dreg_interface. Call clear_hw_breakpoint.
8907 (get_trigger_type): Change to...
8908 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8909 comment.
8910 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8911 use m_dreg_interface. Call register_hw_breakpoint.
8912 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8913 use m_dreg_interface. Call clear_hw_breakpoint.
8914 (can_use_watchpoint_cond_accel): Change to...
8915 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8916 method. Update comment, use m_dreg_interface and
8917 m_process_info.
8918 (calculate_dvc): Change to...
8919 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8920 m_dreg_interface.
8921 (num_memory_accesses): Change to...
8922 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8923 (check_condition): Change to...
8924 (ppc_linux_nat_target::check_condition): ...this method.
8925 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8926 comment, use m_dreg_interface.
8927 (create_watchpoint_request): Change to...
8928 (ppc_linux_nat_target::create_watchpoint_request): ...this
8929 method. Use m_dreg_interface.
8930 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8931 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8932 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8933 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8934 (ppc_linux_nat_target::low_forget_process)
8935 (ppc_linux_nat_target::low_new_fork)
8936 (ppc_linux_nat_target::low_new_clone)
8937 (ppc_linux_nat_target::low_delete_thread)
8938 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8939 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8940 only call mark_thread_stale.
8941 (ppc_linux_thread_exit): Remove.
8942 (ppc_linux_nat_target::stopped_data_address): Change to...
8943 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8944 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8945 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8946 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8947 comment. Call low_stopped_data_address.
8948 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8949 m_dreg_interface.
8950 (ppc_linux_nat_target::masked_watch_num_registers): Use
8951 m_dreg_interface.
8952 (ppc_linux_nat_target::copy_thread_dreg_state)
8953 (ppc_linux_nat_target::mark_thread_stale)
8954 (ppc_linux_nat_target::mark_debug_registers_changed)
8955 (ppc_linux_nat_target::register_hw_breakpoint)
8956 (ppc_linux_nat_target::clear_hw_breakpoint)
8957 (ppc_linux_nat_target::register_wp)
8958 (ppc_linux_nat_target::clear_wp)
8959 (ppc_linux_nat_target::init_arch_lwp_info)
8960 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8961 (_initialize_ppc_linux_nat): Remove observer callback.
8962
4db10d8f
PFC
89632020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8964
8965 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8966 (ppc_linux_nat_target::auxv_parse)
8967 (ppc_linux_nat_target::read_description)
8968 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8969 Move up.
8970
1310c1b0
PFC
89712020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8972
8973 * linux-nat.h (low_new_clone): New method.
8974 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8975
69b037c3
SM
89762020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8977
8978 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8979 (dbx_expand_psymtab): ... this.
8980 (start_psymtab): Update.
8981 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8982 (mdebug_expand_psymtab): ... this.
8983 (parse_partial_symbols): Update.
8984 (new_psymtab): Update.
8985 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8986 (xcoff_expand_psymtab): ... this.
8987 (xcoff_start_psymtab): Update.
8988
48993951
SM
89892020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8990
8991 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8992 <expand_dependencies>: ... this.
8993 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8994 (partial_symtab::expand_dependencies): ... this.
8995 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8996 Update.
8997 (dwarf2_psymtab::expand_psymtab): Update.
8998 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8999 * mdebugread.c (psymtab_to_symtab_1): Update.
9000 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9001
3ad83046
SM
90022020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9003
9004 * psympriv.h (discard_psymtab): Remove.
9005 * dbxread.c (dbx_end_psymtab): Update.
9006 * xcoffread.c (xcoff_end_psymtab): Update.
9007
4d1b9ab6
TT
90082020-03-28 Tom Tromey <tom@tromey.com>
9009
9010 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9011 comment.
9012
f1749218
TT
90132020-03-28 Tom Tromey <tom@tromey.com>
9014
9015 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9016
ebea7626
HD
90172020-03-27 Hannes Domani <ssbssa@yahoo.de>
9018
9019 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9020
a879b4d5
JB
90212020-03-26 John Baldwin <jhb@FreeBSD.org>
9022
9023 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9024
0826b30a
TT
90252020-03-26 Tom Tromey <tom@tromey.com>
9026
9027 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9028 (mark_common_block_symbol_computed, read_tag_string_type)
9029 (attr_to_dynamic_prop, read_subrange_type): Update.
9030 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9031 to be methods on struct attribute.
9032 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9033 (read_call_site_scope, partial_die_info::read)
9034 (partial_die_info::read, lookup_die_type, follow_die_ref):
9035 Update.
9036 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9037 from dwarf2_get_ref_die_offset.
9038 (attribute::constant_value): New method, from
9039 dwarf2_get_attr_constant_value.
9040 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9041 Declare method.
9042 <constant_value>: New method.
9043
2b2558bf
TT
90442020-03-26 Tom Tromey <tom@tromey.com>
9045
9046 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9047 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9048 (dwarf_type_encoding_name): Move to stringify.c.
9049 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9050 * dwarf2/stringify.c: New file.
9051 * dwarf2/stringify.h: New file.
9052
eeb64781
TT
90532020-03-26 Tom Tromey <tom@tromey.com>
9054
9055 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9056 Rewrite.
9057
a39fdb41
TT
90582020-03-26 Tom Tromey <tom@tromey.com>
9059
9060 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9061 methods.
9062 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9063 (lookup_ranges_base): Likewise.
9064 (read_cutu_die_from_dwo, read_full_die_1): Update.
9065
436c571c
TT
90662020-03-26 Tom Tromey <tom@tromey.com>
9067
9068 * dwarf2/read.c (read_import_statement, read_file_scope)
9069 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9070 (read_lexical_block_scope, read_call_site_scope)
9071 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9072 (handle_struct_member_die, process_structure_scope)
9073 (update_enumeration_type_from_children)
9074 (process_enumeration_scope, read_array_type, read_common_block)
9075 (read_namespace, read_module, read_subroutine_type): Update.
9076 (sibling_die): Remove.
9077
052c8bb8
TT
90782020-03-26 Tom Tromey <tom@tromey.com>
9079
9080 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9081 (build_type_psymtabs_reader, read_structure_type)
9082 (read_enumeration_type, read_full_die_1): Update.
9083 (dwarf2_attr_no_follow): Move to die.h.
9084 * dwarf2/die.h (struct die_info) <attr>: New method.
9085
2b24b6e4
TT
90862020-03-26 Tom Tromey <tom@tromey.com>
9087
9088 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9089 <base_address>: Now an optional.
9090 (dwarf2_find_base_address, dwarf2_rnglists_process)
9091 (dwarf2_ranges_process, fill_in_loclist_baton)
9092 (dwarf2_symbol_mark_computed): Update.
9093
c2d50fd0
TT
90942020-03-26 Tom Tromey <tom@tromey.com>
9095
9096 * dwarf2/read.c (struct die_info): Move to die.h.
9097 * dwarf2/die.h: New file.
9098
0df7ad3a
TT
90992020-03-26 Tom Tromey <tom@tromey.com>
9100
9101 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9102 * dwarf2/read.c
9103 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9104 Move to line-header.c.
9105 (read_checked_initial_length_and_offset, read_formatted_entries):
9106 Likewise.
9107 (dwarf_decode_line_header): Split into two.
9108 * dwarf2/line-header.c
9109 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9110 Move from read.c.
9111 (read_checked_initial_length_and_offset, read_formatted_entries):
9112 Likewise.
9113 (dwarf_decode_line_header): New function, split from read.c.
9114
86c0bb4c
TT
91152020-03-26 Tom Tromey <tom@tromey.com>
9116
9117 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9118 Declare method.
9119 * dwarf2/read.c (read_attribute_value): Update.
9120 (dwarf2_per_objfile::read_line_string): Rename from
9121 read_indirect_line_string.
9122 (read_formatted_entries): Update.
9123
2ef46c2f
TT
91242020-03-26 Tom Tromey <tom@tromey.com>
9125
9126 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9127 variable.
9128
4f9c1eda
TT
91292020-03-26 Tom Tromey <tom@tromey.com>
9130
9131 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9132 const.
9133 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9134 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9135 parameter const.
9136
5a0e026f
TT
91372020-03-26 Tom Tromey <tom@tromey.com>
9138
9139 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9140 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9141 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9142 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9143
8844c11b
TT
91442020-03-26 Tom Tromey <tom@tromey.com>
9145
9146 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9147 file_names_size, file_full_name, file_file_name>: Use const.
9148 <file_name_at, file_names>: Add const overload.
9149 * dwarf2/line-header.c (line_header::file_file_name)
9150 (line_header::file_full_name): Update.
9151
c90ec28a
TT
91522020-03-26 Tom Tromey <tom@tromey.com>
9153
9154 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9155 (macro_start_file, consume_improper_spaces)
9156 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9157 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9158 (dwarf_decode_macros): Move to macro.c.
9159 * dwarf2/macro.c: New file.
9160 * dwarf2/macro.h: New file.
9161 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9162
4f44ae6c
TT
91632020-03-26 Tom Tromey <tom@tromey.com>
9164
9165 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9166 method.
9167 * dwarf2/section.c: New method. From
9168 read_indirect_string_at_offset_from.
9169 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9170 (read_indirect_string_at_offset_from): Move to section.c.
9171 (read_indirect_string_at_offset): Rewrite.
9172 (read_indirect_line_string_at_offset): Remove.
9173 (read_indirect_string, read_indirect_line_string)
9174 (dwarf_decode_macro_bytes): Update.
9175
a0194fa8
TT
91762020-03-26 Tom Tromey <tom@tromey.com>
9177
9178 * dwarf2/section.h (struct dwarf2_section_info)
9179 <overload_complaint>: Declare.
9180 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9181 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9182 Rename from dwarf2_section_buffer_overflow_complaint.
9183 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9184 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9185
3d27bbdb
TT
91862020-03-26 Tom Tromey <tom@tromey.com>
9187
9188 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9189 Declare.
9190 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9191 Move from read.c.
9192 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9193 to section.c.
9194
9eac9650
TT
91952020-03-26 Tom Tromey <tom@tromey.com>
9196
9197 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9198
bf80d710
TT
91992020-03-26 Tom Tromey <tom@tromey.com>
9200
9201 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9202 "builder".
9203 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9204 parameter.
9205 (dwarf_decode_macros): Update.
9206
0314b390
TT
92072020-03-26 Tom Tromey <tom@tromey.com>
9208
9209 * dwarf2/read.c (read_attribute_value): Update.
9210 (read_indirect_string_from_dwz): Move to dwz.c; change into
9211 method.
9212 (dwarf_decode_macro_bytes): Update.
9213 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9214 * dwarf2/dwz.c: New file.
9215 * Makefile.in (COMMON_SFILES): Add dwz.c.
9216
9fda78b6
TT
92172020-03-26 Tom Tromey <tom@tromey.com>
9218
9219 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9220 * dwarf2/read.c: Add include.
9221 * dwarf2/index-write.c: Add include.
9222 * dwarf2/index-cache.c: Add include.
9223 * dwarf2/dwz.h: New file.
9224
33aa3c10
TT
92252020-03-25 Tom Tromey <tom@tromey.com>
9226
9227 * compile/compile-object-load.c (get_out_value_type): Mention
9228 correct symbol name in error message.
9229
d503b685
HD
92302020-03-25 Hannes Domani <ssbssa@yahoo.de>
9231
9232 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9233
7b1eff95
TV
92342020-03-25 Tom de Vries <tdevries@suse.de>
9235
9236 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9237 * symmisc.c (dump_symtab_1): Print user and includes fields.
9238 (maintenance_info_symtabs): Same.
9239
dd895392
AB
92402020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9241
9242 PR gdb/25534
9243 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9244 (riscv_regcache_cooked_write): New function.
9245 (riscv_push_dummy_call): Use new function.
9246 (riscv_return_value): Likewise.
9247
5ab2fbf1
SM
92482020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9249
9250 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9251 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9252 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9253 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9254 * infrun.c (follow_fork): Likewise.
9255 (follow_fork_inferior): Likewise.
9256 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9257 * linux-nat.h (class linux_nat_target): Likewise.
9258 * remote.c (class remote_target) <follow_fork>: Likewise.
9259 (remote_target::follow_fork): Likewise.
9260 * target-delegates.c: Re-generate.
9261 * target.c (default_follow_fork): Likewise.
9262 (target_follow_fork): Likewise.
9263 * target.h (struct target_ops) <follow_fork>: Likewise.
9264 (target_follow_fork): Likewise.
9265
a64fafb5
TV
92662020-03-24 Tom de Vries <tdevries@suse.de>
9267
9268 * psymtab.c (maintenance_info_psymtabs): Print user field.
9269
fe26d3a3
TT
92702020-03-20 Tom Tromey <tromey@adacore.com>
9271
9272 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9273 const.
9274 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9275 const.
9276
c884cc46
SM
92772020-03-20 Simon Marchi <simon.marchi@efficios.com>
9278
9279 * ptrace.m4: Don't check for ptrace declaration.
9280 * config.in: Re-generate.
9281 * configure: Re-generate.
9282 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9283 not defined.
9284
1ff700c2
KR
92852020-03-20 Kamil Rytarowski <n54@gmx.com>
9286
9287 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9288 `PTRACE_TYPE_RET'.
9289 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9290 * sparc-nat.c (gdb_ptrace): Likewise.
9291 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9292
f7d4f0b1
TT
92932020-03-20 Tom Tromey <tromey@adacore.com>
9294
9295 * c-exp.y (lex_one_token): Fix assert.
9296
f67210ff
TT
92972020-03-20 Tom Tromey <tromey@adacore.com>
9298
9299 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9300 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9301 strncpy call.
9302
1773be9e
TT
93032020-03-20 Tom Tromey <tromey@adacore.com>
9304
9305 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9306
70304be9
TT
93072020-03-20 Tom Tromey <tromey@adacore.com>
9308
9309 * ada-valprint.c (print_variant_part): Remove parameters; switch
9310 to value-based API.
9311 (print_field_values): Likewise.
9312 (ada_val_print_struct_union): Likewise.
9313 (ada_value_print_1): Update.
9314
9faa006d
KR
93152020-03-20 Kamil Rytarowski <n54@gmx.com>
9316
9317 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9318 nbsd_nat_target instead of inf_ptrace_target.
9319 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9320 nbsd_nat_target.
9321
4a90f062
KR
93222020-03-20 Kamil Rytarowski <n54@gmx.com>
9323
9324 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9325 it to the ptrace call.
9326 * (store_registers): Likewise.
9327
93282020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9329
9330 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9331 it to the ptrace call.
9332 * (store_registers): Likewise.
9333
2d07da27
LM
93342020-03-19 Luis Machado <luis.machado@linaro.org>
9335
9336 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9337 valid, fetch vg value from ptrace.
9338
f09db380
KR
93392020-03-19 Kamil Rytarowski <n54@gmx.com>
9340 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9341 * inf-ptrace.c: Likewise.
9342 * (gdb_ptrace): Add.
9343 * (inf_ptrace_target::resume): Update.
9344 * (inf_ptrace_target::xfer_partial): Likewise.
9345 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9346 * (inf_ptrace_peek_poke): Update.
9347
fcc7376e
KR
93482020-03-19 Kamil Rytarowski <n54@gmx.com>
9349
9350 * x86-bsd-nat.c (gdb_ptrace): New.
9351 * (x86bsd_dr_set): Add new argument `ptid'.
9352 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9353 x86bsd_dr_set_addr): Update.
9354
cada5fc9
AB
93552020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9356
9357 * remote.c (remote_target::process_stop_reply): Handle events for
9358 all threads differently.
9359
19a2740f
AB
93602020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9361
9362 * completer.c (completion_tracker::remove_completion): Define new
9363 function.
9364 * completer.h (completion_tracker::remove_completion): Declare new
9365 function.
9366 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9367 when adding a C++ function symbol.
9368
724fd9ba
AB
93692020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9370
9371 * completer.c (completion_tracker::completion_hash_entry): Define
9372 new class.
9373 (advance_to_filename_complete_word_point): Call
9374 recompute_lowest_common_denominator.
9375 (completion_tracker::completion_tracker): Call discard_completions
9376 to setup the hash table.
9377 (completion_tracker::discard_completions): Allow for being called
9378 from the constructor, pass new equal function, and element deleter
9379 when constructing the hash table. Initialise new class member
9380 variables.
9381 (completion_tracker::maybe_add_completion): Remove use of
9382 m_entries_vec, and store more information into m_entries_hash.
9383 (completion_tracker::recompute_lcd_visitor): New function, most
9384 content taken from...
9385 (completion_tracker::recompute_lowest_common_denominator):
9386 ...here, this now just visits each item in the hash calling the
9387 above visitor.
9388 (completion_tracker::build_completion_result): Remove use of
9389 m_entries_vec, call recompute_lowest_common_denominator.
9390 * completer.h (completion_tracker::have_completions): Remove use
9391 of m_entries_vec.
9392 (completion_tracker::completion_hash_entry): Declare new class.
9393 (completion_tracker::recompute_lowest_common_denominator): Change
9394 function signature.
9395 (completion_tracker::recompute_lcd_visitor): Declare new function.
9396 (completion_tracker::m_entries_vec): Delete.
9397 (completion_tracker::m_entries_hash): Initialize to NULL.
9398 (completion_tracker::m_lowest_common_denominator_valid): New
9399 member variable.
9400 (completion_tracker::m_lowest_common_denominator_max_length): New
9401 member variable.
9402
5a82b8a1
KR
94032020-03-17 Kamil Rytarowski <n54@gmx.com>
9404
9405 * regformats/regdef.h: Put reg in gdb namespace.
9406
fb516a69
KR
94072020-03-17 Kamil Rytarowski <n54@gmx.com>
9408
9409 * i386-bsd-nat.c (gdb_ptrace): New.
9410 * (i386bsd_fetch_inferior_registers,
9411 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9412 * (i386bsd_fetch_inferior_registers,
9413 i386bsd_store_inferior_registers) Use gdb_ptrace.
9414
1c0aa1fb
KR
94152020-03-17 Kamil Rytarowski <n54@gmx.com>
9416
9417 * amd64-bsd-nat.c (gdb_ptrace): New.
9418 * (amd64bsd_fetch_inferior_registers,
9419 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9420 * (amd64bsd_fetch_inferior_registers,
9421 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9422
5ccd2fb7
KR
94232020-03-17 Kamil Rytarowski <n54@gmx.com>
9424
9425 * user-regs.c (user_reg::read): Rename to...
9426 (user_reg::xread): ...this.
9427 * (append_user_reg): Rename argument `read' to `xread'.
9428 * (user_reg_add_builtin): Likewise.
9429 * (user_reg_add): Likewise.
9430 * (value_of_user_reg): Likewise.
9431
2108a63a
KR
94322020-03-17 Kamil Rytarowski <n54@gmx.com>
9433
9434 * sparc-nat.c (gdb_ptrace): New.
9435 * sparc-nat.c (sparc_fetch_inferior_registers)
9436 (sparc_store_inferior_registers) Remove obsolete comment.
9437 * sparc-nat.c (sparc_fetch_inferior_registers)
9438 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9439 * sparc-nat.c (sparc_fetch_inferior_registers)
9440 (sparc_store_inferior_registers) Use gdb_ptrace.
9441
a225c9a8
KR
94422020-03-17 Kamil Rytarowski <n54@gmx.com>
9443
9444 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9445 it to the ptrace call.
9446 * sh-nbsd-nat.c (store_registers): Likewise.
9447
98097623
KR
94482020-03-17 Kamil Rytarowski <n54@gmx.com>
9449
9450 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9451 nbsd_nat_target instead of inf_ptrace_target.
9452 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9453 nbsd_nat_target.
9454
9e38d619
KR
94552020-03-17 Kamil Rytarowski <n54@gmx.com>
9456
9457 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9458
a2ecbe9f
KR
94592020-03-17 Kamil Rytarowski <n54@gmx.com>
9460
9461 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9462 <sys/sysctl.h>.
9463 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9464
58990295
TV
94652020-03-17 Tom de Vries <tdevries@suse.de>
9466
9467 PR gdb/23710
9468 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9469 fields.
9470 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9471 fields.
9472 (process_imported_unit_die): Skip import of c++ CUs.
9473
771dd3a8
TT
94742020-03-16 Tom Tromey <tom@tromey.com>
9475
9476 * p-valprint.c (pascal_object_print_value): Initialize
9477 base_value.
9478
817a7585
AK
94792020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9480 Shahab Vahedi <shahab@synopsys.com>
9481
9482 * Makefile.in: Add arch/arc.o
9483 * configure.tgt: Likewise.
9484 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9485 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9486 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9487 * arc-tdep.h (arc_read_description): Add proto type.
9488 * arch/arc.c: New file.
9489 * arch/arc.h: Likewise.
9490 * features/Makefile: Replace old target descriptions with new.
9491 * features/arc-arcompact.c: Remove.
9492 * features/arc-arcompact.xml: Likewise.
9493 * features/arc-v2.c: Likewise
9494 * features/arc-v2.xml: Likewise
9495 * features/arc/aux-arcompact.xml: New file.
9496 * features/arc/aux-v2.xml: Likewise.
9497 * features/arc/core-arcompact.xml: Likewise.
9498 * features/arc/core-v2.xml: Likewise.
9499 * features/arc/aux-arcompact.c: Generate.
9500 * features/arc/aux-v2.c: Likewise.
9501 * features/arc/core-arcompact.c: Likewise.
9502 * features/arc/core-v2.c: Likewise.
9503 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9504
67430cd0
TT
95052020-03-16 Tom Tromey <tromey@adacore.com>
9506
9507 PR gdb/25663:
9508 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9509 putting value into bcache.
9510
30efb6c7
SM
95112020-03-16 Simon Marchi <simon.marchi@efficios.com>
9512
9513 PR gdb/21500
9514 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9515 to...
9516 (amd64_windows_init_abi_common): ... this. Don't set size of
9517 long type.
9518 (amd64_windows_init_abi): New function.
9519 (amd64_cygwin_init_abi): New function.
9520 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9521 the Cygwin OS ABI.
9522 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9523 comment.
9524
8db52437
SM
95252020-03-16 Simon Marchi <simon.marchi@efficios.com>
9526
9527 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9528 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9529 (pe_import_directory_entry): New struct type.
9530 (is_linked_with_cygwin_dll): New function.
9531 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9532 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9533 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9534
5982a56a
SM
95352020-03-16 Simon Marchi <simon.marchi@efficios.com>
9536
9537 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9538 i386_cygwin_core_osabi_sniffer.
9539
7a1998df
SM
95402020-03-16 Simon Marchi <simon.marchi@efficios.com>
9541
9542 * i386-cygwin-tdep.c: Rename to...
9543 * i386-windows-tdep.c: ... this.
9544 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9545 i386-windows-tdep.c.
9546 * configure.tgt: Likewise.
9547
053205cc
SM
95482020-03-16 Simon Marchi <simon.marchi@efficios.com>
9549
9550 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9551 * osabi.c (gdb_osabi_names): Add "Windows".
9552 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9553 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9554 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9555 i386_cygwin_osabi_sniffer.
9556 (_initialize_i386_cygwin_tdep): Register OS ABI
9557 GDB_OSABI_WINDOWS for i386.
9558 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9559 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9560 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9561 for x86-64.
9562 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9563 when the target matches '*-*-mingw*'.
9564
fe4b2ee6
SM
95652020-03-16 Simon Marchi <simon.marchi@efficios.com>
9566
9567 * defs.h (enum gdb_osabi): Move to...
9568 * osabi.h (enum gdb_osabi): ... here.
9569 * gdbarch.sh: Include osabi.h in gdbarch.h.
9570 * gdbarch.h: Re-generate.
9571
cb9b645d
SM
95722020-03-16 Simon Marchi <simon.marchi@efficios.com>
9573
9574 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9575 function.
9576 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9577
3293bbaf
TT
95782020-03-14 Tom Tromey <tom@tromey.com>
9579
9580 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9581 for C++.
9582 (c_type_print_modifier): Likewise. Add "language" parameter.
9583 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9584 (c_type_print_base_1): Update.
9585 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9586 constants.
9587 * type-stack.c (type_stack::insert): Handle tp_atomic and
9588 tp_restrict.
9589 (type_stack::follow_type_instance_flags): Likewise.
9590 (type_stack::follow_types): Likewise. Merge type-following code.
9591 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9592 (space_identifier, cv_with_space_id)
9593 (const_or_volatile_or_space_identifier_noopt)
9594 (const_or_volatile_or_space_identifier): Remove.
9595 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9596 rules.
9597 (ptr_operator, typebase): Update.
9598 (enum token_flag) <FLAG_C>: New constant.
9599 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9600 "_Atomic".
9601 (lex_one_token): Handle FLAG_C.
9602
154151a6
KR
96032020-03-14 Kamil Rytarowski <n54@gmx.com>
9604
9605 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9606 it to the ptrace call.
9607 * m68k-bsd-nat.c (store_registers): Likewise.
9608
bc107784
KR
96092020-03-14 Kamil Rytarowski <n54@gmx.com>
9610
9611 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9612 gdb_byte *.
9613 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9614 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9615 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9616
01a80117
KR
96172020-03-14 Kamil Rytarowski <n54@gmx.com>
9618
9619 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9620 nbsd_nat_target instead of inf_ptrace_target.
9621 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9622 nbsd_nat_target.
9623
f90280ca
KR
96242020-03-14 Kamil Rytarowski <n54@gmx.com>
9625
9626 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9627 register_t.
9628
6def66f1
KR
96292020-03-14 Kamil Rytarowski <n54@gmx.com>
9630
9631 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9632 it to the ptrace call.
9633 * alpha-bsd-nat.c (store_registers): Likewise.
9634
66eaca97
KR
96352020-03-14 Kamil Rytarowski <n54@gmx.com>
9636
9637 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9638 includes.
9639 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9640 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9641 fill_fpregset): Likewise.
9642
4fed520b
KR
96432020-03-14 Kamil Rytarowski <n54@gmx.com>
9644
9645 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9646 nbsd_nat_target instead of inf_ptrace_target.
9647 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9648 nbsd_nat_target.
9649
2190cf06
KR
96502020-03-14 Kamil Rytarowski <n54@gmx.com>
9651
9652 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9653 register_t.
9654
75c56d3d
KR
96552020-03-14 Kamil Rytarowski <n54@gmx.com>
9656
9657 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9658 it to the ptrace call.
9659 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9660 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9661 * arm-nbsd-nat.c (store_register): Likewise.
9662 * arm-nbsd-nat.c (store_regs): Likewise.
9663 * arm-nbsd-nat.c (store_fp_register): Likewise.
9664 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9665
6018d381
KR
96662020-03-14 Kamil Rytarowski <n54@gmx.com>
9667
9668 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9669 nbsd_nat_target instead of inf_ptrace_target.
9670 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9671 nbsd_nat_target.
9672
013f99f0
KR
96732020-03-14 Kamil Rytarowski <n54@gmx.com>
9674
9675 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9676 it to the ptrace call.
9677 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9678
12753073
KR
96792020-03-14 Kamil Rytarowski <n54@gmx.com>
9680
6227b330
KR
9681 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9682 it to the ptrace call.
9683 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9684
96852020-03-14 Kamil Rytarowski <n54@gmx.com>
9686
9687 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9688 gdb_byte *.
12753073
KR
9689 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9690
d5be5fa4
KR
96912020-03-14 Kamil Rytarowski <n54@gmx.com>
9692
9693 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9694 instead of inf_ptrace_target.
9695 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9696 nbsd_nat_target.
9697
8110f842
KR
96982020-03-14 Kamil Rytarowski <n54@gmx.com>
9699
9700 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9701 register_t.
9702
52feded7
KR
97032020-03-14 Kamil Rytarowski <n54@gmx.com>
9704
9705 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9706 register_t.
9707
25567eee
KR
97082020-03-14 Kamil Rytarowski <n54@gmx.com>
9709
9710 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9711 register_t.
9712
426a9c18
TT
97132020-03-13 Tom Tromey <tom@tromey.com>
9714
9715 * value.h (val_print): Don't declare.
9716 * valprint.h (val_print_array_elements)
9717 (val_print_scalar_formatted, generic_val_print): Don't declare.
9718 * valprint.c (generic_val_print_array): Take a struct value.
9719 (generic_val_print_ptr, generic_val_print_memberptr)
9720 (generic_val_print_bool, generic_val_print_int)
9721 (generic_val_print_char, generic_val_print_complex)
9722 (generic_val_print): Remove.
9723 (generic_value_print): Update.
9724 (do_val_print): Remove unused parameters. Don't call
9725 la_val_print.
9726 (val_print): Remove.
9727 (common_val_print): Update. Don't call value_check_printable.
9728 (val_print_scalar_formatted, val_print_array_elements): Remove.
9729 * rust-lang.c (rust_val_print): Remove.
9730 (rust_language_defn): Update.
9731 * p-valprint.c (pascal_val_print): Remove.
9732 (pascal_value_print_inner): Update.
9733 (pascal_object_print_val_fields, pascal_object_print_val):
9734 Remove.
9735 (pascal_object_print_static_field): Update.
9736 * p-lang.h (pascal_val_print): Don't declare.
9737 * p-lang.c (pascal_language_defn): Update.
9738 * opencl-lang.c (opencl_language_defn): Update.
9739 * objc-lang.c (objc_language_defn): Update.
9740 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9741 * m2-lang.h (m2_val_print): Don't declare.
9742 * m2-lang.c (m2_language_defn): Update.
9743 * language.h (struct language_defn) <la_val_print>: Remove.
9744 * language.c (unk_lang_value_print_inner): Rename. Change
9745 argument types.
9746 (unknown_language_defn, auto_language_defn): Update.
9747 * go-valprint.c (go_val_print): Remove.
9748 * go-lang.h (go_val_print): Don't declare.
9749 * go-lang.c (go_language_defn): Update.
9750 * f-valprint.c (f_val_print): Remove.
9751 * f-lang.h (f_value_print): Don't declare.
9752 * f-lang.c (f_language_defn): Update.
9753 * d-valprint.c (d_val_print): Remove.
9754 * d-lang.h (d_value_print): Don't declare.
9755 * d-lang.c (d_language_defn): Update.
9756 * cp-valprint.c (cp_print_value_fields)
9757 (cp_print_value_fields_rtti, cp_print_value): Remove.
9758 (cp_print_static_field): Update.
9759 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9760 (c_val_print_struct, c_val_print_union, c_val_print_int)
9761 (c_val_print_memberptr, c_val_print): Remove.
9762 * c-lang.h (c_val_print_array, cp_print_value_fields)
9763 (cp_print_value_fields_rtti): Don't declare.
9764 * c-lang.c (c_language_defn, cplus_language_defn)
9765 (asm_language_defn, minimal_language_defn): Update.
9766 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9767 (ada_val_print_enum): Take a struct value.
9768 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9769 (ada_val_print): Remove.
9770 (ada_value_print_1): Update.
9771 (printable_val_type): Remove.
9772 * ada-lang.h (ada_val_print): Don't declare.
9773 * ada-lang.c (ada_language_defn): Update.
9774
42331a1e
TT
97752020-03-13 Tom Tromey <tom@tromey.com>
9776
9777 * valprint.c (do_val_print): Update.
9778 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9779 a struct value.
9780 (value_to_value_object_no_release): Declare.
9781 * python/py-value.c (value_to_value_object_no_release): New
9782 function.
9783 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9784 struct value.
9785 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9786 function.
9787 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9788 a struct value.
9789 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9790 Declare.
9791 (gdbscm_apply_val_pretty_printer): Take a struct value.
9792 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9793 value.
9794 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9795 value.
9796 * extension-priv.h (struct extension_language_ops)
9797 <apply_val_pretty_printer>: Take a struct value.
9798 * cp-valprint.c (cp_print_value): Create a struct value.
9799 (cp_print_value): Update.
9800
3a916a97
TT
98012020-03-13 Tom Tromey <tom@tromey.com>
9802
9803 * ada-valprint.c (print_field_values): Call common_val_print.
9804
b59eac37
TT
98052020-03-13 Tom Tromey <tom@tromey.com>
9806
9807 * ada-valprint.c (val_print_packed_array_elements): Remove
9808 bitoffset and val parameters. Call common_val_print.
9809 (ada_val_print_string): Remove offset, address, and original_value
9810 parameters.
9811 (ada_val_print_array): Update.
9812 (ada_value_print_array): New function.
9813 (ada_value_print_1): Call it.
9814
03371129
TT
98152020-03-13 Tom Tromey <tom@tromey.com>
9816
9817 * ada-valprint.c (ada_value_print): Use common_val_print.
9818
2e088f8b
TT
98192020-03-13 Tom Tromey <tom@tromey.com>
9820
9821 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9822
39ef85a8
TT
98232020-03-13 Tom Tromey <tom@tromey.com>
9824
9825 * ada-valprint.c (ada_value_print_num): New function.
9826 (ada_value_print_1): Use it.
9827
b9fa6e07
TT
98282020-03-13 Tom Tromey <tom@tromey.com>
9829
9830 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9831
416595d6
TT
98322020-03-13 Tom Tromey <tom@tromey.com>
9833
9834 * ada-valprint.c (ada_value_print_ptr): New function.
9835 (ada_value_print_1): Use it.
9836
5b5e15ec
TT
98372020-03-13 Tom Tromey <tom@tromey.com>
9838
9839 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9840 call common_val_print.
9841 (ada_val_print_1): Update.
9842 (ada_value_print_1): New function.
9843 (ada_value_print_inner): Rewrite.
9844
fbf54e75
TT
98452020-03-13 Tom Tromey <tom@tromey.com>
9846
9847 * cp-valprint.c (cp_print_value_fields): Update.
9848 (cp_print_value): New function.
9849
64b653ca
TT
98502020-03-13 Tom Tromey <tom@tromey.com>
9851
9852 * m2-valprint.c (m2_value_print_inner): Use
9853 cp_print_value_fields.
9854 * cp-valprint.c (cp_print_value_fields): New function.
9855 * c-valprint.c (c_value_print_struct): New function.
9856 (c_value_print_inner): Use c_value_print_struct.
9857 * c-lang.h (cp_print_value_fields): Declare.
9858
6999f067
TT
98592020-03-13 Tom Tromey <tom@tromey.com>
9860
9861 * c-valprint.c (c_value_print_array): New function.
9862 (c_value_print_inner): Use it.
9863
ce80b8bd
TT
98642020-03-13 Tom Tromey <tom@tromey.com>
9865
9866 * c-valprint.c (c_value_print_memberptr): New function.
9867 (c_value_print_inner): Use it.
9868
2faac269
TT
98692020-03-13 Tom Tromey <tom@tromey.com>
9870
9871 * c-valprint.c (c_value_print_int): New function.
9872 (c_value_print_inner): Use it.
9873
da3e2c29
TT
98742020-03-13 Tom Tromey <tom@tromey.com>
9875
9876 * c-valprint.c (c_value_print_ptr): New function.
9877 (c_value_print_inner): Use it.
9878
50836231
TT
98792020-03-13 Tom Tromey <tom@tromey.com>
9880
9881 * c-valprint.c (c_value_print_inner): Rewrite.
9882
4f412b6e
TT
98832020-03-13 Tom Tromey <tom@tromey.com>
9884
9885 * valprint.c (generic_value_print_complex): New function.
9886 (generic_value_print): Use it.
9887
f5354008
TT
98882020-03-13 Tom Tromey <tom@tromey.com>
9889
9890 * valprint.c (generic_val_print_float): Don't call
9891 val_print_scalar_formatted.
9892 (generic_val_print, generic_value_print): Update.
9893
3eec3b05
TT
98942020-03-13 Tom Tromey <tom@tromey.com>
9895
9896 * valprint.c (generic_value_print_char): New function
9897 (generic_value_print): Use it.
9898
fdddfccb
TT
98992020-03-13 Tom Tromey <tom@tromey.com>
9900
9901 * valprint.c (generic_value_print_int): New function.
9902 (generic_value_print): Use it.
9903
6dde7521
TT
99042020-03-13 Tom Tromey <tom@tromey.com>
9905
9906 * valprint.c (generic_value_print_bool): New function.
9907 (generic_value_print): Use it.
9908
4112d2e6
TT
99092020-03-13 Tom Tromey <tom@tromey.com>
9910
9911 * valprint.c (generic_val_print_func): Simplify.
9912 (generic_val_print, generic_value_print): Update.
9913
65786af6
TT
99142020-03-13 Tom Tromey <tom@tromey.com>
9915
9916 * valprint.c (generic_val_print_flags): Remove.
9917 (generic_val_print, generic_value_print): Update.
9918 (val_print_type_code_flags): Add original_value parameter.
9919
40f3ce18
TT
99202020-03-13 Tom Tromey <tom@tromey.com>
9921
9922 * valprint.c (generic_val_print): Update.
9923 (generic_value_print): Update.
9924 * valprint.c (generic_val_print_enum): Don't call
9925 val_print_scalar_formatted.
9926
2a5b130b
TT
99272020-03-13 Tom Tromey <tom@tromey.com>
9928
9929 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9930 * valprint.c (generic_value_print_ptr): New function.
9931
abc66ce9
TT
99322020-03-13 Tom Tromey <tom@tromey.com>
9933
9934 * valprint.c (generic_value_print): Rewrite.
9935
07a32858
TT
99362020-03-13 Tom Tromey <tom@tromey.com>
9937
9938 * p-valprint.c (pascal_object_print_value_fields)
9939 (pascal_object_print_value): New functions.
9940
64d64d3a
TT
99412020-03-13 Tom Tromey <tom@tromey.com>
9942
9943 * p-valprint.c (pascal_value_print_inner): Rewrite.
9944
6a95a1f5
TT
99452020-03-13 Tom Tromey <tom@tromey.com>
9946
9947 * f-valprint.c (f_value_print_innner): Rewrite.
9948
59fcdac6
TT
99492020-03-13 Tom Tromey <tom@tromey.com>
9950
9951 * m2-valprint.c (m2_print_unbounded_array): New overload.
9952 (m2_print_unbounded_array): Update.
9953 (m2_print_array_contents): Take a struct value.
9954 (m2_value_print_inner): Rewrite.
9955
d133c3e1
TT
99562020-03-13 Tom Tromey <tom@tromey.com>
9957
9958 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9959 (d_value_print_inner): New function.
9960 * d-lang.h (d_value_print_inner): Declare.
9961 * d-lang.c (d_language_defn): Use d_value_print_inner.
9962
23b0f06b
TT
99632020-03-13 Tom Tromey <tom@tromey.com>
9964
9965 * go-valprint.c (go_value_print_inner): New function.
9966 * go-lang.h (go_value_print_inner): Declare.
9967 * go-lang.c (go_language_defn): Use go_value_print_inner.
9968
5f56f7cb
TT
99692020-03-13 Tom Tromey <tom@tromey.com>
9970
9971 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9972 API.
9973 (rust_val_print): Rewrite.
9974 (rust_value_print_inner): New function, from rust_val_print.
9975 (rust_language_defn): Use rust_value_print_inner.
9976
26792ee0
TT
99772020-03-13 Tom Tromey <tom@tromey.com>
9978
9979 * ada-valprint.c (ada_value_print_inner): New function.
9980 * ada-lang.h (ada_value_print_inner): Declare.
9981 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9982
24051bbe
TT
99832020-03-13 Tom Tromey <tom@tromey.com>
9984
9985 * f-valprint.c (f_value_print_innner): New function.
9986 * f-lang.h (f_value_print_innner): Declare.
9987 * f-lang.c (f_language_defn): Use f_value_print_innner.
9988
c0941be6
TT
99892020-03-13 Tom Tromey <tom@tromey.com>
9990
9991 * p-valprint.c (pascal_value_print_inner): New function.
9992 * p-lang.h (pascal_value_print_inner): Declare.
9993 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9994
62c4663d
TT
99952020-03-13 Tom Tromey <tom@tromey.com>
9996
9997 * m2-valprint.c (m2_value_print_inner): New function.
9998 * m2-lang.h (m2_value_print_inner): Declare.
9999 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10000
62182190
TT
100012020-03-13 Tom Tromey <tom@tromey.com>
10002
10003 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10004 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10005 * c-valprint.c (c_value_print_inner): New function.
10006 * c-lang.h (c_value_print_inner): Declare.
10007 * c-lang.c (c_language_defn, cplus_language_defn)
10008 (asm_language_defn, minimal_language_defn): Use
10009 c_value_print_inner.
10010
1e592a8a
TT
100112020-03-13 Tom Tromey <tom@tromey.com>
10012
10013 * p-valprint.c (pascal_object_print_value_fields): Now static.
10014 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10015
7fe471e9
TT
100162020-03-13 Tom Tromey <tom@tromey.com>
10017
10018 * c-valprint.c (c_val_print_array): Simplify.
10019
d121c6ce
TT
100202020-03-13 Tom Tromey <tom@tromey.com>
10021
10022 * valprint.c (value_print_array_elements): New function.
10023 * valprint.h (value_print_array_elements): Declare.
10024
4dba70ee
TT
100252020-03-13 Tom Tromey <tom@tromey.com>
10026
10027 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10028 * mips-tdep.c (mips_print_register): Use
10029 value_print_scalar_formatted.
10030
4f9ae810
TT
100312020-03-13 Tom Tromey <tom@tromey.com>
10032
10033 * valprint.h (value_print_scalar_formatted): Declare.
10034 * valprint.c (value_print_scalar_formatted): New function.
10035
156bfec9
TT
100362020-03-13 Tom Tromey <tom@tromey.com>
10037
10038 * valprint.h (generic_value_print): Declare.
10039 * valprint.c (generic_value_print): New function.
10040
2b4e573d
TT
100412020-03-13 Tom Tromey <tom@tromey.com>
10042
10043 * valprint.c (do_val_print): Call la_value_print_inner, if
10044 available.
10045 * rust-lang.c (rust_language_defn): Update.
10046 * p-lang.c (pascal_language_defn): Update.
10047 * opencl-lang.c (opencl_language_defn): Update.
10048 * objc-lang.c (objc_language_defn): Update.
10049 * m2-lang.c (m2_language_defn): Update.
10050 * language.h (struct language_defn) <la_value_print_inner>: New
10051 member.
10052 * language.c (unknown_language_defn, auto_language_defn): Update.
10053 * go-lang.c (go_language_defn): Update.
10054 * f-lang.c (f_language_defn): Update.
10055 * d-lang.c (d_language_defn): Update.
10056 * c-lang.c (c_language_defn, cplus_language_defn)
10057 (asm_language_defn, minimal_language_defn): Update.
10058 * ada-lang.c (ada_language_defn): Update.
10059
a1f6a07c
TT
100602020-03-13 Tom Tromey <tom@tromey.com>
10061
10062 * c-valprint.c (c_value_print): Use common_val_print.
10063
410cf315
TT
100642020-03-13 Tom Tromey <tom@tromey.com>
10065
10066 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10067
72a45c93
TT
100682020-03-13 Tom Tromey <tom@tromey.com>
10069
10070 * f-valprint.c (f77_print_array_1, f_val_print): Use
10071 common_val_print.
10072
040f66bd
TT
100732020-03-13 Tom Tromey <tom@tromey.com>
10074
10075 * riscv-tdep.c (riscv_print_one_register_info): Use
10076 common_val_print.
10077
a6e05a6c
TT
100782020-03-13 Tom Tromey <tom@tromey.com>
10079
10080 * mi/mi-main.c (output_register): Use common_val_print.
10081
3444c526
TT
100822020-03-13 Tom Tromey <tom@tromey.com>
10083
10084 * infcmd.c (default_print_one_register_info): Use
10085 common_val_print.
10086
c2a44efe
TT
100872020-03-13 Tom Tromey <tom@tromey.com>
10088
10089 * valprint.h (common_val_print_checked): Declare.
10090 * valprint.c (common_val_print_checked): New function.
10091 * stack.c (print_frame_arg): Use common_val_print_checked.
10092
b0c26e99
TT
100932020-03-13 Tom Tromey <tom@tromey.com>
10094
10095 * valprint.c (do_val_print): New function, from val_print.
10096 (val_print): Use do_val_print.
10097 (common_val_print): Use do_val_print.
10098
ce3acbe9
TT
100992020-03-13 Tom Tromey <tom@tromey.com>
10100
10101 * valprint.c (value_print): Use scoped_value_mark.
10102
96c7f873
TV
101032020-03-13 Tom de Vries <tdevries@suse.de>
10104
10105 PR symtab/25646
10106 * psymtab.c (partial_symtab::partial_symtab): Don't set
10107 globals_offset and statics_offset. Push element onto
10108 current_global_psymbols and current_static_psymbols stacks.
10109 (concat): New function.
10110 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10111 element from current_global_psymbols and current_static_psymbols
10112 stacks. Concat popped elements to global_psymbols and
10113 static_symbols.
10114 (add_psymbol_to_list): Use current_global_psymbols and
10115 current_static_psymbols stacks.
10116 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10117 current_static_psymbols fields.
10118
6ba0a321
CB
101192020-03-12 Christian Biesinger <cbiesinger@google.com>
10120
10121 * corelow.c (sniff_core_bfd): Remove.
10122 (class core_target) <m_core_vec>: Remove.
10123 (core_target::core_target): Update.
10124 (core_file_fns): Remove.
10125 (deprecated_add_core_fns): Remove.
10126 (default_core_sniffer): Remove.
10127 (sniff_core_bfd): Remove.
10128 (default_check_format): Remove.
10129 (gdb_check_format): Remove.
10130 (core_target_open): Update.
10131 (core_target::get_core_register_section): Update.
10132 (get_core_registers_cb): Update.
10133 (core_target::fetch_registers): Update.
10134 * gdbcore.h (struct core_fns): Remove.
10135 (deprecated_add_core_fns): Remove.
10136 (default_core_sniffer): Remove.
10137 (default_check_format): Remove.
10138
227031b2
TT
101392020-03-12 Tom Tromey <tom@tromey.com>
10140
10141 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10142 CORE_ADDR.
10143 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10144
53807e9f
TT
101452020-03-12 Tom Tromey <tom@tromey.com>
10146
10147 * remote.c (remote_target::download_tracepoint)
10148 (remote_target::enable_tracepoint)
10149 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10150 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10151 sprintf_vma.
10152
64f25102
TT
101532020-03-12 Tom Tromey <tom@tromey.com>
10154
10155 * symfile-mem.c: Update CORE_ADDR size assert.
10156
272cd5a3
SM
101572020-03-12 Simon Marchi <simon.marchi@efficios.com>
10158
10159 * selftest.m4: Move to gdbsupport/.
10160 * acinclude.m4: Update path to selftest.m4.
10161
74cd3f9d
SM
101622020-03-12 Simon Marchi <simon.marchi@efficios.com>
10163
10164 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10165 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10166 gdbarch-selfselftests.c and selftest-arch.c.
10167 (SUBDIR_UNITTESTS_OBS): Rename to...
10168 (SELFTESTS_OBS): ... this.
10169 (COMMON_SFILES): Remove disasm-selftests.c and
10170 gdbarch-selftests.c.
10171 * configure.ac: Don't add selftest-arch.{c,o} to
10172 CONFIG_{SRCS,OBS}.
10173 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10174 preprocessor conditions.
10175
db6878ac
SM
101762020-03-12 Simon Marchi <simon.marchi@efficios.com>
10177
10178 * configure.ac: Don't source bfd/development.sh.
10179 * selftest.m4: Modify comment.
10180 * configure: Re-generate.
10181
4d696a5c
SM
101822020-03-12 Simon Marchi <simon.marchi@efficios.com>
10183
10184 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10185 not "true" or "false".
10186 * configure: Re-generate.
10187
8dd8e1c7
CB
101882020-03-12 Christian Biesinger <cbiesinger@google.com>
10189
10190 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10191 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10192 renamed to arm_nbsd_supply_gregset.
10193 (fetch_register): Update to call arm_nbsd_supply_gregset.
10194 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10195 (arm_netbsd_nat_target::fetch_registers): Update.
10196 (fetch_elfcore_registers): Removed.
10197 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10198 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10199 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10200 not require NetBSD system headers.
10201 (arm_nbsd_regset): New struct.
10202 (arm_nbsd_iterate_over_regset_sections): New function.
10203 (arm_netbsd_init_abi_common): Updated to call
10204 set_gdbarch_iterate_over_regset_sections.
10205 * arm-nbsd-tdep.h: New file.
10206
dd69bf7a
KB
102072020-03-11 Kevin Buettner <kevinb@redhat.com>
10208
10209 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10210 recursion.
10211
a0761e34
SM
102122020-03-11 Simon Marchi <simon.marchi@efficios.com>
10213
10214 * configure: Re-generate.
10215
e7a82140
TT
102162020-03-11 Tom Tromey <tromey@adacore.com>
10217
10218 * ada-typeprint.c (print_choices): Fix comment.
10219
dcc050c8
AB
102202020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10221
10222 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10223 previous item in the list, when the list has no items.
10224
1c33af77
TV
102252020-03-11 Tom de Vries <tdevries@suse.de>
10226
10227 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10228 PROP_LOCLIST handling code.
10229
8c95582d
AB
102302020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10231
10232 * buildsym-legacy.c (record_line): Pass extra parameter to
10233 record_line.
10234 * buildsym.c (buildsym_compunit::record_line): Take an extra
10235 parameter, reduce duplication in the line table, and record the
10236 is_stmt flag in the line table.
10237 * buildsym.h (buildsym_compunit::record_line): Add extra
10238 parameter.
10239 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10240 non-statement lines.
10241 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10242 this to the symtab builder.
10243 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10244 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10245 through to dwarf_record_line_1.
10246 * infrun.c (process_event_stop_test): When stepping, don't stop at
10247 a non-statement instruction, and only refresh the step info when
10248 we land in the middle of a line's range. Also add an extra
10249 comment.
10250 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10251 field.
10252 * record-btrace.c (btrace_find_line_range): Only record lines
10253 marked as is-statement.
10254 * stack.c (frame_show_address): Show the frame address if we are
10255 in a non-statement sal.
10256 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10257 (maintenance_print_one_line_table): Print a header for the is_stmt
10258 column, and include is_stmt information in the output.
10259 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10260 preference to non-statements.
10261 (find_pcs_for_symtab_line): Prefer is-statement entries.
10262 (find_line_common): Likewise.
10263 * symtab.h (struct linetable_entry): Add is_stmt field.
10264 (struct symtab_and_line): Likewise.
10265 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10266 arranging the line table.
10267
e4003a34
TV
102682020-03-07 Tom de Vries <tdevries@suse.de>
10269
10270 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10271 DIE.
10272
e8932576
TT
102732020-03-07 Tom Tromey <tom@tromey.com>
10274
10275 * valops.c (value_literal_complex): Remove obsolete comment.
10276 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10277 comment.
10278
29734269
SM
102792020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10280
10281 * infrun.h: Forward-declare thread_info.
10282 (set_step_info): Add thread_info parameter, add doc.
10283 * infrun.c (set_step_info): Add thread_info parameter, move doc
10284 to header.
10285 * infrun.c (process_event_stop_test): Pass thread to
10286 set_step_info call.
10287 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10288 set_step_info.
10289 (prepare_one_step): Add thread_info parameter, pass it to
10290 set_step_frame and prepare_one_step (recursive) call.
10291 (step_1): Pass thread to prepare_one_step call.
10292 (step_command_fsm::should_stop): Pass thread to
10293 prepare_one_step.
10294 (until_next_fsm): Pass thread to set_step_frame call.
10295 (finish_command): Pass thread to set_step_info call.
10296
b7d64b29
HD
102972020-03-06 Hannes Domani <ssbssa@yahoo.de>
10298
10299 * windows-tdep.c (windows_solib_create_inferior_hook):
10300 Check if inferior is running.
10301
09f2921c
TV
103022020-03-06 Tom de Vries <tdevries@suse.de>
10303
10304 * NEWS: Fix "the the".
10305 * ctfread.c: Same.
10306
fd760e79
TV
103072020-03-06 Tom de Vries <tdevries@suse.de>
10308
10309 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10310
20ea4a60
AB
103112020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10312
10313 * .dir-locals.el: Add a comment referencing the other copies of
10314 this file.
10315
0afbabf0
JB
103162020-03-05 John Baldwin <jhb@FreeBSD.org>
10317
10318 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10319 psargs.
10320
842806cb
TBA
103212020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10322
10323 * .gitattributes: New file.
10324
be1e3d3e
TT
103252020-03-04 Tom Tromey <tom@tromey.com>
10326
10327 * symmisc.c (print_symbol_bcache_statistics)
10328 (print_objfile_statistics): Update.
10329 * symfile.c (allocate_symtab): Use intern.
10330 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10331 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10332 macro_cache>: Remove.
10333 <string_cache>: New member.
10334 (struct objfile) <intern>: New methods.
10335 * elfread.c (elf_symtab_read): Use intern.
10336 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10337 (dwarf2_compute_name, dwarf2_physname)
10338 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10339 names.
10340 (guess_partial_die_structure_name): Update.
10341 (partial_die_info::fixup): Intern name.
10342 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10343 name.
10344 (dwarf2_name): Intern name. Update.
10345 * buildsym.c (buildsym_compunit::get_macro_table): Use
10346 string_cache.
10347
4e7625fd
TT
103482020-03-04 Tom Tromey <tom@tromey.com>
10349
10350 * jit.c (bfd_open_from_target_memory): Make "target" const.
10351 * corefile.c (gnutarget): Now const.
10352 * gdbcore.h (gnutarget): Now const.
10353
46f9f931
HD
103542020-03-04 Hannes Domani <ssbssa@yahoo.de>
10355
10356 * NEWS: Mention support for WOW64 processes.
10357 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10358 (amd64_windows_segment_register_p): Remove static.
10359 (_initialize_amd64_windows_nat): Update.
10360 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10361 * i386-windows-nat.c (context_offset): Update.
10362 (i386_mappings): Rename and remove static.
10363 (i386_windows_segment_register_p): Remove static.
10364 (_initialize_i386_windows_nat): Update.
10365 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10366 (STATUS_WX86_SINGLE_STEP): New macro.
10367 (EnumProcessModulesEx): New macro.
10368 (Wow64SuspendThread): New macro.
10369 (Wow64GetThreadContext): New macro.
10370 (Wow64SetThreadContext): New macro.
10371 (Wow64GetThreadSelectorEntry): New macro.
10372 (windows_set_context_register_offsets): Add static.
10373 (windows_set_segment_register_p): Likewise.
10374 (windows_add_thread): Adapt for WOW64 processes.
10375 (windows_fetch_one_register): Likewise.
10376 (windows_nat_target::fetch_registers): Likewise.
10377 (windows_store_one_register): Likewise.
10378 (display_selector): Likewise.
10379 (display_selectors): Likewise.
10380 (handle_exception): Likewise.
10381 (windows_continue): Likewise.
10382 (windows_nat_target::resume): Likewise.
10383 (windows_add_all_dlls): Likewise.
10384 (do_initial_windows_stuff): Likewise.
10385 (windows_nat_target::attach): Likewise.
10386 (windows_get_exec_module_filename): Likewise.
10387 (windows_nat_target::create_inferior): Likewise.
10388 (windows_xfer_siginfo): Likewise.
10389 (_initialize_loadable): Initialize Wow64SuspendThread,
10390 Wow64GetThreadContext, Wow64SetThreadContext,
10391 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10392 * windows-nat.h (windows_set_context_register_offsets):
10393 Remove declaration.
10394 (windows_set_segment_register_p): Likewise.
10395 (i386_windows_segment_register_p): Add declaration.
10396 (amd64_windows_segment_register_p): Likewise.
10397
440cf44e
LM
103982020-03-04 Luis Machado <luis.machado@linaro.org>
10399
10400 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10401 in "info registers" for AArch64/ARM.
10402
10403 The change caused "info registers" to not print GPR's.
10404
10405 gdb/ChangeLog:
10406
10407 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10408
10409 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10410 when reg->group is empty and reggroup is not.
10411
1009d92f
TT
104122020-03-03 Tom Tromey <tromey@adacore.com>
10413
10414 * dwarf2/frame.c (struct dwarf2_frame_cache)
10415 <checked_tailcall_bottom, entry_cfa_sp_offset,
10416 entry_cfa_sp_offset_p>: Remove members.
10417 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10418 (dwarf2_frame_prev_register): Don't call
10419 dwarf2_tailcall_sniffer_first.
10420 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10421 * frame-unwind.c (add_unwinder): New fuction.
10422 (frame_unwind_init): Use it. Add tailcall unwinder.
10423
5e5d66b6
AB
104242020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10425 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10426
10427 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10428 value should be printed as true.
10429
584cf46d
HD
104302020-03-03 Hannes Domani <ssbssa@yahoo.de>
10431
10432 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10433 (windows_init_abi): Set and use windows_so_ops.
10434
7b973adc
SDJ
104352020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10436
10437 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10438 when verifying if dealing with a convenience variable.
10439
bb7b70ab
LM
104402020-03-03 Luis Machado <luis.machado@linaro.org>
10441
10442 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10443
9822cb57
SM
104442020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10445
10446 * infrun.c (gdbarch_supports_displaced_stepping): New.
10447 (use_displaced_stepping): Break up conditions in smaller pieces.
10448 Use gdbarch_supports_displaced_stepping.
10449 (displaced_step_prepare_throw): Use
10450 gdbarch_supports_displaced_stepping.
10451
63e163f2
AB
104522020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10453
10454 * NEWS: Mention new behaviour of the history filename.
10455 * top.c (write_history_p): Add comment.
10456 (show_write_history_p): Add header comment, give a different
10457 message when history writing is on, but the history filename is
10458 empty.
10459 (history_filename): Add comment.
10460 (history_filename_empty): New function.
10461 (show_history_filename): Add header comment, give a different
10462 message when the filename is empty.
10463 (init_history): Compare history_filename against nullptr, and only
10464 read history if the filename is not empty.
10465 (set_history_filename): Add header comment, and only make
10466 non-empty filenames absolute.
10467 (init_main): Make the filename argument to 'set history filename'
10468 optional.
10469
81b86b97
CB
104702020-03-02 Christian Biesinger <cbiesinger@google.com>
10471
10472 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10473 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10474 (fetch_fp_register): Update.
10475 (fetch_fp_regs): Update.
10476 (store_fp_register): Update.
10477 (store_fp_regs): Update.
10478 (arm_netbsd_nat_target::read_description): New function.
10479 (fetch_elfcore_registers): Update.
10480
24ed6739
AB
104812020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10482
10483 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10484 general_thread if the stop reply is missing a thread-id.
10485 (remote_target::process_stop_reply): Use the first non-exited
10486 thread if the target didn't pass a thread-id.
10487 * infrun.c (do_target_wait): Move call to
10488 switch_to_inferior_no_thread to ....
10489 (do_target_wait_1): ... here.
10490
a84bb2a0
JT
104912020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10492
10493 * debuginfod-support.c: Include defs.h first.
10494
658dadf0
TV
104952020-02-28 Tom de Vries <tdevries@suse.de>
10496
10497 * symfile.c (set_initial_language): Use default language for lookup.
10498
4ebe4877
SM
104992020-02-28 Simon Marchi <simon.marchi@efficios.com>
10500
10501 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10502 reader variable, pass `this` to read_cutu_die_from_dwo.
10503
e5da1139
AM
105042020-02-27 Aaron Merey <amerey@redhat.com>
10505
10506 * source.c (open_source_file): Check for nullptr when computing
10507 srcpath.
10508
317f7127
TT
105092020-02-27 Tom Tromey <tromey@adacore.com>
10510
10511 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10512 member.
10513 (dwarf2_add_field): Don't update nfields.
10514 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10515
3104d9ee
AB
105162020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10517
10518 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10519 abs.
10520
b83470bf
TT
105212020-02-26 Tom Tromey <tom@tromey.com>
10522
10523 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10524 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10525 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10526 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10527 per_cu_data.
10528
edfe0a0c
TT
105292020-02-26 Tom Tromey <tom@tromey.com>
10530
10531 * dwarf2/index-write.c (psym_index_map): Change type.
10532 (add_address_entry_worker, write_one_signatured_type)
10533 (recursively_count_psymbols, recursively_write_psymbols)
10534 (class debug_names, psyms_seen_size, write_gdbindex)
10535 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10536
0d79cdc4
AM
105372020-02-26 Aaron Merey <amerey@redhat.com>
10538
10539 * Makefile.in: Handle optional debuginfod support.
10540 * NEWS: Update.
10541 * README: Add --with-debuginfod summary.
10542 * config.in: Regenerate.
10543 * configure: Regenerate.
10544 * configure.ac: Handle optional debuginfod support.
10545 * debuginfod-support.c: debuginfod helper functions.
10546 * debuginfod-support.h: Ditto.
10547 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10548 summary.
10549 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10550 when a dwz file cannot be found.
10551 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10552 debuginfo file cannot be found.
10553 * source.c (open_source_file): Query debuginfod servers when a
10554 source file cannot be found.
10555 * top.c (print_gdb_configuration): Include
10556 --{with,without}-debuginfod in the output.
10557
b65ce565
JG
105582020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10559
10560 * thread.c (thr_try_catch_cmd): Print thread name.
10561
d4c9a4f8
SM
105622020-02-26 Simon Marchi <simon.marchi@efficios.com>
10563
10564 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10565 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10566 dwarf2_fetch_die_type_sect_off): Move to...
10567 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10568 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10569 dwarf2_fetch_die_type_sect_off): ... here.
10570 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10571 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10572 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10573
0dce4280
TV
105742020-02-26 Tom de Vries <tdevries@suse.de>
10575
10576 PR gdb/25603
10577 * symfile.c (set_initial_language): Exit-early if
10578 language_mode == language_mode_manual.
10579
450a1bfc
SM
105802020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10581
10582 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10583 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10584 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10585
9e80cfa1
AB
105862020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10587
10588 * gdbtypes.c (create_array_type_with_stride): Handle negative
10589 array strides.
10590 * valarith.c (value_subscripted_rvalue): Likewise.
10591
09624f1f
LM
105922020-02-25 Luis Machado <luis.machado@linaro.org>
10593
10594 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10595
8cb5117c
SM
105962020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10597
10598 * loc.h (dwarf2_get_die_type): Move to...
10599 * read.h (dwarf2_get_die_type): ... here.
10600 * read.c (dwarf2_get_die_type): Move doc to header.
10601
c325c44e
JB
106022020-02-25 Joel Brobecker <brobecker@adacore.com>
10603
10604 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10605 'gnulib/Makefile.in' to the list.
10606
4ac93832
TT
106072020-02-24 Tom Tromey <tom@tromey.com>
10608
10609 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10610 Remove.
10611 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10612 XOBNEWVEC.
10613
197400e8
TT
106142020-02-24 Tom Tromey <tom@tromey.com>
10615
10616 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10617 New method.
10618 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10619 (dw2_do_instantiate_symtab, dw2_get_file_names)
10620 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10621
76935768
TT
106222020-02-24 Tom Tromey <tom@tromey.com>
10623
10624 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10625 make_scoped_restore.
10626 (dwarf2_psymtab::read_symtab): Don't clear
10627 reading_partial_symbols.
10628
a88ef40d
TV
106292020-02-24 Tom de Vries <tdevries@suse.de>
10630
10631 PR gdb/25592
10632 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10633
c9af6521
TV
106342020-02-24 Tom de Vries <tdevries@suse.de>
10635
10636 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10637 commands layout next/prev/regs.
10638
5707a07a
TT
106392020-02-22 Tom Tromey <tom@tromey.com>
10640
10641 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10642 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10643
3b0fb49e
TT
106442020-02-22 Tom Tromey <tom@tromey.com>
10645
10646 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10647
283be8bf
TT
106482020-02-22 Tom Tromey <tom@tromey.com>
10649
10650 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10651 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10652 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10653 * tui/tui.c (_initialize_tui): Add usage text.
10654
ca793b96
TT
106552020-02-22 Tom Tromey <tom@tromey.com>
10656
10657 * tui/tui-win.c (tui_set_focus_command)
10658 (tui_set_win_height_command): Use error_no_arg.
10659 (_initialize_tui_win): Update help text.
10660 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10661
432b5c40
TT
106622020-02-22 Tom Tromey <tom@tromey.com>
10663
10664 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10665 * tui/tui-disasm.h (struct tui_disasm_window)
10666 <display_start_addr>: Declare.
10667 * tui/tui-source.h (struct tui_source_window)
10668 <display_start_addr>: Declare.
10669 * tui/tui-winsource.h (struct tui_source_window_base)
10670 <show_source_line, display_start_addr>: New methods.
10671 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10672 Rename and move to protected section.
10673 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10674 (tui_source_window_base::do_erase_source_content): Update.
10675 (tui_source_window_base::show_source_line): Now a method.
10676 (tui_source_window_base::show_source_content)
10677 (tui_source_window_base::tui_source_window_base)
10678 (tui_source_window_base::rerender)
10679 (tui_source_window_base::refill)
10680 (tui_source_window_base::do_scroll_horizontal)
10681 (tui_source_window_base::set_is_exec_point_at)
10682 (tui_source_window_base::update_breakpoint_info)
10683 (tui_source_window_base::update_exec_info): Update.
10684 * tui/tui-source.c (tui_source_window::set_contents)
10685 (tui_source_window::showing_source_p)
10686 (tui_source_window::do_scroll_vertical)
10687 (tui_source_window::location_matches_p)
10688 (tui_source_window::line_is_displayed): Update.
10689 (tui_source_window::display_start_addr): New method.
10690 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10691 (tui_disasm_window::do_scroll_vertical)
10692 (tui_disasm_window::location_matches_p): Update.
10693 (tui_disasm_window::display_start_addr): New method.
10694
01b1af32
TT
106952020-02-22 Tom Tromey <tom@tromey.com>
10696
10697 * NEWS: Add entry for gdb.register_window_type.
10698 * tui/tui-layout.h (window_factory): New typedef.
10699 (tui_register_window): Declare.
10700 * tui/tui-layout.c (saved_tui_windows): New global.
10701 (tui_apply_current_layout): Use it.
10702 (tui_register_window): New function.
10703 * python/python.c (do_start_initialization): Call
10704 gdbpy_initialize_tui.
10705 (python_GdbMethods): Add "register_window_type" function.
10706 * python/python-internal.h (gdbpy_register_tui_window)
10707 (gdbpy_initialize_tui): Declare.
10708 * python/py-tui.c: New file.
10709 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10710
fc96d20b
TT
107112020-02-22 Tom Tromey <tom@tromey.com>
10712
10713 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10714
935c78c0
TT
107152020-02-22 Tom Tromey <tom@tromey.com>
10716
10717 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10718 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10719 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10720 (tui_set_win_focus_to): Move from tui-win.c.
10721
0240c8f1
TT
107222020-02-22 Tom Tromey <tom@tromey.com>
10723
10724 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10725 functions.
10726 (known_window_types): New global.
10727 (tui_get_window_by_name): Reimplement.
10728 (initialize_known_windows): New function.
10729 (validate_window_name): Rewrite.
10730 (_initialize_tui_layout): Call initialize_known_windows.
10731
fdb01f0c
TT
107322020-02-22 Tom Tromey <tom@tromey.com>
10733
10734 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10735 Remove constants.
10736 * tui/tui-winsource.h (struct tui_source_window_base)
10737 <tui_source_window_base>: Remove parameter.
10738 * tui/tui-winsource.c
10739 (tui_source_window_base::tui_source_window_base): Remove
10740 parameter.
10741 (tui_source_window_base::refill): Update.
10742 * tui/tui-stack.h (struct tui_locator_window)
10743 <tui_locator_window>: Update.
10744 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10745 Default the constructor.
10746 * tui/tui-regs.h (struct tui_data_item_window)
10747 <tui_data_item_window>: Default the constructor.
10748 (struct tui_data_window) <tui_data_window>: Likewise.
10749 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10750 Default the constructor.
10751 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10752 Default the constructor.
10753 <type>: Remove.
10754 (struct tui_win_info) <tui_win_info>: Default the constructor.
10755 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10756 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10757 Default the constructor.
10758
865a5aec
TT
107592020-02-22 Tom Tromey <tom@tromey.com>
10760
10761 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10762 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10763 * tui/tui-win.c (tui_resize_all): Don't call
10764 tui_delete_invisible_windows.
10765 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10766 done.
10767 (tui_set_layout): Update.
10768 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10769 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10770 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10771
e098d18c
TT
107722020-02-22 Tom Tromey <tom@tromey.com>
10773
10774 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10775 correctly.
10776
eb9c8874
TT
107772020-02-22 Tom Tromey <tom@tromey.com>
10778
10779 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10780
7eed1a8e
TT
107812020-02-22 Tom Tromey <tom@tromey.com>
10782
10783 * tui/tui-winsource.h (struct tui_source_window_iterator)
10784 <inner_iterator>: New etytypedef.
10785 <tui_source_window_iterator>: Take "end" parameter.
10786 <tui_source_window_iterator>: Take iterator.
10787 <operator*, advance>: Update.
10788 <m_iter>: Change type.
10789 <m_end>: New field.
10790 (struct tui_source_windows) <begin, end>: Update.
10791 * tui/tui-layout.c (tui_windows): New global.
10792 (tui_apply_current_layout): Clear tui_windows.
10793 (tui_layout_window::apply): Update tui_windows.
10794 * tui/tui-data.h (tui_windows): Declare.
10795 (all_tui_windows): Now inline function.
10796 (class tui_window_iterator, struct all_tui_windows): Remove.
10797
7c043ba6
TT
107982020-02-22 Tom Tromey <tom@tromey.com>
10799
10800 PR tui/17850:
10801 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10802 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10803 "height" argument.
10804 (class tui_layout_window) <get_sizes>: Likewise.
10805 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10806 argument.
10807 <get_sizes>: Add "height" argument.
10808 <m_vertical>: New field.
10809 * tui/tui-layout.c (tui_layout_split::clone): Update.
10810 (tui_layout_split::get_sizes): Add "height" argument.
10811 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10812 (tui_new_layout_command): Parse "-horizontal".
10813 (_initialize_tui_layout): Update help string.
10814 (tui_layout_split::specification): Add "-horizontal" when needed.
10815 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10816 argument.
10817 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10818 New methods.
10819
6bc56648
TT
108202020-02-22 Tom Tromey <tom@tromey.com>
10821
10822 * tui/tui-layout.h (enum tui_adjust_result): New.
10823 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10824 (class tui_layout_window) <adjust_size>: Return
10825 tui_adjust_result. Rewrite.
10826 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10827 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10828
c22fef7e
TT
108292020-02-22 Tom Tromey <tom@tromey.com>
10830
10831 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10832 parameter and return types.
10833 (class tui_layout_base) <specification>: Add "depth".
10834 (class tui_layout_window) <specification>: Add "depth".
10835 (class tui_layout_split) <specification>: Add "depth".
10836 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10837 and return types.
10838 (tui_new_layout_command): Parse sub-layouts.
10839 (_initialize_tui_layout): Update help string.
10840 (tui_layout_window::specification): Add "depth".
10841 (add_layout_command): Update.
10842
ee325b61
TT
108432020-02-22 Tom Tromey <tom@tromey.com>
10844
10845 * NEWS: Add "tui new-layout" item.
10846 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10847 Add new-layout command to help text.
10848 (validate_window_name): New function.
10849 (tui_new_layout_command): New function.
10850 (_initialize_tui_layout): Register "new-layout".
10851 (tui_layout_window::specification): New method.
10852 (tui_layout_window::specification): New method.
10853 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10854 method.
10855 (class tui_layout_window) <specification>: New method.
10856 (class tui_layout_split) <specification>: New method.
10857
416eb92d
TT
108582020-02-22 Tom Tromey <tom@tromey.com>
10859
10860 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10861 * tui/tui-win.c (window_name_completer): Update comment.
10862 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10863 Declare method.
10864 (class tui_layout_window) <replace_window>: Likewise.
10865 (class tui_layout_split) <replace_window>: Likewise.
10866 (tui_set_layout): Don't declare.
10867 (tui_set_initial_layout): Declare function.
10868 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10869 (asm_regs_layout): New globals.
10870 (tui_current_layout, show_layout): Remove.
10871 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10872 (find_layout, tui_apply_layout): New function.
10873 (layout_completer): Remove.
10874 (tui_next_layout): Reimplement.
10875 (tui_next_layout_command): New function.
10876 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10877 (tui_regs_layout): Reimplement.
10878 (tui_regs_layout_command): New function.
10879 (extract_display_start_addr): Rewrite.
10880 (next_layout, prev_layout): Remove.
10881 (tui_layout_window::replace_window): New method.
10882 (tui_layout_split::replace_window): New method.
10883 (destroy_layout): New function.
10884 (layout_list): New global.
10885 (add_layout_command): New function.
10886 (initialize_layouts): Update.
10887 (tui_layout_command): New function.
10888 (_initialize_tui_layout): Install "layout" commands.
10889 * tui/tui-data.h (enum tui_layout_type): Remove.
10890 (tui_current_layout): Don't declare.
10891
0dbc2fc7
TT
108922020-02-22 Tom Tromey <tom@tromey.com>
10893
10894 * tui/tui-regs.c (tui_reg_layout): Remove.
10895 (tui_reg_command): Use tui_regs_layout.
10896 * tui/tui-layout.h (tui_reg_command): Declare.
10897 * tui/tui-layout.c (tui_reg_command): New function.
10898
5afe342e
TT
108992020-02-22 Tom Tromey <tom@tromey.com>
10900
10901 * tui/tui.c (tui_rl_delete_other_windows): Call
10902 tui_remove_some_windows.
10903 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10904 Declare method.
10905 (class tui_layout_window) <remove_windows>: New method.
10906 (class tui_layout_split) <remove_windows>: Declare.
10907 (tui_remove_some_windows): Declare.
10908 * tui/tui-layout.c (tui_remove_some_windows): New function.
10909 (tui_layout_split::remove_windows): New method.
10910
427326a8
TT
109112020-02-22 Tom Tromey <tom@tromey.com>
10912
10913 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10914 * tui/tui-layout.h (tui_next_layout): Declare.
10915 * tui/tui-layout.c (tui_next_layout): New function.
10916
3fe12b6d
TT
109172020-02-22 Tom Tromey <tom@tromey.com>
10918
10919 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10920 correct coordinates.
10921
59b8b5d2
TT
109222020-02-22 Tom Tromey <tom@tromey.com>
10923
10924 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10925 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10926 DATA_WIN case.
10927
2a3d458b
TT
109282020-02-22 Tom Tromey <tom@tromey.com>
10929
10930 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10931 TUI_DISASM_WIN, not tui_win_list.
10932
3f0cbb04
TT
109332020-02-22 Tom Tromey <tom@tromey.com>
10934
10935 * valprint.c (generic_val_print_enum_1)
10936 (val_print_type_code_flags): Style member names.
10937 * rust-lang.c (val_print_struct, rust_print_enum)
10938 (rust_print_struct_def, rust_internal_print_type): Style member
10939 names.
10940 * p-valprint.c (pascal_object_print_value_fields): Style member
10941 names. Only call fprintf_symbol_filtered for static members.
10942 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10943 * f-valprint.c (f_val_print): Style member names.
10944 * f-typeprint.c (f_type_print_base): Style member names.
10945 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10946 call fprintf_symbol_filtered for static members.
10947 (cp_print_class_member): Style member names.
10948 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10949 member names.
10950 * ada-valprint.c (ada_print_scalar): Style enum names.
10951 (ada_val_print_enum): Likewise.
10952 * ada-typeprint.c (print_enum_type): Style enum names.
10953
d4d947ae
TT
109542020-02-21 Tom Tromey <tom@tromey.com>
10955
10956 * psympriv.h (struct partial_symtab): Update comment.
10957
e94e944b
TT
109582020-02-21 Tom Tromey <tromey@adacore.com>
10959
10960 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10961 type is CORE_ADDR.
10962
1eb73179
TV
109632020-02-21 Tom de Vries <tdevries@suse.de>
10964
10965 PR gdb/25534
10966 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10967 if dependencies[i]->user != NULL.
10968
4f180d53
AT
109692020-02-21 Ali Tamur <tamur@google.com>
10970
10971 * dwarf2/read.c (dwarf2_name): Add null check.
10972
22b6cd70
TT
109732020-02-20 Tom Tromey <tom@tromey.com>
10974
10975 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10976 ">=", in binary search.
10977 (dwarf2_find_containing_comp_unit): New overload.
10978 (run_test): New self-test.
10979 (_initialize_dwarf2_read): Register new test.
10980
bd0cf5a6
NC
109812020-02-20 Nelson Chu <nelson.chu@sifive.com>
10982
10983 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10984 * riscv-tdep.h: Likewise.
10985 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10986 rv32-only CSR.
10987 * features/riscv/64bit-csr.xml: Regenerated.
10988
3f702acd
SDJ
109892020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10990 Tom Tromey <tom@tromey.com>
10991
10992 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10993 of 'fputc_unfiltered'.
10994 (putchar_unfiltered): Call 'fputc_unfiltered'.
10995 (fputc_unfiltered): Call 'fputs_unfiltered'.
10996
d13c7322
AB
109972020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10998
10999 * config.in: Regenerate.
11000 * configure: Regenerate.
11001 * configure.ac: Add --with-python-libdir option.
11002 * main.c: Use WITH_PYTHON_LIBDIR.
11003
869d8950
TT
110042020-02-19 Tom Tromey <tom@tromey.com>
11005
11006 * symtab.c (general_symbol_info::compute_and_set_names): Use
11007 obstack_strndup. Simplify call to symbol_set_demangled_name.
11008
298e9637
SM
110092020-02-19 Simon Marchi <simon.marchi@efficios.com>
11010
11011 * dwarf2/read.c (allocate_signatured_type_table,
11012 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11013 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11014 Remove objfile parameter, update all callers.
11015
08410482
DE
110162020-02-19 Doug Evans <dje@google.com>
11017
11018 PR rust/25535
11019 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11020 rust_enum_variant calculation.
11021
dfdeeca1
TT
110222020-02-19 Tom Tromey <tromey@adacore.com>
11023
11024 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11025
2ef5453b
TT
110262020-02-19 Tom Tromey <tromey@adacore.com>
11027
11028 * ada-lang.c (cache_symbol): Use obstack_strdup.
11029
9f1528a1
AB
110302020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11031
11032 * configure: Regenerate.
11033
d3c22fa8
TT
110342020-02-19 Tom Tromey <tromey@adacore.com>
11035
11036 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11037 NULL check.
11038
bf84f706
MR
110392020-02-19 Maciej W. Rozycki <macro@wdc.com>
11040
11041 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11042
d1c9b20f
AB
110432020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11044
11045 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11046 if GDBSERVER is not defined.
11047 (riscv_tdesc_cache): Likewise, also store const target_desc.
11048 (STATIC_IN_GDB): Define.
11049 (riscv_create_target_description): Update declaration with
11050 STATIC_IN_GDB.
11051 (riscv_lookup_target_description): New function, only define if
11052 GDBSERVER is not defined.
11053 * arch/riscv.h (riscv_create_target_description): Declare only
11054 when GDBSERVER is defined.
11055 (riscv_lookup_target_description): New declaration when GDBSERVER
11056 is not defined.
11057 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11058 (riscv_linux_read_features): ...this, and return
11059 riscv_gdbarch_features instead of target_desc.
11060 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11061 (riscv_linux_read_description): Rename to...
11062 (riscv_linux_read_features): ...this.
11063 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11064 Update to use riscv_gdbarch_features and
11065 riscv_lookup_target_description.
11066 * riscv-tdep.c (riscv_find_default_target_description): Use
11067 riscv_lookup_target_description instead of
11068 riscv_create_target_description.
11069
373d7ac0
SM
110702020-02-18 Simon Marchi <simon.marchi@efficios.com>
11071
11072 * valprint.c (generic_val_print_enum_1): When printing a flag
11073 enum with value 0 and there is no enumerator with value 0, print
11074 just "0" instead of "(unknown: 0x0)".
11075
b29a2df0
SM
110762020-02-18 Simon Marchi <simon.marchi@efficios.com>
11077
11078 * valprint.c (generic_val_print_enum_1): Print unknown part of
11079 flag enum in hex.
11080
6740f0cc
SM
110812020-02-18 Simon Marchi <simon.marchi@efficios.com>
11082
11083 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11084 flag enums to contain duplicate enumerators.
11085 * valprint.c (generic_val_print_enum_1): Update comment.
11086
edd45eb0
SM
110872020-02-18 Simon Marchi <simon.marchi@efficios.com>
11088
11089 * dwarf2/read.c: Include "count-one-bits.h".
11090 (update_enumeration_type_from_children): If an enumerator has
11091 multiple bits set, don't treat the enumeration as a "flag enum".
11092 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11093 of flag enums have 0 or 1 bit set.
11094
6d0cf446
BE
110952020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11096
11097 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11098 conversion.
11099 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11100 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11101 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11102 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11103 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11104
7001c1b7
SM
111052020-02-18 Simon Marchi <simon.marchi@efficios.com>
11106
11107 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11108
fdb61c6c
SM
111092020-02-14 Simon Marchi <simon.marchi@efficios.com>
11110
11111 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11112 displaced_step_closure_up.
11113 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11114 (struct displaced_step_closure_up):
11115 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11116 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11117 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11118 Likewise.
11119 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11120 * gdbarch.c, gdbarch.h: Re-generate.
11121 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11122 displaced_step_closure_up.
11123 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11124 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11125 * infrun.h (displaced_step_closure_up): New type alias.
11126 (struct displaced_step_inferior_state) <step_closure>: Change
11127 type to displaced_step_closure_up.
11128 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11129 displaced_step_closure_up.
11130 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11131
a4a38eb4
TT
111322020-02-14 Tom Tromey <tom@tromey.com>
11133
11134 * minidebug.c (gnu_debug_key): New global.
11135 (find_separate_debug_file_in_section): Use it.
11136
e8217e61
SM
111372020-02-14 Simon Marchi <simon.marchi@efficios.com>
11138
11139 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11140 std::unique_ptr.
11141 * gdbarch.c: Re-generate.
11142 * gdbarch.h: Re-generate.
11143 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11144 change.
11145 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11146 type to std::unique_ptr.
11147 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11148 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11149 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11150 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11151 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11152 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11153 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11154 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11155 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11156
d8d83535
SM
111572020-02-14 Simon Marchi <simon.marchi@efficios.com>
11158
11159 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11160 std::unique_ptr.
11161 (displaced_step_clear): Rename to...
11162 (displaced_step_reset): ... this. Just call displaced->reset ().
11163 (displaced_step_clear_cleanup): Rename to...
11164 (displaced_step_reset_cleanup): ... this.
11165 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11166 (displaced_step_fixup): Likewise.
11167 (resume_1): Likewise.
11168 (handle_inferior_event): Restore child's memory before calling
11169 displaced_step_fixup on the parent.
11170 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11171 to std::unique_ptr.
11172 <step_closure>: Change type to std::unique_ptr.
11173
5f661e03
SM
111742020-02-14 Simon Marchi <simon.marchi@efficios.com>
11175
11176 * arm-tdep.c: Include count-one-bits.h.
11177 (cleanup_block_store_pc): Use count_one_bits.
11178 (cleanup_block_load_pc): Use count_one_bits.
11179 (arm_copy_block_xfer): Use count_one_bits.
11180 (thumb2_copy_block_xfer): Use count_one_bits.
11181 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11182 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11183 (thumb_get_next_pcs_raw): Use count_one_bits.
11184 (arm_get_next_pcs_raw): Use count_one_bits_l.
11185 * arch/arm.c (bitcount): Remove.
11186 * arch/arm.h (bitcount): Remove.
11187
8084e579
TT
111882020-02-14 Tom Tromey <tromey@adacore.com>
11189
11190 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11191 Update.
11192 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11193 * dwarf2/loc.c (call_site_find_chain_1): Return
11194 unique_xmalloc_ptr.
11195 (call_site_find_chain): Likewise.
11196
258bf0ee
RB
111972020-02-14 Richard Biener <rguenther@suse.de>
11198
11199 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11200 on expression with division operators.
11201
f98a8458
AKS
112022020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11203
11204 * MAINTAINERS (Write After Approval): Adding myself.
11205
d1437c0e
TT
112062020-02-12 Tom Tromey <tom@tromey.com>
11207
11208 * event-loop.c (event_data, gdb_event, event_handler_func):
11209 Remove.
11210
3d4560f7
TT
112112020-02-12 Tom Tromey <tom@tromey.com>
11212
11213 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11214 (dwarf2_frame_objfile_data): Add comment.
11215 (find_comp_unit, set_comp_unit): New functions.
11216 (dwarf2_frame_find_fde): Use find_comp_unit.
11217 (dwarf2_build_frame_info): Use set_comp_unit.
11218
21982304
TT
112192020-02-12 Tom Tromey <tom@tromey.com>
11220
11221 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11222 (comp_unit): Don't initialize objfile.
11223 (execute_cfa_program): Add text_offset parameter.
11224 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11225 (dwarf2_frame_cache): Update.
11226 (dwarf2_build_frame_info): Don't set "objfile" member.
11227
4debb237
TT
112282020-02-12 Tom Tromey <tom@tromey.com>
11229
11230 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11231 (decode_frame_entry): Likewise.
11232 (dwarf2_build_frame_info): Update.
11233
0d404d44
TT
112342020-02-12 Tom Tromey <tom@tromey.com>
11235
11236 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11237 (decode_frame_entry_1): Use the comp_unit obstack.
11238
a7a3ae5c
TT
112392020-02-12 Tom Tromey <tom@tromey.com>
11240
11241 * dwarf2/frame.c (struct comp_unit): Add initializers and
11242 constructor.
11243 (dwarf2_frame_objfile_data): Store a comp_unit.
11244 (dwarf2_frame_find_fde): Update.
11245 (dwarf2_build_frame_info): Use "new".
11246
a9d65418
TT
112472020-02-12 Tom Tromey <tom@tromey.com>
11248
11249 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11250 (dwarf2_fde_table): Typedef for std::vector.
11251 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11252 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11253 (decode_frame_entry): Update.
11254 (dwarf2_build_frame_info): Use "new".
11255
7559c217
CB
112562020-02-12 Christian Biesinger <cbiesinger@google.com>
11257
11258 * arm-tdep.c (arm_gdbarch_init): Update.
11259 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11260 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11261 have_neon, is_m>: Change to bool.
11262
aeefc73c
CB
112632020-02-12 Christian Biesinger <cbiesinger@google.com>
11264
11265 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11266
d27b8e5f
TT
112672020-02-12 Tom Tromey <tom@tromey.com>
11268
11269 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11270
cd5900f3
HD
112712020-02-12 Hannes Domani <ssbssa@yahoo.de>
11272
11273 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11274 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11275
f056b22b
TT
112762020-02-11 Tom Tromey <tom@tromey.com>
11277
11278 * psymtab.h: Update comment.
11279
f92ff6b5
TT
112802020-02-11 Tom Tromey <tom@tromey.com>
11281
11282 * gdb_obstack.h (struct auto_obstack): Use
11283 DISABLE_COPY_AND_ASSIGN.
11284
3fd6912b
TT
112852020-02-11 Tom Tromey <tom@tromey.com>
11286
11287 * dwarf2/frame.h (struct objfile): Don't forward declare.
11288
69ed9b74
CB
112892020-02-11 Christian Biesinger <cbiesinger@google.com>
11290
11291 * cris-tdep.c (cris_supply_gregset): Change signature to match
11292 what struct regset expects.
11293 (cris_regset): New struct.
11294 (fetch_core_registers): Remove.
11295 (cris_iterate_over_regset_sections): New function.
11296 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11297 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11298
bda874f6
CB
112992020-02-11 Christian Biesinger <cbiesinger@google.com>
11300
11301 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11302 registers.
11303
754e1564
CB
113042020-02-11 Christian Biesinger <cbiesinger@google.com>
11305
11306 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11307
8ddd8e0e
SM
113082020-02-11 Simon Marchi <simon.marchi@efficios.com>
11309
11310 * configure: Re-generate.
11311
898e7f60
SM
113122020-02-11 Simon Marchi <simon.marchi@efficios.com>
11313
11314 * configure: Re-generate.
11315
58df732b
SM
113162020-02-11 Simon Marchi <simon.marchi@efficios.com>
11317
11318 * acinclude: Update warning.m4 path.
11319 * warning.m4: Move to gdbsupport.
11320
da5bd37e
TT
113212020-02-11 Tom Tromey <tromey@adacore.com>
11322
11323 * remote.c (remote_console_output): Update.
11324 * printcmd.c (printf_command): Update.
11325 * event-loop.c (gdb_wait_for_event): Update.
11326 * linux-nat.c (sigchld_handler): Update.
11327 * remote-sim.c (gdb_os_write_stdout): Update.
11328 (gdb_os_flush_stdout): Update.
11329 (gdb_os_flush_stderr): Update.
11330 (gdb_os_write_stderr): Update.
11331 * exceptions.c (print_exception): Update.
11332 * remote-fileio.c (remote_fileio_func_read): Update.
11333 (remote_fileio_func_write): Update.
11334 * tui/tui.c (tui_enable): Update.
11335 * tui/tui-interp.c (tui_interp::init): Update.
11336 * utils.c (init_page_info): Update.
11337 (putchar_unfiltered, fputc_unfiltered): Update.
11338 (gdb_flush): Update.
11339 (emit_style_escape): Update.
11340 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11341 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11342 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11343 (stderr_file::write): Update.
11344 (stderr_file::puts): Update.
11345 * ui-file.h (ui_file_isatty, ui_file_write)
11346 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11347 (ui_file_puts): Don't declare.
11348
85f0dd3c
TV
113492020-02-10 Tom de Vries <tdevries@suse.de>
11350
11351 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11352 sentinel to char *.
11353
2e927613
TV
113542020-02-09 Tom de Vries <tdevries@suse.de>
11355
11356 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11357 filename if it matches "<artificial>".
11358
6bafc845
HD
113592020-02-09 Hannes Domani <ssbssa@yahoo.de>
11360
11361 * windows-tdep.c (struct enum_value_name): New struct.
11362 (create_enum): New function.
11363 (windows_get_siginfo_type): Create and use enum types.
11364
7928d571
HD
113652020-02-09 Hannes Domani <ssbssa@yahoo.de>
11366
11367 * NEWS: Mention $_siginfo support for Windows.
11368 * windows-nat.c (handle_exception): Set siginfo_er.
11369 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11370 (windows_xfer_siginfo): New function.
11371 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11372 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11373 (init_windows_gdbarch_data): New function.
11374 (get_windows_gdbarch_data): New function.
11375 (windows_get_siginfo_type): New function.
11376 (windows_init_abi): Register windows_get_siginfo_type.
11377 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11378
6751ebae
TT
113792020-02-08 Tom Tromey <tom@tromey.com>
11380
11381 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11382 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11383 <keep>: Declare method.
11384 <m_keep>: Remove member.
11385 <~cutu_reader>: Remove.
11386 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11387 (cutu_reader::cutu_reader): Update.
11388 (cutu_reader::keep): Rename from ~cutu_reader.
11389 (process_psymtab_comp_unit, build_type_psymtabs_1)
11390 (process_skeletonless_type_unit, load_partial_comp_unit)
11391 (load_full_comp_unit, dwarf2_read_addr_index)
11392 (read_signatured_type): Update.
11393
135f5437
TT
113942020-02-08 Tom Tromey <tom@tromey.com>
11395
11396 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11397 "want_partial_unit" parameter.
11398 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11399 Inline check for DW_TAG_partial_unit.
11400 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11401
9f66ff1c
TT
114022020-02-08 Tom Tromey <tom@tromey.com>
11403
11404 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11405 read.c.
11406 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11407 read.c.
11408
c8a7a66f
TT
114092020-02-08 Tom Tromey <tom@tromey.com>
11410
11411 * dwarf2/read.c (read_address): Move to comp-unit.c.
11412 (dwarf2_rnglists_process, dwarf2_ranges_process)
11413 (read_attribute_value, dwarf_decode_lines_1)
11414 (var_decode_location, decode_locdesc): Update.
11415 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11416 read.c. Remove "cu" parameter.
11417 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11418 method.
11419
8266302d
TT
114202020-02-08 Tom Tromey <tom@tromey.com>
11421
11422 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11423 (read_indirect_line_string): Update.
11424 * dwarf2/comp-unit.c (read_offset): Remove.
11425 (read_comp_unit_head): Update.
11426 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11427 method.
11428 (read_offset): Don't declare.
11429
4057dfde
TT
114302020-02-08 Tom Tromey <tom@tromey.com>
11431
11432 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11433 * dwarf2/read.c (struct comp_unit_head): Move to
11434 dwarf2/comp-unit.h.
11435 (enum class rcuh_kind): Move to comp-unit.h.
11436 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11437 (read_comp_unit_head, error_check_comp_unit_head)
11438 (read_and_check_comp_unit_head): Move to comp-unit.c.
11439 (read_offset, dwarf_unit_type_name): Likewise.
11440 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11441 (cutu_reader::cutu_reader, read_call_site_scope)
11442 (find_partial_die, follow_die_offset): Update.
11443 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11444
24aa364d
TT
114452020-02-08 Tom Tromey <tom@tromey.com>
11446
11447 * dwarf2/read.c (read_offset_1): Move to leb.c.
11448 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11449 (dwarf_decode_macro_bytes): Update.
11450 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11451 * dwarf2/leb.h (read_offset): Declare.
11452
2c7d5afc
TT
114532020-02-08 Tom Tromey <tom@tromey.com>
11454
11455 * dwarf2/read.c (dwarf2_section_size): Remove.
11456 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11457 Update.
11458 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11459
4075cb26
TT
114602020-02-08 Tom Tromey <tom@tromey.com>
11461
11462 * dwarf2/read.c (read_initial_length): Move to leb.c.
11463 * dwarf2/leb.h (read_initial_length): Declare.
11464 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11465 handle_nonstd parameter.
11466 * dwarf2/frame.c (read_initial_length): Remove.
11467 (decode_frame_entry_1): Update.
11468
09ba997f
TT
114692020-02-08 Tom Tromey <tom@tromey.com>
11470
11471 * dwarf2/loc.c (dwarf2_find_location_expression)
11472 (dwarf_evaluate_loc_desc::get_tls_address)
11473 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11474 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11475 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11476 (dwarf2_compile_property_to_c)
11477 (dwarf2_loc_desc_get_symbol_read_needs)
11478 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11479 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11480 (loclist_describe_location, loclist_tracepoint_var_ref)
11481 (loclist_generate_c_location): Update.
11482 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11483 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11484 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11485 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11486 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11487 (dwarf2_per_cu_data::addr_size)
11488 (dwarf2_per_cu_data::ref_addr_size)
11489 (dwarf2_per_cu_data::text_offset)
11490 (dwarf2_per_cu_data::addr_type): Now methods.
11491 (per_cu_header_read_in): Make per_cu "const".
11492 (dwarf2_version): Remove.
11493 (dwarf2_per_cu_data::int_type): Now a method.
11494 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11495 (set_die_type, read_array_type, read_subrange_index_type)
11496 (read_tag_string_type, read_subrange_type): Update.
11497 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11498 offset_size, ref_addr_size, text_offset, addr_type, version,
11499 objfile, int_type, addr_sized_int_type>: Declare methods.
11500
96c738c0
TT
115012020-02-08 Tom Tromey <tom@tromey.com>
11502
11503 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11504 Move earlier.
11505
8fdd972c
TT
115062020-02-08 Tom Tromey <tom@tromey.com>
11507
11508 * dwarf2/read.h (dwarf_line_debug): Declare.
11509 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11510 * dwarf2/read.c: Move line_header code to new files.
11511 (dwarf_line_debug): No longer static.
11512 * dwarf2/line-header.c: New file.
11513 * dwarf2/line-header.h: New file.
11514
03075812
TT
115152020-02-08 Tom Tromey <tom@tromey.com>
11516
11517 * dwarf2/read.c (struct line_header) <file_full_name,
11518 file_file_name>: Return unique_xmalloc_ptr.
11519 (line_header::file_file_name): Update.
11520 (line_header::file_full_name): Update.
11521 (dw2_get_file_names_reader): Update.
11522 (macro_start_file): Update.
11523
bb822404
TT
115242020-02-08 Tom Tromey <tom@tromey.com>
11525
11526 * dwarf2/read.c (struct line_header) <file_full_name,
11527 file_file_name>: Declare methods.
11528 (dw2_get_file_names_reader): Update.
11529 (file_file_name): Now a method.
11530 (file_full_name): Likewise.
11531 (macro_start_file): Update.
11532
009b64fc
TT
115332020-02-08 Tom Tromey <tom@tromey.com>
11534
11535 * dwarf2/read.c (dwarf_always_disassemble)
11536 (show_dwarf_always_disassemble): Move to loc.c.
11537 (_initialize_dwarf2_read): Move "always-disassemble" registration
11538 to loc.c.
11539 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11540 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11541 static.
11542 (show_dwarf_always_disassemble): Move from read.c.
11543 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11544
5895093f
TT
115452020-02-08 Tom Tromey <tom@tromey.com>
11546
11547 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11548 (create_quick_file_names_table): Return htab_up.
11549 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11550 Update.
11551 * dwarf2/read.h (struct dwarf2_per_objfile)
11552 <quick_file_names_table>: Now htab_up.
11553
b3b32279
TT
115542020-02-08 Tom Tromey <tom@tromey.com>
11555
11556 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11557
1d33d811
TT
115582020-02-08 Tom Tromey <tom@tromey.com>
11559
11560 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11561 Rewrite.
11562 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11563 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11564 (abbrev_table::abbrev_table): No longer inline.
11565 (ABBREV_HASH_SIZE): Remove.
11566 (abbrev_table::m_abbrevs): Now an htab_up.
11567
86de1d91
TT
115682020-02-08 Tom Tromey <tom@tromey.com>
11569
11570 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11571 (cutu_reader): Update.
11572 (build_type_psymtabs_1): Update.
11573 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11574 (abbrev_table::alloc_abbrev): Update.
11575 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11576 (abbrev_table::read): New static method, renamed from
11577 abbrev_table_read_table.
11578 (abbrev_table::alloc_abbrev)
11579 (abbrev_table::add_abbrev): Now private.
11580 (abbrev_table::abbrev_table): Now private.
11581 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11582
0335378b
TT
115832020-02-08 Tom Tromey <tom@tromey.com>
11584
11585 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11586 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11587 htab_up.
11588
48b490f2
TT
115892020-02-08 Tom Tromey <tom@tromey.com>
11590
11591 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11592 htab_up.
11593 (lookup_dwo_unit_in_dwp): Update.
11594 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11595 on obstack.
11596
bc68fb19
TT
115972020-02-08 Tom Tromey <tom@tromey.com>
11598
11599 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11600 obstack.
11601
d15acc42
TT
116022020-02-08 Tom Tromey <tom@tromey.com>
11603
11604 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11605 line_header_hash.
11606 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11607 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11608 Change type to htab_up.
11609
eaa5fa8b
TT
116102020-02-08 Tom Tromey <tom@tromey.com>
11611
11612 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11613 htab_up. Don't allocate on obstack.
11614 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11615 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11616 Change type to htab_up.
11617
b0b6a987
TT
116182020-02-08 Tom Tromey <tom@tromey.com>
11619
11620 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11621 Change type to htab_up.
11622 * dwarf2/read.c (create_signatured_type_table_from_index)
11623 (create_signatured_type_table_from_debug_names)
11624 (create_all_type_units, add_type_unit)
11625 (lookup_dwo_signatured_type, lookup_signatured_type)
11626 (process_skeletonless_type_unit): Update.
11627 (create_debug_type_hash_table, create_debug_types_hash_table):
11628 Change type of types_htab.
11629 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11630 htab_up. Don't allocate on obstack.
11631 (create_cus_hash_table): Change type of cus_htab parameter.
11632 (struct dwo_file) <cus, tus>: Now htab_up.
11633 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11634 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11635 (queue_and_load_all_dwo_tus): Update.
11636 * dwarf2/index-write.c (write_gdbindex): Update.
11637 (write_debug_names): Update.
11638
39856def
TT
116392020-02-08 Tom Tromey <tom@tromey.com>
11640
11641 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11642 dwarf2/read.c. Remove "next" member. Add constructor ntad
11643 destructor.
11644 (struct dwarf2_per_objfile) <queue>: New member.
11645 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11646 dwarf2/read.h.
11647 (dwarf2_queue, dwarf2_queue_tail): Remove.
11648 (class dwarf2_queue_guard): Add parameter to constructor. Use
11649 DISABLE_COPY_AND_ASSIGN.
11650 <m_per_objfile>: New member.
11651 <~dwarf2_queue_guard>: Rewrite.
11652 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11653 Update.
11654 (~dwarf2_queue_item): New.
11655
3e225074
TT
116562020-02-08 Tom Tromey <tom@tromey.com>
11657
11658 * dwarf2/read.c (struct die_info) <has_children>: New member.
11659 (dw2_get_file_names_reader): Remove has_children.
11660 (dw2_get_file_names): Update.
11661 (read_cutu_die_from_dwo): Remove has_children.
11662 (cutu_reader::init_tu_and_read_dwo_dies)
11663 (cutu_reader::cutu_reader): Update.
11664 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11665 Remove has_children.
11666 (build_type_psymtabs_1, process_skeletonless_type_unit)
11667 (load_partial_comp_unit, load_full_comp_unit): Update.
11668 (create_dwo_cu_reader): Remove has_children.
11669 (create_cus_hash_table, read_die_and_children): Update.
11670 (read_full_die_1,read_full_die): Remove has_children.
11671 (read_signatured_type): Update.
11672 (class cutu_reader) <has_children>: Remove.
11673
82ca8957
TT
116742020-02-08 Tom Tromey <tom@tromey.com>
11675
11676 * dwarf2/expr.c: Rename from dwarf2expr.c.
11677 * dwarf2/expr.h: Rename from dwarf2expr.h.
11678 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11679 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11680 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11681 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11682 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11683 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11684 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11685 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11686 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11687 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11688 * dwarf2/loc.c: Rename from dwarf2loc.c.
11689 * dwarf2/loc.h: Rename from dwarf2loc.h.
11690 * dwarf2/read.c: Rename from dwarf2read.c.
11691 * dwarf2/read.h: Rename from dwarf2read.h.
11692 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11693 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11694 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11695 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11696 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11697 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11698 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11699 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11700 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11701 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11702 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11703 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11704 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11705 Update.
11706 * Makefile.in (COMMON_SFILES): Update.
11707 (HFILES_NO_SRCDIR): Update.
11708
9e35d499
TT
117092020-02-08 Tom Tromey <tom@tromey.com>
11710
11711 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11712 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11713
1eba2311
TT
117142020-02-08 Tom Tromey <tom@tromey.com>
11715
11716 * dwarf2read.h (struct die_info): Don't declare.
11717
e41c2da2
TT
117182020-02-08 Tom Tromey <tom@tromey.com>
11719
11720 * dwarf2read.h (die_info_ptr): Remove typedef.
11721
4fc6c0d5
TT
117222020-02-08 Tom Tromey <tom@tromey.com>
11723
11724 * dwarf2read.c (read_call_site_scope)
11725 (handle_data_member_location, dwarf2_add_member_fn)
11726 (mark_common_block_symbol_computed, read_common_block)
11727 (attr_to_dynamic_prop, partial_die_info::read)
11728 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11729 (dwarf2_symbol_mark_computed, set_die_type): Update.
11730 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11731 method.
11732 (attr_form_is_block): Don't declare.
11733 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11734
cd6c91b4
TT
117352020-02-08 Tom Tromey <tom@tromey.com>
11736
11737 * dwarf2read.c (dwarf2_find_base_address, )
11738 (read_call_site_scope, rust_containing_type)
11739 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11740 (handle_data_member_location, dwarf2_add_member_fn)
11741 (get_alignment, read_structure_type, process_structure_scope)
11742 (mark_common_block_symbol_computed, read_common_block)
11743 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11744 (partial_die_info::read, read_attribute_value, new_symbol)
11745 (lookup_die_type, dwarf2_get_ref_die_offset)
11746 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11747 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11748 (dwarf2_symbol_mark_computed): Update.
11749 * dwarf2/attribute.h (struct attribute) <value_as_address,
11750 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11751 methods.
11752 (value_as_address, attr_form_is_section_offset)
11753 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11754 * dwarf2/attribute.c (attribute::value_as_address)
11755 (attribute::form_is_section_offset, attribute::form_is_constant)
11756 (attribute::form_is_ref): Now methods.
11757
162dce55
TT
117582020-02-08 Tom Tromey <tom@tromey.com>
11759
11760 * dwarf2read.c (struct attribute, DW_STRING)
11761 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11762 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11763 (attr_form_is_block, attr_form_is_section_offset)
11764 (attr_form_is_constant, attr_form_is_ref): Move.
11765 * dwarf2/attribute.h: New file.
11766 * dwarf2/attribute.c: New file, from dwarf2read.c.
11767 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11768
3054dd54
TT
117692020-02-08 Tom Tromey <tom@tromey.com>
11770
11771 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11772 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11773 Move.
11774 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11775 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11776 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11777 abbrev.c.
11778 * dwarf2/abbrev.h: New file.
11779 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11780 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11781
96b79293
TT
117822020-02-08 Tom Tromey <tom@tromey.com>
11783
11784 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11785 (dwarf2_section_size, dwarf2_get_section_info)
11786 (create_signatured_type_table_from_debug_names)
11787 (create_addrmap_from_aranges, read_debug_names_from_section)
11788 (get_gdb_index_contents_from_section, read_comp_unit_head)
11789 (error_check_comp_unit_head, read_abbrev_offset)
11790 (create_debug_type_hash_table, init_cu_die_reader)
11791 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11792 (read_comp_units_from_section, create_cus_hash_table)
11793 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11794 (create_dwp_v2_section, dwarf2_rnglists_process)
11795 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11796 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11797 (read_indirect_string_from_dwz, read_addr_index_1)
11798 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11799 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11800 (fill_in_loclist_baton): Update.
11801 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11802 get_containing_section, get_bfd_owner, get_bfd_section,
11803 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11804 (dwarf2_read_section, get_section_name, get_section_file_name)
11805 (get_containing_section, get_section_bfd_owner)
11806 (get_section_bfd_section, get_section_name, get_section_file_name)
11807 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11808 declare.
11809 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11810 (dwarf2_section_info::get_bfd_owner)
11811 (dwarf2_section_info::get_bfd_section)
11812 (dwarf2_section_info::get_name)
11813 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11814 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11815 (dwarf2_section_info::read): Now methods.
11816 * dwarf-index-write.c (class debug_names): Update.
11817
2c86cff9
TT
118182020-02-08 Tom Tromey <tom@tromey.com>
11819
11820 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11821 Move to dwarf2/section.h.
11822 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11823 (get_section_bfd_section, get_section_name)
11824 (get_section_file_name, get_section_id, get_section_flags)
11825 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11826 dwarf2/section.c.
11827 * dwarf2/section.h: New file.
11828 * dwarf2/section.c: New file, from dwarf2read.c.
11829 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11830
f4382c45
TT
118312020-02-08 Tom Tromey <tom@tromey.com>
11832
11833 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11834 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11835 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11836 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11837 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11838 * dwarf2/leb.h: New file, from dwarf2read.c.
11839 * dwarf2/leb.c: New file, from dwarf2read.c.
11840 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11841 Remove.
11842 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11843 (COMMON_SFILES): Add dwarf2/leb.c.
11844
01840b7a
JB
118452020-02-08 Joel Brobecker <brobecker@adacore.com>
11846
11847 GDB 9.1 released.
11848
dfcb27e4
IB
118492020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11850
11851 PR gdb/25190:
aac66a4c
SM
11852 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11853 * gdb/remote.c (remote_console_output): Update.
11854 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11855 (ui_file_puts): ...this.
11856 * gdb/ui-file.h (ui_file_puts): Add declaration.
11857 * gdb/utils.c (emit_style_escape): Update.
11858 (flush_wrap_buffer): Update.
11859 (fputs_maybe_filtered): Update.
11860 (fputs_unfiltered): Add function.
dfcb27e4 11861
faa17681
IB
118622020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11863
aac66a4c
SM
11864 * gdb/event-loop.c (gdb_wait_for_event): Update.
11865 * gdb/printcmd.c (printf_command): Update.
11866 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11867 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11868 (gdb_os_flush_stderr): Update.
11869 * gdb/remote.c (remote_console_output): Update.
11870 * gdb/ui-file.c (gdb_flush): Rename to...
11871 (ui_file_flush): ...this.
11872 (stderr_file::write): Update.
11873 (stderr_file::puts): Update.
11874 * gdb/ui-file.h (gdb_flush): Rename to...
11875 (ui_file_flush): ...this.
11876 * gdb/utils.c (gdb_flush): Add function.
11877 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 11878
5abbbe1d
TT
118792020-02-07 Tom Tromey <tromey@adacore.com>
11880
11881 PR breakpoints/24915:
11882 * source.c (find_and_open_source): Do not check basenames_may_differ.
11883
919adfe8
TT
118842020-02-07 Tom Tromey <tom@tromey.com>
11885
11886 * README: Update gdbserver documentation.
11887 * gdbserver: Move to top level.
11888 * configure.tgt (build_gdbserver): Remove.
11889 * configure.ac: Remove --enable-gdbserver.
11890 * configure: Rebuild.
11891 * Makefile.in (distclean): Don't mention gdbserver.
11892
1d5d29e7
SV
118932020-02-06 Shahab Vahedi <shahab@synopsys.com>
11894
11895 * source-cache.c (source_cache::ensure): Surround
11896 get_plain_source_lines with a try/catch.
11897 (source_cache::get_line_charpos): Get rid of try/catch
11898 and only check for the return value of "ensure".
11899 * tui/tui-source.c (tui_source_window::set_contents):
11900 Simplify "nlines" calculation.
11901
6eb1129c
SV
119022020-02-06 Shahab Vahedi <shahab@synopsys.com>
11903
11904 * MAINTAINERS (Write After Approval): Add myself.
11905
c6a42d11
CB
119062020-02-05 Christian Biesinger <cbiesinger@google.com>
11907
11908 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11909 function call.
11910
c8ecdda6
CB
119112020-02-05 Christian Biesinger <cbiesinger@google.com>
11912
11913 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11914
f6480e70
MR
119152020-02-05 Maciej W. Rozycki <macro@wdc.com>
11916
11917 * nat/riscv-linux-tdesc.h: New file.
11918 * nat/riscv-linux-tdesc.c: New file, taking code from...
11919 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11920 ... here.
11921 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11922 NATDEPFILES.
11923
dcc9fbc6
AB
119242020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11925
11926 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11927 we don't set the fake simulator ptid to the null_ptid.
11928
719546c4
SM
119292020-02-03 Simon Marchi <simon.marchi@efficios.com>
11930
11931 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11932 * gdbthread.h (class thread_info) <resumed>: Likewise.
11933 * infrun.c (resume_1): Likewise.
11934 (proceed): Likewise.
11935 (infrun_thread_stop_requested): Likewise.
11936 (stop_all_threads): Likewise.
11937 (handle_inferior_event): Likewise.
11938 (restart_threads): Likewise.
11939 (finish_step_over): Likewise.
11940 (keep_going_stepped_thread): Likewise.
11941 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11942 (linux_handle_extended_wait): Likewise.
11943 * record-btrace.c (get_thread_current_frame_id): Likewise.
11944 * record-full.c (record_full_wait_1): Likewise.
11945 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11946 * target.c (target_resume): Likewise.
11947 * thread.c (set_running_thread): Likewise.
11948
e409c542
AKS
119492020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11950
11951 * f-valprint.c (f77_print_array_1): Changed datatype of index
11952 variable to LONGEST from int to enable it to contain bound
11953 values correctly.
11954
ee98c0da
MR
119552020-02-03 Maciej W. Rozycki <macro@wdc.com>
11956
11957 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11958 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11959 offsets according to FLEN determined.
11960 (riscv_linux_nat_target::read_description): Determine FLEN
11961 dynamically.
11962 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11963 according to FLEN determined.
11964 (riscv_linux_nat_target::store_registers): Likewise.
11965
aa66aac4
SV
119662020-02-01 Shahab Vahedi <shahab@synopsys.com>
11967
11968 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11969 when reg->group is empty and reggroup is not.
11970
fd9faca8
TT
119712020-01-31 Tom Tromey <tromey@adacore.com>
11972
11973 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11974 Call beneath target's mourn_inferior after unpushing.
11975
42330a68
AB
119762020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11977
11978 PR tui/9765
11979 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11980 have enough lines to fill the screen, still return the lowest
11981 address we found.
11982
7a27a45b
AB
119832020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11984
11985 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11986 '-', '<', and '>' commands.
11987
c47f70e2
PA
119882020-01-29 Pedro Alves <palves@redhat.com>
11989 Sergio Durigan Junior <sergiodj@redhat.com>
11990
11991 * infcmd.c (construct_inferior_arguments): Assert that
11992 'argc' is greater than 0.
11993
5133a315
LM
119942020-01-29 Luis Machado <luis.machado@linaro.org>
11995
11996 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11997 (BRK_INSN_MASK): Define to 0xd4200000.
11998 (aarch64_program_breakpoint_here_p): New function.
11999 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12000 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12001 breakpoint.c.
12002 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12003 breakpoint.h
12004 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12005 call gdbarch_program_breakpoint_here_p.
12006 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12007 default_program_breakpoint_here_p, changed return type to bool and
12008 simplified.
12009 * breakpoint.h (program_breakpoint_here): Moved prototype to
12010 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12011 return type to bool.
12012 * gdbarch.c: Regenerate.
12013 * gdbarch.h: Regenerate.
12014 * gdbarch.sh (program_breakpoint_here_p): New method.
12015 * infrun.c (handle_signal_stop): Call
12016 gdbarch_program_breakpoint_here_p.
12017
168f8c6b
TT
120182020-01-26 Tom Tromey <tom@tromey.com>
12019
12020 * ctfread.c (struct ctf_fp_info): Reindent.
12021 (_initialize_ctfread): Remove.
12022
128a391f
TT
120232020-01-26 Tom Tromey <tom@tromey.com>
12024
12025 * psymtab.c (partial_map_expand_apply)
12026 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12027 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12028 (psym_print_stats, psym_expand_symtabs_for_function)
12029 (psym_map_symbol_filenames, psym_map_matching_symbols)
12030 (psym_expand_symtabs_matching)
12031 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12032 (maintenance_check_psymtabs): Use new methods.
12033 * psympriv.h (struct partial_symtab) <readin_p,
12034 get_compunit_symtab>: New methods.
12035 <readin, compunit_symtab>: Remove members.
12036 (struct standard_psymtab): New.
12037 (struct legacy_psymtab): Derive from standard_psymtab.
12038 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12039 standard_psymtab.
12040 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12041
0494dbec
TT
120422020-01-26 Tom Tromey <tom@tromey.com>
12043
12044 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12045 read_dependencies. Add assert.
12046 * psymtab.c (partial_symtab::read_dependencies): New method.
12047 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12048 method.
12049 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12050 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12051 read_dependencies.
12052 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12053 Add assert.
12054
8566b89b
TT
120552020-01-26 Tom Tromey <tom@tromey.com>
12056
12057 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12058 Call expand_psymtab.
12059 (xcoff_read_symtab): Call expand_psymtab.
12060 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12061 legacy_expand_psymtab.
12062 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12063 method.
12064 (struct legacy_psymtab) <expand_psymtab>: Implement.
12065 <legacy_expand_psymtab>: New member.
12066 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12067 (parse_partial_symbols): Set legacy_expand_psymtab.
12068 (psymtab_to_symtab_1): Change argument order. Call
12069 expand_psymtab.
12070 (new_psymtab): Set legacy_expand_psymtab.
12071 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12072 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12073 expand_psymtab.
12074 (dwarf2_psymtab::expand_psymtab): Rename from
12075 psymtab_to_symtab_1. Call expand_psymtab.
12076 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12077 (dbx_end_psymtab): Likewise.
12078 (dbx_psymtab_to_symtab_1): Change argument order. Call
12079 expand_psymtab.
12080 (dbx_read_symtab): Call expand_psymtab.
12081 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12082 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12083 (ctf_psymtab::read_symtab): Call expand_psymtab.
12084
077cbab2
TT
120852020-01-26 Tom Tromey <tom@tromey.com>
12086
12087 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12088 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12089 messages.
12090 * mdebugread.c (mdebug_read_symtab): Remove prints.
12091 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12092 assert.
12093 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12094
891813be
TT
120952020-01-26 Tom Tromey <tom@tromey.com>
12096
12097 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12098 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12099 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12100 legacy_symtab.
12101 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12102 * psymtab.c (psymtab_to_symtab): Call method.
12103 (dump_psymtab): Update.
12104 * psympriv.h (struct partial_symtab): Add virtual destructor.
12105 <read_symtab>: New method.
12106 (struct legacy_symtab): New.
12107 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12108 (struct pst_map) <pst>: Now a legacy_psymtab.
12109 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12110 (new_psymtab): Use legacy_psymtab.
12111 * dwarf2read.h (struct dwarf2_psymtab): New.
12112 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12113 * dwarf2read.c (dwarf2_create_include_psymtab)
12114 (dwarf2_build_include_psymtabs, create_type_unit_group)
12115 (create_partial_symtab, process_psymtab_comp_unit_reader)
12116 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12117 (set_partial_user): Use dwarf2_psymtab.
12118 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12119 (psymtab_to_symtab_1, process_full_comp_unit)
12120 (process_full_type_unit, dwarf2_ranges_read)
12121 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12122 (dwarf_decode_lines): Use dwarf2_psymtab.
12123 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12124 (add_address_entry_worker, write_one_signatured_type)
12125 (recursively_count_psymbols, recursively_write_psymbols)
12126 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12127 (write_debug_names): Likewise.
12128 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12129 <pst>: Now a legacy_psymtab.
12130 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12131 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12132 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12133 * ctfread.c (struct ctf_psymtab): New.
12134 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12135 ctf_psymtab.
12136 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12137 (create_partial_symtab): Return a ctf_psymtab.
12138 (scan_partial_symbols): Update.
12139
c3693a1d
TT
121402020-01-26 Tom Tromey <tom@tromey.com>
12141
12142 * xcoffread.c (xcoff_start_psymtab): Use new.
12143 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12144 renamed from start_psymtab_common.
12145 * psympriv.h (struct partial_symtab): Add new constructor.
12146 (start_psymtab_common): Don't declare.
12147 * mdebugread.c (parse_partial_symbols): Use new.
12148 * dwarf2read.c (create_partial_symtab): Use new.
12149 * dbxread.c (start_psymtab): Use new.
12150 * ctfread.c (create_partial_symtab): Use new.
12151
32caafd0
TT
121522020-01-26 Tom Tromey <tom@tromey.com>
12153
12154 * xcoffread.c (xcoff_end_psymtab): Use new.
12155 * psymtab.c (start_psymtab_common): Use new.
12156 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12157 Update.
12158 * psympriv.h (struct partial_symtab): Add parameters to
12159 constructor. Don't inline.
12160 (allocate_psymtab): Don't declare.
12161 * mdebugread.c (new_psymtab): Use new.
12162 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12163 * dbxread.c (dbx_end_psymtab): Use new.
12164
abaa2f23
TT
121652020-01-26 Tom Tromey <tom@tromey.com>
12166
12167 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12168 allocate_psymtab. Update documentation.
12169 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12170 allocate_psymtab. Do not use new.
12171 (allocate_psymtab): Use new. Update.
12172
6d94535f
TT
121732020-01-26 Tom Tromey <tom@tromey.com>
12174
12175 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12176 * psymtab.c (psym_print_stats): Update.
12177 * psympriv.h (struct partial_symtab) <readin,
12178 psymtabs_addrmap_supported, anonymous>: Now bool.
12179 * mdebugread.c (psymtab_to_symtab_1): Update.
12180 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12181 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12182 (process_full_comp_unit, process_full_type_unit): Update.
12183 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12184 * ctfread.c (psymtab_to_symtab): Update.
12185
6f17252b
TT
121862020-01-26 Tom Tromey <tom@tromey.com>
12187
12188 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12189 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12190 * psymtab.c (psymtab_storage): Delete psymtabs.
12191 (psymtab_storage::allocate_psymtab): Use new.
12192 (psymtab_storage::discard_psymtab): Use delete.
12193 * psympriv.h (struct partial_symtab): Add constructor and
12194 initializers.
12195
f6f1cebc
TT
121962020-01-26 Tom Tromey <tom@tromey.com>
12197
12198 * machoread.c: Do not include psympriv.h.
12199
e47e48f6
PW
122002020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12201
12202 * NEWS: Mention the new option and the set/show commands.
12203
a2fedca9
PW
122042020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12205
12206 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12207 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12208 (validate_exec_file): New variables, enums, functions.
12209 (exec_file_locate_attach, print_section_info): Style the filenames.
12210 (_initialize_exec): Install show_exec_file_mismatch_command and
12211 set_exec_file_mismatch_command.
12212 * gdbcore.h (validate_exec_file): Declare.
12213 * infcmd.c (attach_command): Call validate_exec_file.
12214 * remote.c ( remote_target::remote_add_inferior): Likewise.
12215
7ffa82e1
AB
122162020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12217
12218 * frame.c (find_frame_sal): Move call to get_next_frame into more
12219 inner scope.
12220 * inline-frame.c (inilne_state) <inline_state>: Update argument
12221 types.
12222 (inilne_state) <skipped_symbol>: Rename to...
12223 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12224 (skip_inline_frames): Build vector of skipped symbols and use this
12225 to reate the inline_state.
12226 (inline_skipped_symbol): Add a comment and some assertions, fetch
12227 skipped symbol from the list.
12228
3d92a3e3
AB
122292020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12230
12231 * buildsym.c (lte_is_less_than): Delete.
12232 (buildsym_compunit::end_symtab_with_blockvector): Create local
12233 lambda function to sort line table entries, and use
12234 std::stable_sort instead of std::sort.
12235 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12236 markers when looking for a previous line.
12237
94a72be7
AB
122382020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12239
12240 * dwarf2read.c (lnp_state_machine::record_line): Include
12241 end_sequence parameter in debug print out. Record the line if we
12242 are at an end_sequence marker even if it's not the start of a
12243 statement.
12244 * symmisc.c (maintenance_print_one_line_table): Print end of
12245 sequence markers with 'END' not '0'.
12246
53af73bf
PA
122472020-01-24 Pedro Alves <palves@redhat.com>
12248
12249 PR gdb/25410
12250 * thread.c (scoped_restore_current_thread::restore): Use
12251 switch_to_inferior_no_thread.
12252 * exec.c: Include "progspace-and-thread.h".
12253 (add_target_sections, remove_target_sections):
12254 scoped_restore_current_pspace_and_thread instead of
12255 scoped_restore_current_thread.
12256 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12257 and aspace to the inferior before calling clone_program_space.
12258 Remove stale comment.
12259
3050c6f4
CB
122602020-01-24 Christian Biesinger <cbiesinger@google.com>
12261
12262 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12263 (arm_netbsd_nat_target::fetch_registers): ...this.
12264 (arm_nbsd_nat_target::store_registers): Rename to...
12265 (arm_netbsd_nat_target::store_registers): ...this.
12266
73685c7e
CB
122672020-01-24 Christian Biesinger <cbiesinger@google.com>
12268
12269 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12270 register_t.
12271
89203d40
CB
122722020-01-24 Christian Biesinger <cbiesinger@google.com>
12273
12274 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12275 Update comment.
12276 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12277 Likewise.
12278 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12279 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12280 the correct replacement (iterate_over_regset_sections).
12281 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12282 Update comment.
12283
1ba1ac88
AB
122842020-01-24 Graham Markall <graham.markall@embecosm.com>
12285
12286 PR gdb/23718
12287 * gdb/python/python.c (execute_gdb_command): Call
12288 async_enable_stdin in catch block.
12289
f3364a6d
AB
122902020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12291
12292 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12293 SWITCH_THRU_ALL_UIS.
12294
733d0a67
AB
122952020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12296
12297 PR tui/9765
12298 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12299 comment, add extra parameter, and update to store previous symbol
12300 when appropriate.
12301 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12302 add extra parameter.
12303 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12304 remove unneeded parameter, add try/catch around gdb_print_insn,
12305 rewrite to add items to asm_lines vector.
12306 (tui_find_backward_disassembly_start_address): New function.
12307 (tui_find_disassembly_address): Updated throughout.
12308 (tui_disasm_window::set_contents): Update for changes to
12309 tui_disassemble.
12310 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12311 number of lines to scroll.
12312
b3b3bada
SM
123132020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12314
12315 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12316 (SECT_OFF_DATA): Likewise.
12317 (SECT_OFF_RODATA): Likewise.
12318 (SECT_OFF_TEXT): Likewise.
12319 (SECT_OFF_BSS): Likewise.
12320 (struct objfile) <text_section_offset, data_section_offset>: New
12321 methods.
12322 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12323 objfile::text_section_offset.
12324 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12325 * coffread.c (coff_symtab_read): Likewise.
12326 (enter_linenos): Likewise.
12327 (process_coff_symbol): Likewise.
12328 * ctfread.c (get_objfile_text_range): Likewise.
12329 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12330 Use objfile::data_section_offset.
12331 * dwarf2-frame.c (execute_cfa_program): Use
12332 objfile::text_section_offset.
12333 (dwarf2_frame_find_fde): Likewise.
12334 * dwarf2read.c (create_addrmap_from_index): Likewise.
12335 (create_addrmap_from_aranges): Likewise.
12336 (dw2_find_pc_sect_compunit_symtab): Likewise.
12337 (process_psymtab_comp_unit_reader): Likewise.
12338 (add_partial_symbol): Likewise.
12339 (add_partial_subprogram): Likewise.
12340 (process_full_comp_unit): Likewise.
12341 (read_file_scope): Likewise.
12342 (read_func_scope): Likewise.
12343 (read_lexical_block_scope): Likewise.
12344 (read_call_site_scope): Likewise.
12345 (dwarf2_rnglists_process): Likewise.
12346 (dwarf2_ranges_process): Likewise.
12347 (dwarf2_ranges_read): Likewise.
12348 (dwarf_decode_lines_1): Likewise.
12349 (new_symbol): Likewise.
12350 (dwarf2_fetch_die_loc_sect_off): Likewise.
12351 (dwarf2_per_cu_text_offset): Likewise.
12352 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12353 * hppa-tdep.c (read_unwind_info): Likewise.
12354 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12355 * psympriv.h (struct partial_symtab): Likewise.
12356 * psymtab.c (find_pc_sect_psymtab): Likewise.
12357 * solib-svr4.c (enable_break): Likewise.
12358 * stap-probe.c (relocate_address): Use
12359 objfile::data_section_offset.
12360 * xcoffread.c (enter_line_range): Use
12361 objfile::text_section_offset.
12362 (read_xcoff_symtab): Likewise.
12363
ab53f382
SM
123642020-01-23 Simon Marchi <simon.marchi@efficios.com>
12365
12366 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12367 declaration to narrower scopes.
12368
e7eee665
SM
123692020-01-23 Simon Marchi <simon.marchi@efficios.com>
12370
12371 * darwin-nat.h (struct darwin_exception_msg, enum
12372 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12373 Move up.
12374 (class darwin_nat_target) <wait_1, check_new_threads,
12375 decode_exception_message, decode_message, stop_inferior,
12376 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12377 * darwin-nat.c (darwin_check_new_threads): Rename to...
12378 (darwin_nat_target::check_new_threads): ... this.
12379 (darwin_suspend_inferior_it): Remove.
12380 (darwin_decode_exception_message): Rename to...
12381 (darwin_nat_target::decode_exception_message): ... this.
12382 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12383 (darwin_decode_message): Rename to...
12384 (darwin_nat_target::decode_message): ... this.
12385 (cancel_breakpoint): Rename to...
12386 (darwin_nat_target::cancel_breakpoint): ... this.
12387 (darwin_wait): Rename to...
12388 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12389 instead of iterate_over_inferiors.
12390 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12391 (darwin_stop_inferior): Rename to...
12392 (darwin_nat_target::stop_inferior): ... this.
12393 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12394 (darwin_init_thread_list): Rename to...
12395 (darwin_nat_target::init_thread_list): ... this.
12396 (darwin_ptrace_him): Rename to...
12397 (darwin_nat_target::ptrace_him): ... this.
12398 (darwin_nat_target::create_inferior): Pass lambda function to
12399 fork_inferior.
12400 (darwin_nat_target::detach): Call stop_inferior instead of
12401 darwin_stop_inferior.
12402 * fork-inferior.h (fork_inferior): Change init_trace_fun
12403 parameter to gdb::function_view.
12404 * fork-inferior.c (fork_inferior): Likewise.
12405
c162ed3e
HD
124062020-01-23 Hannes Domani <ssbssa@yahoo.de>
12407
12408 * i386-cygwin-tdep.c (core_process_module_section): Update.
12409 * windows-nat.c (struct lm_info_windows): Add text_offset.
12410 (windows_xfer_shared_libraries): Update.
12411 * windows-tdep.c (windows_xfer_shared_library):
12412 Add text_offset_cached argument.
12413 * windows-tdep.h (windows_xfer_shared_library): Update.
12414
a1237872
SM
124152020-01-21 Simon Marchi <simon.marchi@efficios.com>
12416
12417 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12418
b3ee6dd9
SM
124192020-01-21 Simon Marchi <simon.marchi@efficios.com>
12420
12421 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12422 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12423 replace with range-based for.
12424 (gdbsim_interrupt_inferior): Remove.
12425 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12426 with a range-based for. Inline code from
12427 gdbsim_interrupt_inferior.
12428
f9fac3c8
SM
124292020-01-21 Simon Marchi <simon.marchi@efficios.com>
12430
12431 * infrun.c (proceed): Fix indentation.
12432
f6474de9
TT
124332020-01-21 Tom Tromey <tromey@adacore.com>
12434
12435 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12436 * python/python.c (python_extension_ops): Update.
12437 (gdbpy_colorize): New function.
12438 * python/lib/gdb/__init__.py (colorize): New function.
12439 * extension.h (ext_lang_colorize): Declare.
12440 * extension.c (ext_lang_colorize): New function.
12441 * extension-priv.h (struct extension_language_ops) <colorize>: New
12442 member.
12443 * cli/cli-style.c (_initialize_cli_style): Update help text.
12444
f0c702d4
LM
124452020-01-21 Luis Machado <luis.machado@linaro.org>
12446
12447 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12448 <cond>: Change type to bool.
12449 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12450 (aarch64_displaced_step_cb): Likewise.
12451 (aarch64_displaced_step_tb): Likewise.
12452
1ab139e5
LM
124532020-01-21 Luis Machado <luis.machado@linaro.org>
12454
12455 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12456 output.
12457
0c271889
LM
124582020-01-21 Luis Machado <luis.machado@linaro.org>
12459
12460 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12461 <pc_adjust>: Adjust the documentation.
12462 (aarch64_displaced_step_fixup): Check if PC really moved before
12463 adjusting it.
12464
4d89c1c7
TT
124652020-01-19 Tom Tromey <tom@tromey.com>
12466
12467 * disasm.c (~gdb_disassembler): New destructor.
12468 (gdb_buffered_insn_length): Call disassemble_free_target.
12469 * disasm.h (class gdb_disassembler): Declare destructor. Use
12470 DISABLE_COPY_AND_ASSIGN.
12471
c0ab21c2
TT
124722020-01-19 Tom Tromey <tom@tromey.com>
12473
12474 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12475 (die_reader_func_ftype): Remove.
12476 (cutu_reader): New class.
12477 (dw2_get_file_names_reader): Remove "data" parameter.
12478 (dw2_get_file_names): Use cutu_reader.
12479 (create_debug_type_hash_table): Update.
12480 (read_cutu_die_from_dwo): Update comment.
12481 (lookup_dwo_unit): Add dwo_name parameter.
12482 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12483 die_reader_func_ftype and data parameters.
12484 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12485 Remove die_reader_func_ftype and data parameters.
12486 (~cutu_reader): New; from init_cutu_and_read_dies.
12487 (cutu_reader::cutu_reader): Rename from
12488 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12489 and data parameters.
12490 (init_cutu_and_read_dies_simple): Remove.
12491 (struct process_psymtab_comp_unit_data): Remove.
12492 (process_psymtab_comp_unit_reader): Remove data parameter; add
12493 want_partial_unit and pretend_language parameters.
12494 (process_psymtab_comp_unit): Use cutu_reader.
12495 (build_type_psymtabs_reader): Remove data parameter.
12496 (build_type_psymtabs_1): Use cutu_reader.
12497 (process_skeletonless_type_unit): Likewise.
12498 (load_partial_comp_unit_reader): Remove.
12499 (load_partial_comp_unit): Use cutu_reader.
12500 (load_full_comp_unit_reader): Remove.
12501 (load_full_comp_unit): Use cutu_reader.
12502 (struct create_dwo_cu_data): Remove.
12503 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12504 dwo_unit parameters.
12505 (create_cus_hash_table): Use cutu_reader.
12506 (struct dwarf2_read_addr_index_data): Remove.
12507 (dwarf2_read_addr_index_reader): Remove.
12508 (dwarf2_read_addr_index): Use cutu_reader.
12509 (read_signatured_type_reader): Remove.
12510 (read_signatured_type): Use cutu_reader.
12511
45bbae5c
TT
125122020-01-19 Tom Tromey <tom@tromey.com>
12513
12514 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12515 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12516 (tui_wrefresh): Declare.
12517 * tui/tui-wingeneral.c (suppress_output): New global.
12518 (tui_suppress_output, ~tui_suppress_output): New constructor and
12519 destructor.
12520 (tui_wrefresh): New function.
12521 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12522 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12523 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12524 method.
12525 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12526 tui_wrefresh.
12527 (tui_data_window::no_refresh): New method.
12528 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12529 (tui_reg_command): Use tui_suppress_output
12530 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12531 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12532 method.
12533 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12534
4f13c1c0
TT
125352020-01-19 Tom Tromey <tom@tromey.com>
12536
12537 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12538 Handle case where symtab is null.
12539
fa47e446
SM
125402020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12541
12542 * linux-fork.c (one_fork_p): Simplify.
12543
26f42329
SM
125442020-01-17 Simon Marchi <simon.marchi@efficios.com>
12545
12546 * top.c (struct qt_args): Remove.
12547 (kill_or_detach): Change return type to void, replace `void *`
12548 parameter with a proper one.
12549 (print_inferior_quit_action): Likewise.
12550 (quit_confirm): Use range-based for loop to iterate over inferiors.
12551 (quit_force): Likewise.
12552
a9ac81b1
SM
125532020-01-17 Simon Marchi <simon.marchi@efficios.com>
12554
12555 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12556 `void *` parameter with proper parameters.
12557 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12558 (print_one_inferior): Change return type to void, replace `void *`
12559 parameter with proper parameters.
12560 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12561 inferiors.
12562 (get_other_inferior): Remove.
12563 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12564 inferiors.
12565
788eca49
SM
125662020-01-17 Simon Marchi <simon.marchi@efficios.com>
12567
12568 * mi/mi-interp.c (report_initial_inferior): Remove.
12569 (mi_interp::init): Use range-based for to iterate over inferiors.
12570
d9bc85b6
SM
125712020-01-17 Simon Marchi <simon.marchi@efficios.com>
12572
12573 * python/py-inferior.c (build_inferior_list): Remove.
12574 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12575
40c94099
CB
125762020-01-16 Christian Biesinger <cbiesinger@google.com>
12577
12578 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12579 (btrace_stitch_trace): Likewise.
12580 * charset.c (intermediate_encoding): Likewise (vaild).
12581 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12582 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12583 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12584
e0cdfe3c
HD
125852020-01-16 Hannes Domani <ssbssa@yahoo.de>
12586
12587 * windows-tdep.c (windows_get_tlb_type):
12588 Add rtl_user_process_parameters type.
12589
790f1718 125902020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12591 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12592
12593 PR build/24805
12594 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12595 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12596 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12597 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12598 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12599 (ps_plog): Redeclare exported functions with default visibility.
12600
3112ed97
NA
126012020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12602
12603 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12604 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12605
8dc3273e
SM
126062020-01-15 Simon Marchi <simon.marchi@efficios.com>
12607
12608 * infcmd.c (post_create_inferior): Use get_thread_regcache
12609 instead of get_current_regcache.
12610
ff47f4f0
TT
126112020-01-14 Tom Tromey <tom@tromey.com>
12612
12613 PR symtab/12535:
12614 * python/python.c (gdbpy_decode_line): Treat empty string the same
12615 as no argument.
12616
975f45b7
TT
126172020-01-14 Tom Tromey <tom@tromey.com>
12618
12619 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12620
25e57356
TT
126212020-01-14 Tom Tromey <tom@tromey.com>
12622
12623 * nat/linux-btrace.c: Don't include <config.h>.
12624 * nat/linux-ptrace.c: Don't include <config.h>.
12625 * nat/x86-linux-dregs.c: Don't include <config.h>.
12626
05ea2a05
TT
126272020-01-14 Tom Tromey <tom@tromey.com>
12628
12629 * configure: Rebuild.
12630 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12631
01027315
TT
126322020-01-14 Tom Tromey <tom@tromey.com>
12633
12634 * nat/x86-linux-dregs.c: Include configh.h.
12635 * nat/linux-ptrace.c: Include configh.h.
12636 * nat/linux-btrace.c: Include configh.h.
12637 * defs.h: Include config.h, bfd.h.
12638 * configure.ac: Don't source common.host.
12639 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12640 * configure: Rebuild.
12641 * acinclude.m4: Update path.
12642 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12643 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12644 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12645 (CLIBS): Add LIBSUPPORT.
12646 (CDEPS): Likewise.
12647 (COMMON_SFILES): Remove gdbsupport files.
12648 (HFILES_NO_SRCDIR): Likewise.
12649 (stamp-version): Update path to create-version.sh.
12650 (ALLDEPFILES): Remove gdbsupport files.
12651
b2ceabe8
TT
126522020-01-14 Tom Tromey <tom@tromey.com>
12653
12654 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12655 USE_WIN32API when needed.
12656 * configure.ac (USE_WIN32API): Don't define.
12657 (WIN32LIBS): Use WIN32APILIBS.
12658 * configure: Rebuild.
12659
25c51f71
TT
126602020-01-14 Tom Tromey <tom@tromey.com>
12661
12662 * configure: Rebuild.
12663 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12664
717c684d
BE
126652020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12666
12667 * skip.c (skip_function_command): Make skip w/o arguments use the
12668 name of the inlined function if pc is inside any inlined function.
12669
7da6a5b9
LM
126702020-01-14 Luis Machado <luis.machado@linaro.org>
12671
12672 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12673 * infrun.c (resume_1): Likewise.
12674 (handle_inferior_event): Remove stale comment.
12675 * linux-nat.c (linux_nat_target::resume): Update comments.
12676 (save_stop_reason): Likewise.
12677 (linux_nat_filter_event): Likewise.
12678 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12679
44e4c775
AB
126802020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12681
12682 * elfread.c (record_minimal_symbol): Set section index to 0 for
12683 non-allocatable sections.
12684
18a8505e
AT
12685
126862020-01-13 Ali Tamur <tamur@google.com>
12687
12688 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12689 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12690 to gdb::optional. Update comments.
12691 (dwo_file): Update comments.
12692 (read_attribute): Update API to take an additional out parameter,
12693 need_reprocess. This is used to mark attributes that need other
12694 attributes (e.g. str_offsets_base) for correct computation which may not
12695 have been read yet.
12696 (read_attribute_reprocess): New function declaration.
12697 (read_addr_index): Likewise.
12698 (read_dwo_str_index): Likewise.
12699 (read_stub_str_index): Likewise.
12700 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12701 (lookup_addr_base): New function definition.
12702 (lookup_ranges_base): Likewise.
12703 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12704 lookup_ranges_base.
12705 (init_cutu_and_read_dies): Update comments.
12706 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12707 unit. This is used to inherit parent's str_offsets_base and addr_base.
12708 Update comments.
12709 (init_cutu_and_read_dies_simple): Reflect API changes.
12710 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12711 (create_cus_hash_table): Change API to take parent compile unit.
12712 Reflect API changes.
12713 (open_and_init_dwo_file): Reflect API changes.
12714 (dwarf2_get_pc_bounds): Update comments.
12715 (dwarf2_record_block_ranges): Likewise.
12716 (read_full_die_1): Change implementation to reprocess attributes that
12717 need str_offsets_base and addr_base.
12718 (partial_die_info::read): Likewise.
12719 (read_attribute_reprocess): New function definition.
12720 (read_attribute_value): Change API to take an additional out parameter,
12721 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12722 when a non-dwo compile unit has index based attributes.
12723 (read_attribute): Reflect API changes.
12724 (read_addr_index_1): Reflect API changes. Update comments.
12725 (dwarf2_read_addr_index_data): Reflect API changes.
12726 (dwarf2_read_addr_index): Likewise.
12727 (read_str_index): Change API and implementation. This becomes a helper
12728 to be used by the new string index related methods. Update error
12729 message and comments.
12730 (read_dwo_str_index): New function definition.
12731 (read_stub_str_index): Likewise.
12732 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12733 * symfile.h (dwarf2_debug_sections): Likewise.
12734 * xcoffread.c (dwarf2_debug_sections): Likewise.
12735
0cac9354
SM
127362020-01-13 Simon Marchi <simon.marchi@efficios.com>
12737
12738 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12739 core_reg_sect type to gdb_byte *.
12740 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12741 * cris-tdep.c (fetch_core_registers): Likewise.
12742 * corelow.c (core_target::get_core_register_section): Change
12743 type of `contents` to gdb::byte_vector.
12744
9a6d629c
AB
127452020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12746
12747 * tui/tui-wingeneral.c (box_win): Position the title in the center
12748 of the border.
12749
d8b2f9e3
SM
127502020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12751
12752 * corelow.c (core_target::get_core_register_section): Use
12753 std::vector instead of alloca.
12754
bb564c58
SM
127552020-01-13 Simon Marchi <simon.marchi@efficios.com>
12756
12757 * warning.m4: Add -Wmissing-declarations to build_warnings.
12758 * configure: Re-generate.
12759
6b366111
SM
127602020-01-13 Simon Marchi <simon.marchi@efficios.com>
12761
12762 * python/python.c (init__gdb_module): Add declaration.
12763
6c265988
SM
127642020-01-13 Simon Marchi <simon.marchi@efficios.com>
12765
12766 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12767 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12768 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12769 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12770 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12771 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12772 * ada-exp.y (_initialize_ada_exp): Add declaration.
12773 * ada-lang.c (_initialize_ada_language): Add declaration.
12774 * ada-tasks.c (_initialize_tasks): Add declaration.
12775 * agent.c (_initialize_agent): Add declaration.
12776 * aix-thread.c (_initialize_aix_thread): Add declaration.
12777 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12778 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12779 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12780 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12781 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12782 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12783 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12784 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12785 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12786 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12787 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12788 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12789 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12790 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12791 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12792 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12793 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12794 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12795 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12796 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12797 * annotate.c (_initialize_annotate): Add declaration.
12798 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12799 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12800 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12801 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12802 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12803 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12804 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12805 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12806 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12807 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12808 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12809 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12810 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12811 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12812 * auto-load.c (_initialize_auto_load): Add declaration.
12813 * auxv.c (_initialize_auxv): Add declaration.
12814 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12815 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12816 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12817 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12818 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12819 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12820 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12821 * breakpoint.c (_initialize_breakpoint): Add declaration.
12822 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12823 * btrace.c (_initialize_btrace): Add declaration.
12824 * charset.c (_initialize_charset): Add declaration.
12825 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12826 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12827 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12828 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12829 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12830 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12831 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12832 * coffread.c (_initialize_coffread): Add declaration.
12833 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12834 * compile/compile.c (_initialize_compile): Add declaration.
12835 * complaints.c (_initialize_complaints): Add declaration.
12836 * completer.c (_initialize_completer): Add declaration.
12837 * copying.c (_initialize_copying): Add declaration.
12838 * corefile.c (_initialize_core): Add declaration.
12839 * corelow.c (_initialize_corelow): Add declaration.
12840 * cp-abi.c (_initialize_cp_abi): Add declaration.
12841 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12842 * cp-support.c (_initialize_cp_support): Add declaration.
12843 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12844 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12845 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12846 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12847 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12848 * ctfread.c (_initialize_ctfread): Add declaration.
12849 * d-lang.c (_initialize_d_language): Add declaration.
12850 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12851 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12852 * dbxread.c (_initialize_dbxread): Add declaration.
12853 * dcache.c (_initialize_dcache): Add declaration.
12854 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12855 * disasm.c (_initialize_disasm): Add declaration.
12856 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12857 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12858 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12859 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12860 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12861 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12862 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12863 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12864 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12865 * elfread.c (_initialize_elfread): Add declaration.
12866 * exec.c (_initialize_exec): Add declaration.
12867 * extension.c (_initialize_extension): Add declaration.
12868 * f-lang.c (_initialize_f_language): Add declaration.
12869 * f-valprint.c (_initialize_f_valprint): Add declaration.
12870 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12871 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12872 * filesystem.c (_initialize_filesystem): Add declaration.
12873 * findcmd.c (_initialize_mem_search): Add declaration.
12874 * findvar.c (_initialize_findvar): Add declaration.
12875 * fork-child.c (_initialize_fork_child): Add declaration.
12876 * frame-base.c (_initialize_frame_base): Add declaration.
12877 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12878 * frame.c (_initialize_frame): Add declaration.
12879 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12880 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12881 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12882 * gcore.c (_initialize_gcore): Add declaration.
12883 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12884 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12885 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12886 * gdbarch.c (_initialize_gdbarch): Add declaration.
12887 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12888 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12889 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12890 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12891 * go-lang.c (_initialize_go_language): Add declaration.
12892 * go32-nat.c (_initialize_go32_nat): Add declaration.
12893 * guile/guile.c (_initialize_guile): Add declaration.
12894 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12895 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12896 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12897 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12898 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12899 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12900 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12901 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12902 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12903 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12904 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12905 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12906 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12907 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12908 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12909 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12910 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12911 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12912 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12913 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12914 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12915 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12916 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12917 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12918 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12919 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12920 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12921 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12922 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12923 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12924 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12925 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12926 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12927 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12928 * infcall.c (_initialize_infcall): Add declaration.
12929 * infcmd.c (_initialize_infcmd): Add declaration.
12930 * inflow.c (_initialize_inflow): Add declaration.
12931 * infrun.c (_initialize_infrun): Add declaration.
12932 * interps.c (_initialize_interpreter): Add declaration.
12933 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12934 * jit.c (_initialize_jit): Add declaration.
12935 * language.c (_initialize_language): Add declaration.
12936 * linux-fork.c (_initialize_linux_fork): Add declaration.
12937 * linux-nat.c (_initialize_linux_nat): Add declaration.
12938 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12939 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12940 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12941 * m2-lang.c (_initialize_m2_language): Add declaration.
12942 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12943 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12944 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12945 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12946 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12947 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12948 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12949 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12950 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12951 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12952 * machoread.c (_initialize_machoread): Add declaration.
12953 * macrocmd.c (_initialize_macrocmd): Add declaration.
12954 * macroscope.c (_initialize_macroscope): Add declaration.
12955 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12956 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12957 * maint.c (_initialize_maint_cmds): Add declaration.
12958 * mdebugread.c (_initialize_mdebugread): Add declaration.
12959 * memattr.c (_initialize_mem): Add declaration.
12960 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12961 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12962 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12963 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12964 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12965 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12966 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12967 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12968 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12969 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12970 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12971 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12972 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12973 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12974 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12975 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12976 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12977 * mipsread.c (_initialize_mipsread): Add declaration.
12978 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12979 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12980 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12981 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12982 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12983 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12984 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12985 * nto-procfs.c (_initialize_procfs): Add declaration.
12986 * objc-lang.c (_initialize_objc_language): Add declaration.
12987 * observable.c (_initialize_observer): Add declaration.
12988 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12989 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12990 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12991 * osabi.c (_initialize_gdb_osabi): Add declaration.
12992 * osdata.c (_initialize_osdata): Add declaration.
12993 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12994 * parse.c (_initialize_parse): Add declaration.
12995 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12996 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12997 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12998 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12999 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13000 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13001 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13002 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13003 * printcmd.c (_initialize_printcmd): Add declaration.
13004 * probe.c (_initialize_probe): Add declaration.
13005 * proc-api.c (_initialize_proc_api): Add declaration.
13006 * proc-events.c (_initialize_proc_events): Add declaration.
13007 * proc-service.c (_initialize_proc_service): Add declaration.
13008 * procfs.c (_initialize_procfs): Add declaration.
13009 * producer.c (_initialize_producer): Add declaration.
13010 * psymtab.c (_initialize_psymtab): Add declaration.
13011 * python/python.c (_initialize_python): Add declaration.
13012 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13013 * record-btrace.c (_initialize_record_btrace): Add declaration.
13014 * record-full.c (_initialize_record_full): Add declaration.
13015 * record.c (_initialize_record): Add declaration.
13016 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13017 * regcache.c (_initialize_regcache): Add declaration.
13018 * reggroups.c (_initialize_reggroup): Add declaration.
13019 * remote-notif.c (_initialize_notif): Add declaration.
13020 * remote-sim.c (_initialize_remote_sim): Add declaration.
13021 * remote.c (_initialize_remote): Add declaration.
13022 * reverse.c (_initialize_reverse): Add declaration.
13023 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13024 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13025 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13026 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13027 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13028 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13029 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13030 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13031 Add declaration.
13032 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13033 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13034 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13035 * rust-exp.y (_initialize_rust_exp): Add declaration.
13036 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13037 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13038 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13039 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13040 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13041 * score-tdep.c (_initialize_score_tdep): Add declaration.
13042 * ser-go32.c (_initialize_ser_dos): Add declaration.
13043 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13044 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13045 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13046 * ser-uds.c (_initialize_ser_socket): Add declaration.
13047 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13048 * serial.c (_initialize_serial): Add declaration.
13049 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13050 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13051 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13052 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13053 * skip.c (_initialize_step_skip): Add declaration.
13054 * sol-thread.c (_initialize_sol_thread): Add declaration.
13055 * solib-aix.c (_initialize_solib_aix): Add declaration.
13056 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13057 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13058 * solib-frv.c (_initialize_frv_solib): Add declaration.
13059 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13060 * solib-target.c (_initialize_solib_target): Add declaration.
13061 * solib.c (_initialize_solib): Add declaration.
13062 * source-cache.c (_initialize_source_cache): Add declaration.
13063 * source.c (_initialize_source): Add declaration.
13064 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13065 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13066 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13067 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13068 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13069 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13070 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13071 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13072 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13073 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13074 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13075 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13076 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13077 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13078 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13079 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13080 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13081 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13082 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13083 * stabsread.c (_initialize_stabsread): Add declaration.
13084 * stack.c (_initialize_stack): Add declaration.
13085 * stap-probe.c (_initialize_stap_probe): Add declaration.
13086 * std-regs.c (_initialize_frame_reg): Add declaration.
13087 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13088 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13089 * symfile.c (_initialize_symfile): Add declaration.
13090 * symmisc.c (_initialize_symmisc): Add declaration.
13091 * symtab.c (_initialize_symtab): Add declaration.
13092 * target.c (_initialize_target): Add declaration.
13093 * target-connection.c (_initialize_target_connection): Add
13094 declaration.
13095 * target-dcache.c (_initialize_target_dcache): Add declaration.
13096 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13097 * thread.c (_initialize_thread): Add declaration.
13098 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13099 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13100 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13101 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13102 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13103 * tracectf.c (_initialize_ctf): Add declaration.
13104 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13105 * tracefile.c (_initialize_tracefile): Add declaration.
13106 * tracepoint.c (_initialize_tracepoint): Add declaration.
13107 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13108 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13109 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13110 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13111 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13112 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13113 * tui/tui.c (_initialize_tui): Add declaration.
13114 * typeprint.c (_initialize_typeprint): Add declaration.
13115 * ui-style.c (_initialize_ui_style): Add declaration.
13116 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13117 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13118 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13119 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13120 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13121 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13122 * unittests/filtered_iterator-selftests.c
13123 (_initialize_filtered_iterator_selftests): Add declaration.
13124 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13125 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13126 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13127 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13128 * unittests/main-thread-selftests.c
13129 (_initialize_main_thread_selftests): Add declaration.
13130 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13131 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13132 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13133 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13134 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13135 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13136 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13137 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13138 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13139 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13140 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13141 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13142 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13143 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13144 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13145 declaration.
13146 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13147 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13148 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13149 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13150 * user-regs.c (_initialize_user_regs): Add declaration.
13151 * utils.c (_initialize_utils): Add declaration.
13152 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13153 * valops.c (_initialize_valops): Add declaration.
13154 * valprint.c (_initialize_valprint): Add declaration.
13155 * value.c (_initialize_values): Add declaration.
13156 * varobj.c (_initialize_varobj): Add declaration.
13157 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13158 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13159 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13160 * windows-nat.c (_initialize_windows_nat): Add declaration.
13161 (_initialize_check_for_gdb_ini): Add declaration.
13162 (_initialize_loadable): Add declaration.
13163 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13164 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13165 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13166 * xcoffread.c (_initialize_xcoffread): Add declaration.
13167 * xml-support.c (_initialize_xml_support): Add declaration.
13168 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13169 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13170 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13171 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13172
e2de1eec
SM
131732020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13174
13175 * regformats/regdat.sh: Generate declaration for init function.
13176
e0037b4c
SM
131772020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13178
13179 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13180 up.
13181 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13182 close_one_inferior>: New methods.
13183 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13184 pass down target to find_inferior_pid.
13185 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13186 Pass down target to find_inferior_ptid.
13187 (gdbsim_target::create_inferior): Pass down target to
13188 add_thread_silent.
13189 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13190 target down to find_inferior_ptid and switch_to_thread.
13191 (gdbsim_target::close): Update to call close_one_inferior.
13192 (struct resume_data): Remove.
13193 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13194 directly, rather than through a void pointer.
13195 (gdbsim_target::resume): Update to call resume_one_inferior.
13196
58920b5b
SM
131972020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13198
13199 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13200
4ec89149
PA
132012020-01-12 Pedro Alves <palves@redhat.com>
13202
13203 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13204 directly for the current inferior instead of
13205 discard_all_inferiors.
13206 (discard_all_inferiors): Delete.
13207
7c392d1d
TT
132082020-01-11 Tom Tromey <tom@tromey.com>
13209
13210 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13211 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13212 deprecated_safe_get_selected_frame.
13213
d9ebdab7
TBA
132142020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13215
13216 * inferior.c (print_inferior): Switch inferior before printing it.
13217
f3c469b9
PA
132182020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13219 Pedro Alves <palves@redhat.com>
13220
13221 * progspace-and-thread.c (switch_to_program_space_and_thread):
13222 Assert there's an inferior for PSPACE. Use
13223 switch_to_inferior_no_thread to switch the inferior too.
13224 * progspace.c (program_space::~program_space): Call
13225 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13226 (program_space::free_all_objfiles): Don't call clear_symtab_users
13227 here.
13228 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13229
65c574f6
PA
132302020-01-10 Pedro Alves <palves@redhat.com>
13231
13232 * NEWS: Mention multi-target debugging, "info connections", and
13233 "add-inferior -no-connection".
13234
2f4fcf00
PA
132352020-01-10 Pedro Alves <palves@redhat.com>
13236
13237 * infrun.c: Include "target-connection.h".
13238 (check_multi_target_resumption): New.
13239 (proceed): Call it.
13240 * target-connection.c (make_target_connection_string): Make
13241 extern.
13242 * target-connection.h (make_target_connection_string): Declare.
13243
121b3efd
PA
132442020-01-10 Pedro Alves <palves@redhat.com>
13245
13246 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13247 * inferior.c (uiout_field_connection): New function.
13248 (print_inferior): Add new "connection-id" column.
13249 (add_inferior_command): Show connection number/string of added
13250 inferior.
13251 * process-stratum-target.h
13252 (process_stratum_target::connection_string): New virtual method.
13253 (process_stratum_target::connection_number): New field.
13254 * remote.c (remote_target::connection_string): New override.
13255 * target-connection.c: New file.
13256 * target-connection.h: New file.
13257 * target.c (decref_target): Remove process_stratum targets from
13258 the connection list.
13259 (target_stack::push): Add process_stratum targets to the
13260 connection list.
13261
4f837581
PA
132622020-01-10 Pedro Alves <palves@redhat.com>
13263
13264 Revert:
13265 2016-04-12 Pedro Alves <palves@redhat.com>
13266 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13267 Remove references to name.
13268 * serial.h (struct serial) <name>: Delete.
13269
f4ec508e
PA
132702020-01-10 Pedro Alves <palves@redhat.com>
13271
13272 * gdbarch-selftests.c (register_to_value_test): Remove "target
13273 already pushed" check.
13274
5b6d1e4f
PA
132752020-01-10 Pedro Alves <palves@redhat.com>
13276 John Baldwin <jhb@FreeBSD.org>
13277
13278 * aarch64-linux-nat.c
13279 (aarch64_linux_nat_target::thread_architecture): Adjust.
13280 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13281 (task_command_1): Likewise.
13282 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13283 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13284 (aix_thread_target::store_registers)
13285 (aix_thread_target::thread_alive): Adjust.
13286 * amd64-fbsd-tdep.c: Include "inferior.h".
13287 (amd64fbsd_get_thread_local_address): Pass down target.
13288 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13289 thread's gdbarch instead of target_gdbarch.
13290 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13291 get_last_target_status.
13292 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13293 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13294 inferiors.
13295 (update_inserted_breakpoint_locations): Skip if inferiors with no
13296 execution.
13297 (update_global_location_list): When handling moribund locations,
13298 find representative inferior for location's pspace, and use thread
13299 count of its process_stratum target.
13300 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13301 * bsd-uthread.c (bsd_uthread_target::wait): Use
13302 as_process_stratum_target and adjust thread_change_ptid and
13303 add_thread calls.
13304 (bsd_uthread_target::update_thread_list): Use
13305 as_process_stratum_target and adjust find_thread_ptid,
13306 thread_change_ptid and add_thread calls.
13307 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13308 find_thread_ptid call.
13309 * corelow.c (add_to_thread_list): Adjust add_thread call.
13310 (core_target_open): Adjust add_thread_silent and thread_count
13311 calls.
13312 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13313 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13314 * event-top.c (async_disconnect): Pop targets from all inferiors.
13315 * exec.c (add_target_sections): Push exec target on all inferiors
13316 sharing the program space.
13317 (remove_target_sections): Remove the exec target from all
13318 inferiors sharing the program space.
13319 (exec_on_vfork): New.
13320 * exec.h (exec_on_vfork): Declare.
13321 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13322 Pass it down.
13323 (fbsd_nat_target::update_thread_list): Adjust.
13324 (fbsd_nat_target::resume): Adjust.
13325 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13326 down.
13327 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13328 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13329 get_thread_arch_regcache call.
13330 * fork-child.c (gdb_startup_inferior): Pass target down to
13331 startup_inferior and set_executing.
13332 * gdbthread.h (struct process_stratum_target): Forward declare.
13333 (add_thread, add_thread_silent, add_thread_with_info)
13334 (in_thread_list): Add process_stratum_target parameter.
13335 (find_thread_ptid(inferior*, ptid_t)): New overload.
13336 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13337 parameter.
13338 (all_threads()): Delete overload.
13339 (all_threads, all_non_exited_threads): Add process_stratum_target
13340 parameter.
13341 (all_threads_safe): Use brace initialization.
13342 (thread_count): Add process_stratum_target parameter.
13343 (set_resumed, set_running, set_stop_requested, set_executing)
13344 (threads_are_executing, finish_thread_state): Add
13345 process_stratum_target parameter.
13346 (switch_to_thread): Use is_current_thread.
13347 * i386-fbsd-tdep.c: Include "inferior.h".
13348 (i386fbsd_get_thread_local_address): Pass down target.
13349 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13350 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13351 have_inferiors check.
13352 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13353 (inf_ptrace_target::attach): Adjust.
13354 * infcall.c (run_inferior_call): Adjust.
13355 * infcmd.c (run_command_1): Pass target to
13356 scoped_finish_thread_state.
13357 (proceed_thread_callback): Skip inferiors with no execution.
13358 (continue_command): Rename 'all_threads' local to avoid hiding
13359 'all_threads' function. Adjust get_last_target_status call.
13360 (prepare_one_step): Adjust set_running call.
13361 (signal_command): Use user_visible_resume_target. Compare thread
13362 pointers instead of inferior_ptid.
13363 (info_program_command): Adjust to pass down target.
13364 (attach_command): Mark target's 'thread_executing' flag.
13365 (stop_current_target_threads_ns): New, factored out from ...
13366 (interrupt_target_1): ... this. Switch inferior before making
13367 target calls.
13368 * inferior-iter.h
13369 (struct all_inferiors_iterator, struct all_inferiors_range)
13370 (struct all_inferiors_safe_range)
13371 (struct all_non_exited_inferiors_range): Filter on
13372 process_stratum_target too. Remove explicit.
13373 * inferior.c (inferior::inferior): Push dummy target on target
13374 stack.
13375 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13376 Add process_stratum_target parameter, and pass it down.
13377 (have_live_inferiors): Adjust.
13378 (switch_to_inferior_and_push_target): New.
13379 (add_inferior_command, clone_inferior_command): Handle
13380 "-no-connection" parameter. Use
13381 switch_to_inferior_and_push_target.
13382 (_initialize_inferior): Mention "-no-connection" option in
13383 the help of "add-inferior" and "clone-inferior" commands.
13384 * inferior.h: Include "process-stratum-target.h".
13385 (interrupt_target_1): Use bool.
13386 (struct inferior) <push_target, unpush_target, target_is_pushed,
13387 find_target_beneath, top_target, process_target, target_at,
13388 m_stack>: New.
13389 (discard_all_inferiors): Delete.
13390 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13391 (all_inferiors, all_non_exited_inferiors): Add
13392 process_stratum_target parameter.
13393 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13394 (target_last_proc_target): New global.
13395 (follow_fork_inferior): Push target on new inferior. Pass target
13396 to add_thread_silent. Call exec_on_vfork. Handle target's
13397 reference count.
13398 (follow_fork): Adjust get_last_target_status call. Also consider
13399 target.
13400 (follow_exec): Push target on new inferior.
13401 (struct execution_control_state) <target>: New field.
13402 (user_visible_resume_target): New.
13403 (do_target_resume): Call target_async.
13404 (resume_1): Set target's threads_executing flag. Consider resume
13405 target.
13406 (commit_resume_all_targets): New.
13407 (proceed): Also consider resume target. Skip threads of inferiors
13408 with no execution. Commit resumtion in all targets.
13409 (start_remote): Pass current inferior to wait_for_inferior.
13410 (infrun_thread_stop_requested): Consider target as well. Pass
13411 thread_info pointer to clear_inline_frame_state instead of ptid.
13412 (infrun_thread_thread_exit): Consider target as well.
13413 (random_pending_event_thread): New inferior parameter. Use it.
13414 (do_target_wait): Rename to ...
13415 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13416 down.
13417 (threads_are_resumed_pending_p, do_target_wait): New.
13418 (prepare_for_detach): Adjust calls.
13419 (wait_for_inferior): New inferior parameter. Handle it. Use
13420 do_target_wait_1 instead of do_target_wait.
13421 (fetch_inferior_event): Adjust. Switch to representative
13422 inferior. Pass target down.
13423 (set_last_target_status): Add process_stratum_target parameter.
13424 Save target in global.
13425 (get_last_target_status): Add process_stratum_target parameter and
13426 handle it.
13427 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13428 (context_switch): Check inferior_ptid == null_ptid before calling
13429 inferior_thread().
13430 (get_inferior_stop_soon): Pass down target.
13431 (wait_one): Rename to ...
13432 (poll_one_curr_target): ... this.
13433 (struct wait_one_event): New.
13434 (wait_one): New.
13435 (stop_all_threads): Adjust.
13436 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13437 event's target.
13438 (switch_back_to_stepped_thread): Also consider target.
13439 (print_stop_event): Update.
13440 (normal_stop): Update. Also consider the resume target.
13441 * infrun.h (wait_for_inferior): Remove declaration.
13442 (user_visible_resume_target): New declaration.
13443 (get_last_target_status, set_last_target_status): New
13444 process_stratum_target parameter.
13445 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13446 process_stratum_target parameter, and use it.
13447 (clear_inline_frame_state (thread_info*)): New.
13448 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13449 process_stratum_target parameter.
13450 (clear_inline_frame_state (thread_info*)): Declare.
13451 * linux-fork.c (delete_checkpoint_command): Pass target down to
13452 find_thread_ptid.
13453 (checkpoint_command): Adjust.
13454 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13455 instead of just tweaking inferior_ptid.
13456 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13457 (exit_lwp): Pass target down to find_thread_ptid.
13458 (attach_proc_task_lwp_callback): Pass target down to
13459 add_thread/set_running/set_executing.
13460 (linux_nat_target::attach): Pass target down to
13461 thread_change_ptid.
13462 (get_detach_signal): Pass target down to find_thread_ptid.
13463 Consider last target status's target.
13464 (linux_resume_one_lwp_throw, resume_lwp)
13465 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13466 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13467 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13468 (linux_nat_target::async_wait_fd): New.
13469 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13470 target down.
13471 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13472 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13473 * linux-thread-db.c (struct thread_db_info::process_target): New
13474 field.
13475 (add_thread_db_info): Save target.
13476 (get_thread_db_info): New process_stratum_target parameter. Also
13477 match target.
13478 (delete_thread_db_info): New process_stratum_target parameter.
13479 Also match target.
13480 (thread_from_lwp): Adjust to pass down target.
13481 (thread_db_notice_clone): Pass down target.
13482 (check_thread_db_callback): Pass down target.
13483 (try_thread_db_load_1): Always push the thread_db target.
13484 (try_thread_db_load, record_thread): Pass target down.
13485 (thread_db_target::detach): Pass target down. Always unpush the
13486 thread_db target.
13487 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13488 target down. Always unpush the thread_db target.
13489 (find_new_threads_callback, thread_db_find_new_threads_2)
13490 (thread_db_target::update_thread_list): Pass target down.
13491 (thread_db_target::pid_to_str): Pass current inferior down.
13492 (thread_db_target::get_thread_local_address): Pass target down.
13493 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13494 target down.
13495 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13496 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13497 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13498 (procfs_init_inferior): Rename to ...
13499 (procfs_target::procfs_init_inferior): ... this and adjust.
13500 (procfs_target::create_inferior, procfs_notice_thread)
13501 (procfs_do_thread_registers): Adjust.
13502 * ppc-fbsd-tdep.c: Include "inferior.h".
13503 (ppcfbsd_get_thread_local_address): Pass down target.
13504 * proc-service.c (ps_xfer_memory): Switch current inferior and
13505 program space as well.
13506 (get_ps_regcache): Pass target down.
13507 * process-stratum-target.c
13508 (process_stratum_target::thread_address_space)
13509 (process_stratum_target::thread_architecture): Pass target down.
13510 * process-stratum-target.h
13511 (process_stratum_target::threads_executing): New field.
13512 (as_process_stratum_target): New.
13513 * ravenscar-thread.c
13514 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13515 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13516 down.
13517 * record-btrace.c (record_btrace_target::info_record): Adjust.
13518 (record_btrace_target::record_method)
13519 (record_btrace_target::record_is_replaying)
13520 (record_btrace_target::fetch_registers)
13521 (get_thread_current_frame_id, record_btrace_target::resume)
13522 (record_btrace_target::wait, record_btrace_target::stop): Pass
13523 target down.
13524 * record-full.c (record_full_wait_1): Switch to event thread.
13525 Pass target down.
13526 * regcache.c (regcache::regcache)
13527 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13528 process_stratum_target parameter and handle it.
13529 (current_thread_target): New global.
13530 (get_thread_regcache): Add process_stratum_target parameter and
13531 handle it. Switch inferior before calling target method.
13532 (get_thread_regcache): Pass target down.
13533 (get_thread_regcache_for_ptid): Pass target down.
13534 (registers_changed_ptid): Add process_stratum_target parameter and
13535 handle it.
13536 (registers_changed_thread, registers_changed): Pass target down.
13537 (test_get_thread_arch_aspace_regcache): New.
13538 (current_regcache_test): Define a couple local test_target_ops
13539 instances and use them for testing.
13540 (readwrite_regcache): Pass process_stratum_target parameter.
13541 (cooked_read_test, cooked_write_test): Pass mock_target down.
13542 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13543 (get_thread_arch_aspace_regcache): Add process_stratum_target
13544 parameter.
13545 (regcache::target): New method.
13546 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13547 (regcache::registers_changed_ptid): Add process_stratum_target
13548 parameter.
13549 (regcache::m_target): New field.
13550 (registers_changed_ptid): Add process_stratum_target parameter.
13551 * remote.c (remote_state::supports_vCont_probed): New field.
13552 (remote_target::async_wait_fd): New method.
13553 (remote_unpush_and_throw): Add remote_target parameter.
13554 (get_current_remote_target): Adjust.
13555 (remote_target::remote_add_inferior): Push target.
13556 (remote_target::remote_add_thread)
13557 (remote_target::remote_notice_new_inferior)
13558 (get_remote_thread_info): Pass target down.
13559 (remote_target::update_thread_list): Skip threads of inferiors
13560 bound to other targets. (remote_target::close): Don't discard
13561 inferiors. (remote_target::add_current_inferior_and_thread)
13562 (remote_target::process_initial_stop_replies)
13563 (remote_target::start_remote)
13564 (remote_target::remote_serial_quit_handler): Pass down target.
13565 (remote_target::remote_unpush_target): New remote_target
13566 parameter. Unpush the target from all inferiors.
13567 (remote_target::remote_unpush_and_throw): New remote_target
13568 parameter. Pass it down.
13569 (remote_target::open_1): Check whether the current inferior has
13570 execution instead of checking whether any inferior is live. Pass
13571 target down.
13572 (remote_target::remote_detach_1): Pass down target. Use
13573 remote_unpush_target.
13574 (extended_remote_target::attach): Pass down target.
13575 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13576 (remote_target::append_resumption): Pass down target.
13577 (remote_target::append_pending_thread_resumptions)
13578 (remote_target::remote_resume_with_hc, remote_target::resume)
13579 (remote_target::commit_resume): Pass down target.
13580 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13581 (remote_target::interrupt_query)
13582 (remote_target::remove_new_fork_children)
13583 (remote_target::check_pending_events_prevent_wildcard_vcont)
13584 (remote_target::remote_parse_stop_reply)
13585 (remote_target::process_stop_reply): Pass down target.
13586 (first_remote_resumed_thread): New remote_target parameter. Pass
13587 it down.
13588 (remote_target::wait_as): Pass down target.
13589 (unpush_and_perror): New remote_target parameter. Pass it down.
13590 (remote_target::readchar, remote_target::remote_serial_write)
13591 (remote_target::getpkt_or_notif_sane_1)
13592 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13593 down target.
13594 (remote_target::mourn_inferior): Pass down target. Use
13595 remote_unpush_target.
13596 (remote_target::core_of_thread)
13597 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13598 (remote_target::pid_to_exec_file)
13599 (remote_target::thread_handle_to_thread_info): Pass down target.
13600 (remote_target::async_wait_fd): New.
13601 * riscv-fbsd-tdep.c: Include "inferior.h".
13602 (riscv_fbsd_get_thread_local_address): Pass down target.
13603 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13604 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13605 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13606 Adjust.
13607 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13608 * solib-svr4.c (enable_break): Pass down target.
13609 * spu-multiarch.c (parse_spufs_run): Pass down target.
13610 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13611 * target-delegates.c: Regenerate.
13612 * target.c (g_target_stack): Delete.
13613 (current_top_target): Return the current inferior's top target.
13614 (target_has_execution_1): Refer to the passed-in inferior's top
13615 target.
13616 (target_supports_terminal_ours): Check whether the initial
13617 inferior was already created.
13618 (decref_target): New.
13619 (target_stack::push): Incref/decref the target.
13620 (push_target, push_target, unpush_target): Adjust.
13621 (target_stack::unpush): Defref target.
13622 (target_is_pushed): Return bool. Adjust to refer to the current
13623 inferior's target stack.
13624 (dispose_inferior): Delete, and inline parts ...
13625 (target_preopen): ... here. Only dispose of the current inferior.
13626 (target_detach): Hold strong target reference while detaching.
13627 Pass target down.
13628 (target_thread_name): Add assertion.
13629 (target_resume): Pass down target.
13630 (target_ops::beneath, find_target_at): Adjust to refer to the
13631 current inferior's target stack.
13632 (get_dummy_target): New.
13633 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13634 has a thread running.
13635 (initialize_targets): Rename to ...
13636 (_initialize_target): ... this.
13637 * target.h: Include "gdbsupport/refcounted-object.h".
13638 (struct target_ops): Inherit refcounted_object.
13639 (target_ops::shortname, target_ops::longname): Make const.
13640 (target_ops::async_wait_fd): New method.
13641 (decref_target): Declare.
13642 (struct target_ops_ref_policy): New.
13643 (target_ops_ref): New typedef.
13644 (get_dummy_target): Declare function.
13645 (target_is_pushed): Return bool.
13646 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13647 (all_matching_threads_iterator::all_matching_threads_iterator):
13648 Handle filter target.
13649 * thread-iter.h (struct all_matching_threads_iterator, struct
13650 all_matching_threads_range, class all_non_exited_threads_range):
13651 Filter by target too. Remove explicit.
13652 * thread.c (threads_executing): Delete.
13653 (inferior_thread): Pass down current inferior.
13654 (clear_thread_inferior_resources): Pass down thread pointer
13655 instead of ptid_t.
13656 (add_thread_silent, add_thread_with_info, add_thread): Add
13657 process_stratum_target parameter. Use it for thread and inferior
13658 searches.
13659 (is_current_thread): New.
13660 (thread_info::deletable): Use it.
13661 (find_thread_ptid, thread_count, in_thread_list)
13662 (thread_change_ptid, set_resumed, set_running): New
13663 process_stratum_target parameter. Pass it down.
13664 (set_executing): New process_stratum_target parameter. Pass it
13665 down. Adjust reference to 'threads_executing'.
13666 (threads_are_executing): New process_stratum_target parameter.
13667 Adjust reference to 'threads_executing'.
13668 (set_stop_requested, finish_thread_state): New
13669 process_stratum_target parameter. Pass it down.
13670 (switch_to_thread): Also match inferior.
13671 (switch_to_thread): New process_stratum_target parameter. Pass it
13672 down.
13673 (update_threads_executing): Reimplement.
13674 * top.c (quit_force): Pop targets from all inferior.
13675 (gdb_init): Don't call initialize_targets.
13676 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13677 Declare.
13678 (windows_add_thread, windows_delete_thread): Adjust.
13679 (get_windows_debug_event): Rename to ...
13680 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13681 * tracefile-tfile.c (tfile_target_open): Pass down target.
13682 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13683 Forward declare.
13684 (switch_to_thread): Add process_stratum_target parameter.
13685 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13686 parameter. Use it.
13687 (mi_on_resume): Pass target down.
13688 * nat/fork-inferior.c (startup_inferior): Add
13689 process_stratum_target parameter. Pass it down.
13690 * nat/fork-inferior.h (startup_inferior): Add
13691 process_stratum_target parameter.
13692 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13693
75c6c844
PA
136942020-01-10 Pedro Alves <palves@redhat.com>
13695
13696 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13697 directly. Instead find the first thread in the thread list and
13698 use switch_to_thread.
13699
78f2c40a
PA
137002020-01-10 Pedro Alves <palves@redhat.com>
13701
13702 * remote.c (remote_target::remote_add_inferior): Don't bind a
13703 process to the current inferior if the current inferior is already
13704 bound to a process.
13705
e7af6c70
TBA
137062020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13707 Pedro Alves <palves@redhat.com>
13708
13709 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13710 If no process is specified, return null_ptid instead of
13711 inferior_ptid.
13712 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13713 TARGET_WAITKIND_SIGNALLED with no pid.
13714
31ba933e
PA
137152020-01-10 Pedro Alves <palves@redhat.com>
13716
13717 * remote.c (first_remote_resumed_thread): New.
13718 (remote_target::wait_as): Use it as default event_ptid instead of
13719 inferior_ptid.
13720
735fc2ca
PA
137212020-01-10 Pedro Alves <palves@redhat.com>
13722
13723 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13724
c17e02e1
PA
137252020-01-10 Pedro Alves <palves@redhat.com>
13726
13727 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13728 not -1.
13729
ab1ddbcf
PA
137302020-01-10 Pedro Alves <palves@redhat.com>
13731
13732 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13733 ptid to get_last_target_status.
13734 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13735 ptid to get_last_target_status.
13736 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13737 get_last_target_status.
13738 (info_program_command): Don't pass a target_waitstatus to
13739 get_last_target_status.
13740 * infrun.c (init_wait_for_inferior): Use
13741 nullify_last_target_wait_ptid.
13742 (get_last_target_status): Handle nullptr arguments.
13743 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13744 (print_stop_event): Don't pass a ptid to get_last_target_status.
13745 (normal_stop): Don't pass a ptid to get_last_target_status.
13746 * infrun.h (get_last_target_status, set_last_target_status): Move
13747 comments here and update.
13748 (nullify_last_target_wait_ptid): Declare.
13749 * linux-fork.c (fork_load_infrun_state): Remove local extern
13750 declaration of nullify_last_target_wait_ptid.
13751 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13752 to get_last_target_status.
13753
f3f8ece4
PA
137542020-01-10 Pedro Alves <palves@redhat.com>
13755
13756 * gdbthread.h (scoped_restore_current_thread)
13757 <dont_restore, restore, m_dont_restore>: Declare.
13758 * thread.c (thread_alive): Add assertion. Return bool.
13759 (switch_to_thread_if_alive): New.
13760 (prune_threads): Switch inferior/thread.
13761 (print_thread_info_1): Switch thread before calling target methods.
13762 (scoped_restore_current_thread::restore): New, factored out from
13763 ...
13764 (scoped_restore_current_thread::~scoped_restore_current_thread):
13765 ... this.
13766 (scoped_restore_current_thread::scoped_restore_current_thread):
13767 Add assertion.
13768 (thread_apply_all_command, thread_select): Use
13769 switch_to_thread_if_alive.
13770 * infrun.c (proceed, restart_threads, handle_signal_stop)
13771 (switch_back_to_stepped_thread): Switch current thread before
13772 calling target methods.
13773
db2d40f7
PA
137742020-01-10 Pedro Alves <palves@redhat.com>
13775
13776 * inferior.c (switch_to_inferior_no_thread): New function,
13777 factored out from ...
13778 (inferior_command): ... here.
13779 * inferior.h (switch_to_inferior_no_thread): Declare.
13780 * mi/mi-main.c (run_one_inferior): Use
13781 switch_to_inferior_no_thread.
13782
bd420a2d
PA
137832020-01-10 Pedro Alves <palves@redhat.com>
13784
13785 * infcmd.c (kill_command): Remove dead code.
13786
ddf5db90
PA
137872020-01-10 Pedro Alves <palves@redhat.com>
13788
13789 * remote.c (remote_target::mourn_inferior): No longer check
13790 whether the target is running.
13791
5018ce90
PA
137922020-01-10 Pedro Alves <palves@redhat.com>
13793
13794 * corelow.c (core_target::has_execution): Change parameter type to
13795 inferior pointer.
13796 * inferior.c (number_of_live_inferiors): Use
13797 inferior::has_execution instead of target_has_execution_1.
13798 * inferior.h (inferior::has_execution): New.
13799 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13800 inferior::has_execution instead of target_has_execution_1.
13801 * process-stratum-target.c
13802 (process_stratum_target::has_execution): Change parameter type to
13803 inferior pointer. Check the inferior's PID instead of
13804 inferior_ptid.
13805 * process-stratum-target.h
13806 (process_stratum_target::has_execution): Change parameter type to
13807 inferior pointer.
13808 * record-full.c (record_full_core_target::has_execution): Change
13809 parameter type to inferior pointer.
13810 * target.c (target_has_execution_1): Change parameter type to
13811 inferior pointer.
13812 (target_has_execution_current): Adjust.
13813 * target.h (target_ops::has_execution): Change parameter type to
13814 inferior pointer.
13815 (target_has_execution_1): Change parameter type to inferior
13816 pointer. Change return type to bool.
13817 * tracefile.h (tracefile_target::has_execution): Change parameter
13818 type to inferior pointer.
13819
74375d18
PA
138202020-01-10 Pedro Alves <palves@redhat.com>
13821
13822 * exceptions.c (print_flush): Remove current_top_target() check.
13823
acdf84a6
PA
138242020-01-10 Pedro Alves <palves@redhat.com>
13825
13826 * remote.c (show_remote_exec_file): Show the current inferior's
13827 exec-file instead of the command variable's value.
13828
ec506636
PA
138292020-01-10 Pedro Alves <palves@redhat.com>
13830
13831 * record-full.c (record_full_resume_ptid): New global.
13832 (record_full_target::resume): Set it.
13833 (record_full_wait_1): Use record_full_resume_ptid instead of
13834 inferior_ptid.
13835
873657b9
PA
138362020-01-10 Pedro Alves <palves@redhat.com>
13837
13838 * gdbthread.h (scoped_restore_current_thread)
13839 <dont_restore, restore, m_dont_restore>: Declare.
13840 * thread.c (thread_alive): Add assertion. Return bool.
13841 (switch_to_thread_if_alive): New.
13842 (prune_threads): Switch inferior/thread.
13843 (print_thread_info_1): Switch thread before calling target methods.
13844 (scoped_restore_current_thread::restore): New, factored out from
13845 ...
13846 (scoped_restore_current_thread::~scoped_restore_current_thread):
13847 ... this.
13848 (scoped_restore_current_thread::scoped_restore_current_thread):
13849 Add assertion.
13850 (thread_apply_all_command, thread_select): Use
13851 switch_to_thread_if_alive.
13852
7f0ae84c
GB
138532020-01-10 George Barrett <bob@bob131.so>
13854
13855 * stap-probe.c (stap_modify_semaphore): Don't check for null
13856 semaphores.
13857 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13858 for null semaphores.
13859
f5a7c406
AB
138602020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13861
13862 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13863 all source windows, and maintain horizontal scroll status while
13864 doing so.
13865
9ae6bf64
TT
138662020-01-09 Tom Tromey <tom@tromey.com>
13867
13868 PR tui/18932:
13869 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13870 update_source_window, not print_source_lines.
13871
b2efe70c
AB
138722020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13873
13874 * tui/tui.c (tui_enable): Register tui hooks after calling
13875 tui_display_main.
13876
5f23a082
CB
138772020-01-09 Christian Biesinger <cbiesinger@google.com>
13878
13879 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13880
3061113b
SM
138812020-01-08 Simon Marchi <simon.marchi@efficios.com>
13882
13883 * thread.c (print_thread_info_1): Fix indentation.
13884
57d75002
CB
138852020-01-09 Christian Biesinger <cbiesinger@google.com>
13886
13887 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13888 unique_xmalloc_ptr outside the if to always free the demangled name.
13889
6a053cb1
TT
138902020-01-08 Tom Tromey <tromey@adacore.com>
13891
13892 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13893 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13894 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13895 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13896 Remove.
13897 (section_offsets): New typedef.
13898 * symtab.c (fixup_section, get_msymbol_address): Update.
13899 * symmisc.c (dump_msymbols): Update.
13900 * symfile.h (relative_addr_info_to_section_offsets)
13901 (symfile_map_offsets_to_segments): Update.
13902 * symfile.c (build_section_addr_info_from_objfile)
13903 (init_objfile_sect_indices): Update.
13904 (struct place_section_arg): Change type of "offsets".
13905 (place_section): Update.
13906 (relative_addr_info_to_section_offsets): Change type of
13907 "section_offsets". Remove "num_sections" parameter.
13908 (default_symfile_offsets, syms_from_objfile_1)
13909 (set_objfile_default_section_offset): Update.
13910 (reread_symbols): No need to preserve section offsets by hand.
13911 (symfile_map_offsets_to_segments): Change type of "offsets".
13912 * stap-probe.c (relocate_address): Update.
13913 * stabsread.h (process_one_symbol): Update.
13914 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13915 (solib_target_relocate_section_addresses): Update.
13916 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13917 Update.
13918 * solib-frv.c (frv_relocate_main_executable): Update.
13919 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13920 * solib-aix.c (solib_aix_get_section_offsets): Change return
13921 type.
13922 (solib_aix_solib_create_inferior_hook): Update.
13923 * remote.c (remote_target::get_offsets): Update.
13924 * psymtab.c (find_pc_sect_psymtab): Update.
13925 * psympriv.h (struct partial_symbol) <address, text_low,
13926 text_high>: Update.
13927 * objfiles.h (obj_section_offset): Update.
13928 (struct objfile) <section_offsets>: Change type.
13929 <num_sections>: Remove.
13930 (objfile_relocate): Update.
13931 * objfiles.c (entry_point_address_query): Update
13932 (relocate_one_symbol): Change type of "section_offsets".
13933 (objfile_relocate1, objfile_relocate1): Change type of
13934 "new_offsets".
13935 (objfile_rebase1): Update.
13936 * mipsread.c (mipscoff_symfile_read): Update.
13937 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13938 parameter.
13939 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13940 (parse_external, psymtab_to_symtab_1): Update.
13941 * machoread.c (macho_symfile_offsets): Update.
13942 * ia64-tdep.c (ia64_find_unwind_table): Update.
13943 * hppa-tdep.c (read_unwind_info): Update.
13944 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13945 * dwarf2read.c (create_addrmap_from_index)
13946 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13947 (process_psymtab_comp_unit_reader, add_partial_symbol)
13948 (add_partial_subprogram, process_full_comp_unit)
13949 (read_file_scope, read_func_scope, read_lexical_block_scope)
13950 (read_call_site_scope, dwarf2_rnglists_process)
13951 (dwarf2_ranges_process, dwarf2_ranges_read)
13952 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13953 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13954 Update.
13955 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13956 Update.
13957 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13958 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13959 (process_one_symbol): Change type of "section_offsets".
13960 * ctfread.c (get_objfile_text_range): Update.
13961 * coffread.c (coff_symtab_read, enter_linenos)
13962 (process_coff_symbol): Update.
13963 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13964 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13965
456e800a
TT
139662020-01-08 Tom Tromey <tromey@adacore.com>
13967
13968 * dwarf2read.c (parse_macro_definition): Use std::string.
13969 (parse_macro_definition): Likewise.
13970
6dfa2fc2
TT
139712020-01-08 Tom Tromey <tromey@adacore.com>
13972
13973 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13974 (ATTR_ALLOC_CHUNK): Remove.
13975
421d1616
TT
139762020-01-08 Tom Tromey <tromey@adacore.com>
13977
13978 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13979
43816ebc
TT
139802020-01-08 Tom Tromey <tromey@adacore.com>
13981
13982 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13983 (dwarf2_compute_name, open_dwo_file): Likewise.
13984 (process_enumeration_scope): Use std::vector.
13985 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13986 (partial_die_info::fixup, dwarf2_start_subfile)
13987 (guess_full_die_structure_name, dwarf2_name): Likewise.
13988 (determine_prefix): Update.
13989 (guess_full_die_structure_name): Make return type const.
13990 (partial_die_full_name): Return unique_xmalloc_ptr.
13991 (DW_FIELD_ALLOC_CHUNK): Remove.
13992
4212d509
TT
139932020-01-07 Tom Tromey <tromey@adacore.com>
13994
13995 PR build/24937:
13996 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13997
06a6207a
JT
139982020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13999
14000 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14001
153d79c4
AB
140022020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14003
14004 * stack.c (print_frame_info): Move disassemble_next_line code
14005 inside source_print block.
14006
66182876
EZ
140072020-01-06 Eli Zaretskii <eliz@gnu.org>
14008
14009 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14010 gdb/signals.h, as we are now using native signal symbols.
14011
cbfa8581
SV
140122020-01-06 Shahab Vahedi <shahab@synopsys.com>
14013
14014 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14015 overflow by an early check of content vs threshold.
aac66a4c 14016 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14017 Likewise.
14018
3f602821
EZ
140192020-01-06 Eli Zaretskii <eliz@gnu.org>
14020
14021 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14022
a08c904d
JT
140232020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14024
14025 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14026 export table if no section contains it's RVA.
14027
89a65580
EZ
140282020-01-06 Eli Zaretskii <eliz@gnu.org>
14029
14030 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14031
8b7fcda2
HD
140322020-01-06 Hannes Domani <ssbssa@yahoo.de>
14033
14034 * source.c (print_source_lines_base): Set last_line_listed.
14035
a61b4f69
SV
140362020-01-06 Shahab Vahedi <shahab@synopsys.com>
14037
14038 * tui/tui-disasm.c: Remove trailing spaces.
14039
559e7e50
EZ
140402020-01-06 Eli Zaretskii <eliz@gnu.org>
14041 Pedro Alves <palves@redhat.com>
14042
14043 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14044 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14045 (windows_gdb_signal_to_target): New function, uses the above
14046 enumeration to convert GDB internal signal codes to equivalent
14047 Windows codes.
14048 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14049 * windows-nat.c: Include "gdb_wait.h".
14050 (get_windows_debug_event): Extract the fatal exception from the
14051 exit status and convert to the equivalent Posix signal number.
14052 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14053 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14054 * gdbsupport/gdb_wait.c: New file, implements
14055 windows_status_to_termsig.
14056 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14057 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14058
f2302a34
AB
140592020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14060
14061 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14062 show_layout.
14063
6a5206eb
LM
140642020-01-05 Luis Machado <luis.machado@linaro.org>
14065
14066 * aarch64-linux-nat.c
14067 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14068 and bfd_mach_aarch64.
14069
6ec1d75e
PW
140702020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14071
14072 * ui-file.c (stdio_file::can_emit_style_escape)
14073 (tee_file::can_emit_style_escape): Ensure style is used also on
14074 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14075 to gdb_stdout.
14076 * main.c (set_gdb_data_directory): Use file style to output the
14077 warning that the given pathname is not a directory.
14078 * top.c (show_history_filename, gdb_safe_append_history)
14079 (show_gdb_datadir): Use file style.
14080
44f81a76
HD
140812020-01-03 Hannes Domani <ssbssa@yahoo.de>
14082
14083 * solib-target.c (struct lm_info_target):
14084 Change offsets to be a unique_xmalloc_ptr.
14085 (solib_target_relocate_section_addresses): Update.
14086
25057eb0
HD
140872020-01-03 Hannes Domani <ssbssa@yahoo.de>
14088
14089 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14090
6e2118f5
BE
140912020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14092
14093 * MAINTAINERS (Write After Approval): Add myself.
14094
8133c7dc
LM
140952020-01-02 Luis Machado <luis.machado@linaro.org>
14096
14097 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14098 Cell BE architecture.
14099 * target.h (struct target_ops) <thread_architecture>: Likewise.
14100
48189bec
HD
141012020-01-01 Hannes Domani <ssbssa@yahoo.de>
14102
14103 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14104
ead1063b
HD
141052020-01-01 Hannes Domani <ssbssa@yahoo.de>
14106
14107 * MAINTAINERS (Write After Approval): Add myself.
14108
e5d78223
JB
141092020-01-01 Joel Brobecker <brobecker@adacore.com>
14110
14111 * gdbarch.sh: Update copyright year range of generated files.
14112
b811d2c2
JB
141132020-01-01 Joel Brobecker <brobecker@adacore.com>
14114
14115 Update copyright year range in all GDB files.
14116
5f4def5c
JB
141172020-01-01 Joel Brobecker <brobecker@adacore.com>
14118
14119 * copyright.py: Convert to Python 3.
14120
51fd4002
JB
141212020-01-01 Joel Brobecker <brobecker@adacore.com>
14122
14123 * copyright.py: Adapt after move of gnulib directory from gdb
14124 directory to toplevel directory.
14125
5fb651f2
JB
141262020-01-01 Joel Brobecker <brobecker@adacore.com>
14127
14128 * copyright.py (main): Exit if run from the wrong directory.
14129
5dd8bf88
JB
141302020-01-01 Joel Brobecker <brobecker@adacore.com>
14131
14132 * top.c (print_gdb_version): Change copyright year to 2020.
14133
9f71dacb 141342020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14135
9f71dacb 14136 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14137
9f71dacb 14138For older changes see ChangeLog-2019.
c906108c
SS
14139\f
14140Local Variables:
14141mode: change-log
14142left-margin: 8
14143fill-column: 74
14144version-control: never
57da7796 14145coding: utf-8
c906108c 14146End:
This page took 3.772166 seconds and 4 git commands to generate.