8b898140a71e2a922bde955821099fdc17893b68
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-09-19 Tom Tromey <tom@tromey.com>
2
3 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
4 parameters.
5 (gdb_bfd_close_or_warn): Use foreach.
6
7 2020-09-19 Tom Tromey <tom@tromey.com>
8
9 * corelow.c (add_to_thread_list): Change parameters.
10 (core_target_open): Use foreach.
11
12 2020-09-19 Tom Tromey <tom@tromey.com>
13
14 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
15 existing function.
16
17 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
18
19 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
20 for arrays.
21
22 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
23
24 * eval.c: Remove 'f-lang.h' include.
25 (value_f90_subarray): Moved to f-lang.c.
26 (eval_call): Renamed to...
27 (evaluate_subexp_do_call): ...this, is no longer static, header
28 comment moved into header file.
29 (evaluate_funcall): Update call to eval_call.
30 (skip_undetermined_arglist): Moved to f-lang.c.
31 (fortran_value_subarray): Likewise.
32 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
33 moved to evaluate_subexp_f.
34 (calc_f77_array_dims): Moved to f-lang.c
35 * expprint.c (print_subexp_funcall): New function.
36 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
37 moved to print_subexp_f, OP_FUNCALL uses new function.
38 (dump_subexp_body_funcall): New function.
39 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
40 moved to dump_subexp_f, OP_FUNCALL uses new function.
41 * expression.h (evaluate_subexp_do_call): Declare.
42 * f-lang.c (value_f90_subarray): Moved from eval.c.
43 (skip_undetermined_arglist): Likewise.
44 (calc_f77_array_dims): Likewise.
45 (fortran_value_subarray): Likewise.
46 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
47 (operator_length_f): Likewise.
48 (print_subexp_f): Likewise.
49 (dump_subexp_body_f): Likewise.
50 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
51 declaration of this operation to here.
52 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
53 support moved to operator_length_f.
54 * parser-defs.h (dump_subexp_body_funcall): Declare.
55 (print_subexp_funcall): Declare.
56 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
57 fortran-operator.def.
58
59 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
60
61 * eval.c (fortran_value_subarray): New function, content is taken
62 from...
63 (evaluate_subexp_standard): ...here, in two places. Now arrays
64 and strings both call the new function.
65 (calc_f77_array_dims): Add header comment, handle strings.
66
67 2020-09-18 Victor Collod <vcollod@nvidia.com>
68
69 PR gdb/26635
70 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
71 (i386_analyze_prologue): Call i386_skip_endbr.
72
73 2020-09-18 Tom Tromey <tromey@adacore.com>
74
75 * windows-nat.c (struct windows_nat_target) <wait>: Update.
76 (windows_nat_target::wait): Update.
77 * target/wait.h (enum target_wait_flag): New. Use
78 DEF_ENUM_FLAGS_TYPE.
79 * target/target.h (target_wait): Change type of options.
80 * target.h (target_options_to_string, default_target_wait):
81 Update.
82 (struct target_ops) <wait>: Change type of options.
83 * target.c (target_wait, default_target_wait, do_option): Change
84 type of "options".
85 (target_options_to_string): Likewise.
86 * target-delegates.c: Rebuild.
87 * target-debug.h (target_debug_print_target_wait_flags): Rename
88 from target_debug_print_options.
89 * sol-thread.c (class sol_thread_target) <wait>: Update.
90 (sol_thread_target::wait): Update.
91 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
92 (rs6000_nat_target::wait): Update.
93 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
94 Update.
95 (remote_target::wait_ns, remote_target::wait_as): Change type of
96 "options".
97 (remote_target::wait): Update.
98 * remote-sim.c (struct gdbsim_target) <wait>: Update.
99 (gdbsim_target::wait): Update.
100 * record-full.c (class record_full_base_target) <wait>: Update.
101 (record_full_wait_1): Change type of "options".
102 (record_full_base_target::wait): Update.
103 * record-btrace.c (class record_btrace_target) <wait>: Update.
104 (record_btrace_target::wait): Update.
105 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
106 Update.
107 (ravenscar_thread_target::wait): Update.
108 * procfs.c (class procfs_target) <wait>: Update.
109 (procfs_target::wait): Update.
110 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
111 * obsd-nat.c (obsd_nat_target::wait): Update.
112 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
113 (nto_procfs_target::wait): Update.
114 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
115 * nbsd-nat.c (nbsd_wait): Change type of "options".
116 (nbsd_nat_target::wait): Update.
117 * linux-thread-db.c (class thread_db_target) <wait>: Update.
118 (thread_db_target::wait): Update.
119 * linux-nat.h (class linux_nat_target) <wait>: Update.
120 * linux-nat.c (linux_nat_target::wait): Update.
121 (linux_nat_wait_1): Update.
122 * infrun.c (do_target_wait_1, do_target_wait): Change type of
123 "options".
124 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
125 * inf-ptrace.c (inf_ptrace_target::wait): Update.
126 * go32-nat.c (struct go32_nat_target) <wait>: Update.
127 (go32_nat_target::wait): Update.
128 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
129 * gnu-nat.c (gnu_nat_target::wait): Update.
130 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
131 * fbsd-nat.c (fbsd_nat_target::wait): Update.
132 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
133 * darwin-nat.c (darwin_nat_target::wait): Update.
134 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
135 (bsd_uthread_target::wait): Update.
136 * aix-thread.c (class aix_thread_target) <wait>: Update.
137 (aix_thread_target::wait): Update.
138
139 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
140
141 * compile/compile-object-run.c (create_copied_type_recursive): New
142 function.
143 (compile_object_run): Use new function.
144
145 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
146
147 * NEWS: Mention x86_64 Cygwin core file support.
148
149 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
150
151 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
152 (core_process_module_section): Handle NOTE_INFO_MODULE64.
153
154 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
155
156 * windows-tdep.h: Add prototypes.
157 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
158 (i386_windows_core_pid_to_str): Move and rename ...
159 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
160 (windows_core_pid_to_str): ... and here.
161 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
162
163 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
164 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
165 (amd64_windows_init_abi_common): ... and register.
166
167 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
168
169 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
170 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
171
172 2020-09-18 Pedro Alves <pedro@palves.net>
173
174 PR gdb/26631
175 * thread.c (thread_find_command): Switch inferior before calling
176 target methods.
177
178 2020-09-17 Tom Tromey <tromey@adacore.com>
179
180 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
181 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
182 (tdesc_arch_data_up): New typedef.
183 (tdesc_use_registers, tdesc_data_alloc): Update.
184 (tdesc_data_cleanup): Don't declare.
185 * target-descriptions.c (tdesc_data_alloc): Return a
186 tdesc_arch_data_up.
187 (tdesc_arch_data_deleter::operator()): Rename from
188 tdesc_data_cleanup. Change argument type.
189 (tdesc_use_registers): Change early_data to an rvalue reference.
190 (tdesc_use_registers): Don't use delete.
191 * sparc-tdep.c (sparc32_gdbarch_init): Update.
192 * s390-tdep.c (s390_gdbarch_init): Update.
193 * rx-tdep.c (rx_gdbarch_init): Update.
194 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
195 * riscv-tdep.c (riscv_gdbarch_init): Update.
196 * or1k-tdep.c (or1k_gdbarch_init): Update.
197 * nios2-tdep.c (nios2_gdbarch_init): Update.
198 * nds32-tdep.c (nds32_gdbarch_init): Update.
199 * mips-tdep.c (mips_gdbarch_init): Update.
200 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
201 * m68k-tdep.c (m68k_gdbarch_init): Update.
202 * i386-tdep.c (i386_gdbarch_init): Update.
203 * arm-tdep.c (arm_gdbarch_init): Update.
204 * arc-tdep.c (arc_tdesc_init): Update.
205 (arc_gdbarch_init): Update.
206 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
207
208 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
209
210 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
211 for WOW64 processes.
212
213 2020-09-17 Tom Tromey <tom@tromey.com>
214
215 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
216
217 2020-09-17 Tom Tromey <tom@tromey.com>
218
219 * value.c (preserve_values): Update.
220 * python/py-type.c (save_objfile_types): Update.
221 * guile/scm-type.c (save_objfile_types): Update.
222 * gdbtypes.h (create_copied_types_hash): Return htab_up.
223 * gdbtypes.c (create_copied_types_hash): Return htab_up.
224 * compile/compile-object-run.c (compile_object_run): Update.
225
226 2020-09-17 Tom Tromey <tom@tromey.com>
227
228 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
229 Remove.
230 <m_table>: Now htab_up.
231 * typeprint.c (typedef_hash_table::recursively_update)
232 (typedef_hash_table::add_template_parameters)
233 (typedef_hash_table::typedef_hash_table): Update.
234 (typedef_hash_table::~typedef_hash_table): Remove.
235 (typedef_hash_table::typedef_hash_table)
236 (typedef_hash_table::find_global_typedef)
237 (typedef_hash_table::find_typedef): Update.
238
239 2020-09-17 Tom Tromey <tom@tromey.com>
240
241 * target-descriptions.c (tdesc_use_registers): Use htab_up.
242
243 2020-09-17 Tom Tromey <tom@tromey.com>
244
245 * linespec.c (class decode_compound_collector)
246 <~decode_compound_collector>: Remove.
247 <m_unique_syms>: Now htab_up.
248 (decode_compound_collector::operator ()): Update.
249 (class symtab_collector) <~symtab_collector>: Remove.
250 <m_symtab_table>: Now htab_up.
251 (symtab_collector::operator ()): Update.
252
253 2020-09-17 Tom Tromey <tom@tromey.com>
254
255 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
256 (filename_seen_cache::clear): Update.
257 (~filename_seen_cache): Remove.
258 (filename_seen_cache::seen): Update.
259 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
260 htab_up.
261 <~filename_seen_cache>: Remove.
262 <traverse>: Update.
263
264 2020-09-17 Tom Tromey <tom@tromey.com>
265
266 * completer.c (completion_tracker::discard_completions)
267 (completion_tracker::~completion_tracker)
268 (completion_tracker::maybe_add_completion)
269 (completion_tracker::remove_completion)
270 (completion_tracker::recompute_lowest_common_denominator)
271 (completion_tracker::build_completion_result): Update.
272 * completer.h (class completion_tracker) <have_completions>:
273 Update.
274 <m_entries_hash>: Now htab_up.
275
276 2020-09-17 Tom Tromey <tom@tromey.com>
277
278 * breakpoint.c (ambiguous_names_p): Use htab_up.
279
280 2020-09-17 Tom Tromey <tom@tromey.com>
281
282 * auto-load.c (struct auto_load_pspace_info)
283 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
284 <loaded_script_files, loaded_script_texts>: Change type to
285 htab_up.
286 (~auto_load_pspace_info) Remove.
287 (init_loaded_scripts_info, maybe_add_script_file)
288 (maybe_add_script_text, auto_load_info_scripts): Update.
289
290 2020-09-17 Tom Tromey <tromey@adacore.com>
291
292 * c-exp.y (name_obstack): Now static.
293
294 2020-09-17 Chungyi Chi <demonic@csie.io>
295
296 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
297
298 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
299
300 * breakpoint.h (init_catchpoint): Change int parameter to bool.
301 (add_solib_catchpoint): Likewise.
302 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
303 to bool.
304 (add_solib_catchpoint): Change int parameter/variable to bool.
305 (catch_load_or_unload): Likewise.
306 (init_catchpoint): Likewise.
307 (create_fork_vfork_event_catchpoint): Likewise.
308 (catch_fork_command_1): Likewise.
309 (catch_exec_command_1): Likewise.
310
311 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
312
313 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
314 Change instance_flags to m_instance_flags.
315
316 2020-09-16 Tom Tromey <tromey@adacore.com>
317
318 PR gdb/26598:
319 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
320
321 2020-09-16 John Baldwin <jhb@FreeBSD.org>
322
323 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
324 PL_FLAG_EXEC.
325 (fbsd_nat_target::insert_exec_catchpoint)
326 (fbsd_nat_target::remove_exec_catchpoint): Always define.
327 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
328 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
329
330 2020-09-16 John Baldwin <jhb@FreeBSD.org>
331
332 * configure.ac: Remove check for kinfo_getvmmap().
333 * configure, config.in: Regenerate.
334 * fbsd-nat.c (fbsd_read_mapping): Remove
335 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
336 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
337 kinfo_get_vmmap() are always present.
338
339 2020-09-16 John Baldwin <jhb@FreeBSD.org>
340
341 * fbsd-nat.c: Always include support for
342 TARGET_OBJECT_SIGNAL_INFO.
343
344 2020-09-16 John Baldwin <jhb@FreeBSD.org>
345
346 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
347 sysctl and remove procfs fallback.
348
349 2020-09-16 John Baldwin <jhb@FreeBSD.org>
350
351 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
352 * fbsd-nat.h: Likewise.
353
354 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
355
356 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
357 argument.
358
359 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
360
361 * ada-lang.c (ada_language_data): Delete.
362 (ada_language): Remove references to ada_language_data.
363 * c-lang.c (c_language_data): Delete.
364 (c_language): Remove references to c_language_data.
365 (cplus_language_data): Delete.
366 (cplus_language): Remove references to cplus_language_data.
367 (asm_language_data): Delete.
368 (asm_language): Remove references to asm_language_data.
369 (minimal_language_data): Delete.
370 (minimal_language): Remove references to minimal_language_data.
371 * d-lang.c (d_language_data): Delete.
372 (d_language): Remove references to d_language_data.
373 * f-lang.c (f_language_data): Delete.
374 (f_language): Remove references to f_language_data.
375 * go-lang.c (go_language_data): Delete.
376 (go_language): Remove references to go_language_data.
377 * language.c (unknown_language_data): Delete.
378 (unknown_language): Remove references to unknown_language_data.
379 (auto_language_data): Delete.
380 (auto_language): Remove references to auto_language_data.
381 * language.h (language_data): Delete struct.
382 (language_defn): No longer inherit from language_data.
383 * m2-lang.c (m2_language_data): Delete.
384 (m2_language): Remove references to m2_language_data.
385 * objc-lang.c (objc_language_data): Delete.
386 (objc_language): Remove references to objc_language_data.
387 * opencl-lang.c (opencl_language_data): Delete.
388 (opencl_language): Remove references to opencl_language_data.
389 * p-lang.c (pascal_language_data): Delete.
390 (pascal_language): Remove references to pascal_language_data.
391 * rust-lang.c (rust_language_data): Delete.
392 (rust_language): Remove references to rust_language_data.
393
394 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
395
396 * ada-lang.c (ada_language_data): Remove la_op_print_tab
397 initializer.
398 (ada_language::opcode_print_table): New member function.
399 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
400 (c_language::opcode_print_table): New member function.
401 (cplus_language_data): Remove la_op_print_tab initializer.
402 (cplus_language::opcode_print_table): New member function.
403 (asm_language_data): Remove la_op_print_tab initializer.
404 (asm_language::opcode_print_table): New member function.
405 (minimal_language_data): Remove la_op_print_tab initializer.
406 (minimal_language::opcode_print_table): New member function.
407 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
408 (d_language::opcode_print_table): New member function.
409 * expprint.c (print_subexp_standard): Update call to
410 opcode_print_table.
411 (op_string): Likewise.
412 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
413 (f_language::opcode_print_table): New member function.
414 * go-lang.c (go_language_data): Remove la_op_print_tab
415 initializer.
416 (go_language::opcode_print_table): New member function.
417 * language.c (unknown_language_data): Remove la_op_print_tab
418 initializer.
419 (unknown_language::opcode_print_table): New member function.
420 (auto_language_data): Remove la_op_print_tab initializer.
421 (auto_language::opcode_print_table): New member function.
422 * language.h (language_data): Remove la_op_print_tab field.
423 (language_defn::opcode_print_table): Declare new member function.
424 * m2-lang.c (m2_language_data): Remove la_op_print_tab
425 initializer.
426 (m2_language::opcode_print_table): New member function.
427 * objc-lang.c (objc_language_data): Remove la_op_print_tab
428 initializer.
429 (objc_language::opcode_print_table): New member function.
430 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
431 initializer.
432 (opencl_language::opcode_print_table): New member function.
433 * p-lang.c (pascal_language_data): Remove la_op_print_tab
434 initializer.
435 (pascal_language::opcode_print_table): New member function.
436 * rust-lang.c (rust_language_data): Remove la_op_print_tab
437 initializer.
438 (rust_language::opcode_print_table): New member function.
439
440 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
441
442 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
443 (ada_language::expression_ops): New member function.
444 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
445 (c_language::expression_ops): New member function.
446 (cplus_language_data): Remove la_exp_desc initializer.
447 (cplus_language::expression_ops): New member function.
448 (asm_language_data): Remove la_exp_desc initializer.
449 (asm_language::expression_ops): New member function.
450 (minimal_language_data): Remove la_exp_desc initializer.
451 (minimal_language::expression_ops): New member function.
452 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
453 (d_language::expression_ops): New member function.
454 * eval.c (evaluate_subexp): Update call to expression_ops.
455 * expprint.c (print_subexp): Likewise.
456 (op_name): Likewise.
457 (dump_subexp_body): Likewise.
458 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
459 (f_language::expression_ops): New member function.
460 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
461 (go_language::expression_ops): New member function.
462 * language.c (language_defn::expression_ops): New function.
463 (unknown_language_data): Remove la_exp_desc initializer.
464 (auto_language_data): Likewise.
465 * language.h (language_data): Remove la_exp_desc field.
466 (language_defn::expression_ops): Declare new member function.
467 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
468 (m2_language::expression_ops): New member function.
469 * objc-lang.c (objc_language_data): Remove la_exp_desc
470 initializer.
471 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
472 initializer.
473 (opencl_language::expression_ops): New member function.
474 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
475 * parse.c (operator_length): Update call to expression_ops.
476 (exp_iterate): Likewise.
477 * rust-lang.c (rust_language_data): Remove la_exp_desc
478 initializer.
479 (ruse_language::expression_ops): New member function.
480
481 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
482
483 * ada-lang.c (ada_language_data): Remove la_varobj_ops
484 initializer.
485 (ada_language::varobj_ops): New member function.
486 * c-lang.c (c_language_data): Remove la_varobj_ops
487 initializer.
488 (cplus_language_data): Likewise.
489 (cplus_language::varobj_ops): New member function.
490 (asm_language_data): Remove la_varobj_ops initializer.
491 (minimal_language_data): Likewise.
492 * d-lang.c (d_language_data): Likewise.
493 * f-lang.c (f_language_data): Likewise.
494 * go-lang.c (go_language_data): Likewise.
495 * language.c (language_defn::varobj_ops): New function.
496 (unknown_language_data): Remove la_varobj_ops
497 initializer.
498 (auto_language_data): Likewise.
499 * language.h (language_data): Remove la_varobj_ops field.
500 (language_defn::varobj_ops): Declare new member function.
501 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
502 * objc-lang.c (objc_language_data): Likewise.
503 * opencl-lang.c (opencl_language_data): Likewise.
504 * p-lang.c (pascal_language_data): Likewise.
505 * rust-lang.c (rust_language_data): Likewise.
506 * varobj.c (varobj_create): Update call to varobj_ops.
507 * varobj.h (default_varobj_ops): Delete define.
508
509 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
510
511 * ada-lang.c (ada_language_data): Remove la_macro_expansion
512 initializer.
513 * c-lang.c (c_language_data): Likewise.
514 (c_language::macro_expansion): New member function.
515 (cplus_language_data): Likewise.
516 (cplus_language::macro_expansion): New member function.
517 (asm_language_data): Likewise.
518 (asm_language::macro_expansion): New member function.
519 (minimal_language_data): Likewise.
520 (minimal_language::macro_expansion): New member function.
521 * d-lang.c (d_language_data): Remove la_macro_expansion
522 initializer.
523 * f-lang.c (f_language_data): Likewise.
524 * go-lang.c (go_language_data): Likewise.
525 * language.c (unknown_language_data): Likewise.
526 (auto_language_data): Likewise.
527 * language.h (language_data): Remove la_macro_expansion field.
528 (language_defn::macro_expansion): New member function.
529 * m2-lang.c (m2_language_data): Remove la_macro_expansion
530 initializer.
531 * objc-lang.c (objc_language_data): Likewise.
532 (objc_language::macro_expansion): New member function.
533 * opencl-lang.c (opencl_language_data): Likewise.
534 (opencl_language::macro_expansion): New member function.
535 * p-lang.c (pascal_language_data): Remove la_macro_expansion
536 initializer.
537 * rust-lang.c (rust_language_data): Likewise.
538 * symtab.c (default_collect_symbol_completion_matches_break_on):
539 Update call to macro_expansion.
540
541 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
542
543 * ada-lang.c (ada_language_data): Remove la_array_ordering
544 initializer.
545 * c-lang.c (c_language_data): Likewise.
546 (cplus_language_data): Likewise.
547 (asm_language_data): Likewise.
548 (minimal_language_data): Likewise.
549 * d-lang.c (d_language_data): Likewise.
550 * dwarf2/read.c (read_array_order): Update for call to
551 array_ordering.
552 * f-lang.c (f_language_data): Remove la_array_ordering
553 initializer.
554 (f_language::array_ordering): New member function.
555 * go-lang.c (go_language_data): Remove la_array_ordering
556 initializer.
557 * language.c (unknown_language_data): Likewise.
558 (auto_language_data): Likewise.
559 * language.h (language_data): Delete la_array_ordering field.
560 (language_defn::array_ordering): New member function.
561 * m2-lang.c (m2_language_data): Remove la_array_ordering
562 initializer.
563 * objc-lang.c (objc_language_data): Likewise.
564 * opencl-lang.c (opencl_language_data): Likewise.
565 * p-lang.c (pascal_language_data): Likewise.
566 * rust-lang.c (rust_language_data): Likewise.
567
568 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
569
570 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
571 initializer.
572 * c-lang.c (c_language_data): Likewise.
573 (cplus_language_data): Likewise.
574 (asm_language_data): Likewise.
575 (minimal_language_data): Likewise.
576 * d-lang.c (d_language_data): Likewise.
577 * f-lang.c (f_language_data): Likewise.
578 (f_language::case_sensitivity): New member function.
579 * go-lang.c (go_language_data): Remove la_case_sensitivity
580 initializer.
581 * language.c (enum case_mode): Moved here from language.h.
582 (case_mode): Make static.
583 (show_case_command): Update for case_sensitivity being a method.
584 (set_case_command): Likewise.
585 (set_range_case): Likewise.
586 (unknown_language_data): Remove la_case_sensitivity initializer.
587 (auto_language_data): Likewise.
588 * language.h (case_mode): Delete, move enum declaration to
589 language.c.
590 (language_data): Delete la_case_sensitivity field.
591 (language_defn::case_sensitivity): New member function.
592 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
593 initializer.
594 * objc-lang.c (objc_language_data): Likewise.
595 * opencl-lang.c (opencl_language_data): Likewise.
596 * p-lang.c (pascal_language_data): Likewise.
597 * rust-lang.c (rust_language_data): Likewise.
598
599 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
600
601 * ada-lang.c (ada_language_data): Remove la_range_check
602 initializer.
603 * c-lang.c (c_language_data): Likewise.
604 (cplus_language_data): Likewise.
605 (asm_language_data): Likewise.
606 (minimal_language_data): Likewise.
607 * d-lang.c (d_language_data): Likewise.
608 * f-lang.c (f_language_data): Likewise.
609 (f_language::range_checking_on_by_default): New member function.
610 * go-lang.c (go_language_data): Remove la_range_check initializer.
611 * language.c (enum range_mode): Moved here from language.h.
612 (range_mode): Made static.
613 (show_range_command): Update to use
614 range_checking_on_by_default.
615 (set_range_command): Likewise.
616 (set_range_case): Likewise.
617 (unknown_language_data): Remove la_range_check initializer.
618 (auto_language_data): Likewise.
619 * language.h (range_mode): Delete. Enum definition moved to
620 language.c.
621 (language_data): Remove la_range_check field.
622 (language_defn::range_checking_on_by_default): New member
623 function.
624 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
625 (m2_language::range_checking_on_by_default): New member function.
626 * objc-lang.c (objc_language_data): Remove la_range_check
627 initializer.
628 * opencl-lang.c (opencl_language_data): Likewise.
629 * p-lang.c (pascal_language_data): Likewise.
630 (pascal_language::range_checking_on_by_default): New member
631 function.
632 * rust-lang.c (rust_language_data): Remove la_range_check
633 initializer.
634 (rust_language::range_checking_on_by_default): New member
635 function.
636
637 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
638
639 * dwarf2/read.c (dwarf2_physname): Remove special case for
640 language_go.
641 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
642 member function.
643
644 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
645
646 * ada-lang.c (ada_language_data): Remove
647 la_store_sym_names_in_linkage_form_p initializer.
648 (ada_language::store_sym_names_in_linkage_form_p): New member
649 function.
650 * c-lang.c (c_language_data): Remove
651 la_store_sym_names_in_linkage_form_p initializer.
652 (c_language::store_sym_names_in_linkage_form_p): New member
653 function.
654 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
655 initializer.
656 (asm_language_data): Likewise.
657 (asm_language::store_sym_names_in_linkage_form_p): New member
658 function.
659 (minimal_language_data): Remove
660 la_store_sym_names_in_linkage_form_p initializer.
661 (minimal_language::store_sym_names_in_linkage_form_p): New member
662 function.
663 * d-lang.c (d_language_data): Remove
664 la_store_sym_names_in_linkage_form_p initializer.
665 * dwarf2/read.c (dwarf2_physname): Update call to
666 store_sym_names_in_linkage_form_p.
667 * f-lang.c (f_language_data): Remove
668 la_store_sym_names_in_linkage_form_p initializer.
669 * go-lang.c (go_language_data): Remove
670 la_store_sym_names_in_linkage_form_p initializer.
671 * language.c (unknown_language_data): Remove
672 la_store_sym_names_in_linkage_form_p initializer.
673 (unknown_language::store_sym_names_in_linkage_form_p): New member
674 function.
675 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
676 initializer.
677 (auto_language::store_sym_names_in_linkage_form_p): New member
678 function.
679 * language.h (language_data): Remove
680 la_store_sym_names_in_linkage_form_p member variable.
681 (language_defn::store_sym_names_in_linkage_form_p): New member
682 function.
683 * m2-lang.c (m2_language_data): Remove
684 la_store_sym_names_in_linkage_form_p initializer.
685 * objc-lang.c (objc_language_data): Likewise.
686 * opencl-lang.c (opencl_language_data): Likewise.
687 * p-lang.c (pascal_language_data): Likewise.
688 * rust-lang.c (rust_language_data): Likewise.
689
690 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
691
692 * ada-lang.c (ada_language_data): Remove string_lower_bound
693 initializer.
694 * c-lang.c (c_language_data): Likewise.
695 (cplus_language_data): Likewise.
696 (asm_language_data): Likewise.
697 (minimal_language_data): Likewise.
698 * d-lang.c (d_language_data): Likewise.
699 * f-lang.c (f_language_data): Likewise.
700 * go-lang.c (go_language_data): Likewise.
701 * language.c (unknown_language_data): Likewise.
702 (auto_language_data): Likewise.
703 * language.h (language_data): Remove string_lower_bound field.
704 (language_defn::string_lower_bound): New member function.
705 * m2-lang.c (m2_language_data): Remove string_lower_bound
706 initializer.
707 (m2_language::string_lower_bound): New member function.
708 * objc-lang.c (objc_language_data): Remove string_lower_bound
709 initializer.
710 * opencl-lang.c (opencl_language_data): Likewise.
711 * p-lang.c (pascal_language_data): Likewise.
712 * rust-lang.c (rust_language_data): Likewise.
713 * valops.c (value_cstring): Update call to string_lower_bound.
714 (value_string): Likewise.
715 * value.c (allocate_repeated_value): Likewise.
716
717 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
718
719 * valops.c (value_repeat): Fix incorrect argument name in comment.
720
721 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
722
723 * ada-lang.c (ada_language_data): Remove c_style_arrays
724 initializer.
725 (ada_language::c_style_arrays_p): New member fuction.
726 * c-lang.c (c_language_data): Remove c_style_arrays
727 initializer.
728 (cplus_language_data): Likewise.
729 (asm_language_data): Likewise.
730 (minimal_language_data): Likewise.
731 * d-lang.c (d_language_data): Likewise.
732 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
733 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
734 (f_language::c_style_arrays_p): New member function.
735 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
736 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
737 * language.c (unknown_language_data): Remove c_style_arrays
738 initializer.
739 (auto_language_data): Likewise.
740 * language.h (language_data): Remove c_style_arrays field.
741 (language_defn::c_style_arrays_p): New member function.
742 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
743 (m2_language::c_style_arrays_p): New member function.
744 * objc-lang.c (objc_language_data): Remove c_style_arrays
745 initializer.
746 * opencl-lang.c (opencl_language_data): Likewise.
747 * p-lang.c (pascal_language_data): Likewise.
748 * rust-lang.c (rust_language_data): Likewise.
749 * valarith.c (value_subscript): Update call to c_style_arrays_p,
750 and update local variable to a bool.
751 * valops.c (value_cast): Update call to c_style_arrays_p.
752 (value_array): Likewise.
753 * value.c (coerce_array): Likewise.
754
755 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
756
757 * ada-lang.c (ada_language_data): Remove la_language initializer.
758 * c-lang.c (c_language_data): Likewise.
759 (cplus_language_data): Likewise.
760 (asm_language_data): Likewise.
761 (minimal_language_data): Likewise.
762 * d-lang.c (d_language_data): Likewise.
763 * f-lang.c (f_language_data): Likewise.
764 * go-lang.c (go_language_data): Likewise.
765 * language.c (unknown_language_data): Likewise.
766 (auto_language_data): Likewise.
767 * language.h (language_data): Remove la_language field.
768 (language_defn::language_defn): Initialise la_language field.
769 (language_defn::la_language): New member variable.
770 * m2-lang.c (m2_language_data): Remove la_language field.
771 * objc-lang.c (objc_language_data): Likewise.
772 * opencl-lang.c (opencl_language_data): Likewise.
773 * p-lang.c (pascal_language_data): Likewise.
774 * rust-lang.c (rust_language_data): Likewise.
775
776 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
777
778 * ada-lang.c (ada_extensions): Delete, moved into
779 ada_language::filename_extensions.
780 (ada_language_data): Remove la_filename_extensions initializer.
781 (ada_language::filename_extensions): New member function.
782 * c-lang.c (c_extensions): Delete, moved into
783 c_language::filename_extensions.
784 (c_language_data): Remove la_filename_extensions initializer.
785 (c_language::filename_extensions): New member function.
786 (cplus_extensions): Delete, moved into
787 cplus_language::filename_extensions.
788 (cplus_language_data): Remove la_filename_extensions initializer.
789 (cplus_language::filename_extensions): New member function.
790 (asm_extensions): Delete, moved into
791 asm_language::filename_extensions.
792 (asm_language_data): Remove la_filename_extensions initializer.
793 (asm_language::filename_extensions): New member function.
794 (minimal_language_data): Remove la_filename_extensions
795 initializer.
796 * d-lang.c (d_extensions): Delete, moved into
797 d_language::filename_extensions.
798 (d_language_data): Remove la_filename_extensions initializer.
799 (d_language::filename_extensions): New member function.
800 * f-lang.c (f_extensions): Delete, moved into
801 f_language::filename_extensions.
802 (f_language_data): Remove la_filename_extensions initializer.
803 (f_language::filename_extensions): New member function.
804 * go-lang.c (go_language_data): Remove la_filename_extensions
805 initializer.
806 * language.c (add_set_language_command): Update now that
807 filename_extensions returns a vector.
808 (unknown_language_data): Remove la_filename_extensions
809 initializer.
810 (auto_language_data): Likewise.
811 * language.h (language_data): Remove la_filename_extensions field.
812 (language_defn::filename_extensions): New member function.
813 * m2-lang.c (m2_language_data): Remove la_filename_extensions
814 initializer.
815 * objc-lang.c (objc_extensions): Delete, moved into
816 objc_language::filename_extensions.
817 (objc_language_data): Remove la_filename_extensions initializer.
818 (objc_language::filename_extensions): New member function.
819 * opencl-lang.c (opencl_language_data): Remove
820 la_filename_extensions initializer.
821 * p-lang.c (pascal_extensions): Delete, moved into
822 pascal_language::filename_extensions.
823 (pascal_language_data): Remove la_filename_extensions initializer.
824 (pascal_language::filename_extensions): New member function.
825 * rust-lang.c (rust_extensions): Delete, moved into
826 rust_language::filename_extensions.
827 (rust_language_data): Remove la_filename_extensions initializer.
828 (rust_language::filename_extensions): New member function.
829 * symfile.c (add_filename_language): Add new assert.
830
831 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
832
833 * ada-lang.c (ada_language_data): Remove la_name and
834 la_natural_name initializers.
835 (ada_language::name): New member function.
836 (ada_language::natural_name): New member function.
837 * c-lang.c (c_language_data): Remove la_name and
838 la_natural_name initializers.
839 (c_language::name): New member function.
840 (c_language::natural_name): New member function.
841 (cplus_language_data): Remove la_name and
842 la_natural_name initializers.
843 (cplus_language::name): New member function.
844 (cplus_language::natural_name): New member function.
845 (asm_language_data): Remove la_name and
846 la_natural_name initializers.
847 (asm_language::name): New member function.
848 (asm_language::natural_name): New member function.
849 (minimal_language_data): Remove la_name and
850 la_natural_name initializers.
851 (minimal_language::name): New member function.
852 (minimal_language::natural_name): New member function.
853 * compile/compile.c (compile_to_object): Update call to
854 lanugage_defn::name.
855 * d-lang.c (d_language_data): Remove la_name and
856 la_natural_name initializers.
857 (d_language::name): New member function.
858 (d_language::natural_name): New member function.
859 * expprint.c (print_subexp_standard): Update call to
860 language_defn::name.
861 (dump_raw_expression): Likewise
862 (dump_prefix_expression): Likewise.
863 * f-lang.c (f_language_data): Remove la_name and
864 la_natural_name initializers.
865 (f_language::name): New member function.
866 (f_language::natural_name): New member function.
867 * go-lang.c (go_language_data): Remove la_name and
868 la_natural_name initializers.
869 (go_language::name): New member function.
870 (go_language::natural_name): New member function.
871 * language.c (show_language_command): Update call to
872 language_defn::name.
873 (set_language_command): Likewise.
874 (language_enum): Likewise.
875 (language_str): Likewise.
876 (add_set_language_command): Likewise, use
877 language_defn::natural_name in the doc string.
878 (unknown_language_data): Remove la_name and
879 la_natural_name initializers.
880 (unknown_language::name): New member function.
881 (unknown_language::natural_name): New member function.
882 (auto_language_data): Remove la_name and
883 la_natural_name initializers.
884 (auto_language::name): New member function.
885 (auto_language::natural_name): New member function.
886 (language_lookup_primitive_type_as_symbol): Update call to
887 language_defn::name.
888 * language.h (language_data): Remove la_name and la_natural_name
889 member variables.
890 (language_defn::name): New member function.
891 (language_defn::natural_name): New member function.
892 * m2-lang.c (m2_language_data): Remove la_name and
893 la_natural_name initializers.
894 (m2_language::name): New member function.
895 (m2_language::natural_name): New member function.
896 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
897 language_defn::natural_name.
898 * objc-lang.c (objc_language_data): Remove la_name and
899 la_natural_name initializers.
900 (objc_language::name): New member function.
901 (objc_language::natural_name): New member function.
902 * opencl-lang.c (opencl_language_data): Remove la_name and
903 la_natural_name initializers.
904 (opencl_language::name): New member function.
905 (opencl_language::natural_name): New member function.
906 * p-lang.c (pascal_language_data): Remove la_name and
907 la_natural_name initializers.
908 (pascal_language::name): New member function.
909 (pascal_language::natural_name): New member function.
910 * rust-lang.c (rust_language_data): Remove la_name and
911 la_natural_name initializers.
912 (rust_language::name): New member function.
913 (rust_language::natural_name): New member function.
914 * symtab.c (lookup_language_this): Update call to
915 language_defn::name.
916
917 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
918
919 * ada-lang.c (ada_language_data): Remove la_name_of_this
920 initializer.
921 * ax-gdb.c (gen_expr): Update call to name_of_this.
922 * c-exp.y (classify_name): Likewise.
923 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
924 (cplus_language_data): Likewise.
925 (cplus_language::name_of_this): New member function.
926 (asm_language_data): Remove la_name_of_this initializer.
927 (minimal_language_data): Likewise.
928 * d-lang.c (d_language_data): Likewise.
929 (d_language::name_of_this): New member function.
930 * expprint.c (print_subexp_standard): Update call to name_of_this.
931 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
932 * go-lang.c (go_language_data): Likewise.
933 * language.c (unknown_language_data): Likewise.
934 (unknown_language::name_of_this): New member function.
935 (auto_language_data): Remove la_name_of_this initializer.
936 (auto_language::name_of_this): New member function.
937 * language.h (language_data): Delete la_name_of_this member
938 variable.
939 (language_defn::name_of_this): New member function.
940 * m2-lang.c (m2_language_data): Remove la_name_of_this
941 initializer.
942 * objc-lang.c (objc_language_data): Likewise.
943 (objc_language::name_of_this): New member function.
944 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
945 initializer.
946 * p-lang.c (pascal_language_data): Likewise.
947 (pascal_language::name_of_this): New member function.
948 * rust-lang.c (rust_language_data): Remove la_name_of_this
949 initializer.
950 * symtab.c (lookup_language_this): Update call to name_of_this.
951 (lookup_symbol_aux): Likewise.
952 * valops.c (value_of_this): Likewise.
953
954 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
955
956 * ada-lang.c (ada_language_data): Remove
957 la_struct_too_deep_ellipsis initializer.
958 (ada_language::struct_too_deep_ellipsis): New member function.
959 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
960 initializer.
961 (cplus_language_data): Likewise.
962 (asm_language_data): Likewise.
963 (minimal_language_data): Likewise.
964 * cp-valprint.c (cp_print_value): Update call to
965 struct_too_deep_ellipsis.
966 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
967 initializer.
968 * f-lang.c (f_language_data): Likewise.
969 (f_language::struct_too_deep_ellipsis): New member function.
970 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
971 initializer.
972 * language.c (unknown_language_data): Likewise.
973 (auto_language_data): Likewise.
974 * language.h (language_data): Delete la_struct_too_deep_ellipsis
975 member variable.
976 (language_defn::struct_too_deep_ellipsis): New member function.
977 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
978 initializer.Q
979 * objc-lang.c (objc_language_data): Likewise.
980 * opencl-lang.c (opencl_language_data): Likewise.
981 * p-lang.c (pascal_language_data): Likewise.
982 * rust-lang.c (rust_language_data): Likewise.
983 * valprint.c (val_print_check_max_depth): Update call to
984 struct_too_deep_ellipsis.
985
986 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
987
988 * MAINTAINERS (Write After Approval): Add myself.
989
990 2020-09-15 Tom Tromey <tom@tromey.com>
991
992 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
993 Remove.
994
995 2020-09-15 Tom Tromey <tom@tromey.com>
996
997 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
998 and TYPE_CODE_METHODPTR cases.
999 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1000 (c_value_print_inner): Update.
1001 * valprint.c (generic_value_print_memberptr): New function, from
1002 c_value_print_memberptr.
1003 (generic_value_print): Use it. Call cplus_print_method_ptr.
1004
1005 2020-09-15 Tom Tromey <tromey@adacore.com>
1006
1007 * python/python-internal.h (PyInt_FromLong): Remove define.
1008 * python/py-value.c (convert_value_from_python): Use
1009 gdb_py_object_from_longest.
1010 * python/py-type.c (typy_get_code): Use
1011 gdb_py_object_from_longest.
1012 * python/py-symtab.c (salpy_get_line): Use
1013 gdb_py_object_from_longest.
1014 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1015 gdb_py_object_from_longest.
1016 * python/py-record.c (recpy_gap_reason_code): Use
1017 gdb_py_object_from_longest.
1018 * python/py-record-btrace.c (recpy_bt_insn_size)
1019 (recpy_bt_func_level, btpy_list_count): Use
1020 gdb_py_object_from_longest.
1021 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1022 gdb_py_object_from_longest. Fix error handling.
1023 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1024 gdb_py_object_from_longest.
1025 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1026 gdb_py_object_from_longest.
1027 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1028 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1029 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1030
1031 2020-09-15 Tom Tromey <tromey@adacore.com>
1032
1033 * python/python.c (gdbpy_parameter_value): Use
1034 gdb_py_object_from_ulongest.
1035
1036 2020-09-15 Tom Tromey <tromey@adacore.com>
1037
1038 * python/py-infevents.c (create_register_changed_event_object):
1039 Use gdb_py_object_from_longest.
1040 * python/py-exitedevent.c (create_exited_event_object): Use
1041 gdb_py_object_from_longest.
1042
1043 2020-09-15 Tom Tromey <tromey@adacore.com>
1044
1045 * python/python.c (gdbpy_parameter_value): Use
1046 gdb_py_object_from_longest.
1047 * python/py-type.c (convert_field, typy_range): Use
1048 gdb_py_object_from_longest.
1049 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1050 gdb_py_object_from_longest.
1051 * python/py-lazy-string.c (stpy_get_length): Use
1052 gdb_py_object_from_longest.
1053 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1054 gdb_py_object_from_longest.
1055 * python/py-infevents.c (create_memory_changed_event_object): Use
1056 gdb_py_object_from_longest.
1057 * python/py-inferior.c (infpy_get_num): Use
1058 gdb_py_object_from_longest.
1059 (infpy_get_pid): Likewise.
1060
1061 2020-09-15 Tom Tromey <tromey@adacore.com>
1062
1063 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1064 defines.
1065 * python/py-value.c (valpy_long): Use
1066 gdb_py_object_from_ulongest.
1067 * python/py-symtab.c (salpy_get_pc): Use
1068 gdb_py_object_from_ulongest.
1069 (salpy_get_last): Likewise.
1070 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1071 gdb_py_object_from_ulongest.
1072 * python/py-lazy-string.c (stpy_get_address): Use
1073 gdb_py_object_from_ulongest.
1074 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1075 * python/py-arch.c (archpy_disassemble): Use
1076 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1077 error handling.
1078
1079 2020-09-15 Tom Tromey <tromey@adacore.com>
1080
1081 * python/python-internal.h (gdb_py_long_from_longest): Remove
1082 defines.
1083 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1084 * python/py-type.c (convert_field, typy_get_sizeof): Use
1085 gdb_py_object_from_longest.
1086 * python/py-record-btrace.c (btpy_list_index): Use
1087 gdb_py_object_from_longest.
1088
1089 2020-09-15 Tom Tromey <tromey@adacore.com>
1090
1091 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1092 * python/py-record.c (recpy_element_number): Use
1093 gdb_py_object_from_longest.
1094 (recpy_gap_number): Likewise.
1095
1096 2020-09-15 Tom Tromey <tromey@adacore.com>
1097
1098 * top.c (ui::ui): Update.
1099 (highest_ui_num): Remove.
1100 * top.h (struct ui) <num>: Remove.
1101
1102 2020-09-15 Tom Tromey <tromey@adacore.com>
1103
1104 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1105 * ui-style.c (ansi_regex_text): Now array.
1106 * rust-exp.y (number_regex_text): Now array.
1107 * linespec.c (linespec_quote_characters): Now array.
1108 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1109 Now arrays.
1110
1111 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1112
1113 * debuginfod-support.c (debuginfod_client_deleter): New.
1114 (debuginfod_client_up): New.
1115 (debuginfod_init): Return debuginfod_client_up.
1116 (debuginfod_source_query): Adjust.
1117 (debuginfod_debuginfo_query): Adjust.
1118
1119 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1120
1121 * debuginfod-support.c (debuginfod_source_query): Use
1122 make_unique_xstrdup.
1123
1124 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1125
1126 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1127 with `type::instance_flags`.
1128
1129 2020-09-14 Michael Mullin <masmullin@gmail.com>
1130
1131 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1132 Remove baton parameter.
1133
1134 2020-09-14 Pedro Alves <pedro@palves.net>
1135
1136 * Makefile.in (SELFTESTS_SRCS): Add
1137 unittests/enum-flags-selftests.c.
1138 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1139 btrace_function_flags instead of enum btrace_function_flag.
1140 * compile/compile-c-types.c (convert_qualified): Use
1141 enum_flags::raw.
1142 * compile/compile-cplus-symbols.c (convert_one_symbol)
1143 (convert_symbol_bmsym):
1144 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1145 (compile_cplus_convert_struct_or_union_methods)
1146 (compile_cplus_instance::convert_qualified_base):
1147 * go-exp.y (parse_string_or_char): Add cast to int.
1148 * unittests/enum-flags-selftests.c: New file.
1149 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1150 type to btrace_thread_flags from btrace_thread_flag.
1151 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1152 local's type to btrace_thread_flags from btrace_thread_flag. Add
1153 cast in DEBUG call.
1154
1155 2020-09-14 Pedro Alves <pedro@palves.net>
1156
1157 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1158 * gdbtypes.c (address_space_name_to_int): Rename to ...
1159 (address_space_name_to_type_instance_flags): ... this.
1160 (address_space_int_to_name): Rename to ...
1161 (address_space_type_instance_flags_to_name): ... this.
1162 * gdbtypes.h (address_space_name_to_int): Rename to ...
1163 (address_space_name_to_type_instance_flags): ... this.
1164 (address_space_int_to_name): Rename to ...
1165 (address_space_type_instance_flags_to_name): ... this.
1166 * type-stack.c (type_stack::insert): Adjust to rename.
1167 * type-stack.h (type_stack::insert): Likewise.
1168
1169 2020-09-14 Pedro Alves <pedro@palves.net>
1170 Andrew Burgess <andrew.burgess@embecosm.com>
1171
1172 * avr-tdep.c (avr_address_class_type_flags): Return
1173 type_instance_flags.
1174 (avr_address_class_type_flags_to_name): Take a
1175 type_instance_flags.
1176 (avr_address_class_name_to_type_flags): Return bool and take a
1177 type_instance_flags.
1178 * d-lang.c (build_d_types): Use type::set_instance_flags.
1179 * ft32-tdep.c (ft32_address_class_type_flags): Return
1180 type_instance_flags.
1181 (ft32_address_class_type_flags_to_name): Take a
1182 type_instance_flags.
1183 (ft32_address_class_name_to_type_flags): Return bool and take a
1184 type_instance_flags.
1185 (ft32_gdbarch_init): Use type::set_instance_flags.
1186 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1187 * gdbarch.h, gdbarch.c: Regenerate.
1188 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1189 (address_class_name_to_type_flags): Use type_instance_flags and
1190 bool.
1191 * gdbtypes.c (address_space_name_to_int)
1192 (address_space_int_to_name, make_qualified_type): Use
1193 type_instance_flags.
1194 (make_qualified_type): Use type_instance_flags and
1195 type::set_instance_flags.
1196 (make_type_with_address_space, make_cv_type, make_vector_type)
1197 (check_typedef): Use type_instance_flags.
1198 (recursive_dump_type): Cast type_instance_flags to unsigned for
1199 printing.
1200 (copy_type_recursive): Use type::set_instance_flags.
1201 (gdbtypes_post_init): Use type::set_instance_flags.
1202 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1203 <m_instance_flags>: ... this.
1204 <instance_flags, set_instance_flags>: New methods.
1205 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1206 (SET_TYPE_INSTANCE_FLAGS): New.
1207 (address_space_name_to_int, address_space_int_to_name)
1208 (make_type_with_address_space): Pass flags using
1209 type_instance_flags instead of int.
1210 * stabsread.c (cleanup_undefined_types_noname): Use
1211 type::set_instance_flags.
1212 * s390-tdep.c (s390_address_class_type_flags): Return
1213 type_instance_flags.
1214 (s390_address_class_type_flags_to_name): Take a
1215 type_instance_flags.
1216 (s390_address_class_name_to_type_flags): Return bool and take a
1217 type_instance_flags.
1218 * type-stack.c (type_stack::follow_types): Use
1219 type_instance_flags.
1220 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1221
1222 2020-09-14 Tom Tromey <tromey@adacore.com>
1223
1224 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1225 * x86-tdep.c (x86_is_thunk_register_name)
1226 (x86_in_indirect_branch_thunk): Update.
1227 * sparc64-tdep.c (sparc64_fpu_register_names)
1228 (sparc64_cp0_register_names, sparc64_register_names)
1229 (sparc64_pseudo_register_names): Now const.
1230 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1231 cp0_registers_num>: Now const.
1232 * sparc-tdep.c (sparc_core_register_names)
1233 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1234 (sparc32_pseudo_register_names): Now const.
1235 (validate_tdesc_registers): Update.
1236 * rust-lang.c (rust_extensions): Now const.
1237 * p-lang.c (p_extensions): Now const.
1238 * objc-lang.c (objc_extensions): Now const.
1239 * nto-tdep.c (nto_thread_state_str): Now const.
1240 * moxie-tdep.c (moxie_register_names): Now const.
1241 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1242 Now const.
1243 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1244 (mips_linux_reg_names): Now const.
1245 (mips_gdbarch_init): Update.
1246 * microblaze-tdep.c (microblaze_register_names): Now const.
1247 * m68k-tdep.c (m68k_register_names): Now const.
1248 * m32r-tdep.c (m32r_register_names): Now const.
1249 * ia64-tdep.c (ia64_register_names): Now const.
1250 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1251 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1252 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1253 ymm_avx512_register_names, pkeys_register_names>: Now const.
1254 * i386-tdep.c (i386_register_names, i386_zmm_names)
1255 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1256 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1257 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1258 * f-lang.c (f_extensions): Now const.
1259 * d-lang.c (d_extensions): Now const.
1260 * csky-tdep.c (csky_register_names): Now const.
1261 * charset.c (default_charset_names, charset_enum): Now const.
1262 (_initialize_charset): Update.
1263 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1264 const.
1265 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1266 (bsd_uthread_solib_loaded): Update.
1267 (bsd_uthread_state): Now const.
1268 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1269 (amd64_ymm_avx512_names, amd64_ymmh_names)
1270 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1271 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1272 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1273 (amd64_dword_names): Now const.
1274 * agent.c (can_use_agent_enum): Now const.
1275 * ada-tasks.c (task_states, long_task_states): Now const.
1276 * ada-lang.c (known_runtime_file_name_patterns)
1277 (known_auxiliary_function_name_patterns, attribute_names)
1278 (standard_exc, ada_extensions): Now const.
1279
1280 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1281
1282 * bcache.h (struct bcache) <bcache>: Remove constructor.
1283 <m_hash_function, m_compare_function>: Remove.
1284 <~bcache>: Make virtual.
1285 <compare>: Remove static method, introduce virtual method.
1286 <default_hash>: Remove.
1287 <hash>: New virtual method.
1288 * bcache.c (bcache::expand_hash_table): Update.
1289 (bcache::insert): Update.
1290 (bcache::hash): New.
1291 (bcache::compare): Update comment and parameter names.
1292 * gdbtypes.c (types_deeply_equal): Update.
1293 * psymtab.h (struct psymbol_bcache): New struct.
1294 (class psymtab_storage) <psymtab_storage>: Make default.
1295 <psymbol_cache>: Change type to psymbol_bcache.
1296 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1297 (psymbol_hash): Change to...
1298 (psymbol_bcache::hash): ... this.
1299 (psymbol_compare): Change to...
1300 (psymbol_bcache::compare): ... this.
1301
1302 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1303
1304 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1305 checking for initial lwp.
1306
1307 2020-09-14 Tom Tromey <tromey@adacore.com>
1308
1309 * m68k-tdep.c (m68k_extract_return_value): Use
1310 pointer_result_regnum.
1311 (m68k_store_return_value): Likewise.
1312 (m68k_reg_struct_return_p): Handle vectors and arrays.
1313 (m68k_return_value): Handle arrays.
1314 (m68k_svr4_return_value): Fix single-element aggregate handling.
1315 Handle long double. Adjust for embedded ABI.
1316 (m68k_svr4_init_abi): Set pointer_result_regnum.
1317 (m68k_embedded_init_abi): New function.
1318 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1319 (m68k_osabi_sniffer): New function.
1320 (_initialize_m68k_tdep): Register osabi sniffer.
1321 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1322 member.
1323
1324 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1325
1326 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1327 with gdb::unique_xmalloc_ptr<char>.
1328
1329 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1330
1331 * xml-support.h (xml_fetch_another): Change type to be a
1332 function_view.
1333 (xml_process_xincludes): Remove baton parameter.
1334 (xml_fetch_content_from_file): Change baton parameter to
1335 dirname.
1336 * xml-support.c (struct xinclude_parsing_data)
1337 <xinclude_parsing_data>: Remove baton parameter.
1338 <fetcher_baton>: Remove.
1339 (xinclude_start_include): Adjust.
1340 (xml_process_xincludes): Adjust.
1341 (xml_fetch_content_from_file): Replace baton parameter with
1342 dirname.
1343 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1344 (xml_init_syscalls_info): Use a lambda.
1345 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1346 (file_read_description_xml): Use a lambda.
1347 (fetch_available_features_from_target): Change baton parameter
1348 to target_ops.
1349 (target_read_description_xml): Use a lambda.
1350 (target_fetch_description_xml): Use a lambda.
1351 (string_read_description_xml): Update.
1352
1353 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1354
1355 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1356 uses with type::endianity_is_not_default.
1357
1358 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1359
1360 * gdbtypes.h (struct type) <endianity_is_not_default,
1361 set_endianity_is_not_default>: New methods.
1362 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1363 type::endianity_is_not_default, change all write call sites to
1364 use type::set_endianity_is_not_default.
1365
1366 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1367
1368 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1369 uses with type::is_fixed_instance.
1370
1371 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1372
1373 * gdbtypes.h (struct type) <is_fixed_instance,
1374 set_is_fixed_instance>: New methods.
1375 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1376 write call sites to use type::set_is_fixed_instance.
1377
1378 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1379
1380 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1381 uses with type::is_gnu_ifunc.
1382
1383 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1384
1385 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1386 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1387 use type::set_is_gnu_ifunc.
1388
1389 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1390
1391 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1392 uses with type::stub_is_supported.
1393
1394 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1395
1396 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1397 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1398 use type::set_stub_is_supported.
1399
1400 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1401
1402 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1403 uses with type::is_vector.
1404
1405 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1406
1407 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1408 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1409 use type::set_is_vector.
1410
1411 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1412
1413 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1414 uses with type::has_varargs.
1415
1416 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1417
1418 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1419 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1420 use type::set_has_varargs.
1421
1422 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1423
1424 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1425 uses with type::is_prototyped.
1426
1427 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1428
1429 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1430 New methods.
1431 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1432 call sites to use type::set_is_prototyped.
1433
1434 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1435
1436 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1437 uses with type::target_is_stub.
1438
1439 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1440
1441 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1442 New methods.
1443 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1444 sites to use type::set_target_is_stub.
1445
1446 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1447
1448 * gdbtypes.h (TYPE_STUB): Remove, replace all
1449 uses with type::is_stub.
1450
1451 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1452
1453 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1454 (TYPE_STUB): Use type::is_stub, change all write call sites to
1455 use type::set_is_stub.
1456
1457 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1458
1459 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1460 type::has_no_signedness.
1461
1462 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1463
1464 * gdbtypes.h (struct type) <has_no_signedness,
1465 set_has_no_signedness>: New methods.
1466 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1467 call sites to use type::set_has_no_signedness.
1468
1469 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1470
1471 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1472 type::is_unsigned.
1473
1474 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1475
1476 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1477 methods.
1478 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1479 sites to use type::set_is_unsigned.
1480
1481 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1482 Adam Renquinha <arenquinha@cimeq.qc.ca>
1483
1484 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1485 pointer and stack frame offset when unwinding.
1486
1487 2020-09-13 Pedro Alves <pedro@palves.net>
1488
1489 * NEWS: Document "-break-insert --qualified".
1490 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1491
1492 2020-09-13 Pedro Alves <pedro@palves.net>
1493
1494 * linespec.c (classify_mtype, compare_msyms): Delete.
1495 (search_minsyms_for_name): Remove classification logic. Instead
1496 filter out trampoline symbols if we also found an external
1497 function of the same name.
1498
1499 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1500
1501 * NEWS: Create a new section for the next release branch.
1502 Rename the section of the current branch, now that it has
1503 been cut.
1504
1505 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1506
1507 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1508 * version.in: Bump version to 11.0.50.DATE-git.
1509
1510 2020-09-12 Joel Brobecker <brobecker@adacore.com>
1511
1512 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1513
1514 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1515 Felix Willgerodt <Felix.Willgerodt@intel.com>
1516
1517 * gdbarch.sh: Added bfloat16 type.
1518 * gdbarch.c: Regenerated.
1519 * gdbarch.h: Regenerated.
1520 * gdbtypes.c (floatformats_bfloat16): New struct.
1521 (gdbtypes_post_init): Add builtin_bfloat16.
1522 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1523 (floatformats_bfloat16): New struct.
1524 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1525 (i386_ymm_type): Add field "v16_bfloat16"
1526 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1527 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1528 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1529 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1530 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1531 * features/i386/64bit-avx512.c: Regenerated.
1532 * features/i386/64bit-sse.xml: Add bfloat16 type.
1533 * features/i386/64bit-sse.c: Regenerated.
1534
1535 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1536
1537 * i386-tdep.c (i386_zmm_type): Fix field names.
1538 (i386_ymm_type): Fix field names.
1539
1540 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1541
1542 * breakpoint.c: Fix typo in the help message of the
1543 "set breakpoint condition-evaluation" command.
1544
1545 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1546
1547 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1548 * (nbsd_nat_target::pid_to_exec_file)
1549 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1550 (nbsd_nat_target::post_startup_inferior)
1551 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1552 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1553 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1554 * (nbsd_thread_lister): Remove.
1555
1556 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1557
1558 * fork-inferior.c (startup_inferior): Avoid double free.
1559
1560 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1561
1562 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1563 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1564
1565 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1566
1567 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1568 * netbsd-nat.c: Include <sys/ptrace.h>.
1569 * (netbsd_nat::enable_proc_events): Add.
1570
1571 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1572
1573 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1574 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1575 (netbsd_nat::for_each_thread): Add.
1576 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1577 "gdbsupport/common-debug.h".
1578 * (netbsd_nat::netbsd_thread_lister)
1579 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1580 (netbsd_nat::for_each_thread): Add.
1581
1582 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1583
1584 * netbsd-nat.h: Include <unistd.h>.
1585 * (netbsd_nat::pid_to_exec_file): Add.
1586 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1587 * (netbsd_nat::pid_to_exec_file) Add.
1588
1589 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1590
1591 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1592
1593 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1594
1595 * netbsd-nat.h: New file.
1596 * netbsd-nat.c: Likewise.
1597
1598 2020-09-09 Tom Tromey <tromey@adacore.com>
1599
1600 * ada-lang.c (remove_extra_symbols): Do not increment when
1601 removing an element
1602
1603 2020-09-08 Tom Tromey <tromey@adacore.com>
1604
1605 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1606
1607 2020-09-08 Tom Tromey <tromey@adacore.com>
1608
1609 PR win32/25302:
1610 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1611 (gdb_bfd_init_data): New function.
1612 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1613
1614 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1615
1616 * infrun.c (fetch_inferior_event): Use
1617 `switch_to_target_no_thread` to switch the target.
1618
1619 2020-09-06 Tom Tromey <tom@tromey.com>
1620
1621 * symfile.h (dwarf2_free_objfile): Don't declare.
1622
1623 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1624
1625 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1626 to match 16 byte real/complex type generated by Flang compiler.
1627
1628 2020-09-03 Tom de Vries <tdevries@suse.de>
1629
1630 PR breakpoint/26546
1631 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1632 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1633
1634 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1635
1636 * maint.c (index_digits): New function.
1637 (struct maint_print_section_data): Remove.
1638 (print_bfd_section_info): Remove print_data parameter, add arg
1639 and index_digits.
1640 (print_objfile_section_info): Likewise.
1641 (print_bfd_section_info_maybe_relocated): Likewise (plus
1642 objfile).
1643 (maintenance_info_sections): Adjust calls.
1644
1645 2020-09-02 Tom Tromey <tromey@adacore.com>
1646
1647 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1648 for null pointers.
1649 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1650
1651 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1652
1653 * bcache.h (struct bcache) <insert>: Change type of `added` to
1654 pointer to bool.
1655 * bcache.c (bcache::insert): Likewise.
1656 * gdbtypes.c (check_types_worklist): Adjust.
1657 * psymtab.c (add_psymbol_to_bcache): Adjust.
1658
1659 2020-08-31 Kevin Buettner <kevinb@redhat.com>
1660
1661 * corelow.c (unordered_set): Include.
1662 (class core_target): Add field 'm_core_unavailable_mappings'.
1663 (core_target::build_file_mappings): Print only one warning
1664 per inaccessible file. Add unavailable/broken mappings
1665 to m_core_unavailable_mappings.
1666 (core_target::xfer_partial): Call...
1667 (core_target::xfer_memory_via_mappings): New method.
1668
1669 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1670
1671 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1672 type to bool.
1673
1674 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1675
1676 * dwarf2/read.c (struct field_info): Fix indentation.
1677
1678 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1679
1680 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1681 ordering in comment.
1682 * frame.c (frame_id_eq): Fix indentation.
1683
1684 2020-08-31 Scott Linder <scott@scottlinder.com>
1685 Simon Marchi <simon.marchi@efficios.com>
1686
1687 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1688 inline frame ids in outer frame.
1689
1690 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1691
1692 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1693 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1694 (outer_frame_id): Use FID_STACK_OUTER instead of
1695 FID_STACK_INVALID.
1696 (frame_id_p): Don't check for outer_frame_id.
1697
1698 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1699
1700 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1701 regnum/frame in value. Call allocate_value_lazy.
1702 * frame.c (frame_unwind_register_value): Use
1703 val_print_not_saved.
1704
1705 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1706
1707 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1708
1709 2020-08-29 Pedro Alves <pedro@palves.net>
1710
1711 * progspace.c (print_program_space): Use all_inferiors. Switch to
1712 the inferior before calling target_pid_to_str.
1713
1714 2020-08-28 Tom Tromey <tom@tromey.com>
1715
1716 * xcoffread.c (xcoff_end_psymtab): Update comment.
1717 * dbxread.c (dbx_end_psymtab): Update comment.
1718
1719 2020-08-28 Tom de Vries <tdevries@suse.de>
1720
1721 PR breakpoint/26544
1722 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1723 event_location.
1724 (create_breakpoint): Same.
1725 (base_breakpoint_decode_location): Same.
1726 (bkpt_create_sals_from_location): Same.
1727 (bkpt_decode_location): Same.
1728 (bkpt_probe_create_sals_from_location): Same.
1729 (bkpt_probe_decode_location): Same.
1730 (tracepoint_create_sals_from_location): Same.
1731 (tracepoint_decode_location): Same.
1732 (tracepoint_probe_decode_location): Same.
1733 (strace_marker_create_sals_from_location): Same.
1734 (strace_marker_decode_location): Same.
1735 (create_sals_from_location_default): Same.
1736 (decode_location_default): Same.
1737 * breakpoint.h (struct breakpoint_ops): Same.
1738 (create_breakpoint): Same.
1739 * linespec.h (decode_line_full): Same.
1740 * linespec.c (decode_line_full): Same. Throw error if
1741 result.size () == 0.
1742
1743 2020-08-27 Pedro Alves <pedro@palves.net>
1744
1745 PR gdb/26524
1746 * breakpoint.c (until_break_fsm) <location_breakpoint,
1747 caller_breakpoint>: Delete fields.
1748 <breakpoints>: New field.
1749 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1750 two individual breakpoints.
1751 (until_break_fsm::should_stop): Loop over breakpoints in the
1752 breakpoint vector.
1753 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1754 vector.
1755 (until_break_command): Handle location expanding into multiple
1756 sals.
1757
1758 2020-08-27 Pedro Alves <pedro@palves.net>
1759
1760 PR gdb/26523
1761 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1762 bp_until breakpoints user-specified locations. Update intro
1763 comment.
1764
1765 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1766
1767 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1768 gdb_bfd_sections): New.
1769 * maint.c (print_bfd_section_info): Change param type to
1770 maint_print_section_data.
1771 (print_objfile_section_info): Likewise.
1772 (print_bfd_section_info_maybe_relocated): Likewise.
1773 (maintenance_info_sections): Use gdb_bfd_sections.
1774
1775 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1776
1777 * MAINTAINERS: Add ARC target and maintainer.
1778
1779 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1780
1781 * configure.tgt: ARC support for GNU/Linux.
1782 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1783 * arc-linux-tdep.c: New file.
1784 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1785 * arc-tdep.c (arc_write_pc): Use it.
1786
1787 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1788
1789 * arc-tdep.c (arc_check_for_hardware_loop): New.
1790 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1791
1792 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1793
1794 * arc-tdep.h: Include "gdbarch.h".
1795
1796 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1797
1798 * arch/arc.h
1799 (arc_gdbarch_features): New class to stir the selection of target XML.
1800 (arc_create_target_description): Use FEATURES to choose XML target.
1801 (arc_lookup_target_description): Use arc_create_target_description
1802 to create _new_ target descriptions or return the already created
1803 ones if the FEATURES is the same.
1804 * arch/arc.c: Implementation of prototypes described above.
1805 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1806 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1807 * arc-tdep.c (*_feature_name): Make feature names consistent.
1808 (arc_register_feature): A new struct to hold information about
1809 registers of a particular target/feature.
1810 (arc_check_tdesc_feature): Check if XML provides registers in
1811 compliance with ARC_REGISTER_FEATURE structs.
1812 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1813 (determine_*_reg_feature_set): Which feature name to look for.
1814 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1815 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1816 to expected ISA enums to be used in arc_gdbarch_features structs.
1817 * features/Makefile (FEATURE_XMLFILES): Add new files.
1818 * gdb/features/arc/v1-aux.c: New file.
1819 * gdb/features/arc/v1-aux.xml: Likewise.
1820 * gdb/features/arc/v1-core.c: Likewise.
1821 * gdb/features/arc/v1-core.xml: Likewise.
1822 * gdb/features/arc/v2-aux.c: Likewise.
1823 * gdb/features/arc/v2-aux.xml: Likewise.
1824 * gdb/features/arc/v2-core.c: Likewise.
1825 * gdb/features/arc/v2-core.xml: Likewise.
1826 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1827
1828 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1829 Andrew Burgess <andrew.burgess@embecosm.com>
1830
1831 PR m2/26372
1832 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
1833 an assert. Remove single element array indexing pattern as the
1834 MULTI_SUBSCRIPT support will handle this case too.
1835
1836 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1837
1838 * value.h (valprint_check_validity): Move declaration from
1839 here...
1840 * valprint.h (valprint_check_validity): ... to here.
1841
1842 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1843
1844 * debug.h: New file.
1845 * debug.c (debug_prefixed_vprintf): New function.
1846 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1847 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1848
1849 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1850
1851 * infrun.h (infrun_debug_printf_1): New function declaration.
1852 (infrun_debug_printf): New macro.
1853 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1854 throughout.
1855 (infrun_debug_printf): New function.
1856 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1857 (handle_jit_event): Likewise.
1858
1859 2020-08-21 Mark Wielaard <mark@klomp.org>
1860
1861 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1862
1863 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
1864
1865 * frame.c (enum class frame_id_status): New.
1866 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1867 (fprintf_frame): Update.
1868 (compute_frame_id): Set frame id status to "computing" on entry.
1869 Set it back to "not_computed" on failure and to "computed" on
1870 success.
1871 (get_frame_id): Assert the frame id is not being computed.
1872 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1873 (create_new_frame): Likewise.
1874 (frame_cleanup_after_sniffer): Update assert.
1875
1876 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1877
1878 * regcache.c (pid_ptid_regcache_map): New type.
1879 (target_ptid_regcache_map): Remove.
1880 (target_pid_ptid_regcache_map): New type.
1881 (regcaches): Change type to target_pid_ptid_regcache_map.
1882 (get_thread_arch_aspace_regcache): Update.
1883 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1884 case.
1885 (regcaches_size): Update.
1886 (regcache_count): Update.
1887 (registers_changed_ptid_target_pid_test): New.
1888 (_initialize_regcache): Register new test.
1889
1890 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1891
1892 * regcache.c (regcache_count): New.
1893 (struct regcache_test_data): New.
1894 (regcache_test_data_up): New.
1895 (populate_regcaches_for_test): New.
1896 (regcaches_test): Remove.
1897 (get_thread_arch_aspace_regcache_test): New.
1898 (registers_changed_ptid_all_test): New.
1899 (registers_changed_ptid_target_test): New.
1900 (registers_changed_ptid_target_ptid_test): New.
1901 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1902 (_initialize_regcache): Register new tests.
1903
1904 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1905
1906 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1907 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1908 gdbarch and aspace parameter. Use current inferior's aspace.
1909 Validate regcache's arch value.
1910 (regcaches_test): Update.
1911
1912 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1913
1914 * regcache.c (regcaches_test): Call registers_changed.
1915
1916 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1917
1918 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1919
1920 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1921
1922 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1923 to find the end of prologue for flang compiled binaries.
1924 * arm-tdep.c (arm_skip_prologue): Likewise.
1925 * i386-tdep.c (i386_skip_prologue): Likewise.
1926 * producer.c (producer_is_llvm): New function.
1927 (producer_parsing_tests): Added new tests for clang/flang.
1928 * producer.h (producer_is_llvm): New declaration.
1929
1930 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
1931
1932 * linux-nat.c (linux_nat_debug_printf): New function.
1933 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1934
1935 2020-08-18 Aaron Merey <amerey@redhat.com>
1936
1937 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1938 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1939 (CLIBS): Add DEBUGINFOD_LIBS.
1940
1941 2020-08-17 Sergei Trofimovich <siarheit@google.com>
1942
1943 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1944 'gdbarch_num_regs'.
1945
1946 2020-08-17 Tom Tromey <tromey@adacore.com>
1947
1948 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1949 ada_get_decoded_value returns NULL.
1950
1951 2020-08-17 Tom Tromey <tromey@adacore.com>
1952
1953 * python/py-inferior.c (infpy_search_memory): Use
1954 gdb_py_object_from_ulongest.
1955 * python/py-infevents.c (create_inferior_call_event_object)
1956 (create_memory_changed_event_object): Use
1957 gdb_py_object_from_ulongest.
1958 * python/py-linetable.c (ltpy_entry_get_pc): Use
1959 gdb_py_object_from_ulongest.
1960
1961 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1962
1963 * loc.c (class symbol_needs_eval_context): Fix indentation.
1964
1965 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1966
1967 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1968 bool.
1969
1970 2020-08-17 Tom de Vries <tdevries@suse.de>
1971
1972 PR gdb/26393
1973 * gdbtypes.c (dump_dynamic_prop): New function.
1974 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1975
1976 2020-08-15 Tom de Vries <tdevries@suse.de>
1977
1978 PR backtrace/26390
1979 * stack.c (print_frame_args): Temporarily set the selected
1980 frame to FRAME while printing the frame's arguments.
1981
1982 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1983
1984 PR breakpoints/26385
1985 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1986 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1987
1988 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1989
1990 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1991 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1992 and >= to check return value instead of == -1 and != -1.
1993
1994 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1995
1996 * utils.h (class gdb_argv) <as_array_view>: New method.
1997 * utils.c (gdb_argv_as_array_view_test): New.
1998 (_initialize_utils): Register selftest.
1999 * maint.c (maintenance_selftest): Use the new method.
2000
2001 2020-08-13 Kamil Rytarowski <n54@gmx.com>
2002
2003 * target.h (supports_dumpcore, dumpcore): New
2004 function declarations.
2005 * target.c (supports_dumpcore, dumpcore): New
2006 functions.
2007 * target-delegates.c: Rebuild.
2008 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2009 and target_dumpcore ().
2010
2011 2020-08-13 Aaron Merey <amerey@redhat.com>
2012
2013 * debuginfod-support.c: Replace global variables with user_data.
2014
2015 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2016
2017 * maint.c (maintenance_selftest): Split args and pass array_view
2018 to run_tests.
2019
2020 2020-08-12 Luis Machado <luis.machado@linaro.org>
2021
2022 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2023 type's length.
2024 Use %s and pulongest to print the length.
2025
2026 2020-08-12 Pedro Alves <palves@redhat.com>
2027
2028 * NEWS: Move "Multi-target debugging support" item to the
2029 "Changes since GDB 9" section.
2030
2031 2020-08-12 Pedro Alves <palves@redhat.com>
2032
2033 PR gdb/26336
2034 * progspace.c (program_space::remove_objfile): Invalidate the
2035 frame cache.
2036
2037 2020-08-11 Tom de Vries <tdevries@suse.de>
2038
2039 * MAINTAINERS: Mark ms1 as deleted.
2040
2041 2020-08-10 Luis Machado <luis.machado@linaro.org>
2042
2043 PR gdb/26310
2044
2045 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2046 act accordingly.
2047 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2048 movz/str/stur/stp skipping behavior.
2049
2050 2020-08-10 Luis Machado <luis.machado@linaro.org>
2051
2052 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2053 struct user_sve_header instead of struct sve_context.
2054
2055 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2056
2057 * read.h (dwarf2_fetch_die_loc_sect_off,
2058 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2059 `void *` parameter with function_view.
2060 * read.c (dwarf2_fetch_die_loc_sect_off,
2061 dwarf2_fetch_die_loc_cu_off): Likewise.
2062 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2063 (per_cu_dwarf_call): Adjust.
2064 (get_frame_address_in_block_wrapper): Remove.
2065 (indirect_synthetic_pointer): Adjust.
2066 (get_ax_pc): Remove.
2067 (dwarf2_compile_expr_to_ax): Adjust.
2068
2069 2020-08-08 Tom de Vries <tdevries@suse.de>
2070
2071 PR build/26344
2072 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2073 constructor.
2074 * regcache.c (get_thread_arch_aspace_regcache): Same.
2075
2076 2020-08-07 Tom Tromey <tromey@adacore.com>
2077
2078 * ravenscar-thread.c
2079 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2080 New method.
2081 (ravenscar_thread_target::wait): Check
2082 runtime_initialized.
2083 (ravenscar_thread_target::prepare_to_store)
2084 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2085 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2086 (ravenscar_thread_target::stopped_by_watchpoint)
2087 (ravenscar_thread_target::stopped_data_address)
2088 (ravenscar_thread_target::core_of_thread): Use
2089 scoped_restore_current_thread and
2090 set_base_thread_from_ravenscar_task.
2091
2092 2020-08-07 Tom Tromey <tromey@adacore.com>
2093
2094 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2095
2096 2020-08-07 Tom Tromey <tromey@adacore.com>
2097
2098 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2099 update_inferior_ptid before update_thread_list.
2100 (temporarily_change_regcache_ptid): New class.
2101 (ravenscar_thread_target::fetch_registers)
2102 (ravenscar_thread_target::store_registers)
2103 (ravenscar_thread_target::prepare_to_store): Use base thread when
2104 forwarding operation.
2105
2106 2020-08-07 Tom Tromey <tromey@adacore.com>
2107
2108 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2109 "is_pid" case.
2110
2111 2020-08-07 Tom Tromey <tromey@adacore.com>
2112
2113 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2114 New methods.
2115 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2116 first.
2117 (ravenscar_thread_target::add_thread): Rename from
2118 ravenscar_add_thread.
2119 (ravenscar_thread_target::update_thread_list): Use a lambda.
2120 (ravenscar_thread_target::xfer_partial): New method.
2121
2122 2020-08-07 Tom Tromey <tromey@adacore.com>
2123
2124 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2125 gdb::function_view.
2126 (iterate_over_live_ada_tasks): Change type of argument.
2127 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2128 of argument.
2129
2130 2020-08-07 Tom Tromey <tromey@adacore.com>
2131
2132 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2133 Remove.
2134 (ravenscar_thread_target::extra_thread_info): Remove.
2135 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2136 defer to target beneath for non-Ravenscar threads.
2137
2138 2020-08-07 Tom Tromey <tromey@adacore.com>
2139
2140 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2141 get_base_thread_from_ravenscar_task>: Now methods.
2142 <m_cpu_map>: New member.
2143 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2144 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2145 (ravenscar_thread_target::task_is_currently_active): Update.
2146 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2147 Now a method.
2148 (ravenscar_thread_target::add_active_thread): Put initial thread
2149 into the m_cpu_map.
2150
2151 2020-08-07 Tom Tromey <tromey@adacore.com>
2152
2153 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2154 event_ptid.
2155
2156 2020-08-07 Tom Tromey <tromey@adacore.com>
2157
2158 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2159 runtime_initialized.
2160
2161 2020-08-07 Tom Tromey <tromey@adacore.com>
2162
2163 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2164 add_active_thread.
2165 (ravenscar_thread_target::add_active_thread): Now public.
2166 (ravenscar_inferior_created): Call add_active_thread after pushing
2167 the target.
2168
2169 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2170
2171 * regcache.c (ptid_regcache_map): New type.
2172 (target_ptid_regcache_map): New type.
2173 (regcaches): Change type to target_ptid_regcache_map.
2174 (get_thread_arch_aspace_regcache): Update to regcaches' new
2175 type.
2176 (regcache_thread_ptid_changed): Likewise.
2177 (registers_changed_ptid): Likewise.
2178 (regcaches_size): Likewise.
2179 (regcaches_test): Update.
2180 (regcache_thread_ptid_changed): Update.
2181 * regcache.h (regcache_up): New type.
2182 * gdbsupport/ptid.h (hash_ptid): New struct.
2183
2184 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
2185
2186 * observable.h (thread_ptid_changed): Add parameter
2187 `process_stratum_target *`.
2188 * infrun.c (infrun_thread_ptid_changed): Add parameter
2189 `process_stratum_target *` and use it.
2190 (selftests): New namespace.
2191 (infrun_thread_ptid_changed): New function.
2192 (_initialize_infrun): Register selftest.
2193 * regcache.c (regcache_thread_ptid_changed): Add parameter
2194 `process_stratum_target *` and use it.
2195 (regcache_thread_ptid_changed): New function.
2196 (_initialize_regcache): Register selftest.
2197 * thread.c (thread_change_ptid): Pass target to
2198 thread_ptid_changed observable.
2199
2200 2020-08-06 Caroline Tice <cmtice@google.com>
2201
2202 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2203 (struct dwp_sections): Update field comments. Add loclists and
2204 rnglists fields.
2205 (struct virtual_v2_dwo_sections): Rename struct to
2206 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2207 size & offset fields for loclists and rnglists.
2208 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2209 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2210 skipping dummy type units.
2211 (create_dwp_hash_table): Update the large comment above the function to
2212 discuss Version 5 DWP files as well, with references. Update all the
2213 version checks in the function to check for version 5 as well. Add new
2214 section at the end to create dwp hash table for version 5.
2215 (create_dwp_v2_section): Rename function to
2216 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2217 Add V5 to error message text.
2218 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2219 into calls to create_dwp_v2_or_v5_section.
2220 (create_dwo_unit_in_dwp_v5): New function.
2221 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2222 check for version2; add else clause to handle version 5.
2223 (open_and_init_dwo_file): Add code to check dwarf version & only call
2224 create_debug_types_hash_table (with sections.types) if version is not 5;
2225 else call create_debug_type_hash_table, with sections.info.
2226 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2227 version 5.
2228 (dwarf2_locate_v5_dwp_sections): New function.
2229 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2230 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
2231
2232 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2233
2234 * regcache.h (class regcache): Remove friend
2235 registers_changed_ptid.
2236 <regcache_thread_ptid_changed>: Remove.
2237 <regcaches>: Remove.
2238 * regcache.c (regcache::regcaches): Rename to...
2239 (regcaches): ... this. Make static.
2240 (get_thread_arch_aspace_regcache): Update.
2241 (regcache::regcache_thread_ptid_changed): Rename to...
2242 (regcache_thread_ptid_changed): ... this. Update.
2243 (class regcache_access): Remove.
2244 (regcaches_test): Update.
2245 (_initialize_regcache): Update.
2246 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2247 <forward_list>.
2248
2249 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2250
2251 * regcache.h (class regcache) <current_regcache>: Rename to...
2252 <regcaches>: ... this. Move doc here.
2253 * regcache.c (regcache::current_regcache) Rename to...
2254 (regcache::regcaches): ... this. Move doc to header.
2255 (get_thread_arch_aspace_regcache): Update.
2256 (regcache::regcache_thread_ptid_changed): Update.
2257 (registers_changed_ptid): Update.
2258 (class regcache_access) <current_regcache_size>: Rename to...
2259 <regcaches_size>: ... this.
2260 (current_regcache_test): Rename to...
2261 (regcaches_test): ... this.
2262 (_initialize_regcache): Update.
2263
2264 2020-08-06 Victor Collod <vcollod@nvidia.com>
2265
2266 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2267
2268 2020-08-05 Kevin Buettner <kevinb@redhat.com>
2269
2270 * corelow.c (core_target::build_file_mappings): Don't output
2271 null pathname in warning.
2272
2273 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2274
2275 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2276 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2277 gdb.dwarf2/dw2-single-line-discriminators.exp,
2278 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2279
2280 2020-08-05 Tom Tromey <tromey@adacore.com>
2281
2282 PR rust/26197:
2283 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2284 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2285 Fix off-by-one and type size errors in ordinary case.
2286
2287 2020-08-05 Tom de Vries <tdevries@suse.de>
2288
2289 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2290 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2291
2292 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2293
2294 * frame.h (frame_id_p): Return bool.
2295 (frame_id_artificial_p): Return bool.
2296 (frame_id_eq): Return bool.
2297 (has_stack_frames): Return bool.
2298 (get_selected_frame): Fix typo in comment.
2299 (get_frame_pc_if_available): Return bool.
2300 (get_frame_address_in_block_if_available): Return bool.
2301 (get_frame_func_if_available): Return bool.
2302 (read_frame_register_unsigned): Return bool.
2303 (get_frame_register_bytes): Return bool.
2304 (safe_frame_unwind_memory): Return bool.
2305 (deprecated_frame_register_read): Return bool.
2306 (frame_unwinder_is): Return bool.
2307 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2308 bool.
2309 <this_id::p>: Likewise.
2310 <prev_p>: Likewise.
2311 (frame_stash_add): Return bool.
2312 (get_frame_id): Use bool.
2313 (frame_id_build_special) Use bool.
2314 (frame_id_build_unavailable_stack): Use bool.
2315 (frame_id_build): Use bool.
2316 (frame_id_p): Return bool, use true/false instead of 1/0.
2317 (frame_id_artificial_p): Likewise.
2318 (frame_id_eq): Likewise.
2319 (frame_id_inner): Likewise.
2320 (get_frame_func_if_available): Likewise.
2321 (read_frame_register_unsigned): Likewise.
2322 (deprecated_frame_register_read): Likewise.
2323 (get_frame_register_bytes): Likewise.
2324 (has_stack_frames): Likewise.
2325 (inside_main_func): Likewise.
2326 (inside_entry_func): Likewise.
2327 (get_frame_pc_if_available): Likewise.
2328 (get_frame_address_in_block_if_available): Likewise.
2329 (frame_unwinder_is): Likewise.
2330 (safe_frame_unwind_memory): Likewise.
2331 (frame_unwind_arch): Likewise.
2332
2333 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2334
2335 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2336 type to cached_copy_status.
2337 (fprintf_frame): Adjust.
2338 (get_frame_func_if_available): Adjust.
2339 (frame_cleanup_after_sniffer): Adjust.
2340
2341 2020-08-04 Mark Wielaard <mark@klomp.org>
2342
2343 * MAINTAINERS (Write After Approval): Update email address.
2344
2345 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2346
2347 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2348 dynamic_prop::const_val.
2349
2350 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2351
2352 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2353 dynamic_prop::kind.
2354
2355 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2356
2357 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2358
2359 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2360
2361 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2362
2363 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
2364 Jose E. Marchesi <jose.marchesi@oracle.com>
2365
2366 * configure.tgt: Add entry for bpf-*-*.
2367 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2368 (ALLDEPFILES): Add bpf-tdep.c.
2369 * bpf-tdep.c: New file.
2370 * MAINTAINERS: Add bpf target and maintainer.
2371 * NEWS: Mention the support for the new target.
2372
2373 2020-08-04 Tom de Vries <tdevries@suse.de>
2374
2375 PR symtab/23270
2376 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2377 Error.
2378
2379 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2380
2381 * syscalls/freebsd.xml: Regenerate.
2382
2383 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2384
2385 * syscalls/update-freebsd.sh: Fix usage and year range.
2386
2387 2020-08-03 Tom de Vries <tdevries@suse.de>
2388
2389 PR symtab/26333
2390 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2391 DW_LNE_lo_user/DW_LNE_hi_user range.
2392
2393 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2394
2395 PR ada/26318
2396 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2397 kind.
2398
2399 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2400
2401 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2402
2403 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2404
2405 * breakpoint.c (set_breakpoint_condition): Update the condition
2406 expressions after checking that the input condition string parses
2407 successfully and does not contain junk at the end.
2408
2409 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2410
2411 * breakpoint.c (set_breakpoint_condition): Update the
2412 condition string after parsing the new condition successfully.
2413
2414 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2415
2416 * proc-api.c (_STRUCTURED_PROC): Don't define.
2417 * proc-events.c: Likewise.
2418 * proc-flags.c: Likewise.
2419 * proc-why.c: Likewise.
2420 * procfs.c: Likewise.
2421
2422 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2423 * configure, config.in: Regenerate.
2424
2425 2020-07-30 Tom de Vries <tdevries@suse.de>
2426
2427 PR build/26320
2428 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2429 m_red/m_green/m_blue in a union.
2430
2431 2020-07-29 Tom de Vries <tdevries@suse.de>
2432
2433 PR tdep/26280
2434 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2435
2436 2020-07-28 Tom Tromey <tromey@adacore.com>
2437
2438 PR symtab/26270:
2439 * symtab.h (find_pc_partial_function_sym): Declare.
2440 * cli/cli-cmds.c (disassemble_command): Use
2441 find_pc_partial_function_sym. Check asm_demangle.
2442 * blockframe.c (cache_pc_function_sym): New global.
2443 (cache_pc_function_name): Remove.
2444 (clear_pc_function_cache): Update.
2445 (find_pc_partial_function_sym): New function, from
2446 find_pc_partial_function.
2447 (find_pc_partial_function): Rewrite using
2448 find_pc_partial_function_sym.
2449
2450 2020-07-28 Tom Tromey <tromey@adacore.com>
2451
2452 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2453 help. Add usage.
2454
2455 2020-07-28 Tom Tromey <tromey@adacore.com>
2456
2457 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2458 <DW_OP_GNU_variable_value>: Cast to address type.
2459
2460 2020-07-28 Kamil Rytarowski <n54@gmx.com>
2461
2462 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2463 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2464 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2465 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2466 (nbsd_get_siginfo_type): New.
2467 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2468 (_initialize_nbsd_tdep): New.
2469
2470 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2471
2472 PR binutils/26301
2473 * configure: Regenerated.
2474
2475 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2476
2477 PR binutils/26301
2478 * configure: Regenerated.
2479
2480 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2481
2482 * python/py-frame.c: Remove 'user-regs.h' include.
2483 (frapy_read_register): Rewrite to make use of
2484 gdbpy_parse_register_id.
2485 * python/py-registers.c (gdbpy_parse_register_id): New function,
2486 moved here from python/py-unwind.c. Updated the return type, and
2487 also accepts register descriptor objects.
2488 * python/py-unwind.c: Remove 'user-regs.h' include.
2489 (pyuw_parse_register_id): Moved to python/py-registers.c.
2490 (unwind_infopy_add_saved_register): Update to use
2491 gdbpy_parse_register_id.
2492 (pending_framepy_read_register): Likewise.
2493 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2494
2495 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2496
2497 * python/py-registers.c: Add 'user-regs.h' include.
2498 (register_descriptor_iter_find): New function.
2499 (register_descriptor_iterator_object_methods): New static global
2500 methods array.
2501 (register_descriptor_iterator_object_type): Add pointer to methods
2502 array.
2503
2504 2020-07-27 John Baldwin <jhb@FreeBSD.org>
2505
2506 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2507 for all architectures on FreeBSD 11.3 and later.
2508
2509 2020-07-27 Tom Tromey <tromey@adacore.com>
2510
2511 * gcore.h (load_corefile): Don't declare.
2512
2513 2020-07-27 Tom de Vries <tdevries@suse.de>
2514
2515 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2516 * config.in: Regenerate.
2517 * configure: Regenerate.
2518
2519 2020-07-26 Eli Zaretskii <eliz@gnu.org>
2520
2521 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2522 ws2tcpip.h. When checking whether socklen_t type is defined, use
2523 ws2tcpip.h if it is available and sys/socket.h isn't.
2524 * configure: Regenerate.
2525 * config.in: Regenerate.
2526
2527 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2528
2529 PR fortran/23051
2530 PR fortran/26139
2531 * valops.c (value_ind): Pass address to
2532 readjust_indirect_value_type.
2533 * value.c (readjust_indirect_value_type): Make parameter
2534 non-const, and add extra address parameter. Resolve original type
2535 before using it.
2536 * value.h (readjust_indirect_value_type): Update function
2537 signature and comment.
2538
2539 2020-07-25 Tom de Vries <tdevries@suse.de>
2540
2541 PR symtab/26243
2542 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2543 entries.
2544
2545 2020-07-24 Aaron Merey <amerey@redhat.com>
2546
2547 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2548 * configure: Rebuild.
2549
2550 2020-07-23 Kevin Buettner <kevinb@redhat.com>
2551
2552 PR corefiles/26294
2553 * corelow.c (_initialize_corelow): Add period to help text
2554 for "maintenance print core-file-backed-mappings".
2555
2556 2020-07-23 Pedro Alves <pedro@palves.net>
2557
2558 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2559 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2560 meanwhile.
2561 * frame.c (frame_cache_generation, get_frame_cache_generation):
2562 New.
2563 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2564 (get_prev_frame_if_no_cycle): On exception, don't touch
2565 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2566 * frame.h (get_frame_cache_generation): Declare.
2567
2568 2020-07-23 Tom de Vries <tdevries@suse.de>
2569
2570 PR tui/26282
2571 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2572 New default constructor.
2573
2574 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2575
2576 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2577 exclude non-statement entries.
2578
2579 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2580
2581 * NEWS (New commands): Mention new command
2582 "maintenance print core-file-backed-mappings".
2583
2584 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2585
2586 * corelow.c (gdbcmd.h): Include.
2587 (core_target::info_proc_mappings): New method.
2588 (get_current_core_target): New function.
2589 (maintenance_print_core_file_backed_mappings): New function.
2590 (_initialize_corelow): Add core-file-backed-mappings to
2591 "maint print" commands.
2592
2593 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2594
2595 * linux-tdep.c (dump_note_entry_p): New function.
2596 (linux_dump_mapping_p_ftype): New typedef.
2597 (linux_find_memory_regions_full): Add new parameter,
2598 should_dump_mapping_p.
2599 (linux_find_memory_regions): Adjust call to
2600 linux_find_memory_regions_full.
2601 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2602 call to linux_find_memory_regions_full.
2603
2604 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2605
2606 * corelow.c (solist.h, unordered_map): Include.
2607 (class core_target): Add field m_core_file_mappings and
2608 method build_file_mappings.
2609 (core_target::core_target): Call build_file_mappings.
2610 (core_target::~core_target): Free memory associated with
2611 m_core_file_mappings.
2612 (core_target::build_file_mappings): New method.
2613 (core_target::xfer_partial): Use m_core_file_mappings
2614 for memory transfers.
2615 * linux-tdep.c (linux_read_core_file_mappings): New
2616 function.
2617 (linux_core_info_proc_mappings): Rewrite to use
2618 linux_read_core_file_mappings.
2619 (linux_init_abi): Register linux_read_core_file_mappings.
2620
2621 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2622
2623 * arch-utils.c (default_read_core_file_mappings): New function.
2624 * arch-utils.c (default_read_core_file_mappings): Declare.
2625 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2626 * gdbarch.h, gdbarch.c: Regenerate.
2627
2628 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2629
2630 PR corefiles/25631
2631 * corelow.c (core_target:xfer_partial): Revise
2632 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2633 case after first checking the stratum beneath the core
2634 target.
2635 (has_all_memory): Return true.
2636 * target.c (raw_memory_xfer_partial): Revise comment
2637 regarding use of has_all_memory.
2638
2639 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2640
2641 * exec.h (section_table_xfer_memory): Revise declaration,
2642 replacing section name parameter with an optional callback
2643 predicate.
2644 * exec.c (section_table_xfer_memory): Likewise.
2645 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2646 of section_table_xfer_memory.
2647
2648 2020-07-22 Tom Tromey <tromey@adacore.com>
2649
2650 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2651 lookup_symbol_search_name.
2652
2653 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2654
2655 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2656 redundant local variable.
2657 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2658 reference, not pointer, update code accordingly.
2659
2660 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2661 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2662
2663 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2664 * jit.c (jit_breakpoint_re_set_internal): Use the
2665 `skip_jit_symbol_lookup` field.
2666
2667 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2668 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2669
2670 * jit.c (jit_read_descriptor): Define the descriptor address once,
2671 use twice.
2672 (jit_breakpoint_deleted): Move the declaration of the loop variable
2673 `iter` into the loop header.
2674 (jit_breakpoint_re_set_internal): Move the declaration of the local
2675 variable `objf_data` to the first point of definition.
2676 (jit_event_handler): Move the declaration of local variables
2677 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2678 Rename `objf` to `jited`.
2679
2680 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2681
2682 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2683 Remove.
2684 * jit.c (get_jiter_objfile_data): Update.
2685
2686 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2687 Simon Marchi <simon.marchi@polymtl.ca>
2688
2689 * jit.c (struct jit_program_space_data): Remove.
2690 (jit_program_space_key): Remove.
2691 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2692 stuff.
2693 (get_jit_program_space_data): Remove.
2694 (jit_breakpoint_deleted): Iterate on all of the program space's
2695 objfiles.
2696 (jit_inferior_init): Likewise.
2697 (jit_breakpoint_re_set_internal): Likewise. Also change return
2698 type to void.
2699 (jit_breakpoint_re_set): Pass current_program_space to
2700 jit_breakpoint_re_set_internal.
2701
2702 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2703
2704 * jit.h (struct jiter_objfile_data) <cached_code_address,
2705 jit_breakpoint>: Move to here from ...
2706 * jit.c (jit_program_space_data): ... here.
2707 (jiter_objfile_data::~jiter_objfile_data): Update.
2708 (jit_breakpoint_deleted): Update.
2709 (jit_breakpoint_re_set_internal): Update.
2710
2711 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2712
2713 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2714 checks.
2715 (jit_read_descriptor): Remove NULL check.
2716 (jit_event_handler): Add an assertion.
2717
2718 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2719
2720 * jit.h (struct jit_objfile_data): Split into...
2721 (struct jiter_objfile_data): ... this ...
2722 (struct jited_objfile_data): ... and this.
2723 * objfiles.h (struct objfile) <jit_data>: Remove.
2724 <jiter_data, jited_data>: New fields.
2725 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2726 (jiter_objfile_data::~jiter_objfile_data): ... this.
2727 (get_jit_objfile_data): Rename to ...
2728 (get_jiter_objfile_data): ... this.
2729 (add_objfile_entry): Update.
2730 (jit_read_descriptor): Use get_jiter_objfile_data.
2731 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2732 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2733 (jit_inferior_exit_hook): Use objfile's jited_data field.
2734
2735 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2736
2737 * jit.h: Forward-declare `struct minimal_symbol`.
2738 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2739 constructor, destructor, and an objfile* field.
2740 * jit.c (jit_objfile_data): Remove.
2741 (struct jit_objfile_data): Migrate from here to jit.h.
2742 (jit_objfile_data::~jit_objfile_data): New destructor
2743 implementation with code moved from free_objfile_data.
2744 (free_objfile_data): Delete.
2745 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2746 (jit_find_objf_with_entry_addr): Ditto.
2747 (jit_inferior_exit_hook): Ditto.
2748 (_initialize_jit): Remove the call to
2749 register_objfile_data_with_cleanup.
2750 * objfiles.h (struct objfile) <jit_data>: New field.
2751
2752 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2753
2754 * jit.h: Forward-declare `struct objfile`.
2755 (jit_event_handler): Add a second parameter, the JITer objfile.
2756 * jit.c (jit_read_descriptor): Change the signature to take the
2757 JITer objfile as an argument instead of the jit_program_space_data.
2758 (jit_inferior_init): Update the call to jit_read_descriptor.
2759 (jit_event_handler): Use the new JITer objfile argument when calling
2760 jit_read_descriptor.
2761 * breakpoint.c (handle_jit_event): Update the call to
2762 jit_event_handler to pass the JITer objfile.
2763
2764 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2765
2766 * gdbarch.c: Regenerate.
2767 * gdbarch.h: Regenerate.
2768 * gdbarch.sh (handle_segmentation_fault): Remove method.
2769 * infrun.c (handle_segmentation_fault): Remove.
2770 (print_signal_received_reason): Remove call to
2771 handle_segmentation_fault.
2772
2773 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2774
2775 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2776 Rename to sparc64_linux_report_signal_info and add siggnal
2777 argument.
2778 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2779 instead of sparc64_linux_handle_segmentation_fault.
2780
2781 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2782
2783 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2784 i386_linux_report_signal_info instead of
2785 i386_linux_handle_segmentation_fault.
2786 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2787 to i386_linux_report_signal_info and add siggnal argument.
2788 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2789 of i386_linux_handle_segmentation_fault.
2790 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2791 to i386_linux_report_signal_info and add siggnal argument.
2792
2793 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2794
2795 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2796 hook if present.
2797
2798 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2799
2800 * gdbarch.c: Regenerate.
2801 * gdbarch.h: Regenerate.
2802 * gdbarch.sh (report_signal_info): New method.
2803 * infrun.c (print_signal_received_reason): Invoke gdbarch
2804 report_signal_info hook if present.
2805
2806 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2807
2808 * python/py-registers.c : Add 'unordered_map' include.
2809 (gdbpy_new_reggroup): Renamed to...
2810 (gdbpy_get_reggroup): ...this. Update to only create register
2811 group descriptors when needed.
2812 (gdbpy_reggroup_iter_next): Update.
2813
2814 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2815
2816 * python/py-registers.c (gdbpy_register_object_data): New static
2817 global.
2818 (gdbpy_register_object_data_init): New function.
2819 (gdbpy_new_register_descriptor): Renamed to...
2820 (gdbpy_get_register_descriptor): ...this, and update to reuse
2821 existing register descriptors where possible.
2822 (gdbpy_register_descriptor_iter_next): Update.
2823 (gdbpy_initialize_registers): Register new gdbarch data.
2824
2825 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
2826
2827 * linux-nat.c (stopped_pids): Make static.
2828
2829 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2830
2831 PR ada/26235
2832 * gdbtypes.c (ada_discrete_type_low_bound,
2833 ada_discrete_type_high_bound): Handle undefined bounds.
2834
2835 2020-07-21 Kamil Rytarowski <n54@gmx.com>
2836
2837 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2838 declaration.
2839 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2840 function.
2841
2842 2020-07-20 John Baldwin <jhb@FreeBSD.org>
2843
2844 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2845 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2846 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2847 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2848 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2849 method.
2850
2851 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2852
2853 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2854 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2855 which are deprecated in Guile 3.0.
2856 * configure.ac (try_guile_versions): Add "guile-3.0".
2857 * configure (try_guile_versions): Regenerate.
2858 * NEWS: Update entry.
2859
2860 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2861 Doug Evans <dje@google.com>
2862
2863 PR gdb/21104
2864 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2865 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2866 USING_GUILE_BEFORE_2_2.
2867 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2868 Change type to 'scm_t_port_type *'.
2869 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2870 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2871 parameter and honor it. Update callers.
2872 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2873 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2874 functions.
2875 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2876 USING_GUILE_BEFORE_2_2.
2877 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2878 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2879 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2880 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2881 and 'SCM_PORT_TYPE'.
2882 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2883 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2884 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2885 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2886 [!USING_GUILE_BEFORE_2_2]: New functions.
2887 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2888 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2889 'gdbscm_memory_port_read'.
2890 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2891 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2892 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2893 function.
2894 (ioscm_init_memory_port): Remove.
2895 (ioscm_init_memory_port_stream): New function
2896 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2897 function.
2898 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2899 Return scm_from_uint (0).
2900 (gdbscm_set_memory_port_read_buffer_size_x)
2901 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2902 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2903 Return scm_from_uint (0).
2904 (gdbscm_set_memory_port_write_buffer_size_x)
2905 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2906 * configure.ac (try_guile_versions): Add "guile-2.2".
2907 * configure: Regenerate.
2908 * NEWS: Add entry.
2909
2910 2020-07-18 Tom Tromey <tom@tromey.com>
2911
2912 * linux-nat.c (linux_multi_process): Remove.
2913 (linux_nat_target::supports_multi_process): Return true.
2914
2915 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2916
2917 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2918 (riscv_lookup_target_description): Return pointer out of
2919 unique_ptr.
2920 * target-descriptions.c (allocate_target_description): Add
2921 comment.
2922 (target_desc_deleter::operator()): Likewise.
2923 * target-descriptions.h (struct target_desc_deleter): Moved to
2924 gdbsupport/tdesc.h.
2925 (target_desc_up): Likewise.
2926
2927 2020-07-17 Tom Tromey <tromey@adacore.com>
2928
2929 * linux-nat.c (linux_nat_target::supports_non_stop)
2930 (linux_nat_target::always_non_stop_p): Use "true".
2931 (linux_nat_target::supports_disable_randomization): Use "true" and
2932 "false".
2933
2934 2020-07-16 Caroline Tice <cmtice@google.com>
2935
2936 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2937 (RNGLIST_HEADER_SIZE64): New constant definition.
2938 (struct dwop_section_names): Add rnglists_dwo.
2939 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2940 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2941 (struct dwo_sections): Add rnglists field.
2942 (read_attribut_reprocess): Add tag parameter.
2943 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2944 (cu_debug_rnglists_section): New function (decl & definition).
2945 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2946 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2947 die whose range is being checked; get rnglist section from
2948 cu_debug_rnglists_section, to get from either objfile or dwo file as
2949 appropriate. Add cases for DW_RLE_base_addressx,
2950 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2951 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2952 test inside if-condition and updating complaint message.
2953 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2954 dwarf2_rnglists_process.
2955 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2956 dwarf2_ranges_process.
2957 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2958 need_ranges_base and update comment appropriately. Also pass die tag
2959 to dwarf2_ranges_read.
2960 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2961 need_ranges_base and update comment appropriately. Also pass die tag
2962 to dwarf2_ranges_process.
2963 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2964 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2965 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2966 need_ranges_base and update comment appropriately. Also pass die tag
2967 to read_attribute_reprocess and dwarf2_ranges_read.
2968 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2969 and update function comment appropriately.
2970 (read_loclist_index): Call read_loclists_rnglists_header instead of
2971 read_loclist_header.
2972 (read_rnglist_index): New function.
2973 (read_attribute_reprocess): Add tag parameter. Add code for
2974 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2975 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2976
2977 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2978
2979 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2980 being resolved.
2981
2982 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2983
2984 * arch-utils.c (show_architecture): Update formatting of messages.
2985
2986 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2987
2988 * gdbtypes.h (struct type) <bounds>: Handle array and string
2989 types.
2990 * ada-lang.c (assign_aggregate): Use type::bounds on
2991 array/string type.
2992 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2993 * c-varobj.c (c_number_of_children): Likewise.
2994 (c_describe_child): Likewise.
2995 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2996 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2997 (f_type_print_base): Likewise.
2998 * f-valprint.c (f77_array_offset_tbl): Likewise.
2999 (f77_get_upperbound): Likewise.
3000 (f77_print_array_1): Likewise.
3001 * guile/scm-type.c (gdbscm_type_range): Likewise.
3002 * m2-typeprint.c (m2_array): Likewise.
3003 (m2_is_long_set_of_type): Likewise.
3004 * m2-valprint.c (get_long_set_bounds): Likewise.
3005 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3006 * python/py-type.c (typy_range): Likewise.
3007 * rust-lang.c (rust_internal_print_type): Likewise.
3008 * type-stack.c (type_stack::follow_types): Likewise.
3009 * valarith.c (value_subscripted_rvalue): Likewise.
3010 * valops.c (value_cast): Likewise.
3011
3012 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3013
3014 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3015 callers to use the equivalent accessor methods.
3016
3017 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3018
3019 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3020 (struct type) <bit_stride>: New method.
3021 (TYPE_BIT_STRIDE): Remove.
3022 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3023
3024 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3025
3026 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3027 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3028 callers to use the equivalent accessor methods instead.
3029
3030 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3031
3032 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3033 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3034 callers to use the equivalent accessor methods instead.
3035
3036 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3037
3038 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3039 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3040 to use dynamic_prop::kind.
3041
3042 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3043
3044 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3045 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3046 to get the bound property's kind and check against
3047 PROP_UNDEFINED.
3048
3049 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3050
3051 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3052 all callers to use type::range_bounds followed by
3053 dynamic_prop::{low,high}.
3054
3055 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3056
3057 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3058 const_val, set_const_val, baton, set_locexpr, set_loclist,
3059 set_addr_offset, variant_parts, set_variant_parts,
3060 original_type, set_original_type>: New methods.
3061 <kind>: Rename to...
3062 <m_kind>: ... this. Update all users to use the new methods
3063 instead.
3064 <data>: Rename to...
3065 <m_data>: ... this. Update all users to use the new methods
3066 instead.
3067
3068 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3069
3070 * gdbtypes.c (get_discrete_bounds): Return failure if
3071 the range type's bounds are not both defined and constant
3072 values.
3073 (get_array_bounds): Update comment. Remove undefined bound check.
3074
3075 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3076
3077 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3078 the type::bounds method directly.
3079
3080 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3081
3082 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3083 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3084 are used to set the range type's bounds to use set_bounds.
3085
3086 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3087
3088 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3089
3090 2020-07-10 Pedro Alves <pedro@palves.net>
3091
3092 * gdbthread.h (inferior_ref): Define.
3093 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3094 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3095 * thread.c
3096 (scoped_restore_current_thread::restore):
3097 Adjust to gdb::ref_ptr.
3098 (scoped_restore_current_thread::~scoped_restore_current_thread):
3099 Remove manual decref handling.
3100 (scoped_restore_current_thread::scoped_restore_current_thread):
3101 Adjust to use
3102 inferior_ref::new_reference/thread_info_ref::new_reference.
3103 Incref the thread before calling get_frame_id instead of after.
3104 Let TARGET_CLOSE_ERROR propagate.
3105
3106 2020-07-10 Pedro Alves <pedro@palves.net>
3107
3108 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3109 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3110 NOT_AVAILABLE_ERROR.
3111 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3112 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3113
3114 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3115 Pedro Alves <pedro@palves.net>
3116
3117 PR gdb/26199
3118 * infrun.c (threads_are_resumed_pending_p): Delete.
3119 (do_target_wait): Remove threads_are_executing and
3120 threads_are_resumed_pending_p checks from the inferior_matches
3121 lambda. Update comments.
3122
3123 2020-07-10 Pedro Alves <pedro@palves.net>
3124
3125 PR gdb/26199
3126 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3127 executing threads.
3128
3129 2020-07-10 Pedro Alves <pedro@palves.net>
3130
3131 PR gdb/26199
3132 * infrun.c (handle_no_resumed): Handle multiple targets.
3133
3134 2020-07-10 Pedro Alves <pedro@palves.net>
3135
3136 PR gdb/26199
3137 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3138 target_is_async_p.
3139
3140 2020-07-10 Pedro Alves <pedro@palves.net>
3141
3142 PR gdb/26199
3143 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3144 threads, not all threads.
3145
3146 2020-07-10 Pedro Alves <pedro@palves.net>
3147
3148 PR gdb/26199
3149 * remote.c (remote_target::open_1): Pass remote target pointer as
3150 data to create_async_event_handler.
3151 (remote_async_inferior_event_handler): Mark async event handler
3152 before returning if the remote target still has either pending
3153 events or unacknowledged notifications.
3154
3155 2020-07-10 John Baldwin <jhb@FreeBSD.org>
3156
3157 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3158 declaration.
3159 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3160 function.
3161
3162 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3163
3164 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3165 inferior_ptid.
3166
3167 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3168
3169 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3170 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3171 AT_FREEBSD_PS_STRINGS.
3172
3173 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
3174
3175 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3176 of debugfile path on Windows.
3177
3178 2020-07-08 John Baldwin <jhb@FreeBSD.org>
3179
3180 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3181 argument to 'data'.
3182
3183 2020-07-08 Tom Tromey <tromey@adacore.com>
3184
3185 * ada-lang.c (ada_exception_message_1): Use read_memory.
3186
3187 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3188
3189 PR python/22748
3190 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3191 special handling for inline frames.
3192 * findvar.c (value_of_register_lazy): Skip inline frames when
3193 creating lazy register values.
3194 * frame.c (frame_id_computed_p): Delete definition.
3195 * frame.h (frame_id_computed_p): Delete declaration.
3196
3197 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3198
3199 * NEWS: Mention additions to Python API.
3200 * python/py-arch.c (archpy_register_groups): New function.
3201 (arch_object_methods): Add 'register_groups' method.
3202 * python/py-registers.c (reggroup_iterator_object): New struct.
3203 (reggroup_object): New struct.
3204 (gdbpy_new_reggroup): New function.
3205 (gdbpy_reggroup_to_string): New function.
3206 (gdbpy_reggroup_name): New function.
3207 (gdbpy_reggroup_iter): New function.
3208 (gdbpy_reggroup_iter_next): New function.
3209 (gdbpy_new_reggroup_iterator): New function
3210 (gdbpy_initialize_registers): Register new types.
3211 (reggroup_iterator_object_type): Define new Python type.
3212 (gdbpy_reggroup_getset): New static global.
3213 (reggroup_object_type): Define new Python type.
3214 * python/python-internal.h
3215
3216 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3217
3218 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3219 * python/py-arch.c (archpy_registers): New function.
3220 (arch_object_methods): Add 'registers' method.
3221 * python/py-registers.c: New file.
3222 * python/python-internal.h
3223 (gdbpy_new_register_descriptor_iterator): Declare.
3224 (gdbpy_initialize_registers): Declare.
3225 * python/python.c (do_start_initialization): Call
3226 gdbpy_initialize_registers.
3227 * NEWS: Mention additions to the Python API.
3228
3229 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3230
3231 * NEWS: Mention new Python API method.
3232 * python/py-unwind.c (pending_framepy_architecture): New function.
3233 (pending_frame_object_methods): Add architecture method.
3234
3235 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3236
3237 * gdbarch.c: Regenerate.
3238 * gdbarch.h: Regenerate.
3239 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3240 (gdbarch_data): Use internal_error for the case where
3241 deprecated_set_gdbarch_data was originally needed.
3242 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3243 and use passed in obstack.
3244 (libunwind_frame_set_descr): Should no longer get back NULL from
3245 gdbarch_data.
3246 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3247 type.
3248 * user-regs.c (user_regs_init): Update parameters, and use passed
3249 in obstack.
3250 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3251 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3252
3253 2020-07-06 Tom de Vries <tdevries@suse.de>
3254
3255 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3256 End-Of-Sequence in lte_is_less_than.
3257 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3258 "gdb: Don't reorder line table entries too much when sorting".
3259
3260 2020-07-06 Tom de Vries <tdevries@suse.de>
3261
3262 PR tui/26205
3263 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3264
3265 2020-07-05 Tom de Vries <tdevries@suse.de>
3266
3267 PR build/26187
3268 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3269 std::uncaught_exceptions instead of deprecated
3270 std::uncaught_exception.
3271
3272 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3273
3274 * macroexp.h (macro_stringify): Return
3275 gdb::unique_xmalloc_ptr<char>.
3276 * macroexp.c (macro_stringify): Likewise.
3277 * macrotab.c (fixup_definition): Update.
3278
3279 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3280
3281 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3282 (lex_one_token): Update.
3283 * macroexp.c (struct macro_buffer) <release>: Return
3284 gdb::unique_xmalloc_ptr<char>.
3285 (macro_stringify): Update.
3286 (macro_expand): Update.
3287 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3288 * macroexp.h (macro_expand_next): Likewise.
3289
3290 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
3291
3292 * macroexp.h (macro_lookup_ftype): Remove.
3293 (macro_expand, macro_expand_once, macro_expand_next): Remove
3294 lookup function parameters, add scope parameter.
3295 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3296 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3297 * macroscope.h (standard_macro_lookup): Change parameter type
3298 to macro_scope.
3299 * macroscope.c (standard_macro_lookup): Likewise.
3300 * c-exp.y (lex_one_token): Update.
3301 * macrocmd.c (macro_expand_command): Likewise.
3302 (macro_expand_once_command): Likewise.
3303
3304 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3305
3306 * inf-loop.c (inferior_event_handler): Remove client_data param.
3307 * inf-loop.h (inferior_event_handler): Likewise.
3308 * infcmd.c (step_1): Adjust.
3309 * infrun.c (proceed): Adjust.
3310 (fetch_inferior_event): Remove client_data param.
3311 (infrun_async_inferior_event_handler): Adjust.
3312 * infrun.h (fetch_inferior_event): Remove `void *` param.
3313 * linux-nat.c (handle_target_event): Adjust.
3314 * record-btrace.c (record_btrace_handle_async_inferior_event):
3315 Adjust.
3316 * record-full.c (record_full_async_inferior_event_handler):
3317 Adjust.
3318 * remote.c (remote_async_inferior_event_handler): Adjust.
3319
3320 2020-07-01 Tom Tromey <tom@tromey.com>
3321
3322 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3323 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3324
3325 2020-07-01 Tom Tromey <tom@tromey.com>
3326
3327 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3328 tui_gen_win_info.
3329 (tui_win_info::make_window): Merge with
3330 tui_gen_win_info::make_window.
3331 (tui_win_info::make_visible): Move from tui_gen_win_info.
3332 * tui/tui-win.c (tui_win_info::max_width): Move from
3333 tui_gen_win_info.
3334 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3335 type.
3336 <window_factory>: Likewise.
3337 * tui/tui-layout.c (tui_win_info::resize): Move from
3338 tui_gen_win_info.
3339 (make_standard_window): Change return type.
3340 (get_locator_window, tui_get_window_by_name): Likewise.
3341 (tui_layout_window::apply): Remove a cast.
3342 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3343 (struct tui_win_info): Merge with tui_gen_win_info.
3344 (struct tui_gen_win_info): Remove.
3345
3346 2020-07-01 Tom Tromey <tom@tromey.com>
3347
3348 * tui/tui-stack.h (struct tui_locator_window): Derive from
3349 tui_win_info.
3350 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3351 <can_box>: New method.
3352
3353 2020-07-01 Tom Tromey <tom@tromey.com>
3354
3355 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3356
3357 2020-07-01 Tom Tromey <tom@tromey.com>
3358
3359 * tui/tui-regs.c (tui_data_window::display_registers_from)
3360 (tui_data_window::display_registers_from)
3361 (tui_data_window::first_data_item_displayed)
3362 (tui_data_window::delete_data_content_windows): Update.
3363 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3364 Remove.
3365 (tui_data_window::check_register_values): Update.
3366 (tui_data_item_window::rerender): Add parameters. Update.
3367 (tui_data_item_window::refresh_window): Remove.
3368 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3369 virtual.
3370 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3371 tui_gen_win_info.
3372 <refresh_window, max_height, min_height>: Remove.
3373 <rerender>: Add parameters.
3374 <x, y, visible>: New members.
3375 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3376 <m_item_width>: New member.
3377
3378 2020-07-01 Tom Tromey <tom@tromey.com>
3379
3380 * tui/tui-regs.c (tui_data_window::show_register_group)
3381 (tui_data_window::check_register_values): Update.
3382 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3383 from item_no.
3384
3385 2020-07-01 Tom Tromey <tom@tromey.com>
3386
3387 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3388 useless "if".
3389
3390 2020-07-01 Tom Tromey <tom@tromey.com>
3391
3392 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3393 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3394
3395 2020-07-01 Tom Tromey <tom@tromey.com>
3396
3397 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3398 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3399 (struct tui_line_or_address): Move from tui-data.h.
3400 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3401 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3402 (tui_cmd_window, tui_source_window_base, tui_source_window)
3403 (tui_disasm_window): Don't declare.
3404 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3405 to tui-winsource.h.
3406 (SINGLE_KEY): Move to tui-stack.c.
3407
3408 2020-07-01 Tom Tromey <tom@tromey.com>
3409
3410 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3411 std::string.
3412 * tui/tui-regs.c (class tab_expansion_file): New.
3413 (tab_expansion_file::write): New method.
3414 (tui_register_format): Change return type. Use
3415 tab_expansion_file.
3416 (tui_get_register, tui_data_window::display_registers_from)
3417 (tui_data_item_window::rerender): Update.
3418 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3419 * tui/tui-io.c (tui_expand_tabs): Remove.
3420
3421 2020-07-01 Tom Tromey <tom@tromey.com>
3422
3423 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3424
3425 2020-07-01 Fangrui Song <maskray@google.com>
3426
3427 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3428
3429 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3430
3431 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3432 forms for DW_AT_associated and DW_AT_allocated attributes,
3433 which is already checked in function attr_to_dynamic_prop.
3434
3435 2020-06-30 Tom Tromey <tromey@adacore.com>
3436
3437 * dwarf2/read.c (quirk_rust_enum): Correctly call
3438 alloc_rust_variant for default-less enum.
3439
3440 2020-06-30 Tom Tromey <tromey@adacore.com>
3441
3442 PR build/26183:
3443 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3444 gdb::to_string.
3445
3446 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
3447
3448 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3449 * gdbarch.h: Re-generate.
3450
3451 2020-06-28 Tom Tromey <tom@tromey.com>
3452
3453 * command.h (cmd_types): Remove.
3454 (cmd_type): Don't declare.
3455 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3456 typedef.
3457 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3458 * cli/cli-decode.c (cmd_type): Remove.
3459
3460 2020-06-27 Pedro Alves <palves@redhat.com>
3461
3462 * fork-child.c (prefork_hook): Adjust.
3463 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3464 Delete.
3465 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3466 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3467 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3468 Remove declarations.
3469 (struct inferior) <set_tty, tty>: New methods.
3470 (struct inferior) <terminal>: Rename to ...
3471 (struct inferior) <m_terminal>: ... this and make private.
3472 * main.c (captured_main_1): Adjust.
3473 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3474 (mi_cmd_inferior_tty_show): Adjust.
3475 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3476 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3477
3478 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
3479
3480 * configure.ac: Add --enable-libctf: handle --disable-static
3481 properly.
3482 * acinclude.m4: sinclude ../config/enable.m4.
3483 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3484 (LIBCTF): Substitute in.
3485 (CTF_DEPS): New, likewise.
3486 (CLIBS): libctf needs symbols from libbfd: move earlier.
3487 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3488 flags.
3489 * ctfread.c: Surround in ENABLE_LIBCTF.
3490 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3491 * configure: Regenerate.
3492 * config.in: Likewise.
3493
3494 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3495
3496 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3497
3498 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3499
3500 * inferior.h (struct inferior) <terminal>: Change type to
3501 gdb::unique_xmalloc_ptr<char>.
3502 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3503 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3504 field, adjust to unique pointer.
3505 (get_inferior_io_terminal): Adjust to unique pointer.
3506
3507 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3508
3509 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3510 registers, not just the known core set of registers.
3511
3512 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3513
3514 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3515 fflags, frm, and fcsr registers.
3516 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3517 restore groups.
3518 (riscv_tdesc_unknown_reg): New function.
3519 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3520 tdesc_use_registers.
3521 * riscv-tdep.h (struct gdbarch_tdep): Add
3522 unknown_csrs_first_regnum, unknown_csrs_count,
3523 duplicate_fflags_regnum, duplicate_frm_regnum, and
3524 duplicate_fcsr_regnum fields.
3525
3526 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3527
3528 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3529 callback, use the callback (when not null) to help number unknown
3530 registers.
3531 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3532 (tdesc_use_registers): Add extra parameter to declaration.
3533
3534 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3535
3536 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3537 in the file.
3538 (class riscv_pending_register_alias): Likewise.
3539 (riscv_register_feature::register_info): Change 'required_p' field
3540 to 'required', and change its type. Add 'check' member function.
3541 (riscv_register_feature::register_info::check): Define new member
3542 function.
3543 (riscv_xreg_feature): Change initialisation of 'required' field.
3544 (riscv_freg_feature): Likewise.
3545 (riscv_virtual_feature): Likewise.
3546 (riscv_csr_feature): Likewise.
3547 (riscv_check_tdesc_feature): Take extra parameter, the csr
3548 tdesc_feature, rewrite the function to use the new
3549 riscv_register_feature::register_info::check function.
3550 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3551
3552 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3553
3554 * features/Makefile: Remove all references to the deleted files
3555 below.
3556 * features/riscv/32bit-csr.c: Deleted.
3557 * features/riscv/32bit-csr.xml: Deleted.
3558 * features/riscv/64bit-csr.c: Deleted.
3559 * features/riscv/64bit-csr.xml: Deleted.
3560 * features/riscv/rebuild-csr-xml.sh: Deleted.
3561
3562 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3563
3564 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3565 whitespace error for declaration of names member variable.
3566 (struct riscv_register_feature): Add new prefer_first_name member
3567 variable, and fix whitespace error in declaration of registers.
3568 (riscv_xreg_feature): Initialize prefer_first_name field.
3569 (riscv_freg_feature): Likewise.
3570 (riscv_virtual_feature): Likewise.
3571 (riscv_csr_feature): Likewise.
3572 (riscv_register_name): Expand on comments. Remove register name
3573 modifications for CSR and virtual registers.
3574
3575 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3576
3577 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3578 errors.
3579
3580 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3581
3582 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3583 riscv-opc.h.
3584 (class riscv_pending_register_alias): New class.
3585 (riscv_check_tdesc_feature): Take vector of pending aliases and
3586 populate it as appropriate.
3587 (riscv_setup_register_aliases): Delete.
3588 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3589 to riscv_check_tdesc_feature in all cases. Use the vector to
3590 create the register aliases.
3591
3592 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3593
3594 * sol2-tdep.c (sol2_static_transform_name): Remove.
3595 (sol2_init_abi): Don't register it.
3596 * gdbarch.sh (static_transform_name): Remove.
3597 * gdbarch.c, gdbarch.h: Regenerate.
3598
3599 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3600 gdbarch_static_transform_name.
3601 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3602 * stabsread.c (define_symbol) <'X'>: Remove.
3603 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3604 handling.
3605 <'V'>: Likewise.
3606 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3607 <'S'>: Remove call to gdbarch_static_transform_name.
3608
3609 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3610
3611 * procfs.c (procfs_pre_trace): New function.
3612 (procfs_target::create_inferior): Pass it to fork_inferior.
3613
3614 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3615
3616 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3617 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3618 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3619 sol2-tdep.o, sparc-sol2-tdep.o.
3620 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3621 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3622 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3623 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3624
3625 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3626
3627 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3628 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3629 Call sol2_init_abi.
3630 Remove calls to set_gdbarch_skip_solib_resolver,
3631 set_gdbarch_core_pid_to_str.
3632 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3633 (i386_sol2_static_transform_name): Remove.
3634 (i386_sol2_init_abi): Call sol2_init_abi.
3635 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3636 set_gdbarch_static_transform_name,
3637 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3638 Use sol2_sigtramp_p.
3639 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3640 (sol2_sigtramp_p): New function.
3641 (sol2_static_transform_name): New function.
3642 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3643 (sol2_init_abi): New function.
3644 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3645 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3646 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3647 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3648 (sparc_sol2_static_transform_name): Remove.
3649 (sparc32_sol2_init_abi): Call sol2_init_abi.
3650 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3651 set_gdbarch_static_transform_name,
3652 set_gdbarch_skip_solib_resolver,
3653 set_gdbarch_core_pid_to_str.
3654 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3655 (sparc_sol2_static_transform_name): Remove
3656 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3657 call sol2_sigtramp_p.
3658 (sparc64_sol2_init_abi): Call sol2_init_abi.
3659 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3660 set_gdbarch_static_transform_name,
3661 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3662
3663 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3664
3665 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3666 * exec.c (validate_exec_file): If from_tty, set both
3667 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3668 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3669 and from_tty, unconditionally ask a confirmation.
3670
3671 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3672
3673 * target-descriptions.c (tdesc_architecture_name): Protect against
3674 NULL pointer dereference.
3675 (maint_print_xml_tdesc_cmd): New function.
3676 (_initialize_target_descriptions): Register new 'maint print
3677 xml-tdesc' command and give it the filename completer.
3678 * NEWS: Mention new 'maint print xml-tdesc' command.
3679
3680 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3681
3682 * target-descriptions.c (class tdesc_compatible_info): New class.
3683 (struct target_desc): Change type of compatible vector.
3684 (tdesc_compatible_p): Update for change in type of
3685 target_desc::compatible.
3686 (tdesc_compatible_info_list): New function.
3687 (tdesc_compatible_info_arch_name): New function.
3688 (tdesc_add_compatible): Update for change in type of
3689 target_desc::compatible.
3690 (print_c_tdesc::visit_pre): Likewise.
3691
3692 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3693
3694 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3695 whitespace to underscore.
3696 (maint_print_c_tdesc_cmd): Use fake filename for target
3697 descriptions that came from the target.
3698 (_initialize_target_descriptions): Add filename command completion
3699 for 'maint print c-tdesc'.
3700
3701 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3702
3703 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3704 lines.
3705
3706 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3707
3708 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3709 lines.
3710 (dwarf2_find_location_expression): Likewise.
3711 (call_site_parameter_matches): Likewise.
3712 (dwarf2_compile_expr_to_ax): Likewise.
3713 (disassemble_dwarf_expression): Likewise.
3714 (loclist_describe_location): Likewise.
3715
3716 2020-06-23 Pedro Alves <palves@redhat.com>
3717
3718 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3719 progspace-and-thread.h. Include scoped-mock-context.h instead.
3720 (register_to_value_test): Use scoped_mock_context.
3721 * regcache.c: Include "scoped-mock-context.h".
3722 (cooked_read_test): Don't error out if a target is already pushed.
3723 Use scoped_mock_context. Adjust.
3724 * scoped-mock-context.h: New file.
3725
3726 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3727
3728 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3729 initializer.
3730 (ada_language::is_string_type_p): New member function.
3731 * c-lang.c (c_language_data): Delete la_is_string_type_p
3732 initializer.
3733 (cplus_language_data): Likewise.
3734 (asm_language_data): Likewise.
3735 (minimal_language_data): Likewise.
3736 * d-lang.c (d_language_data): Likewise.
3737 * f-lang.c (f_is_string_type_p): Delete function, implementation
3738 moved to f_language::is_string_type_p.
3739 (f_language_data): Delete la_is_string_type_p initializer.
3740 (f_language::is_string_type_p): New member function,
3741 implementation from f_is_string_type_p.
3742 * go-lang.c (go_is_string_type_p): Delete function, implementation
3743 moved to go_language::is_string_type_p.
3744 (go_language_data): Delete la_is_string_type_p initializer.
3745 (go_language::is_string_type_p): New member function,
3746 implementation from go_is_string_type_p.
3747 * language.c (language_defn::is_string_type_p): Define new member
3748 function.
3749 (default_is_string_type_p): Make static, add comment copied from
3750 header file.
3751 (unknown_language_data): Delete la_is_string_type_p initializer.
3752 (unknown_language::is_string_type_p): New member function.
3753 (auto_language_data): Delete la_is_string_type_p initializer.
3754 (auto_language::is_string_type_p): New member function.
3755 * language.h (language_data): Delete la_is_string_type_p field.
3756 (language_defn::is_string_type_p): Declare new function.
3757 (default_is_string_type_p): Delete desclaration, move comment to
3758 definition.
3759 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3760 moved to m2_language::is_string_type_p.
3761 (m2_language_data): Delete la_is_string_type_p initializer.
3762 (m2_language::is_string_type_p): New member function,
3763 implementation from m2_is_string_type_p.
3764 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3765 initializer.
3766 * opencl-lang.c (opencl_language_data): Likewise.
3767 * p-lang.c (pascal_is_string_type_p): Delete function,
3768 implementation moved to pascal_language::is_string_type_p.
3769 (pascal_language_data): Delete la_is_string_type_p initializer.
3770 (pascal_language::is_string_type_p): New member function,
3771 implementation from pascal_is_string_type_p.
3772 * rust-lang.c (rust_is_string_type_p): Delete function,
3773 implementation moved to rust_language::is_string_type_p.
3774 (rust_language_data): Delete la_is_string_type_p initializer.
3775 (rust_language::is_string_type_p): New member function,
3776 implementation from rust_is_string_type_p.
3777 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3778 is_string_type_p.
3779
3780 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3781
3782 * ada-lang.c (ada_language_data): Delete la_print_typedef
3783 initializer.
3784 (ada_language::print_typedef): New member function.
3785 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3786 (cplus_language_data): Likewise.
3787 (asm_language_data): Likewise.
3788 (minimal_language_data): Likewise.
3789 * d-lang.c (d_language_data): Likewise.
3790 * f-lang.c (f_language_data): Likewise.
3791 (f_language::print_typedef): New member function.
3792 * go-lang.c (go_language_data): Delete la_print_typedef
3793 initializer.
3794 * language.c (language_defn::print_typedef): Define member
3795 function.
3796 (unknown_language_data): Delete la_print_typedef initializer.
3797 (unknown_language::print_typedef): New member function.
3798 (auto_language_data): Delete la_print_typedef initializer.
3799 (auto_language::print_typedef): New member function.
3800 * language.h (language_data): Delete la_print_typedef field.
3801 (language_defn::print_typedef): Declare new member function.
3802 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3803 (default_print_typedef): Delete declaration.
3804 * m2-lang.c (m2_language_data): Delete la_print_typedef
3805 initializer.
3806 (m2_language::print_typedef): New member function.
3807 * objc-lang.c (objc_language_data): Delete la_print_typedef
3808 initializer.
3809 * opencl-lang.c (opencl_language_data): Likewise.
3810 * p-lang.c (pascal_language_data): Likewise.
3811 (pascal_language::print_typedef): New member function.
3812 * rust-lang.c (rust_print_typedef): Delete function,
3813 implementation moved to rust_language::print_typedef.
3814 (rust_language): Delete la_print_typedef initializer.
3815 (rust_language::print_typedef): New member function,
3816 implementation from rust_print_typedef.
3817 * typeprint.c (default_print_typedef): Delete.
3818
3819 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3820
3821 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3822 (ada_language::printstr): New member function.
3823 * c-lang.c (c_language_data): Delete la_printstr initializer.
3824 (cplus_language_data): Likewise.
3825 (asm_language_data): Likewise.
3826 (minimal_language_data): Likewise.
3827 * d-lang.c (d_language_data): Likewise.
3828 * f-lang.c (f_printstr): Rename to f_language::printstr.
3829 (f_language_data): Delete la_printstr initializer.
3830 (f_language::printstr): New member function, implementation from
3831 f_printstr.
3832 * go-lang.c (go_language_data): Delete la_printstr initializer.
3833 * language.c (language_defn::printstr): Define new member
3834 function.
3835 (unk_lang_printstr): Delete.
3836 (unknown_language_data): Delete la_printstr initializer.
3837 (unknown_language::printstr): New member function.
3838 (auto_language_data): Delete la_printstr initializer.
3839 (auto_language::printstr): New member function.
3840 * language.h (language_data): Delete la_printstr field.
3841 (language_defn::printstr): Declare new member function.
3842 (LA_PRINT_STRING): Update call to printstr.
3843 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3844 (m2_language_data): Delete la_printstr initializer.
3845 (m2_language::printstr): New member function, implementation from
3846 m2_printstr.
3847 * objc-lang.c (objc_language_data): Delete la_printstr
3848 initializer.
3849 * opencl-lang.c (opencl_language_data): Likewise.
3850 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3851 (pascal_language_data): Delete la_printstr initializer.
3852 (pascal_language::printstr): New member function, implementation
3853 from pascal_printstr.
3854 * p-lang.h (pascal_printstr): Delete declaration.
3855 * rust-lang.c (rust_printstr): Update header comment.
3856 (rust_language_data): Delete la_printstr initializer.
3857 (rust_language::printstr): New member function.
3858
3859 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3860
3861 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3862 (ada_language::printchar): New member function.
3863 * c-lang.c (c_language_data): Delete la_printchar initializer.
3864 (cplus_language_data): Likewise.
3865 (asm_language_data): Likewise.
3866 (minimal_language_data): Likewise.
3867 * d-lang.c (d_language_data): Likewise.
3868 * f-lang.c (f_printchar): Rename to f_language::printchar.
3869 (f_language_data): Delete la_printchar initializer.
3870 (f_language::printchar): New member function, implementation from
3871 f_printchar.
3872 * go-lang.c (go_language_data): Delete la_printchar initializer.
3873 * language.c (unk_lang_printchar): Delete.
3874 (language_defn::printchar): Define new member function.
3875 (unknown_language_data): Delete la_printchar initializer.
3876 (unknown_language::printchar): New member function.
3877 (auto_language_data): Delete la_printchar initializer.
3878 (auto_language::printchar): New member function.
3879 * language.h (language_data): Delete la_printchar field.
3880 (language_defn::printchar): Declare new member function.
3881 (LA_PRINT_CHAR): Update call to printchar.
3882 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3883 (m2_language::printchar): New member function.
3884 * objc-lang.c (objc_language_data): Delete la_printchar
3885 initializer.
3886 * opencl-lang.c (opencl_language_data): Likewise.
3887 * p-lang.c (pascal_language_data): Delete la_printchar
3888 initializer.
3889 (pascal_language::printchar): New member function.
3890 * rust-lang.c (rust_printchar): Rename to
3891 rust_language::printchar.
3892 (rust_language_data): Delete la_printchar initializer.
3893 (rust_language::printchar): New member function, implementation
3894 from rust_printchar.
3895
3896 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3897
3898 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3899 (ada_language_data): Delete la_emitchar initializer.
3900 (ada_language::emitchar): New member function, implementation from
3901 emit_char.
3902 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3903 (cplus_language_data): Likewise.
3904 (asm_language_data): Likewise.
3905 (minimal_language_data): Likewise.
3906 * d-lang.c (d_language_data): Likewise.
3907 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3908 (f_language_data): Delete la_emitchar initializer.
3909 (f_language::emitchar): New member function, implementation from
3910 f_emit_char.
3911 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3912 * language.c (unk_lang_emit_char): Delete.
3913 (language_defn::emitchar): New member function definition.
3914 (unknown_language_data): Delete la_emitchar initializer.
3915 (unknown_language::emitchar): New member function.
3916 (auto_language_data): Delete la_emitchar initializer.
3917 (auto_language::emitchar): New member function.
3918 * language.h (language_data): Delete la_emitchar field.
3919 (language_defn::emitchar): New member field declaration.
3920 (LA_EMIT_CHAR): Update call to emitchar.
3921 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3922 (m2_language_data): Delete la_emitchar initializer.
3923 (m2_language::emitchar): New member function, implementation from
3924 m2_emit_char.
3925 * objc-lang.c (objc_language_data): Delete la_emitchar
3926 initializer.
3927 * opencl-lang.c (opencl_language_data): Likewise.
3928 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3929 (pascal_language_data): Delete la_emitchar initializer.
3930 (pascal_language::emitchar): New member function, implementation
3931 from pascal_emit_char.
3932 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3933 (rust_language_data): Delete la_emitchar initializer.
3934 (rust_language::emitchar): New member function, implementation
3935 from rust_emitchar.
3936
3937 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3938
3939 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3940 (ada_language_data): Delete la_post_parser initializer.
3941 (ada_language::post_parser): New member function.
3942 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3943 (cplus_language_data): Likewise.
3944 (asm_language_data): Likewise.
3945 (minimal_language_data): Likewise.
3946 * d-lang.c (d_language_data): Likewise.
3947 * f-lang.c (f_language_data): Likewise.
3948 * go-lang.c (go_language_data): Likewise.
3949 * language.c (unknown_language_data): Likewise.
3950 (auto_language_data): Likewise.
3951 * language.h (language_data): Delete la_post_parser field.
3952 (language_defn::post_parser): New member function.
3953 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3954 * objc-lang.c (objc_language_data): Likewise.
3955 * opencl-lang.c (opencl_language_data): Likewise.
3956 * p-lang.c (pascal_language_data): Likewise.
3957 * parse.c (parse_exp_in_context): Update call to post_parser.
3958 (null_post_parser): Delete definition.
3959 * parser-defs.h (null_post_parser): Delete declaration.
3960 * rust-lang.c (rust_language_data): Delete la_post_parser
3961 initializer.
3962
3963 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3964
3965 * ada-lang.c (parse): Rename to ada_language::parser.
3966 (ada_language_data): Delete la_parser initializer.
3967 (ada_language::parser): New member function, implementation from
3968 parse.
3969 * c-lang.c (c_language_data): Delete la_parser initializer.
3970 (cplus_language_data): Likewise.
3971 (asm_language_data): Likewise.
3972 (minimal_language_data): Likewise.
3973 * d-lang.c (d_language_data): Likewise.
3974 (d_language::parser): New member function.
3975 * f-lang.c (f_language_data): Delete la_parser initializer.
3976 (f_language::parser): New member function.
3977 * go-lang.c (go_language_data): Delete la_parser initializer.
3978 (go_language::parser): New member function.
3979 * language.c (unk_lang_parser): Delete.
3980 (language_defn::parser): Define new member function.
3981 (unknown_language_data): Delete la_parser initializer.
3982 (unknown_language::parser): New member function.
3983 (auto_language_data): Delete la_parser initializer.
3984 (auto_language::parser): New member function.
3985 * language.h (language_data): Delete la_parser field.
3986 (language_defn::parser): Declare new member function.
3987 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3988 (m2_language::parser): New member function.
3989 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3990 * opencl-lang.c (opencl_language_data): Likewise.
3991 * p-lang.c (pascal_language_data): Likewise.
3992 (pascal_language::parser): New member function.
3993 * parse.c (parse_exp_in_context): Update call to parser.
3994 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3995 (rust_language::parser): New member function.
3996
3997 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3998
3999 * top.c (print_gdb_configuration): Print --with-python-libdir
4000 configuration value.
4001
4002 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4003
4004 * NEWS: Mention change to the alias command.
4005
4006 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4007
4008 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4009 (alias_command_completer)
4010 (make_alias_options_def_group): New functions.
4011 (alias_opts, alias_option_defs): New struct and array.
4012 (alias_usage_error): Update usage.
4013 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4014 Use option framework.
4015 (_initialize_cli_cmds): Update alias command help.
4016 Update aliases command help.
4017 (show_user):
4018 Add NULL for new default_args lookup_cmd argument.
4019 (valid_command_p): Rename to validate_aliased_command.
4020 Add NULL for new default_args lookup_cmd argument. Verify that the
4021 aliased_command has no default args.
4022 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4023 (lookup_cmd_1, lookup_cmd): New argument default_args.
4024 (add_alias_cmd):
4025 Add NULL for new default_args lookup_cmd argument.
4026 (print_help_for_command): Show default args under the layout
4027 alias some_alias = some_aliased_cmd some_alias_default_arg.
4028 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4029 xfree default_args in destructor.
4030 * cli/cli-script.c (process_next_line, do_define_command):
4031 Add NULL for new default_args lookup_cmd argument.
4032 * command.h: Declare new default_args argument in lookup_cmd
4033 and lookup_cmd_1.
4034 * completer.c (complete_line_internal_1):
4035 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4036 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4037 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4038 Likewise.
4039 * infcmd.c (_initialize_infcmd): Likewise.
4040 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4041 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4042 * python/py-param.c (add_setshow_generic): Likewise.
4043 * remote.c (_initialize_remote): Likewise.
4044 * top.c (execute_command): Prepend default_args if command has some.
4045 (set_verbose):
4046 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4047 * tracepoint.c (validate_actionline, encode_actions_1):
4048 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4049
4050 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4051
4052 * jit.c (jit_read_descriptor): Use bool as the return type.
4053 (jit_breakpoint_re_set_internal): Use bool as the return type.
4054 Invert the return value logic; return true if the jit breakpoint
4055 has been successfully initialized.
4056 (jit_inferior_init): Update the call to
4057 jit_breakpoint_re_set_internal.
4058
4059 2020-06-22 Pedro Alves <palves@redhat.com>
4060
4061 PR gdb/25939
4062 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4063 Use the current inferior instead. Don't return
4064 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4065 wait again.
4066 * sol-thread.c (sol_thread_target::wait): Don't reference
4067 inferior_ptid.
4068 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4069 (sol_update_thread_list_callback): Use the current inferior's pid
4070 instead of inferior_ptid.
4071
4072 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4073
4074 * procfs.c: Cleanup many comments.
4075
4076 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4077 (AFTER_WATCHFLAG): Replace by value.
4078
4079 (MAIN_PROC_NAME_FORMAT): Inline ...
4080 (create_procinfo): ... here.
4081
4082 (procfs_debug_inferior): Remove SYS_exec handling.
4083 (syscall_is_exec): Likewise.
4084 (procfs_set_exec_trap): Likewise.
4085
4086 (syscall_is_lwp_exit): Inline in callers.
4087 (syscall_is_exit): Likewise.
4088 (syscall_is_exec): Likewise.
4089 (syscall_is_lwp_create): Likewise.
4090
4091 (invalidate_cache): Remove #if 0 code.
4092
4093 (make_signal_thread_runnable): Remove.
4094 (procfs_target::resume): Remove #if 0 code.
4095
4096 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4097
4098 PR gdb/25939
4099 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4100 call ...
4101 (procfs_target::create_inferior): ... here.
4102
4103 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4104
4105 * exec.c (validate_exec_file): Ensure the build-id is up to
4106 date by calling reopen_exec_file (that checks file timestamp
4107 to decide to re-read the file).
4108
4109 2020-06-18 Pedro Alves <palves@redhat.com>
4110
4111 PR gdb/25412
4112 * gdbthread.h (delete_thread, delete_thread_silent)
4113 (find_thread_ptid): Update comments.
4114 * thread.c (current_thread_): New global.
4115 (is_current_thread): Move higher, and reimplement.
4116 (inferior_thread): Reimplement.
4117 (set_thread_exited): Use bool. Add assertions.
4118 (add_thread_silent): Simplify thread-reuse handling by always
4119 calling delete_thread.
4120 (delete_thread): Remove intro comment.
4121 (find_thread_ptid): Skip exited threads.
4122 (switch_to_thread_no_regs): Write to current_thread_.
4123 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4124 INFERIOR_PTID. Clear current_thread_.
4125
4126 2020-06-18 Pedro Alves <palves@redhat.com>
4127
4128 * aix-thread.c (pd_update): Use switch_to_thread.
4129
4130 2020-06-18 Pedro Alves <palves@redhat.com>
4131
4132 * ravenscar-thread.c (ravenscar_thread_target): Update.
4133 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4134 (ravenscar_thread_target::add_active_thread): ... this. Don't
4135 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4136 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4137
4138 2020-06-18 Pedro Alves <palves@redhat.com>
4139
4140 * nat/windows-nat.c (current_windows_thread): Remove.
4141 * nat/windows-nat.h (current_windows_thread): Remove.
4142 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4143 Adjust.
4144 (display_selectors): Adjust to fetch the current
4145 windows_thread_info based on inferior_ptid.
4146 (fake_create_process): No longer write to current_windows_thread.
4147 (windows_nat_target::get_windows_debug_event):
4148 Don't set inferior_ptid or current_windows_thread.
4149 (windows_nat_target::wait): Adjust to not rely on
4150 current_windows_thread.
4151 (do_initial_windows_stuff): Now a method of windows_nat_target.
4152 Switch to the last_ptid thread.
4153 (windows_nat_target::attach): Adjust.
4154 (windows_nat_target::detach): Use switch_to_no_thread instead of
4155 writing to inferior_ptid directly.
4156 (windows_nat_target::create_inferior): Adjust.
4157
4158 2020-06-18 Pedro Alves <palves@redhat.com>
4159
4160 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4161
4162 2020-06-18 Pedro Alves <palves@redhat.com>
4163
4164 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4165 after creating it, instead of writing to inferior_ptid. Don't
4166 write to inferior_ptid.
4167
4168 2020-06-18 Pedro Alves <palves@redhat.com>
4169
4170 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4171
4172 2020-06-18 Pedro Alves <palves@redhat.com>
4173
4174 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4175 it, instead of writing to inferior_ptid.
4176
4177 2020-06-18 Pedro Alves <palves@redhat.com>
4178
4179 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4180 to inferior_ptid.
4181
4182 2020-06-18 Pedro Alves <palves@redhat.com>
4183
4184 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4185 instead of writing to inferior_ptid directly.
4186
4187 2020-06-18 Pedro Alves <palves@redhat.com>
4188
4189 * corelow.c (core_target::close): Use switch_to_no_thread instead
4190 of writing to inferior_ptid directly.
4191 (add_to_thread_list, core_target_open): Use switch_to_thread
4192 instead of writing to inferior_ptid directly.
4193
4194 2020-06-18 Pedro Alves <palves@redhat.com>
4195
4196 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4197 inferior_ptid.
4198 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4199 inferior_ptid.
4200 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4201 inferior_ptid directly.
4202 (darwin_nat_target::init_thread_list): Switch to thread, instead
4203 of writing to inferior_ptid.
4204 (darwin_nat_target::attach): Don't write to inferior_ptid.
4205 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4206
4207 2020-06-18 Pedro Alves <palves@redhat.com>
4208
4209 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4210 thread.
4211 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4212 Instead use switch_to_thread.
4213 (gnu_nat_target::detach): Use switch_to_no_thread
4214 instead of writing to inferior_ptid directly. Used passed-in
4215 inferior instead of looking up the inferior by pid.
4216
4217 2020-06-18 Pedro Alves <palves@redhat.com>
4218
4219 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4220 inferior_ptid.
4221
4222 2020-06-18 Pedro Alves <palves@redhat.com>
4223
4224 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4225 inferior_ptid.
4226 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4227 thread.
4228 (nto_procfs_target::detach): Avoid referencing
4229 inferior_ptid. Use switch_to_no_thread instead of writing to
4230 inferior_ptid directly.
4231 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4232 instead of writing to inferior_ptid directly.
4233 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4234 to thread.
4235
4236 2020-06-18 Pedro Alves <palves@redhat.com>
4237
4238 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4239 after creating it, instead of writing to inferior_ptid.
4240 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4241 to inferior_ptid directly.
4242 (gdbsim_target::wait): Don't write to inferior_ptid.
4243
4244 2020-06-18 Pedro Alves <palves@redhat.com>
4245
4246 * remote.c (remote_target::remote_notice_new_inferior): Use
4247 switch_to_thread instead of writing to inferior_ptid directly.
4248 (remote_target::add_current_inferior_and_thread): Use
4249 switch_to_no_thread instead of writing to inferior_ptid directly.
4250 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4251 and switch_to_thread instead of using set_current_inferior or
4252 writing to inferior_ptid directly.
4253
4254 2020-06-18 Pedro Alves <palves@redhat.com>
4255
4256 * tracectf.c (ctf_target_open): Switch to added thread instead of
4257 writing to inferior_ptid directly.
4258 (ctf_target::close): Use switch_to_no_thread instead of writing to
4259 inferior_ptid directly.
4260
4261 2020-06-18 Pedro Alves <palves@redhat.com>
4262
4263 * tracefile-tfile.c (tfile_target_open): Don't write to
4264 inferior_ptid directly, instead switch to added thread.
4265 (tfile_target::close): Use switch_to_no_thread instead of writing
4266 to inferior_ptid directly.
4267
4268 2020-06-18 Pedro Alves <palves@redhat.com>
4269
4270 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4271 (procfs_target::detach): Use switch_to_no_thread
4272 instead of writing to inferior_ptid directly.
4273 (do_attach): Change return type to void. Switch to the added
4274 thread.
4275 (procfs_target::create_inferior): Switch to the added thread.
4276 (procfs_do_thread_registers): Don't write to inferior_ptid.
4277
4278 2020-06-18 Pedro Alves <palves@redhat.com>
4279
4280 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4281 of writing to inferior_ptid.
4282 (scoped_restore_exited_inferior): Delete.
4283 (handle_vfork_child_exec_or_exit): Simplify using
4284 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4285 instead of writing to inferior_ptid.
4286 (THREAD_STOPPED_BY): Delete.
4287 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4288 (thread_stopped_by_hw_breakpoint): Delete.
4289 (save_waitstatus): Use
4290 scoped_restore_current_thread+switch_to_thread, and call
4291 target_stopped_by_watchpoint instead of
4292 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4293 instead of thread_stopped_by_sw_breakpoint, and
4294 target_stopped_by_hw_breakpoint instead of
4295 thread_stopped_by_hw_breakpoint.
4296 (handle_inferior_event)
4297 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4298 inferior_ptid directly, nor
4299 set_current_inferior/set_current_program_space. Use
4300 switch_to_thread / switch_to_inferior_no_thread instead.
4301
4302 2020-06-18 Pedro Alves <palves@redhat.com>
4303
4304 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4305 instead of writing to inferior_ptid.
4306
4307 2020-06-18 Pedro Alves <palves@redhat.com>
4308
4309 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4310 added thread.
4311 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4312 to the added thread.
4313 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4314 instead of writing to inferior_ptid.
4315
4316 2020-06-18 Pedro Alves <palves@redhat.com>
4317
4318 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4319 (register_to_value_test): Mock a program_space too. Heap-allocate
4320 the address space. Don't write to inferior_ptid. Use
4321 switch_to_thread instead.
4322
4323 2020-06-18 Pedro Alves <palves@redhat.com>
4324
4325 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4326 Delete.
4327 (find_signalled_thread()): New, factored out from
4328 linux_make_corefile_notes and adjusted to handle exited threads.
4329 (linux_make_corefile_notes): Adjust to use the new
4330 find_signalled_thread.
4331
4332 2020-06-18 Pedro Alves <palves@redhat.com>
4333
4334 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4335 of saving/restoring inferior_ptid.
4336
4337 2020-06-17 Tom Tromey <tom@tromey.com>
4338
4339 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4340 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4341 declare.
4342 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4343
4344 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
4345
4346 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4347 of partial symtabs.
4348
4349 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4350
4351 * regformats/reg-arm.dat: Remove.
4352 * regformats/reg-bfin.dat: Remove.
4353 * regformats/reg-cris.dat: Remove.
4354 * regformats/reg-crisv32.dat: Remove.
4355 * regformats/reg-m32r.dat: Remove.
4356 * regformats/reg-tilegx.dat: Remove.
4357 * regformats/reg-tilegx32.dat: Remove.
4358
4359 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4360
4361 * features/Makefile (WHICH): Remove arm files.
4362 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4363 * regformats/arm/arm-with-neon.dat: Remove.
4364 * regformats/arm/arm-with-vfpv2.dat: Remove.
4365 * regformats/arm/arm-with-vfpv3.dat: Remove.
4366
4367 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4368
4369 * features/Makefile (XMLTOC): Remove rx.xml.
4370
4371 2020-06-17 Pedro Alves <palves@redhat.com>
4372
4373 * gdbthread.h (thread_control_state) <trap_expected> Update
4374 comments.
4375
4376 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4377
4378 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4379 ada_language::lookup_symbol_nonlocal.
4380 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4381 (ada_language::lookup_symbol_nonlocal): New member function,
4382 implementation from ada_lookup_symbol_nonlocal.
4383 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4384 initializer.
4385 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4386 initializer.
4387 (cplus_language::lookup_symbol_nonlocal): New member function.
4388 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4389 (minimal_language_data) Likewise.
4390 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4391 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4392 initializer.
4393 (d_language::lookup_symbol_nonlocal): New member function.
4394 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4395 initializer.
4396 (f_language::lookup_symbol_nonlocal): New member function.
4397 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4398 initializer.
4399 * language.c (unknown_language_data): Likewise.
4400 (auto_language_data): Likewise.
4401 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4402 field.
4403 (language_defn::lookup_symbol_nonlocal): New member function.
4404 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4405 initializer.
4406 * objc-lang.c (objc_language_data): Likewise.
4407 * opencl-lang.c (opencl_language_data): Likewise.
4408 * p-lang.c (pascal_language_data): Likewise.
4409 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4410 rust_language::lookup_symbol_nonlocal.
4411 (rust_language_data): Delete la_lookup_symbol_nonlocal
4412 initializer.
4413 (rust_language::lookup_symbol_nonlocal): New member function,
4414 implementation from rust_lookup_symbol_nonlocal.
4415 * symtab.c (lookup_symbol_aux): Update call to
4416 lookup_symbol_nonlocal.
4417 (basic_lookup_symbol_nonlocal): Rename to...
4418 (language_defn::lookup_symbol_nonlocal): ...this, and update
4419 header comment. Remove language_defn parameter, and replace with
4420 uses of `this'.
4421 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4422
4423 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4424
4425 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4426 initializer.
4427 (ada_language::value_print_inner): New member function.
4428 * c-lang.c (c_language_data): Delete la_value_print_inner
4429 initializer.
4430 (cplus_language_data): Likewise.
4431 (asm_language_data): Likewise.
4432 (minimal_language_data): Likewise.
4433 * d-lang.c (d_language_data): Likewise.
4434 (d_language::value_print_inner): New member function.
4435 * f-lang.c (f_language_data): Delete la_value_print_inner
4436 initializer.
4437 (f_language::value_print_inner): New member function.
4438 * f-lang.h (f_value_print_innner): Rename to...
4439 (f_value_print_inner): ...this (note spelling of 'inner').
4440 * f-valprint.c (f_value_print_innner): Rename to...
4441 (f_value_print_inner): ...this (note spelling of 'inner').
4442 * go-lang.c (go_language_data): Delete la_value_print_inner
4443 initializer.
4444 (go_language::value_print_inner): New member function.
4445 * language.c (language_defn::value_print_inner): Define new member
4446 function.
4447 (unk_lang_value_print_inner): Delete.
4448 (unknown_language_data): Delete la_value_print_inner initializer.
4449 (unknown_language::value_print_inner): New member function.
4450 (auto_language_data): Delete la_value_print_inner initializer.
4451 (auto_language::value_print_inner): New member function.
4452 * language.h (language_data): Delete la_value_print_inner field.
4453 (language_defn::value_print_inner): Delcare new member function.
4454 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4455 initializer.
4456 (m2_language::value_print_inner): New member function.
4457 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4458 initializer.
4459 * opencl-lang.c (opencl_language_data): Likewise.
4460 * p-lang.c (pascal_language_data): Likewise.
4461 (pascal_language::value_print_inner): New member function.
4462 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4463 initializer.
4464 (rust_language::value_print_inner): New member function.
4465 * valprint.c (do_val_print): Update call to value_print_inner.
4466
4467 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4468
4469 * ada-lang.c (ada_language_data): Delete la_value_print
4470 initializer.
4471 (ada_language::value_print): New member function.
4472 * c-lang.c (c_language_data): Delete la_value_print initializer.
4473 (cplus_language_data): Likewise.
4474 (asm_language_data): Likewise.
4475 (minimal_language_data): Likewise.
4476 * d-lang.c (d_language_data): Likewise.
4477 * f-lang.c (f_language_data): Likewise.
4478 * go-lang.c (go_language_data): Likewise.
4479 * language.c (unk_lang_value_print): Delete.
4480 (language_defn::value_print): Define new member function.
4481 (unknown_language_data): Delete la_value_print initializer.
4482 (unknown_language::value_print): New member function.
4483 (auto_language_data): Delete la_value_print initializer.
4484 (auto_language::value_print): New member function.
4485 * language.h (language_data): Delete la_value_print field.
4486 (language_defn::value_print): Declare new member function.
4487 (LA_VALUE_PRINT): Update call to value_print.
4488 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4489 * objc-lang.c (objc_language_data): Likewise.
4490 * opencl-lang.c (opencl_language_data): Likewise.
4491 * p-lang.c (pascal_language_data): Likewise.
4492 (pascal_language::value_print): New member function.
4493 * rust-lang.c (rust_language_data): Delete la_value_print
4494 initializer.
4495
4496 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4497
4498 * ada-lang.c (ada_watch_location_expression): Rename to
4499 ada_language::watch_location_expression.
4500 (ada_language_data): Delete la_watch_location_expression
4501 initializer.
4502 (ada_language::watch_location_expression): New member function,
4503 implementation from ada_watch_location_expression.
4504 * breakpoint.c (watch_command_1): Update call to
4505 watch_location_expression.
4506 * c-lang.c (c_watch_location_expression): Rename to
4507 language_defn::watch_location_expression.
4508 (c_language_data): Delete la_watch_location_expression
4509 initializer.
4510 (cplus_language_data): Likewise.
4511 (asm_language_data): Likewise.
4512 (minimal_language_data): Likewise.
4513 * c-lang.h (c_watch_location_expression): Delete declaration.
4514 * d-lang.c (d_language_data): Delete la_watch_location_expression
4515 initializer.
4516 * f-lang.c (f_language_data): Likewise.
4517 * go-lang.c (go_language_data): Likewise.
4518 * language.c (language_defn::watch_location_expression): Member
4519 function implementation from c_watch_location_expression.
4520 (unknown_language_data): Delete la_watch_location_expression
4521 initializer.
4522 (auto_language_data): Likewise.
4523 * language.h (language_data): Delete la_watch_location_expression
4524 field.
4525 (language_defn::watch_location_expression): Declare new member
4526 function.
4527 * m2-lang.c (m2_language_data): Delete
4528 la_watch_location_expression initializer.
4529 * objc-lang.c (objc_language_data): Likewise.
4530 * opencl-lang.c (opencl_language_data): Likewise.
4531 * p-lang.c (pascal_language_data): Likewise.
4532 * rust-lang.c (rust_watch_location_expression): Rename to
4533 rust_language::watch_location_expression.
4534 (rust_language_data): Delete la_watch_location_expression
4535 initializer.
4536 (rust_language::watch_location_expression): New member function,
4537 implementation from rust_watch_location_expression.
4538
4539 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4540
4541 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4542 ada_language::collect_symbol_completion_matches.
4543 (ada_language_data): Delete la_collect_symbol_completion_matches
4544 initializer.
4545 (ada_language::collect_symbol_completion_matches): New member
4546 function, implementation from
4547 ada_collect_symbol_completion_matches.
4548 * c-lang.c (c_language_data): Delete
4549 la_collect_symbol_completion_matches initializer.
4550 (cplus_language_data): Likewise.
4551 (asm_language_data): Likewise.
4552 (minimal_language_data): Likewise.
4553 * d-lang.c (d_language_data): Likewise.
4554 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4555 f_language::collect_symbol_completion_matches.
4556 (f_language_data): Delete la_collect_symbol_completion_matches
4557 initializer.
4558 (f_language::collect_symbol_completion_matches) New member
4559 function, implementation from f_collect_symbol_completion_matches.
4560 * go-lang.c (go_language_data): Delete
4561 la_collect_symbol_completion_matches initializer.
4562 * language.c (unknown_language_data): Likewise.
4563 (auto_language_data): Likewise.
4564 * language.h (language_data): Delete
4565 la_collect_symbol_completion_matches field.
4566 (language_defn::collect_symbol_completion_matches): New member
4567 function.
4568 * m2-lang.c (m2_language_data): Delete
4569 la_collect_symbol_completion_matches initializer.
4570 * objc-lang.c (objc_language_data): Likewise.
4571 * opencl-lang.c (opencl_language_data): Likewise.
4572 * p-lang.c (pascal_language_data): Likewise.
4573 * rust-lang.c (rust_language_data): Likewise.
4574 * symtab.c (default_collect_symbol_completion_matches): Delete.
4575 (collect_symbol_completion_matches): Update call to
4576 collect_symbol_completion_matches.
4577 (collect_symbol_completion_matches_type): Likewise.
4578 * symtab.h (default_collect_symbol_completion_matches): Delete
4579 declaration.
4580
4581 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4582
4583 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4584 (ada_language_data): Delete la_word_break_characters initializer.
4585 (ada_language::word_break_characters): New member function.
4586 * c-lang.c (c_language_data): Delete la_word_break_characters
4587 initializer.
4588 (cplus_language_data): Likewise.
4589 (asm_language_data): Likewise.
4590 (minimal_language_data): Likewise.
4591 * completer.c: Update global comment.
4592 (advance_to_expression_complete_word_point): Update call to
4593 word_break_characters.
4594 (complete_files_symbols): Likewise.
4595 (complete_line_internal_1): Likewise.
4596 (default_completer_handle_brkchars): Likewise.
4597 (skip_quoted_chars): Likewise.
4598 * d-lang.c (d_language_data): Delete la_word_break_characters
4599 initializer.
4600 * f-lang.c (f_word_break_characters): Delete.
4601 (f_language_data): Delete la_word_break_characters initializer.
4602 (f_language::word_break_characters): New member function.
4603 * go-lang.c (go_language_data): Delete la_word_break_characters
4604 initializer.
4605 * language.c (unknown_language_data): Likewise.
4606 (auto_language_data): Likewise.
4607 * language.h (default_word_break_characters): Move declaration to
4608 earlier in the file.
4609 (language_data): Delete la_word_break_characters field.
4610 (language_defn::word_break_characters): New member function.
4611 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4612 initializer.
4613 * objc-lang.c (objc_language_data): Likewise.
4614 * opencl-lang.c (opencl_language_data): Likewise.
4615 * p-lang.c (pascal_language_data): Likewise.
4616 * rust-lang.c (rust_language_data): Likewise.
4617
4618 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4619
4620 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4621 (ada_language_data): Delete la_get_symbol_name_matcher
4622 initializer.
4623 (language_defn::get_symbol_name_matcher_inner): New member
4624 function.
4625 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4626 initializer.
4627 (cplus_language_data): Likewise.
4628 (cplus_language::get_symbol_name_matcher_inner): New member
4629 function.
4630 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4631 (minimal_language_data): Likewise.
4632 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4633 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4634 initializer.
4635 * dictionary.c (iter_match_first_hashed): Update call to
4636 get_symbol_name_matcher.
4637 (iter_match_next_hashed): Likewise.
4638 (iter_match_next_linear): Likewise.
4639 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4640 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4641 initializer.
4642 (f_language::get_symbol_name_matcher_inner): New member function.
4643 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4644 initializer.
4645 * language.c (default_symbol_name_matcher): Update header comment,
4646 make static.
4647 (language_defn::get_symbol_name_matcher): New definition.
4648 (language_defn::get_symbol_name_matcher_inner): Likewise.
4649 (get_symbol_name_matcher): Delete.
4650 (unknown_language_data): Delete la_get_symbol_name_matcher
4651 initializer.
4652 (auto_language_data): Likewise.
4653 * language.h (language_data): Delete la_get_symbol_name_matcher
4654 field.
4655 (language_defn::get_symbol_name_matcher): New member function.
4656 (language_defn::get_symbol_name_matcher_inner): Likewise.
4657 (default_symbol_name_matcher): Delete declaration.
4658 * linespec.c (find_methods): Update call to
4659 get_symbol_name_matcher.
4660 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4661 initializer.
4662 * minsyms.c (lookup_minimal_symbol): Update call to
4663 get_symbol_name_matcher.
4664 (iterate_over_minimal_symbols): Likewise.
4665 * objc-lang.c (objc_language_data): Delete
4666 la_get_symbol_name_matcher initializer.
4667 * opencl-lang.c (opencl_language_data): Likewise.
4668 * p-lang.c (pascal_language_data): Likewise.
4669 * psymtab.c (psymbol_name_matches): Update call to
4670 get_symbol_name_matcher.
4671 * rust-lang.c (rust_language_data): Delete
4672 la_get_symbol_name_matcher initializer.
4673 * symtab.c (symbol_matches_search_name): Update call to
4674 get_symbol_name_matcher.
4675 (compare_symbol_name): Likewise.
4676
4677 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4678
4679 * ada-lang.c (ada_language_data): Delete la_compute_program
4680 initializer.
4681 * c-lang.c (c_language_data): Likewise.
4682 (c_language::compute_program): New member function.
4683 (cplus_language_data): Delete la_compute_program initializer.
4684 (cplus_language::compute_program): New member function.
4685 (asm_language_data): Delete la_compute_program initializer.
4686 (minimal_language_data): Likewise.
4687 * c-lang.h (c_compute_program): Update comment.
4688 (cplus_compute_program): Likewise.
4689 * compile/compile-c-support.c (c_compute_program): Likewise.
4690 (cplus_compute_program): Likewise.
4691 * compile/compile.c (compile_to_object): Update call to
4692 la_compute_program.
4693 * d-lang.c (d_language_data): Delete la_compute_program
4694 initializer.
4695 * f-lang.c (f_language_data): Likewise.
4696 * go-lang.c (go_language_data): Likewise.
4697 * language.c (unknown_language_data): Likewise.
4698 (auto_language_data): Likewise.
4699 * language.h (language_data): Delete la_compute_program field.
4700 (language_defn::compute_program): New member function.
4701 * m2-lang.c (m2_language_data): Delete la_compute_program
4702 initializer.
4703 * objc-lang.c (objc_language_data): Likewise.
4704 * opencl-lang.c (opencl_language_data): Likewise.
4705 * p-lang.c (pascal_language_data): Likewise.
4706 * rust-lang.c (rust_language_data): Likewise.
4707
4708 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4709
4710 * ada-lang.c (ada_language_data) Delete
4711 la_class_name_from_physname initializer.
4712 * c-lang.c (c_language_data): Likewise.
4713 (cplus_language_data): Likewise.
4714 (cplus_language::class_name_from_physname): New member function.
4715 (asm_language_data): Delete la_class_name_from_physname
4716 initializer.
4717 (minimal_language_data): Likewise.
4718 * d-lang.c (d_language_data): Likewise.
4719 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4720 method on language_defn class.
4721 (guess_full_die_structure_name): Likewise.
4722 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4723 initializer.
4724 * go-lang.c (go_language_data): Likewise.
4725 * language.c (language_class_name_from_physname): Delete.
4726 (unk_lang_class_name): Delete.
4727 (unknown_language_data): Delete la_class_name_from_physname
4728 initializer.
4729 (auto_language_data): Likewise.
4730 * language.h (language_data): Delete la_class_name_from_physname
4731 field.
4732 (language_defn::class_name_from_physname): New function.
4733 (language_class_name_from_physname): Delete declaration.
4734 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4735 initializer.
4736 * objc-lang.c (objc_language_data): Likewise.
4737 * opencl-lang.c (opencl_language_data): Likewise.
4738 * p-lang.c (pascal_language_data): Likewise.
4739 * rust-lang.c (rust_language_data): Likewise.
4740
4741 2020-06-16 Tom Tromey <tom@tromey.com>
4742
4743 * tui/tui-data.h (STATUS_NAME): New macro.
4744 * tui/tui-layout.c (tui_remove_some_windows)
4745 (initialize_known_windows, tui_register_window)
4746 (tui_layout_split::remove_windows, initialize_layouts)
4747 (tui_new_layout_command): Don't use hard-coded window names.
4748
4749 2020-06-16 Tom Tromey <tom@tromey.com>
4750
4751 PR tui/25348:
4752 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4753 tui_initialize_readline. Only run once. Call rl_initialize.
4754 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4755 tui_initialize_readline.
4756 * tui/tui-io.c (tui_setup_io): Call
4757 tui_ensure_readline_initialized.
4758 * tui/tui-interp.c (tui_interp::init): Update.
4759
4760 2020-06-16 Tom Tromey <tom@tromey.com>
4761
4762 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4763 Also preserve the status window.
4764
4765 2020-06-16 Tom Tromey <tom@tromey.com>
4766
4767 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4768 where m_window==nullptr.
4769
4770 2020-06-15 Tom Tromey <tromey@adacore.com>
4771
4772 * windows-nat.c (windows_nat::handle_output_debug_string):
4773 Update.
4774 (windows_nat::handle_ms_vc_exception): Update.
4775 * target.h (target_read_string): Change API.
4776 * target.c (target_read_string): Change API.
4777 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4778 Update.
4779 * solib-frv.c (frv_current_sos): Update.
4780 * solib-dsbt.c (dsbt_current_sos): Update.
4781 * solib-darwin.c (darwin_current_sos): Update.
4782 * linux-thread-db.c (inferior_has_bug): Update.
4783 * expprint.c (print_subexp_standard): Update.
4784 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4785 (ada_exception_message_1): Update.
4786
4787 2020-06-15 Tom Tromey <tromey@adacore.com>
4788
4789 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4790
4791 2020-06-15 Tom Tromey <tromey@adacore.com>
4792
4793 * valprint.c (read_string): Update comment.
4794 * target.c (MIN): Remove.
4795 (target_read_string): Rewrite.
4796
4797 2020-06-15 Tom Tromey <tromey@adacore.com>
4798
4799 * corefile.c (read_memory_string): Remove.
4800 * ada-valprint.c (ada_value_print_ptr): Update.
4801 * ada-lang.h (ada_tag_name): Change return type.
4802 * ada-lang.c (type_from_tag): Update.
4803 (ada_tag_name_from_tsd): Change return type. Use
4804 target_read_string.
4805 (ada_tag_name): Likewise.
4806 * gdbcore.h (read_memory_string): Don't declare.
4807
4808 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
4809
4810 * symtab.c (rbreak_command): Ignore Windows drive colon.
4811
4812 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
4813
4814 * NEWS: Mention removed GDBserver host support.
4815
4816 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
4817
4818 * features/riscv/rebuild-csr-xml.sh: Updated.
4819
4820 2020-06-11 Tom Tromey <tom@tromey.com>
4821
4822 PR gdb/18318:
4823 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4824
4825 2020-06-09 Jonny Grant <jg@jguk.org>
4826 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4827
4828 * main.c (captured_main_1): Don't print new line after help.
4829 (print_gdb_help): add mailing list and IRC channel information
4830 to --help. Add new lines between items in the footer. Remove
4831 quotes around bug url.
4832
4833 2020-06-11 Keith Seitz <keiths@redhat.com>
4834
4835 PR gdb/21356
4836 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4837 Resolve typedefs for type length calculations.
4838
4839 2020-06-10 Tom de Vries <tdevries@suse.de>
4840
4841 PR ada/24713
4842 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4843 (write_psymbols): Enable .gdb_index for ada.
4844 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4845 ada.
4846
4847 2020-06-10 Tom de Vries <tdevries@suse.de>
4848
4849 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4850 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4851 namei" instead of "const char *name" argument.
4852 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4853 dw2_symtab_iter_init.
4854
4855 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4856
4857 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4858 to use type::field and field::type instead.
4859
4860 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4861
4862 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4863 to use field::type instead.
4864
4865 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4866
4867 * gdbtypes.h (struct field) <type, set_type>: New methods.
4868 Rename `type` field to...
4869 <m_type>: ... this. Change references throughout to use type or
4870 set_type methods.
4871 (FIELD_TYPE): Use field::type. Change call sites that modify
4872 the field's type to use field::set_type instead.
4873
4874 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4875
4876 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4877 to use type::index_type instead.
4878
4879 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4880
4881 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4882 methods.
4883 (TYPE_INDEX_TYPE): Use type::index_type.
4884 * gdbtypes.c (create_array_type_with_stride): Likewise.
4885
4886 2020-06-07 Tom Tromey <tom@tromey.com>
4887
4888 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4889 parameter.
4890 (generic_value_print): Update.
4891
4892 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4893
4894 Revert commit 982a38f60b0.
4895 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4896
4897 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4898
4899 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4900 avoid use after free.
4901
4902 2020-06-05 Tom de Vries <tdevries@suse.de>
4903
4904 * NEWS: Fix typos.
4905
4906 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
4907
4908 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4909 the per_bfd object.
4910 (dwarf2_read_debug_names): Likewise.
4911 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4912 object when re-using a per_bfd object with an index.
4913
4914 2020-06-03 Tom de Vries <tdevries@suse.de>
4915
4916 PR symtab/26046
4917 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4918 children for C++.
4919 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4920 DW_TAG_subprogram.
4921
4922 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4923
4924 * ada-lang.c (ada_language_data): Delete skip_trampoline
4925 initializer.
4926 * c-lang.c (c_language_data): Likewise.
4927 (cplus_language_data): Likewise.
4928 (cplus_language::skip_trampoline): New member function.
4929 (asm_language_data): Delete skip_trampoline initializer.
4930 (minimal_language_data): Likewise.
4931 * d-lang.c (d_language_data): Likewise.
4932 * f-lang.c (f_language_data): Likewise.
4933 * go-lang.c (go_language_data): Likewise.
4934 * language.c (unk_lang_trampoline): Delete function.
4935 (skip_language_trampoline): Update.
4936 (unknown_language_data): Delete skip_trampoline initializer.
4937 (auto_language_data): Likewise.
4938 * language.h (language_data): Delete skip_trampoline field.
4939 (language_defn::skip_trampoline): New function.
4940 * m2-lang.c (m2_language_data): Delete skip_trampoline
4941 initializer.
4942 * objc-lang.c (objc_skip_trampoline): Delete function, move
4943 implementation to objc_language::skip_trampoline.
4944 (objc_language_data): Delete skip_trampoline initializer.
4945 (objc_language::skip_trampoline): New member function with
4946 implementation from objc_skip_trampoline.
4947 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4948 initializer.
4949 * p-lang.c (pascal_language_data): Likewise.
4950 * rust-lang.c (rust_language_data): Likewise.
4951
4952 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4953
4954 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4955 (ada_language::demangle): New member function.
4956 * c-lang.c (c_language_data): Delete la_demangle initializer.
4957 (cplus_language_data): Delete la_demangle initializer.
4958 (cplus_language::demangle): New member function.
4959 (asm_language_data): Delete la_demangle initializer.
4960 (minimal_language_data): Delete la_demangle initializer.
4961 * d-lang.c (d_language_data): Delete la_demangle initializer.
4962 (d_language::demangle): New member function.
4963 * f-lang.c (f_language_data): Delete la_demangle initializer.
4964 (f_language::demangle): New member function.
4965 * go-lang.c (go_language_data): Delete la_demangle initializer.
4966 (go_language::demangle): New member function.
4967 * language.c (language_demangle): Update.
4968 (unk_lang_demangle): Delete.
4969 (unknown_language_data): Delete la_demangle initializer.
4970 (unknown_language::demangle): New member function.
4971 (auto_language_data): Delete la_demangle initializer.
4972 (auto_language::demangle): New member function.
4973 * language.h (language_data): Delete la_demangle field.
4974 (language_defn::demangle): New function.
4975 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4976 * objc-lang.c (objc_language_data): Delete la_demangle
4977 initializer.
4978 (objc_language::demangle): New member function.
4979 * opencl-lang.c (opencl_language_data): Delete la_demangle
4980 initializer.
4981 * p-lang.c (pascal_language_data): Likewise.
4982 * rust-lang.c (rust_language_data): Likewise.
4983 (rust_language::demangle): New member function.
4984
4985 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4986
4987 * ada-lang.c (ada_language_data): Delete la_print_type
4988 initializer.
4989 (ada_language::print_type): New member function.
4990 * c-lang.c (c_language_data): Delete la_print_type initializer.
4991 (c_language::print_type): New member function.
4992 (cplus_language_data): Delete la_print_type initializer.
4993 (cplus_language::print_type): New member function.
4994 (asm_language_data): Delete la_print_type initializer.
4995 (asm_language::print_type): New member function.
4996 (minimal_language_data): Delete la_print_type initializer.
4997 (minimal_language::print_type): New member function.
4998 * d-lang.c (d_language_data): Delete la_print_type initializer.
4999 (d_language::print_type): New member function.
5000 * f-lang.c (f_language_data): Delete la_print_type initializer.
5001 (f_language::print_type): New member function.
5002 * go-lang.c (go_language_data): Delete la_print_type initializer.
5003 (go_language::print_type): New member function.
5004 * language.c (unk_lang_print_type): Delete.
5005 (unknown_language_data): Delete la_print_type initializer.
5006 (unknown_language::print_type): New member function.
5007 (auto_language_data): Delete la_print_type initializer.
5008 (auto_language::print_type): New member function.
5009 * language.h (language_data): Delete la_print_type field.
5010 (language_defn::print_type): New function.
5011 (LA_PRINT_TYPE): Update.
5012 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5013 (m2_language::print_type): New member function.
5014 * objc-lang.c (objc_language_data): Delete la_print_type
5015 initializer.
5016 (objc_language::print_type): New member function.
5017 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5018 to opencl_language::print_type.
5019 (opencl_language_data): Delete la_print_type initializer.
5020 (opencl_language::print_type): New member function, implementation
5021 from opencl_print_type.
5022 * p-lang.c (pascal_language_data): Delete la_print_type
5023 initializer.
5024 (pascal_language::print_type): New member function.
5025 * rust-lang.c (rust_print_type): Delete, implementation moved to
5026 rust_language::print_type.
5027 (rust_language_data): Delete la_print_type initializer.
5028 (rust_language::print_type): New member function, implementation
5029 from rust_print_type.
5030
5031 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5032
5033 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5034 implementation moves to...
5035 (ada_language::sniff_from_mangled_name): ...here. Update return
5036 type.
5037 (ada_language_data): Delete la_sniff_from_mangled_name
5038 initializer.
5039 * c-lang.c (c_language_data): Likewise.
5040 (cplus_language_data): Likewise.
5041 (cplus_language::sniff_from_mangled_name): New member function,
5042 implementation taken from gdb_sniff_from_mangled_name.
5043 (asm_language_data): Delete la_sniff_from_mangled_name
5044 initializer.
5045 (minimal_language_data): Likewise.
5046 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5047 implementation moves to cplus_language::sniff_from_mangled_name.
5048 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5049 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5050 moves to...
5051 (d_language::sniff_from_mangled_name): ...here.
5052 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5053 * f-lang.c (f_language_data): Likewise.
5054 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5055 moves to...
5056 (go_language::sniff_from_mangled_name): ...here.
5057 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5058 * language.c (language_sniff_from_mangled_name): Delete.
5059 (unknown_language_data): Delete la_sniff_from_mangled_name
5060 initializer.
5061 (auto_language_data): Likewise.
5062 * language.h (language_data): Delete la_sniff_from_mangled_name
5063 field.
5064 (language_defn::sniff_from_mangled_name): New function.
5065 (language_sniff_from_mangled_name): Delete declaration.
5066 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5067 field.
5068 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5069 implementation moves to...
5070 (objc_language::sniff_from_mangled_name): ...here.
5071 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5072 * opencl-lang.c (opencl_language_data): Likewise.
5073 * p-lang.c (pascal_language_data): Likewise.
5074 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5075 implementation moves to...
5076 (rust_language::sniff_from_mangled_name): ...here.
5077 (rust_language_data): Delete la_sniff_from_mangled_name
5078 initializer.
5079 * symtab.c (symbol_find_demangled_name): Call
5080 sniff_from_mangled_name member function.
5081
5082 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5083
5084 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5085 initializer.
5086 * c-lang.c (c_language_data): Likewise.
5087 (cplus_language_data): Likewise.
5088 (cplus_language::search_name_hash): New member function.
5089 (asm_language_data): Delete la_search_name_hash initializer.
5090 (minimal_language_data): Likewise.
5091 * d-lang.c (d_language_data): Likewise.
5092 * dictionary.c (default_search_name_hash): Rename to...
5093 (language_defn::search_name_hash): ...this.
5094 * f-lang.c (f_language_data): Likewise.
5095 (f_language::search_name_hash): New member function.
5096 * go-lang.c (go_language_data): Delete la_search_name_hash
5097 initializer.
5098 * language.c (unknown_language_data): Likewise.
5099 (auto_language_data): Likewise.
5100 * language.h (struct language_data): Delete la_search_name_hash
5101 field.
5102 (language_defn::search_name_hash): Declare new member function.
5103 (default_search_name_hash): Delete declaration.
5104 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5105 initializer.
5106 * objc-lang.c (objc_language_data): Likewise.
5107 * opencl-lang.c (opencl_language_data): Likewise.
5108 * p-lang.c (pascal_language_data): Likewise.
5109 * rust-lang.c (rust_language_data): Likewise.
5110 * symtab.c (search_name_hash): Update call.
5111
5112 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5113
5114 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5115 initializer.
5116 * c-lang.c (class compile_instance): Declare.
5117 (c_language_data): Delete la_get_compile_instance initializer.
5118 (c_language::get_compile_instance): New member function.
5119 (cplus_language_data): Delete la_get_compile_instance initializer.
5120 (cplus_language::get_compile_instance): New member function.
5121 (asm_language_data): Delete la_get_compile_instance initializer.
5122 (minimal_language_data): Likewise.
5123 * c-lang.h (c_get_compile_context): Update comment.
5124 (cplus_get_compile_context): Update comment.
5125 * compile/compile.c (compile_to_object): Update calls, don't rely
5126 on function pointer being NULL.
5127 * d-lang.c (d_language_data): Delete la_get_compile_instance
5128 initializer.
5129 * f-lang.c (f_language_data): Likewise.
5130 * go-lang.c (go_language_data): Likewise.
5131 * language.c (unknown_language_data): Likewise.
5132 (auto_language_data): Likewise.
5133 * language.h (language_data): Delete la_get_compile_instance field.
5134 (language_defn::get_compile_instance): New member function.
5135 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5136 initializer.
5137 * objc-lang.c (objc_language_data): Likewise.
5138 * opencl-lang.c (opencl_language_data): Likewise.
5139 * p-lang.c (pascal_language_data): Likewise.
5140 * rust-lang.c (rust_language_data): Likewise.
5141
5142 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5143
5144 * ada-lang.c (ada_add_all_symbols): Update comment.
5145 (ada_iterate_over_symbols): Delete, move implementation to...
5146 (ada_language::iterate_over_symbols): ...here, a new member
5147 function, rewrite to use range based for loop.
5148 (ada_language_data): Delete la_iterate_over_symbols initializer.
5149 * c-lang.c (c_language_data): Likewise.
5150 (cplus_language_data): Likewise.
5151 (asm_language_data): Likewise.
5152 (minimal_language_data): Likewise.
5153 * d-lang.c (d_language_data): Likewise.
5154 * f-lang.c (f_language_data): Likewise.
5155 * go-lang.c (go_language_data): Likewise.
5156 * language.c (unknown_language_data): Likewise.
5157 (auto_language_data): Likewise.
5158 * language.h (language_data): Delete la_iterate_over_symbols field.
5159 (language_defn::iterate_over_symbols): New member function.
5160 (LA_ITERATE_OVER_SYMBOLS): Update.
5161 * linespec.c (iterate_over_all_matching_symtabs): Update.
5162 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5163 initializer.
5164 * objc-lang.c (objc_language_data): Likewise.
5165 * opencl-lang.c (opencl_language_data): Likewise.
5166 * p-lang.c (pascal_language_data): Likewise.
5167 * rust-lang.c (rust_language_data): Likewise.
5168
5169 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5170
5171 * ada-lang.c (ada_language_data): Delete
5172 la_lookup_transparent_type initializer.
5173 * c-lang.c (c_language_data): Likewise.
5174 (cplus_language_data): Likewise.
5175 (cplus_language::lookup_transparent_type): New member function.
5176 (asm_language_data): Delete la_lookup_transparent_type
5177 initializer.
5178 (minimal_language_data): Likewise.
5179 * d-lang.c (d_language_data): Likewise.
5180 * f-lang.c (f_language_data): Likewise.
5181 * go-lang.c (go_language_data): Likewise.
5182 * language.c (unknown_language_data): Likewise.
5183 (auto_language_data): Likewise.
5184 * language.h (struct language_data): Delete
5185 la_lookup_transparent_type field.
5186 (language_defn::lookup_transparent_type): New member function.
5187 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5188 initializer.
5189 * objc-lang.c (objc_language_data): Likewise.
5190 * opencl-lang.c (opencl_language_data): Likewise.
5191 * p-lang.c (pascal_language_data): Likewise.
5192 * rust-lang.c (rust_language_data): Likewise.
5193 * symtab.c (symbol_matches_domain): Update call.
5194
5195 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5196
5197 * ada-lang.c (ada_language_arch_info): Delete function, move
5198 implementation to...
5199 (ada_language::language_arch_info): ...here, a new member
5200 function.
5201 (ada_language_data): Delete la_language_arch_info.
5202 * c-lang.c (c_language_data): Likewise.
5203 (c_language::language_arch_info): New member function.
5204 (cplus_language_arch_info): Delete function, move
5205 implementation to...
5206 (cplus_language::language_arch_info): ...here, a new member
5207 function.
5208 (cplus_language_data): Delete la_language_arch_info.
5209 (asm_language_data): Likewise.
5210 (asm_language::language_arch_info): New member function.
5211 (minimal_language_data): Delete la_language_arch_info.
5212 (minimal_language::language_arch_info): New member function.
5213 * d-lang.c (d_language_arch_info): Delete function, move
5214 implementation to...
5215 (d_language::language_arch_info): ...here, a new member
5216 function.
5217 (d_language_data): Delete la_language_arch_info.
5218 * f-lang.c (f_language_arch_info): Delete function, move
5219 implementation to...
5220 (f_language::language_arch_info): ...here, a new member
5221 function.
5222 (f_language_data): Delete la_language_arch_info.
5223 * go-lang.c (go_language_arch_info): Delete function, move
5224 implementation to...
5225 (go_language::language_arch_info): ...here, a new member
5226 function.
5227 (go_language_data): Delete la_language_arch_info.
5228 * language.c (unknown_language_data): Likewise.
5229 (unknown_language::language_arch_info): New member function.
5230 (auto_language_data): Delete la_language_arch_info.
5231 (auto_language::language_arch_info): New member function.
5232 (language_gdbarch_post_init): Update call to
5233 la_language_arch_info.
5234 * language.h (language_data): Delete la_language_arch_info
5235 function pointer.
5236 (language_defn::language_arch_info): New function.
5237 * m2-lang.c (m2_language_arch_info): Delete function, move
5238 implementation to...
5239 (m2_language::language_arch_info): ...here, a new member
5240 function.
5241 (m2_language_data): Delete la_language_arch_info.
5242 * objc-lang.c (objc_language_arch_info): Delete function, move
5243 implementation to...
5244 (objc_language::language_arch_info): ...here, a new member
5245 function.
5246 (objc_language_data): Delete la_language_arch_info.
5247 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5248 implementation to...
5249 (opencl_language::language_arch_info): ...here, a new member
5250 function.
5251 (opencl_language_data): Delete la_language_arch_info.
5252 * p-lang.c (pascal_language_arch_info): Delete function, move
5253 implementation to...
5254 (pascal_language::language_arch_info): ...here, a new member
5255 function.
5256 (pascal_language_data): Delete la_language_arch_info.
5257 * rust-lang.c (rust_language_arch_info): Delete function, move
5258 implementation to...
5259 (rust_language::language_arch_info): ...here, a new member
5260 function.
5261 (rust_language_data): Delete la_language_arch_info.
5262
5263 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5264
5265 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5266 initializer.
5267 * c-lang.c (c_language_data): Likewise.
5268 (cplus_language_data): Likewise.
5269 (cplus_language::pass_by_reference_info): New method.
5270 (asm_language_data): Delete la_pass_by_reference initializer.
5271 (minimal_language_data): Likewise.
5272 * cp-abi.c (cp_pass_by_reference): Remove use of
5273 default_pass_by_reference.
5274 * d-lang.c (d_language_data): Likewise.
5275 * f-lang.c (f_language_data): Likewise.
5276 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5277 default_pass_by_reference.
5278 * go-lang.c (go_language_data): Likewise.
5279 * language.c (language_pass_by_reference): Update.
5280 (default_pass_by_reference): Delete.
5281 (unknown_language_data): Delete la_pass_by_reference
5282 initializer.
5283 (auto_language_data): Likewise.
5284 * language.h (struct language_data): Delete la_pass_by_reference
5285 field.
5286 (language_defn::pass_by_reference_info): New member function.
5287 (default_pass_by_reference): Delete declaration.
5288 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5289 initializer.
5290 * objc-lang.c (objc_language_data): Likewise.
5291 * opencl-lang.c (opencl_language_data): Likewise.
5292 * p-lang.c (pascal_language_data): Likewise.
5293 * rust-lang.c (rust_language_data): Likewise.
5294
5295 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5296
5297 * ada-lang.c (ada_read_var_value): Delete function, move
5298 implementation to...
5299 (ada_language::read_var_value): ...here.
5300 (ada_language_data): Delete la_read_var_value initializer.
5301 * c-lang.c (c_language_data): Likewise.
5302 (cplus_language_data): Likewise.
5303 (minimal_language_data): Likewise.
5304 * d-lang.c (d_language_data): Likewise.
5305 * f-lang.c (f_language_data): Likewise.
5306 * findvar.c (default_read_var_value): Rename to...
5307 (language_defn::read_var_value): ...this.
5308 * findvar.c (read_var_value): Update header comment, and change to
5309 call member function instead of function pointer.
5310 * go-lang.c (go_language_data): Likewise.
5311 * language.c (unknown_language_data): Delete la_read_var_value
5312 initializer.
5313 (auto_language_data): Likewise.
5314 * language.h (struct language_data): Delete la_read_var_value
5315 field.
5316 (language_defn::read_var_value): New member function.
5317 (default_read_var_value): Delete declaration.
5318 * m2-lang.c (m2_language_data): Delete la_read_var_value
5319 initializer.
5320 * objc-lang.c (objc_language_data): Likewise.
5321 * opencl-lang.c (opencl_language_data): Likewise.
5322 * p-lang.c (pascal_language_data): Likewise.
5323 * rust-lang.c (rust_language_data): Likewise.
5324 * value.h (default_read_var_value): Delete declaration.
5325
5326 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5327
5328 * ada-lang.c (ada_print_array_index): Delete function, move
5329 implementation to...
5330 (ada_language::print_array_index): ...here.
5331 (ada_language_data): Delete la_print_array_index initializer.
5332 * c-lang.c (c_language_data): Likewise.
5333 (cplus_language_data): Likewise.
5334 (minimal_language_data): Likewise.
5335 * d-lang.c (d_language_data): Likewise.
5336 * f-lang.c (f_language_data): Likewise.
5337 * go-lang.c (go_language_data): Likewise.
5338 * language.c (default_print_array_index): Delete function, move
5339 implementation to...
5340 (language_defn::print_array_index): ...here.
5341 (unknown_language_data): Delete la_print_array_index initializer.
5342 (auto_language_data): Likewise.
5343 * language.h (struct language_data): Delete la_print_array_index
5344 field.
5345 (language_defn::print_array_index): New member function.
5346 (LA_PRINT_ARRAY_INDEX): Update.
5347 (default_print_array_index): Delete declaration.
5348 * m2-lang.c (m2_language_data): Delete la_print_array_index
5349 initializer.
5350 * objc-lang.c (objc_language_data): Likewise.
5351 * opencl-lang.c (opencl_language_data): Likewise.
5352 * p-lang.c (pascal_language_data): Likewise.
5353 * rust-lang.c (rust_language_data): Likewise.
5354
5355 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5356
5357 * gdb/ada-lang.c (ada_language_defn): Convert to...
5358 (ada_language_data): ...this.
5359 (class ada_language): New class.
5360 (ada_language_defn): New static global.
5361 * gdb/c-lang.c (c_language_defn): Convert to...
5362 (c_language_data): ...this.
5363 (class c_language): New class.
5364 (c_language_defn): New static global.
5365 (cplus_language_defn): Convert to...
5366 (cplus_language_data): ...this.
5367 (class cplus_language): New class.
5368 (cplus_language_defn): New static global.
5369 (asm_language_defn): Convert to...
5370 (asm_language_data): ...this.
5371 (class asm_language): New class.
5372 (asm_language_defn): New static global.
5373 (minimal_language_defn): Convert to...
5374 (minimal_language_data): ...this.
5375 (class minimal_language): New class.
5376 (minimal_language_defn): New static global.
5377 * gdb/d-lang.c (d_language_defn): Convert to...
5378 (d_language_data): ...this.
5379 (class d_language): New class.
5380 (d_language_defn): New static global.
5381 * gdb/f-lang.c (f_language_defn): Convert to...
5382 (f_language_data): ...this.
5383 (class f_language): New class.
5384 (f_language_defn): New static global.
5385 * gdb/go-lang.c (go_language_defn): Convert to...
5386 (go_language_data): ...this.
5387 (class go_language): New class.
5388 (go_language_defn): New static global.
5389 * gdb/language.c (unknown_language_defn): Remove declaration.
5390 (current_language): Initialize to nullptr, real initialization is
5391 moved to _initialize_language.
5392 (languages): Delete global.
5393 (language_defn::languages): Define.
5394 (set_language_command): Use language_defn::languages.
5395 (set_language): Likewise.
5396 (range_error): Likewise.
5397 (language_enum): Likewise.
5398 (language_def): Likewise.
5399 (add_set_language_command): Use language_def::languages for the
5400 language list, and language_def to lookup language pointers.
5401 (skip_language_trampoline): Use language_defn::languages.
5402 (unknown_language_defn): Convert to...
5403 (unknown_language_data): ...this.
5404 (class unknown_language): New class.
5405 (unknown_language_defn): New static global.
5406 (auto_language_defn): Convert to...
5407 (auto_language_data): ...this.
5408 (class auto_language): New class.
5409 (auto_language_defn): New static global.
5410 (language_gdbarch_post_init): Use language_defn::languages.
5411 (_initialize_language): Initialize current_language.
5412 * gdb/language.h (struct language_defn): Rename to...
5413 (struct language_data): ...this.
5414 (struct language_defn): New.
5415 (auto_language_defn): Delete.
5416 (unknown_language_defn): Delete.
5417 (minimal_language_defn): Delete.
5418 (ada_language_defn): Delete.
5419 (asm_language_defn): Delete.
5420 (c_language_defn): Delete.
5421 (cplus_language_defn): Delete.
5422 (d_language_defn): Delete.
5423 (f_language_defn): Delete.
5424 (go_language_defn): Delete.
5425 (m2_language_defn): Delete.
5426 (objc_language_defn): Delete.
5427 (opencl_language_defn): Delete.
5428 (pascal_language_defn): Delete.
5429 (rust_language_defn): Delete.
5430 * gdb/m2-lang.c (m2_language_defn): Convert to...
5431 (m2_language_data): ...this.
5432 (class m2_language): New class.
5433 (m2_language_defn): New static global.
5434 * gdb/objc-lang.c (objc_language_defn): Convert to...
5435 (objc_language_data): ...this.
5436 (class objc_language): New class.
5437 (objc_language_defn): New static global.
5438 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5439 (opencl_language_data): ...this.
5440 (class opencl_language): New class.
5441 (opencl_language_defn): New static global.
5442 * gdb/p-lang.c (pascal_language_defn): Convert to...
5443 (pascal_language_data): ...this.
5444 (class pascal_language): New class.
5445 (pascal_language_defn): New static global.
5446 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5447 language pointer, update comment format.
5448 * gdb/rust-lang.c (rust_language_defn): Convert to...
5449 (rust_language_data): ...this.
5450 (class rust_language): New class.
5451 (rust_language_defn): New static global.
5452
5453 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5454
5455 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5456 member variable.
5457 <m_stmt_at_address>: New member variable.
5458 (lnp_state_machine::record_line): Don't record some lines, update
5459 tracking of is_stmt at the same address.
5460 (lnp_state_machine::lnp_state_machine): Initialise new member
5461 variables.
5462
5463 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5464
5465 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5466 "-include gnu-nat-mig.h".
5467 * gnu-nat-mig.h: New file.
5468 * gnu-nat.c: Include "gnu-nat-mig.h".
5469 (exc_server, msg_reply_server, notify_server,
5470 process_reply_server): Remove declarations.
5471
5472 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5473
5474 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5475 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5476 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5477 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5478 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5479 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5480 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5481 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5482 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5483 to gnu_nat_target class.
5484 * gnu-nat.c: Likewise.
5485 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5486 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5487 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5488 object.
5489 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5490 instead of `gnu_target'.
5491
5492 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5493
5494 * i386-gnu-tdep.c: Include "gdbcore.h"
5495 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5496 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5497 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5498 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5499 i386_gnu_sigcontext_addr): New functions
5500 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5501 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5502 tdep.
5503
5504 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5505
5506 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5507 before fork_inferior call. Avoid calling it if target_is_pushed returns
5508 true.
5509
5510 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5511
5512 * gnu-nat.h (gnu_target): New variable declaration.
5513 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5514 gnu_target.
5515 * gnu-nat.c (gnu_target): New variable.
5516 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5517 add_thread_silent, and add_thread calls.
5518 (gnu_nat_target::create_inferior): Pass gnu_target to
5519 add_thread_silent, thread_change_ptid call.
5520 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5521 call.
5522
5523 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5524
5525 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5526 (gnu_nat_target::find_memory_regions): Remove unused
5527 `old_address' variable.
5528
5529 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5530
5531 * gnu-nat.c: Include "gdbarch.h".
5532
5533 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5534
5535 * reply_mig_hack.awk (Error return): Cast function through
5536 void *, to bypass compiler function call check.
5537
5538 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5539
5540 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5541 $(srcdir)/reply_mig_hack.awk.
5542
5543 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5544
5545 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5546
5547 2020-05-30 Jonny Grant <jg@jguk.org>
5548
5549 * configure.ac (ACX_BUGURL): change bug URL to https.
5550
5551 2020-05-30 Pedro Alves <palves@redhat.com>
5552
5553 * cp-support.c (replace_typedefs_template): New.
5554 (replace_typedefs_qualified_name): Handle
5555 DEMANGLE_COMPONENT_TEMPLATE.
5556
5557 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
5558
5559 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5560 dwarf2/index-cache.h, dwarf2/index-write.c,
5561 dwarf2/index-write.h, dwarf2/line-header.c,
5562 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5563 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5564 variables and fields from `dwarf2_per_objfile` to just
5565 `per_objfile` throughout.
5566
5567 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5568
5569 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5570 <push_dwarf_reg_entry_value>: Add comment.
5571
5572 2020-05-28 Kevin Buettner <kevinb@redhat.com>
5573 Keith Seitz <keiths@redhat.com>
5574
5575 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5576 instead of PyEval_ReleaseLock.
5577 (class gdbpy_gil): Move to earlier in file.
5578 (finalize_python): Set gdb_python_initialized.
5579 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5580 when not initialized.
5581
5582 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
5583
5584 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5585 <push_dwarf_reg_entry_value>: Remove assert. Override
5586 per_objfile with caller_per_objfile.
5587
5588 2020-05-28 Tom de Vries <tdevries@suse.de>
5589
5590 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5591 PR gold/15646 workaround to symbol kind "type".
5592
5593 2020-05-27 Tom Tromey <tromey@adacore.com>
5594
5595 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5596
5597 2020-05-27 Tom Tromey <tromey@adacore.com>
5598
5599 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5600 Use htab_find_with_hash.
5601 <add_abbrev>: Remove "abbrev_number" parameter.
5602 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5603 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5604 (hash_abbrev): Add comment.
5605 (abbrev_table::lookup_abbrev): Move to header file.
5606 (abbrev_table::read): Update.
5607
5608 2020-05-27 Tom Tromey <tromey@adacore.com>
5609
5610 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5611 method.
5612 <canonical_name>: New member.
5613 <raw_name>: Rename from "name".
5614 (partial_die_info): Initialize canonical_name.
5615 (scan_partial_symbols): Check raw_name.
5616 (partial_die_parent_scope, partial_die_full_name)
5617 (add_partial_symbol, add_partial_subprogram)
5618 (add_partial_enumeration, load_partial_dies): Use "name" method.
5619 (partial_die_info::name): New method.
5620 (partial_die_info::read, guess_partial_die_structure_name)
5621 (partial_die_info::fixup): Update.
5622
5623 2020-05-27 Tom Tromey <tromey@adacore.com>
5624
5625 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5626 <get_ref_die_offset>: Inline.
5627 <get_ref_die_offset_complaint>: New method.
5628 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5629 (attribute::get_ref_die_offset_complaint): Rename from
5630 get_ref_die_offset. Just issue complaint.
5631
5632 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5633
5634 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5635
5636 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5637
5638 * exec.c (exec_file_attach): Use errno value of first openp failure.
5639
5640 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5641
5642 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5643 Don't close thread handle.
5644
5645 2020-05-27 Tom Tromey <tom@tromey.com>
5646 Simon Marchi <simon.marchi@efficios.com>
5647
5648 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5649 shared_ptr.
5650 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5651 member.
5652 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5653 dwarf2_per_bfd_objfile_data_key>: New globals.
5654 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5655 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5656 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5657 shared.
5658 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5659 short-circuit when sharing.
5660 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5661 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5662
5663 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5664
5665 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5666 to...
5667 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5668 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5669
5670 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5671
5672 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5673 build_name_components, find_name_components_bounds>:
5674 Add per_objfile parameter.
5675 (struct mapped_index) <symbol_name_at>: Likewise.
5676 (struct mapped_debug_names): Remove constructor.
5677 <dwarf2_per_objfile>: Remove field.
5678 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5679 (mapped_index_base::find_name_components_bounds,
5680 mapped_index_base::build_name_components,
5681 dw2_expand_symtabs_matching_symbol): Likewise.
5682 (class mock_mapped_index) <symbol_name_at>: Likewise.
5683 (check_match): Likewise.
5684 (check_find_bounds_finds): Likewise.
5685 (test_mapped_index_find_name_component_bounds): Update.
5686 (CHECK_MATCH): Update.
5687 (dw2_expand_symtabs_matching): Update.
5688 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5689 per_objfile parameter.
5690 <find_vec_in_debug_names>: Likewise.
5691 <m_per_objfile>: New field.
5692 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5693 parameter.
5694 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5695 (dw2_debug_names_iterator::next): Update.
5696 (dw2_debug_names_lookup_symbol): Update.
5697 (dw2_debug_names_expand_symtabs_for_function): Update.
5698 (dw2_debug_names_map_matching_symbols): Update.
5699 (dw2_debug_names_expand_symtabs_matching): Update.
5700 (dwarf2_read_debug_names): Update.
5701
5702 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5703
5704 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5705 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5706 move to dwarf2_per_objfile.
5707 <read_in_chain>: Remove.
5708 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5709 remove_all_cus, age_comp_units>: New methods.
5710 <m_dwarf2_cus>: New member.
5711 (struct dwarf2_per_cu_data) <cu>: Remove.
5712 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5713 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5714 moved to methods of dwarf2_per_objfile.
5715 (dwarf2_clear_marks): Remove.
5716 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5717 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5718 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5719 (dwarf2_per_objfile::remove_all_cus): New.
5720 (class free_cached_comp_units) <~free_cached_comp_units>:
5721 Update.
5722 (load_cu): Update.
5723 (dw2_do_instantiate_symtab): Adjust.
5724 (fill_in_sig_entry_from_dwo_entry): Adjust.
5725 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5726 (cutu_reader::cutu_reader): Likewise.
5727 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5728 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5729 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5730 and dwarf2_per_objfile::age_comp_units.
5731 (load_partial_comp_unit): Update.
5732 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5733 (process_queue): Likewise.
5734 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5735 backlink.
5736 (dwarf2_read_addr_index): Likewise.
5737 (follow_die_offset): Likewise.
5738 (dwarf2_fetch_die_loc_sect_off): Likewise.
5739 (dwarf2_fetch_constant_bytes): Likewise.
5740 (dwarf2_fetch_die_type_sect_off): Likewise.
5741 (follow_die_sig_1): Likewise.
5742 (load_full_type_unit): Likewise.
5743 (read_signatured_type): Likewise.
5744 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5745 (dwarf2_cu::~dwarf2_cu): Remove.
5746 (dwarf2_per_objfile::get_cu): New.
5747 (dwarf2_per_objfile::set_cu): New.
5748 (age_cached_comp_units): Rename to...
5749 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5750 to std::unordered_map.
5751 (free_one_cached_comp_unit): Rename to...
5752 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5753 to std::unordered_map.
5754 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5755 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5756 a dwarf2_per_objfile in data.
5757 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5758 (dwarf2_clear_marks): Remove.
5759
5760 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5761
5762 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5763 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5764 (init_tu_and_read_dwo_dies): Likewise.
5765 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5766 (cutu_reader::cutu_reader): Likewise.
5767 (load_partial_comp_unit): Likewise.
5768 (process_psymtab_comp_unit): Update.
5769 (build_type_psymtabs_1): Update.
5770 (process_skeletonless_type_unit): Update.
5771 (load_full_comp_unit): Update.
5772 (find_partial_die): Update.
5773 (dwarf2_read_addr_index): Update.
5774 (read_signatured_type): Update.
5775
5776 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5777
5778 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5779 m_header_read_in>: New fields.
5780 <get_header>: New method.
5781 * dwarf2/read.c (per_cu_header_read_in): Remove.
5782 (dwarf2_per_cu_data::get_header): New.
5783 (dwarf2_per_cu_data::addr_size): Update.
5784 (dwarf2_per_cu_data::offset_size): Update.
5785 (dwarf2_per_cu_data::ref_addr_size): Update.
5786
5787 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5788
5789 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5790 (dw2_do_instantiate_symtab): Update.
5791 (queue_and_load_all_dwo_tus): Change parameter from
5792 dwarf2_per_cu_data to dwarf2_cu.
5793 (dwarf2_fetch_die_loc_sect_off): Update.
5794 (dwarf2_fetch_constant_bytes): Update.
5795 (dwarf2_fetch_die_type_sect_off): Update.
5796
5797 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5798
5799 * dwarf2/read.c (process_full_comp_unit,
5800 process_full_type_unit): Remove per_cu, per_objfile paramters.
5801 Add dwarf2_cu parameter.
5802 (process_queue): Update.
5803
5804 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5805
5806 * dwarf2/read.c (create_cu_from_index_list): Replace
5807 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5808 (create_cus_from_index_list): Likewise.
5809 (create_cus_from_index): Likewise.
5810 (create_signatured_type_table_from_index): Likewise.
5811 (create_cus_from_debug_names_list): Likewise.
5812 (create_cus_from_debug_names): Likewise.
5813 (dwarf2_read_gdb_index): Update.
5814 (dwarf2_read_debug_names): Update.
5815
5816 2020-05-27 Tom Tromey <tom@tromey.com>
5817 Simon Marchi <simon.marchi@efficios.com>
5818
5819 * dwarf2/read.h (struct dwarf2_per_objfile)
5820 <get_type_for_signatured_type, set_type_for_signatured_type>:
5821 New methods.
5822 <m_type_map>: New member.
5823 (struct signatured_type) <type>: Remove.
5824 * dwarf2/read.c
5825 (dwarf2_per_objfile::get_type_for_signatured_type,
5826 dwarf2_per_objfile::set_type_for_signatured_type): New.
5827 (get_signatured_type): Use new methods.
5828
5829 2020-05-27 Tom Tromey <tom@tromey.com>
5830 Simon Marchi <simon.marchi@efficios.com>
5831
5832 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5833 (struct dwarf2_per_objfile) <type_units>: New member.
5834 <get_type_unit_group_unshareable>: New method.
5835 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5836 num_symtabs, symtabs>: Remove; move to
5837 type_unit_group_unshareable.
5838 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5839 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5840 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5841
5842 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5843
5844 * dwarf2/read.h (struct dwarf2_per_cu_data):
5845 <dwarf2_per_objfile>: Remove.
5846 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5847 dwarf2_per_objfile.
5848 (create_signatured_type_table_from_index): Likewise.
5849 (create_signatured_type_table_from_debug_names): Likewise.
5850 (create_debug_type_hash_table): Likewise.
5851 (fill_in_sig_entry_from_dwo_entry): Likewise.
5852 (create_type_unit_group): Likewise.
5853 (read_comp_units_from_section): Likewise.
5854 (create_cus_hash_table): Likewise.
5855
5856 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5857
5858 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5859 dwarf2_per_cu_data::dwarf2_per_objfile.
5860 (compute_compunit_symtab_includes): Likewise.
5861 (dwarf2_cu::start_symtab): Likewise.
5862
5863 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5864
5865 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5866 parameter.
5867 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5868 (read_namespace_alias): Update.
5869 (lookup_die_type): Update.
5870 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5871 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5872 Update.
5873 (disassemble_dwarf_expression): Update.
5874
5875 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5876
5877 * dwarf2/read.h (struct dwarf2_queue_item): Add
5878 dwarf2_per_objfile parameter, assign new parameter.
5879 <per_objfile>: New field.
5880 * dwarf2/read.c (free_one_cached_comp_unit): Add
5881 dwarf2_per_objfile parameter.
5882 (queue_comp_unit): Likewise.
5883 (dw2_do_instantiate_symtab): Update.
5884 (process_psymtab_comp_unit): Update.
5885 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5886 (process_imported_unit_die): Update.
5887 (queue_and_load_dwo_tu): Update.
5888 (follow_die_offset): Update.
5889 (follow_die_sig_1): Update.
5890
5891 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5892
5893 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5894 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5895 (read_call_site_scope): Assign per_objfile.
5896 (dwarf2_per_cu_data::objfile): Remove.
5897 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5898 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5899 dwarf2_per_objfile parameter.
5900 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5901 dwarf2_per_objfile parameter.
5902 (dwarf_expr_reg_to_entry_parameter): Add output
5903 dwarf2_per_objfile parameter.
5904 (locexpr_get_frame_base): Update.
5905 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5906 <push_dwarf_reg_entry_value>: Update.
5907 <call_site_to_target_addr>: Update.
5908 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5909 parameter.
5910 (value_of_dwarf_reg_entry): Update.
5911 (rw_pieced_value): Update.
5912 (indirect_synthetic_pointer): Update.
5913 (dwarf2_evaluate_property): Update.
5914 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5915 parameter.
5916 (locexpr_read_variable): Update.
5917 (locexpr_get_symbol_read_needs): Update.
5918 (loclist_read_variable): Update.
5919
5920 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5921
5922 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5923 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5924 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5925 parameter.
5926 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5927 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5928 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5929 parameter.
5930 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5931 sect_variable_value): Add dwarf2_per_objfile parameter.
5932 (class dwarf_evaluate_loc_desc) <dwarf_call,
5933 dwarf_variable_value>: Update.
5934 (fetch_const_value_from_synthetic_pointer): Add
5935 dwarf2_per_objfile parameter.
5936 (fetch_const_value_from_synthetic_pointer): Update.
5937 (coerced_pieced_ref): Update.
5938 (class symbol_needs_eval_context) <dwarf_call,
5939 dwarf_variable_value>: Update.
5940 (dwarf2_compile_expr_to_ax): Update.
5941
5942 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5943
5944 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5945 parameter.
5946 (dwarf2_evaluate_loc_desc_full): Update.
5947
5948 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5949
5950 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5951 parameter.
5952 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5953 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5954 dwarf2_per_objfile parameter.
5955 (decode_debug_loc_dwo_addresses): Likewise.
5956 (dwarf2_find_location_expression): Update.
5957 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5958 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5959 parameter.
5960 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5961 parameter.
5962 (locexpr_describe_location_1): Likewise.
5963 (locexpr_describe_location): Update.
5964
5965 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5966
5967 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5968 Remove.
5969 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5970 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5971 (dwarf2_compile_property_to_c): Update.
5972 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5973 use text offset from objfile.
5974 (locexpr_tracepoint_var_ref): Update.
5975 (locexpr_generate_c_location): Update.
5976 (loclist_describe_location): Update.
5977 (loclist_tracepoint_var_ref): Update.
5978 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5979 dwarf2_per_objfile parameter.
5980 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5981 use text offset from objfile.
5982 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5983
5984 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5985
5986 * dwarf2/expr.h (struct dwarf_expr_context)
5987 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5988 <offset>: Remove.
5989 <per_objfile>: New member.
5990 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5991 dwarf2_per_objfile parameter. Don't set offset, set
5992 per_objfile.
5993 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5994 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5995 a dwarf2_per_objfile object instead of an offset.
5996 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5997 constructor.
5998 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5999 to dwarf2_expr_executor constructor. Don't set offset.
6000 (dwarf2_fetch_cfa_info): Update.
6001 (struct dwarf2_frame_cache) <text_offset>: Remove.
6002 <per_objfile>: New field.
6003 (dwarf2_frame_cache): Update.
6004 (dwarf2_frame_prev_register): Update.
6005 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6006 <dwarf_evaluate_loc_desc>: Add constructor.
6007 (dwarf2_evaluate_loc_desc_full): Update.
6008 (dwarf2_locexpr_baton_eval): Update.
6009 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6010 Add constructor.
6011 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6012
6013 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6014
6015 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6016 addr_sized_int_type>: Move to dwarf2_cu.
6017 <int_type>: Move to dwarf2_per_objfile.
6018 (struct dwarf2_per_objfile) <int_type>: Move here.
6019 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6020 addr_sized_int_type>: Move here.
6021 (read_func_scope): Update.
6022 (read_array_type): Update.
6023 (read_tag_string_type): Update.
6024 (attr_to_dynamic_prop): Update.
6025 (dwarf2_per_cu_data::int_type): Rename to...
6026 (dwarf2_per_objfile::int_type): ... this.
6027 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6028 (dwarf2_cu::addr_sized_int_type): ... this.
6029 (read_subrange_type): Update.
6030 (dwarf2_per_cu_data::addr_type): Rename to...
6031 (dwarf2_cu::addr_type): ... this.
6032 (set_die_type): Update.
6033
6034 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6035
6036 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6037 data through per_cu->cu.
6038
6039 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6040
6041 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6042 dwarf2_per_cu_data parameter fo dwarf2_cu.
6043 (lookup_dwo_type_unit): Likewise.
6044 (read_cutu_die_from_dwo): Likewise.
6045 (lookup_dwo_unit): Likewise.
6046 (open_and_init_dwo_file): Likewise.
6047 (lookup_dwo_cutu): Likewise.
6048 (lookup_dwo_comp_unit): Likewise.
6049 (lookup_dwo_type_unit): Likewise.
6050 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6051 (cutu_reader::cutu_reader): Update.
6052
6053 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6054
6055 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6056 parameter.
6057 (process_full_type_unit): Likewise.
6058 (process_queue): Update.
6059
6060 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6061
6062 * dwarf2/read.c (recursively_compute_inclusions): Add
6063 dwarf2_per_objfile parameter.
6064 (compute_compunit_symtab_includes): Likewise.
6065 (process_cu_includes): Update.
6066
6067 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6068
6069 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6070 parameter.
6071 (create_type_unit_group): Update.
6072 (process_psymtab_comp_unit_reader): Update.
6073 (build_type_psymtabs_reader): Update.
6074
6075 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6076
6077 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6078 object through m_this_cu->cu.
6079
6080 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6081
6082 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6083 the info parameter.
6084 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6085
6086 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6087
6088 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6089 per_objfile parameter.
6090 (load_full_type_unit): Add per_objfile parameter.
6091 (read_signatured_type): Likewise.
6092 (load_full_comp_unit): Likewise.
6093 (load_cu): Likewise.
6094 (dw2_do_instantiate_symtab): Likewise.
6095 (dw2_get_file_names): Likewise.
6096 (dw2_map_symtabs_matching_filename): Update.
6097 (dw_expand_symtabs_matching_file_matcher): Update.
6098 (dw2_map_symbol_filenames): Update.
6099 (process_psymtab_comp_unit): Add per_objfile parameter.
6100 (build_type_psymtabs_1): Update.
6101 (process_skeletonless_type_unit): Update.
6102 (dwarf2_build_psymtabs_hard): Update.
6103 (load_partial_comp_unit): Add per_objfile parameter.
6104 (scan_partial_symbols): Update.
6105 (load_full_comp_unit): Add per_objfile parameter.
6106 (process_imported_unit_die): Update.
6107 (create_cus_hash_table): Update.
6108 (find_partial_die): Update.
6109 (dwarf2_read_addr_index): Update.
6110 (follow_die_offset): Update.
6111 (dwarf2_fetch_die_loc_sect_off): Update.
6112 (dwarf2_fetch_constant_bytes): Update.
6113 (dwarf2_fetch_die_type_sect_off): Update.
6114 (follow_die_sig_1): Update.
6115 (load_full_type_unit): Add per_objfile parameter.
6116 (read_signatured_type): Likewise.
6117
6118 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6119
6120 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6121 of objfile_name.
6122
6123 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6124
6125 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6126 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6127 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6128 field.
6129 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6130 (create_cus_from_index): Update.
6131 (dwarf2_read_gdb_index): Update.
6132 (create_cus_from_debug_names): Update.
6133 (dwarf2_read_debug_names): Update.
6134 (get_abbrev_section_for_cu): Update.
6135 (create_all_comp_units): Update.
6136 (read_attribute_value): Update.
6137 (get_debug_line_section): Update.
6138 * dwarf2/index-cache.c (index_cache::store): Update.
6139 * dwarf2/index-write.c (save_gdb_index_command): Update.
6140 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6141
6142 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6143
6144 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6145 member.
6146 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6147 dwarf2_per_cu_data::per_bfd.
6148 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6149 (create_type_unit_group): Likewise.
6150 (queue_comp_unit): Remove reference to
6151 per_cu->dwarf2_per_objfile.
6152 (maybe_queue_comp_unit): Likewise.
6153 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6154 (create_cus_hash_table): Assign new field.
6155
6156 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6157
6158 * dwarf2/read.c: Replace
6159 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6160 dwarf2_cu->per_objfile throughout.
6161
6162 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6163
6164 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6165 parameter, don't use per_cu->dwarf2_per_objfile.
6166 (dw2_instantiate_symtab): Likewise.
6167 (dw2_find_last_source_symtab): Update.
6168 (dw2_map_expand_apply): Update.
6169 (dw2_lookup_symbol): Update.
6170 (dw2_expand_symtabs_for_function): Update.
6171 (dw2_expand_all_symtabs): Update.
6172 (dw2_expand_symtabs_with_fullname): Update.
6173 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6174 don't use per_cu->dwarf2_per_objfile.
6175 (dw2_expand_marked_cus): Update.
6176 (dw2_find_pc_sect_compunit_symtab): Update.
6177 (dw2_debug_names_lookup_symbol): Update.
6178 (dw2_debug_names_expand_symtabs_for_function): Update.
6179 (dw2_debug_names_map_matching_symbols): Update.
6180 (dwarf2_psymtab::expand_psymtab): Update.
6181
6182 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6183
6184 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6185 <per_objfile>: New member.
6186 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6187 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6188 call to dwarf2_cu.
6189 (cutu_reader::cutu_reader): Update.
6190 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6191
6192 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6193
6194 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6195 struct dwarf2_per_objfile.
6196 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6197 dwarf2_per_bfd.
6198 * dwarf2/read.c (set_die_type): Update.
6199 (get_die_type_at_offset): Update.
6200
6201 2020-05-27 Tom Tromey <tom@tromey.com>
6202 Simon Marchi <simon.marchi@efficios.com>
6203
6204 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6205 method.
6206 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6207 get_symtab, set_symtab>: New methods.
6208 <m_symtabs>: New field.
6209 (struct dwarf2_psymtab): Derive from partial_symtab.
6210 <readin_p, get_compunit_symtab>: Declare methods.
6211 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6212 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6213 New methods.
6214 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6215 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6216 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6217 (dw2_symtab_iter_next, dw2_print_stats)
6218 (dw2_expand_symtabs_with_fullname)
6219 (dw2_expand_symtabs_matching_one)
6220 (dw_expand_symtabs_matching_file_matcher)
6221 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6222 (dw2_debug_names_iterator::next)
6223 (dw2_debug_names_map_matching_symbols)
6224 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6225 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6226 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6227 New methods.
6228 (get_compunit_symtab, process_full_comp_unit)
6229 (process_full_type_unit): Update.
6230 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6231
6232 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6233
6234 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6235 then introduce a new dwarf2_per_objfile type.
6236 <read_line_string>: Move to the new dwarf2_per_objfile type.
6237 <objfile>: Likewise.
6238 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6239 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6240 dwarf2_per_objfile->per_bfd.
6241 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6242 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6243 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6244 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6245 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6246 (dwarf2_per_objfile::locate_sections): Rename to...
6247 (dwarf2_per_bfd::locate_sections): ... this.
6248 (dwarf2_per_objfile::get_cutu): Rename to...
6249 (dwarf2_per_bfd::get_cutu): ... this.
6250 (dwarf2_per_objfile::get_cu): Rename to...
6251 (dwarf2_per_bfd::get_cu): ... this.
6252 (dwarf2_per_objfile::get_tu): Rename to...
6253 (dwarf2_per_bfd::get_tu): ... this.
6254 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6255 (dwarf2_per_bfd::allocate_per_cu): ... this.
6256 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6257 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6258 (get_gdb_index_contents_ftype): Change parameter from
6259 dwarf2_per_objfile to dwarf2_per_bfd.
6260 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6261 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6262
6263 2020-05-27 Tom Tromey <tom@tromey.com>
6264 Simon Marchi <simon.marchi@efficios.com>
6265
6266 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6267 (allocate_piece_closure): Set "per_objfile" member.
6268 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6269 (locexpr_describe_location, loclist_describe_location): Use new
6270 member.
6271 * dwarf2/read.c (read_call_site_scope)
6272 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6273 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6274 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6275 handle_data_member_location): Set per_objfile member.
6276 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6277 member.
6278 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6279
6280 2020-05-27 Tom Tromey <tom@tromey.com>
6281
6282 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6283 allocate_signatured_type>: Declare new methods.
6284 <m_num_psymtabs>: New member.
6285 (struct dwarf2_per_cu_data) <index>: New member.
6286 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6287 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6288 (create_cu_from_index_list): Use allocate_per_cu.
6289 (create_signatured_type_table_from_index)
6290 (create_signatured_type_table_from_debug_names)
6291 (create_debug_type_hash_table, add_type_unit)
6292 (read_comp_units_from_section): Use allocate_signatured_type.
6293
6294 2020-05-27 Tom Tromey <tom@tromey.com>
6295
6296 * psymtab.c (partial_map_expand_apply)
6297 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6298 (psym_lookup_global_symbol_language)
6299 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6300 (psym_print_stats, psym_expand_symtabs_for_function)
6301 (psym_map_symbol_filenames, psym_map_matching_symbols)
6302 (psym_expand_symtabs_matching)
6303 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6304 (maintenance_check_psymtabs): Update.
6305 * psympriv.h (struct partial_symtab) <readin_p,
6306 get_compunit_symtab>: Add objfile parameter.
6307 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6308 Likewise.
6309 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6310 get_compunit_symtab>: Likewise.
6311 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6312
6313 2020-05-27 Tom Tromey <tom@tromey.com>
6314
6315 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6316 member.
6317 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6318 (create_cu_from_index_list)
6319 (create_signatured_type_table_from_index)
6320 (create_signatured_type_table_from_debug_names)
6321 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6322 (dwarf2_create_include_psymtab)
6323 (create_debug_type_hash_table, add_type_unit)
6324 (create_type_unit_group, read_comp_units_from_section)
6325 (dwarf2_compute_name, create_cus_hash_table)
6326 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6327 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6328 obstack.
6329 (dw2_get_real_path): Likewise. Change argument to
6330 dwarf2_per_objfile.
6331
6332 2020-05-27 Luis Machado <luis.machado@linaro.org>
6333
6334 PR tdep/26000
6335 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6336 for ldrd (immediate).
6337
6338 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6339
6340 * command.h: Add comment giving the name of class_tui.
6341 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6342 create the fake command for the help for class_tui.
6343
6344 2020-05-26 Tom Tromey <tromey@adacore.com>
6345
6346 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6347 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6348 (val_atr): New function.
6349 (value_val_atr): Use it.
6350 * ada-valprint.c (print_optional_low_bound): Change low bound
6351 handling for enums.
6352 (val_print_packed_array_elements): Don't call discrete_position.
6353 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6354 discrete_position for enum types.
6355 * language.c (default_print_array_index): Change type.
6356 * language.h (struct language_defn) <la_print_array_index>: Add
6357 index_type parameter, change type of index_value.
6358 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6359 (default_print_array_index): Update.
6360 * valprint.c (maybe_print_array_index): Don't call
6361 value_from_longest. Update.
6362 (value_print_array_elements): Don't call discrete_position.
6363
6364 2020-05-26 Tom Tromey <tromey@adacore.com>
6365
6366 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6367 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6368
6369 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6370
6371 PR gdb/13519
6372 * avr-tdep.c (avr_integer_to_address): Return data or code
6373 address accordingly to the second 'type' argument of the
6374 function.
6375
6376 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6377
6378 * infcmd.c, inferior.h: (construct_inferior_arguments):
6379 Moved function from here to gdbsupport/common-inferior.{h,cc}
6380
6381 2020-05-23 Tom Tromey <tom@tromey.com>
6382
6383 Revert commit eca1f90c:
6384 * NEWS: Remove entry for completion styling.
6385 * completer.c (_rl_completion_prefix_display_length): Move
6386 declaration later.
6387 (gdb_fnprint): Revert.
6388 (gdb_display_match_list_1): Likewise.
6389 * cli/cli-style.c (completion_prefix_style)
6390 (completion_difference_style, completion_suffix_style): Remove.
6391 (_initialize_cli_style): Revert.
6392 * cli/cli-style.h (completion_prefix_style)
6393 (completion_difference_style, completion_suffix_style): Don't
6394 declare.
6395
6396 2020-05-24 Pedro Alves <palves@redhat.com>
6397
6398 * symtab.c (completion_list_add_name): Return boolean indication
6399 of whether the symbol matched.
6400 (completion_list_add_symbol): Don't try to remove C++ aliases if
6401 the symbol didn't match in the first place.
6402 * symtab.h (completion_list_add_name): Return bool.
6403
6404 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6405
6406 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6407 type::field.
6408
6409 2020-05-23 Joel Brobecker <brobecker@adacore.com>
6410
6411 GDB 9.2 released.
6412
6413 2020-05-23 Tom Tromey <tom@tromey.com>
6414
6415 * NEWS: Add entry for completion styling.
6416 * completer.c (_rl_completion_prefix_display_length): Move
6417 declaration earlier.
6418 (gdb_fnprint): Use completion_style.
6419 (gdb_display_match_list_1): Likewise.
6420 * cli/cli-style.c (completion_prefix_style)
6421 (completion_difference_style, completion_suffix_style): New
6422 globals.
6423 (_initialize_cli_style): Register new globals.
6424 * cli/cli-style.h (completion_prefix_style)
6425 (completion_difference_style, completion_suffix_style): Declare.
6426
6427 2020-05-23 Pedro Alves <palves@redhat.com>
6428
6429 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6430 (parse_escape): Use ISDIGIT instead of isdigit.
6431 (puts_debug): Use gdb_isprint instead of isprint.
6432 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6433 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6434 ISSPACE instead of isspace.
6435 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6436 instead of isspace.
6437 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6438 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6439 instead of isxdigit and ISDIGIT instead of isdigit.
6440
6441 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6442
6443 * gdbtypes.h (struct type) <field>: New method.
6444 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6445 or type::field.
6446
6447 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6448
6449 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6450 (TYPE_FIELDS): Use type::fields. Change all call sites that
6451 modify the propery to use type::set_fields instead.
6452
6453 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6454
6455 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6456 type::num_fields instead.
6457
6458 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6459
6460 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6461 methods.
6462 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6463 that modify the number of fields to use type::set_num_fields
6464 instead.
6465
6466 2020-05-22 Tom Tromey <tromey@adacore.com>
6467
6468 * compile/compile-object-load.h (munmap_list_free): Don't
6469 declare.
6470
6471 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6472
6473 * annotate.c (annotate_source_line): Update return type, add call
6474 to update current symtab and line.
6475 * annotate.h (annotate_source_line): Update return type, and
6476 extend header comment.
6477 * source.c (info_line_command): Check annotation_level before
6478 calling annotate_source_line.
6479 * stack.c (print_frame_info): If calling annotate_source_line
6480 returns true, then don't print any other source line information.
6481
6482 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6483
6484 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6485
6486 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6487
6488 * coffread.c (patch_type): Remove NULL check before xfree.
6489 * corefile.c (set_gnutarget): Likewise.
6490 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6491 * exec.c (build_section_table): Likewise.
6492 * remote.c (remote_target::pass_signals): Likewise.
6493 * utils.c (n_spaces): Likewise.
6494 * cli/cli-script.c (document_command): Likewise.
6495 * i386-windows-tdep.c (core_process_module_section): Likewise.
6496 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6497
6498 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
6499
6500 * symfile.c (reread_symbols): Clear objfile's section_offsets
6501 vector and section indices, re-compute them by calling
6502 sym_offsets.
6503
6504 2020-05-20 Tom Tromey <tromey@adacore.com>
6505
6506 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
6507 (desc_one_bound, desc_index_type): Compute field name.
6508
6509 2020-05-20 Tom de Vries <tdevries@suse.de>
6510
6511 PR symtab/25833
6512 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6513
6514 2020-05-20 Alan Modra <amodra@gmail.com>
6515
6516 PR 25993
6517 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6518 bfd_set_filename.
6519 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6520 passed to bfd_set_filename.
6521 * symfile-mem.c (add_vsyscall_page): Likewise for string
6522 passed to symbol_file_add_from_memory.
6523 (symbol_file_add_from_memory): Make name param a const char* and
6524 don't strdup.
6525
6526 2020-05-20 Alan Modra <amodra@gmail.com>
6527
6528 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6529 rather than accessing bfd->filename directly.
6530 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6531 and use bfd_section_name.
6532 * dwarf2/frame.c (decode_frame_entry): Likewise.
6533 * exec.c (exec_set_section_address): Likewise.
6534 * solib-aix.c (solib_aix_bfd_open): Likewise.
6535 * stap-probe.c (get_stap_base_address): Likewise.
6536 * symfile.c (reread_symbols): Likewise.
6537
6538 2020-05-19 Tom Tromey <tromey@adacore.com>
6539
6540 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6541
6542 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6543
6544 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6545
6546 2020-05-19 Pedro Alves <palves@redhat.com>
6547
6548 * NEWS (set exec-file-mismatch): Adjust entry.
6549 * exec.c: Include "build-id.h".
6550 (validate_exec_file): Try to match build IDs instead of filenames.
6551 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6552 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6553 and pass down 'warn_if_slow'.
6554 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6555 gdb_bfd_open_closure to pass it down.
6556 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6557
6558 2020-05-19 Pedro Alves <palves@redhat.com>
6559
6560 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6561 * target.c (target_fileio_open_1): Rename to target_fileio_open
6562 and make extern. Use bool.
6563 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6564 (target_fileio_read_alloc_1): Adjust.
6565 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6566 (target_fileio_open_warn_if_slow): Delete declaration.
6567
6568 2020-05-19 Pedro Alves <palves@redhat.com>
6569
6570 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6571 Adjust all callers.
6572
6573 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6574
6575 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6576 whether disp is negative.
6577
6578 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6579
6580 * symfile.h (struct symfile_segment_data)
6581 <~symfile_segment_data>: Remove.
6582 <segment_info>: Change to std::vector.
6583 * symfile.c (default_symfile_segments): Update.
6584 * elfread.c (elf_symfile_segments): Update.
6585
6586 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6587
6588 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6589 <segments>: New.
6590 <segment_bases, segment_sizes>: Remove.
6591 * symfile.c (default_symfile_segments): Update.
6592 * elfread.c (elf_symfile_segments): Update.
6593 * remote.c (remote_target::get_offsets): Update.
6594 * solib-target.c (solib_target_relocate_section_addresses):
6595 Update.
6596
6597 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6598
6599 * symfile.h (struct symfile_segment_data): Initialize fields.
6600 <~symfile_segment_data>: Add.
6601 (symfile_segment_data_up): New.
6602 (struct sym_fns) <sym_segments>: Return a
6603 symfile_segment_data_up.
6604 (default_symfile_segments): Return a symfile_segment_data_up.
6605 (free_symfile_segment_data): Remove.
6606 (get_symfile_segment_data): Return a symfile_segment_data_up.
6607 * symfile.c (default_symfile_segments): Likewise.
6608 (get_symfile_segment_data): Likewise.
6609 (free_symfile_segment_data): Remove.
6610 (symfile_find_segment_sections): Update.
6611 * elfread.c (elf_symfile_segments): Return a
6612 symfile_segment_data_up.
6613 * remote.c (remote_target::get_offsets): Update.
6614 * solib-target.c (solib_target_relocate_section_addresses):
6615 Update.
6616 * symfile-debug.c (debug_sym_segments): Return a
6617 symfile_segment_data_up.
6618
6619 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6620
6621 PR build/25981
6622 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6623 Hardcode register numbers.
6624
6625 PR build/25981
6626 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6627 procfs_find_LDT_entry): Remove.
6628 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6629 procfs_find_LDT_entry): Remove.
6630 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6631 Remove.
6632
6633 2020-05-17 Pedro Alves <palves@redhat.com>
6634 Andrew Burgess <andrew.burgess@embecosm.com>
6635 Keno Fischer <keno@juliacomputing.com>
6636
6637 PR gdb/25741
6638 * breakpoint.c (build_target_condition_list): Update comments.
6639 (build_target_command_list): Update comments and skip matching
6640 locations.
6641 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6642 a separate function. Simplify "set breakpoint auto-hw off"
6643 handling.
6644 (insert_breakpoints): Update comment.
6645 (tracepoint_locations_match): New parameter. For breakpoints,
6646 compare location types too, if the caller wants to.
6647 (handle_automatic_hardware_breakpoints): New functions.
6648 (bp_location_is_less_than): Also sort by location type and
6649 hardware breakpoint length.
6650 (update_global_location_list): Handle "set breakpoint auto-hw on"
6651 here.
6652 (update_breakpoint_locations): Ask breakpoint_locations_match to
6653 ignore location types.
6654
6655 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6656
6657 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6658 type::name instead.
6659
6660 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6661
6662 * gdbtypes.h (struct type) <name, set_name>: New methods.
6663 (TYPE_CODE): Use type::name. Change all call sites used to set
6664 the name to use type::set_name instead.
6665
6666 2020-05-16 Tom Tromey <tom@tromey.com>
6667
6668 * top.c (quit_force): Update.
6669 * infrun.c (handle_no_resumed): Update.
6670 * top.h (all_uis): New function.
6671 (ALL_UIS): Remove.
6672
6673 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6674
6675 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6676
6677 2020-05-16 Pedro Alves <palves@redhat.com>
6678
6679 * ia64-linux-nat.c
6680 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6681 Declare method.
6682 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6683
6684 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
6685
6686 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6687 (sparc64_adi_info): Likewise.
6688
6689 2020-05-15 Tom Tromey <tom@tromey.com>
6690
6691 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6692 block_objfile.
6693 (lookup_objfile_from_block): Remove.
6694 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6695 (lookup_global_symbol): Use block_objfile.
6696 * symtab.h (lookup_objfile_from_block): Don't declare.
6697 * printcmd.c (clear_dangling_display_expressions): Use
6698 block_objfile.
6699 * parse.c (operator_check_standard): Use block_objfile.
6700
6701 2020-05-15 Tom Tromey <tom@tromey.com>
6702
6703 * language.c (language_alloc_type_symbol): Set
6704 SYMBOL_SECTION.
6705 * symtab.c (initialize_objfile_symbol): Remove.
6706 (allocate_symbol): Remove.
6707 (allocate_template_symbol): Remove.
6708 * dwarf2/read.c (fixup_go_packaging): Use "new".
6709 (new_symbol): Use "new".
6710 (read_variable): Don't call initialize_objfile_symbol. Use
6711 "new".
6712 (read_func_scope): Use "new".
6713 * xcoffread.c (process_xcoff_symbol): Don't call
6714 initialize_objfile_symbol.
6715 (SYMBOL_DUP): Remove.
6716 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6717 "new".
6718 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6719 (allocate_template_symbol): Don't declare.
6720 (struct symbol): Add copy constructor. Change defaults.
6721 * jit.c (finalize_symtab): Use "new".
6722 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6723 Use "new".
6724 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6725 (common_block_end): Use "new".
6726 * mdebugread.c (parse_symbol): Use "new".
6727 (new_symbol): Likewise.
6728
6729 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6730
6731 * NEWS: Mention changes to help and apropos.
6732
6733 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6734
6735 * command.h (enum command_class): Improve comments, document
6736 that class_alias is for user-defined aliases, give the class
6737 name for each class, remove unused class_xdb.
6738 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6739 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6740 by a precise class.
6741 * infcmd.c (_initialize_infcmd): Likewise.
6742 * reverse.c (_initialize_reverse): Likewise.
6743 * stack.c (_initialize_stack): Likewise.
6744 * symfile.c (_initialize_symfile): Likewise.
6745 * tracepoint.c (_initialize_tracepoint): Likewise.
6746
6747 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6748
6749 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6750 when their aliased command is traversed.
6751 (help_cmd): Add fput_command_names_styled call to
6752 output command name and aliases when command has an alias.
6753
6754 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6755
6756 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6757 * cli/cli-decode.c (help_cmd_list): Declare as static,
6758 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6759 a command together with the command.
6760 (fput_command_name_styled, fput_command_names_styled): New functions.
6761 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6762 fput_command_name_styled.
6763 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6764 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6765
6766 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6767
6768 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6769 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6770 * command.h (cmd_show_list): Likewise.
6771 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6772 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6773
6774 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6775
6776 * unittests/command-def-selftests.c (traverse_command_structure):
6777 Verify all commands of a list have the same prefix command and
6778 that only the top cmdlist commands have a null prefix.
6779
6780 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6781
6782 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6783 as prefix, not one of its aliases.
6784 (set_cmd_prefix): Remove.
6785 (do_add_cmd): Centralize the setting of the prefix of a command, when
6786 command is defined after its full chain of prefix commands.
6787 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6788 (add_setshow_cmd_full): Likewise.
6789 (update_prefix_field_of_prefixed_commands): New function.
6790 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6791 update_prefix_field_of_prefixed_commands.
6792 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6793 addresses of remote_set_cmdlist and remote_show_cmdlist given
6794 as argument, not the address of an argument.
6795 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6796 * gdb/remote.c (_initialize_remote): Likewise.
6797
6798 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6799
6800 * cli/cli-cmds.c (alias_command): Check for an existing alias
6801 using lookup_cmd_composition, as valid_command_p is too strict
6802 and forbids aliases that are the prefix of an existing alias
6803 or command.
6804 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6805 command is properly recognised as a valid command.
6806
6807 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6808
6809 * unittests/help-doc-selftests.c: Rename to
6810 unittests/command-def-selftests.c
6811 * unittests/command-def-selftests.c (help_doc_tests): Update some
6812 comments.
6813 (command_structure_tests, traverse_command_structure): New namespace
6814 and function.
6815 (command_structure_invariants_tests): New function.
6816 (_initialize_command_def_selftests) Renamed from
6817 _initialize_help_doc_selftests, register command_structure_invariants
6818 selftest.
6819
6820 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6821
6822 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6823 an alias of 'show'.
6824
6825 2020-05-15 Joel Brobecker <brobecker@adacore.com>
6826
6827 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6828 ada_is_fixed_point_type. Update all callers.
6829 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6830 all callers.
6831 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6832 Update all callers.
6833 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6834 print_fixed_point_type. Update all callers.
6835 * ada-valprint.c (ada_value_print_num): Replace call to
6836 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6837
6838 2020-05-14 Kevin Buettner <kevinb@redhat.com>
6839
6840 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6841 processors.
6842 (cpu_supports_bts): Add CV_AMD case.
6843
6844 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6845 Simon Marchi <simon.marchi@efficios.com>
6846
6847 * infrun.c (stop_all_threads): Collect multiple wait events at
6848 each pass.
6849
6850 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6851
6852 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6853 type::code instead.
6854
6855 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6856
6857 * gdbtypes.h (struct type) <code, set_code>: New methods.
6858 (TYPE_CODE): Use type::code. Change all call sites used to set
6859 the code to use type::set_code instead.
6860
6861 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6862 Tom de Vries <tdevries@suse.de>
6863 Pedro Alves <palves@redhat.com>
6864
6865 PR threads/25478
6866 * infrun.c (stop_all_threads): Do NOT ignore
6867 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6868 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6869 received.
6870 (handle_no_resumed): Remove code handling a live inferior with no
6871 threads.
6872 * remote.c (has_single_non_exited_thread): New.
6873 (remote_target::update_thread_list): Do not delete a thread if is
6874 the last thread of the process.
6875 * thread.c (thread_select): Call delete_exited_threads instead of
6876 prune_threads.
6877
6878 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6879
6880 * infrun.c (stop_all_threads): Enable/disable thread events of all
6881 targets. Move a debug message denoting the end of the function
6882 into the SCOPED_EXIT block.
6883
6884 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6885
6886 * process-stratum-target.h: Include <set>.
6887 (all_non_exited_process_targets, switch_to_target_no_thread): New
6888 function declarations.
6889 * process-stratum-target.c (all_non_exited_process_targets)
6890 (switch_to_target_no_thread): New function implementations.
6891
6892 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6893
6894 * infrun.c (handle_inferior_event): Extract out a piece of code
6895 into...
6896 (mark_non_executing_threads): ...this new function.
6897
6898 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6899
6900 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6901 use.
6902
6903 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6904
6905 * regcache.c (regcache_read_pc_protected): New function
6906 implementation that returns 0 if the PC cannot read via
6907 'regcache_read_pc'.
6908 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6909 instead of 'regcache_read_pc'.
6910 (keep_going_pass_signal): Ditto.
6911
6912 2020-05-13 Tom Tromey <tromey@adacore.com>
6913
6914 * ada-lang.c (align_value): Remove.
6915 (ada_template_to_fixed_record_type_1): Use align_up.
6916
6917 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6918
6919 * async-event.c: Update the copyright year.
6920 * async-event.h: Update the copyright year.
6921
6922 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
6923
6924 * objfiles.h (is_addr_in_objfile,
6925 shared_objfile_contains_address_p): Return bool.
6926 * objfile.c (is_addr_in_objfile,
6927 shared_objfile_contains_address_p): Return bool.
6928
6929 2020-05-11 Tom Tromey <tromey@adacore.com>
6930
6931 * cli/cli-cmds.c (info_command): Restore.
6932 (_initialize_cli_cmds): Use add_prefix_command for "info".
6933 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6934
6935 2020-05-11 Tom Tromey <tromey@adacore.com>
6936
6937 * ada-lang.c (ada_value_primitive_field): Now public.
6938 * ada-lang.h (ada_value_primitive_field): Declare.
6939 * ada-valprint.c (print_field_values): Use
6940 ada_value_primitive_field for wrapper fields.
6941
6942 2020-05-11 Tom de Vries <tdevries@suse.de>
6943
6944 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6945 MODULE_DOMAIN.
6946
6947 2020-05-11 Tom de Vries <tdevries@suse.de>
6948
6949 PR symtab/25941
6950 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6951 with length 0, if not gdb-produced.
6952 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6953
6954 2020-05-09 Tom de Vries <tdevries@suse.de>
6955
6956 PR gdb/25955
6957 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6958 calculation.
6959
6960 2020-05-09 Tom Tromey <tom@tromey.com>
6961
6962 * top.c (server_command): Now bool.
6963 * top.h (server_command): Now bool.
6964
6965 2020-05-08 Tom Tromey <tromey@adacore.com>
6966
6967 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6968 already being processed.
6969
6970 2020-05-08 Tom Tromey <tom@tromey.com>
6971
6972 * printcmd.c (struct display) <next>: Remove.
6973 <display>: New constructor.
6974 <exp_string>: Now a std::string.
6975 <enabled_p>: Now a bool.
6976 (display_number): Move definition earlier.
6977 (displays): Rename from display_chain. Now a std::vector.
6978 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6979 (display_command): Update.
6980 (do_one_display, disable_display)
6981 (enable_disable_display_command, do_enable_disable_display):
6982 Update.
6983 (free_display): Remove.
6984 (clear_displays): Rewrite.
6985 (delete_display): Update.
6986 (map_display_numbers): Use function_view. Remove "data"
6987 parameter. Update.
6988 (do_delete_display): Remove.
6989 (undisplay_command): Update.
6990 (do_one_display, do_displays, disable_display)
6991 (info_display_command): Update.
6992 (do_enable_disable_display): Remove.
6993 (enable_disable_display_command)
6994 (clear_dangling_display_expressions): Update.
6995
6996 2020-05-08 Tom Tromey <tom@tromey.com>
6997
6998 * symtab.c (set_symbol_cache_size)
6999 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7000 (maintenance_print_symbol_cache_statistics): Update.
7001 * symmisc.c (print_symbol_bcache_statistics)
7002 (print_objfile_statistics, maintenance_print_objfiles)
7003 (maintenance_info_symtabs, maintenance_check_symtabs)
7004 (maintenance_expand_symtabs, maintenance_info_line_tables):
7005 Update.
7006 * symfile-debug.c (set_debug_symfile): Update.
7007 * source.c (forget_cached_source_info): Update.
7008 * python/python.c (gdbpy_progspaces): Update.
7009 * psymtab.c (maintenance_info_psymtabs): Update.
7010 * probe.c (parse_probes): Update.
7011 * linespec.c (iterate_over_all_matching_symtabs)
7012 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7013 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7014 * exec.c (exec_target::close): Update.
7015 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7016 * breakpoint.c (print_one_breakpoint_location)
7017 (create_longjmp_master_breakpoint)
7018 (create_std_terminate_master_breakpoint): Update.
7019 * progspace.c (program_spaces): Now a std::vector.
7020 (maybe_new_address_space): Update.
7021 (add_program_space): Remove.
7022 (program_space::program_space): Update.
7023 (remove_program_space): Update.
7024 (number_of_program_spaces): Remove.
7025 (print_program_space, update_address_spaces): Update.
7026 * progspace.h (program_spaces): Change type.
7027 (ALL_PSPACES): Remove.
7028 (number_of_program_spaces): Don't declare.
7029 (struct program_space) <next>: Remove.
7030
7031 2020-05-08 Tom Tromey <tom@tromey.com>
7032
7033 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7034 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7035 (enable_break): Update.
7036 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7037 (frv_fdpic_find_canonical_descriptor): Update.
7038 (frv_fetch_objfile_link_map): Update.
7039 * progspace.c (program_space::free_all_objfiles): Update.
7040 (program_space::solibs): New method.
7041 * progspace.h (struct program_space) <solibs>: New method.
7042 * solist.h (master_so_list): Don't declare.
7043 (ALL_SO_LIBS): Remove.
7044 * solib.h (so_list_head): Remove.
7045 (update_solib_list): Update comment.
7046 * solib.c (master_so_list): Remove.
7047 (solib_used, update_solib_list, solib_add)
7048 (info_sharedlibrary_command, clear_solib)
7049 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7050
7051 2020-05-08 Tom Tromey <tom@tromey.com>
7052
7053 * extension.c (extension_languages): Now a std::array.
7054 (ALL_EXTENSION_LANGUAGES): Remove.
7055 (get_ext_lang_defn, get_ext_lang_of_file)
7056 (eval_ext_lang_from_control_command): Update.
7057 (finish_ext_lang_initialization)
7058 (auto_load_ext_lang_scripts_for_objfile)
7059 (ext_lang_type_printers::ext_lang_type_printers)
7060 (apply_ext_lang_type_printers)
7061 (ext_lang_type_printers::~ext_lang_type_printers)
7062 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7063 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7064 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7065 (get_matching_xmethod_workers, ext_lang_colorize)
7066 (ext_lang_before_prompt): Update.
7067 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7068
7069 2020-05-08 Tom Tromey <tom@tromey.com>
7070
7071 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7072 overload.
7073 <swap_string, m_string>: Remove.
7074 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7075 Update.
7076 * stabsread.c (define_symbol, read_type): Update.
7077 * linespec.c (find_linespec_symbols): Update.
7078 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7079 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7080 * dbxread.c (read_dbx_symtab): Update.
7081 * cp-support.h (cp_canonicalize_string_full)
7082 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7083 Return unique_xmalloc_ptr.
7084 * cp-support.c (inspect_type): Update.
7085 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7086 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7087 Likewise.
7088 * c-typeprint.c (print_name_maybe_canonical): Update.
7089 * break-catch-throw.c (check_status_exception_catchpoint):
7090 Update.
7091
7092 2020-05-08 Tom de Vries <tdevries@suse.de>
7093
7094 * infrun.c (follow_fork): Copy current_line and current_symtab to
7095 child thread.
7096
7097 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7098
7099 * async-event.c (struct async_signal_handler, struct
7100 async_event_handler): Reformat, remove typedef.
7101
7102 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7103
7104 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7105 access thistype->main_type->dyn_prop_list directly.
7106
7107 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7108
7109 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7110 (remove_dyn_prop): Remove. Update all users to use
7111 type::remove_dyn_prop.
7112 * gdbtypes.c (remove_dyn_prop): Rename to...
7113 (type::remove_dyn_prop): ... this.
7114
7115 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7116
7117 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7118 (add_dyn_prop): Remove. Update all users to use
7119 type::add_dyn_prop.
7120 * gdbtypes.c (add_dyn_prop): Rename to...
7121 (type::add_dyn_prop): ... this.
7122
7123 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7124
7125 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7126 (get_dyn_prop): Remove. Update all users to use
7127 type::dyn_prop.
7128 * gdbtypes.c (get_dyn_prop): Rename to...
7129 (type::dyn_prop): ... this.
7130
7131 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7132
7133 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7134
7135 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7136
7137 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7138 instruction, skip it if it's there.
7139
7140 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
7141
7142 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7143
7144 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
7145
7146 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7147 * gdbtypes.c (recursive_dump_type): Remove use of
7148 TYPE_INCOMPLETE.
7149
7150 2020-05-03 Tom Tromey <tom@tromey.com>
7151
7152 * breakpoint.c (catch_command, tcatch_command): Remove.
7153 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7154 add_show_prefix_cmd.
7155 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7156 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7157 Remove.
7158 (add_internal_problem_command): Use add_basic_prefix_cmd,
7159 add_show_prefix_cmd.
7160 * mips-tdep.c (set_mipsfpu_command): Remove.
7161 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7162 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7163 (_initialize_index_cache): Use add_basic_prefix_cmd.
7164 * memattr.c (dummy_cmd): Remove.
7165 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7166 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7167 (_initialize_tui_win): Use add_basic_prefix_cmd,
7168 add_show_prefix_cmd.
7169 * cli/cli-logging.c (set_logging_command): Remove.
7170 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7171 add_show_prefix_cmd.
7172 (show_logging_command): Remove.
7173 * target.c (target_command): Remove.
7174 (add_target): Use add_basic_prefix_cmd.
7175
7176 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
7177
7178 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7179
7180 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7181
7182 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7183 info_command.
7184
7185 2020-04-30 Kamil Rytarowski <n54@gmx.com>
7186
7187 * nbsd-nat.c (nbsd_enable_proc_events)
7188 (nbsd_nat_target::post_startup_inferior): Add.
7189 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7190 (nbsd_nat_target::update_thread_list): Rewrite.
7191 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7192 "PTRACE_LWP_CREATE".
7193 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7194
7195 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7196
7197 * stack.c (_initialize_stack): Remove duplicated creation
7198 of "frame" command and "f" alias.
7199
7200 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7201
7202 PR gdb/18706
7203 * gdbtypes.c (check_typedef): Calculate size of array of
7204 stubbed type.
7205
7206 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7207
7208 PR gdb/15559
7209 * i386-tdep.c (i386_push_dummy_call): Call
7210 i386_thiscall_push_dummy_call.
7211 (i386_thiscall_push_dummy_call): New function.
7212 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7213 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7214 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7215
7216 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7217
7218 * gdbarch.sh (do_read): Add shellcheck disable directive for
7219 warning SC2162.
7220
7221 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7222
7223 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7224 "referenced but not assigned" warning.
7225
7226 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7227
7228 * gdbarch.sh: Remove code that sets fallbackdefault.
7229
7230 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7231
7232 * gdbarch.sh: Use shell operators && and || instead of
7233 -a and -o.
7234
7235 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7236
7237 * gdbarch.sh: Use $(...) instead of `...`.
7238
7239 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7240
7241 * gdbarch.sh: Use double quotes around variables.
7242
7243 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7244
7245 * gdbarch.sh: Use %s with printf, instead of variables in the
7246 format string.
7247
7248 2020-04-29 Tom Tromey <tromey@adacore.com>
7249
7250 PR ada/25875:
7251 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7252 type fields here.
7253 (read_enumeration_type): Call
7254 update_enumeration_type_from_children later. Update comments.
7255 (process_enumeration_scope): Don't create type fields.
7256
7257 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7258
7259 * nbsd-tdep.c: Include "xml-syscall.h".
7260 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7261
7262 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7263
7264 * nbsd-nat.c: Include "sys/wait.h".
7265 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7266 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7267 (nbsd_nat_target::remove_exec_catchpoint)
7268 (nbsd_nat_target::set_syscall_catchpoint): Add.
7269 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7270 (nbsd_nat_target::insert_exec_catchpoint)
7271 (nbsd_nat_target::remove_exec_catchpoint)
7272 (nbsd_nat_target::set_syscall_catchpoint): Add.
7273 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7274 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7275 `nbsd_get_syscall_number'.
7276
7277 2020-04-29 Tom Tromey <tom@tromey.com>
7278
7279 * stack.c (print_block_frame_labels): Remove.
7280
7281 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
7282
7283 PR gdb/17320
7284 * ada-valprint.c (val_print_packed_array_elements): Move array
7285 end bracket to new line.
7286 (ada_val_print_string): Remove extra spaces before first array
7287 element.
7288 * c-valprint.c (c_value_print_array): Likewise.
7289 * m2-valprint.c (m2_print_array_contents): Likewise.
7290 (m2_value_print_inner): Likewise.
7291 * p-valprint.c (pascal_value_print_inner): Likewise.
7292 * valprint.c (generic_val_print_array): Likewise.
7293 (value_print_array_elements): Move first array element and array
7294 end bracket to new line.
7295
7296 2020-04-29 Tom de Vries <tdevries@suse.de>
7297
7298 PR symtab/25889
7299 * linespec.c (find_method): Fix ix calculation.
7300
7301 2020-04-28 Kamil Rytarowski <n54@gmx.com>
7302
7303 * syscalls/update-netbsd.sh: New file.
7304 * syscalls/netbsd.xml: Regenerate.
7305 * data-directory/Makefile.in: Register `netbsd.xml' in
7306 `SYSCALLS_FILES'.
7307
7308 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7309
7310 * syscalls/update-freebsd.sh: Add double quotes.
7311
7312 2020-04-28 Tom Tromey <tom@tromey.com>
7313
7314 * NEWS: Update.
7315 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7316 (cmdpy_init): Allow class_tui.
7317
7318 2020-04-28 Mark Williams <mark@myosotissp.com>
7319
7320 PR gdb/24480
7321 * dwarf2read.c: Add missing assingments to list_in_scope when
7322 start_symtab was already called.
7323
7324 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7325
7326 PR gdb/25881
7327 * dwarf2/read.c (offset_map_type): Use
7328 gdb:hash_enum<sect_offset> as hash function.
7329
7330 2020-04-28 Tom de Vries <tdevries@suse.de>
7331
7332 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7333 with DW_AT_signature.
7334
7335 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
7336
7337 * configure.ac: Remove check for fs_base/gs_base in
7338 user_regs_struct.
7339 * configure: Re-generate.
7340 * config.in: Re-generate.
7341 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7342 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7343 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7344
7345 2020-04-27 Luis Machado <luis.machado@linaro.org>
7346
7347 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7348 problematic inline frame unwinding situation.
7349 * frame.c (frame_id_computed_p): New function.
7350 * frame.h (frame_id_computed_p): New prototype.
7351
7352 2020-04-26 Tom Tromey <tom@tromey.com>
7353
7354 * command.h (enum command_class) <class_pseudo>: Remove.
7355
7356 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7357
7358 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7359 and whitespace.
7360
7361 2020-04-25 Kamil Rytarowski <n54@gmx.com>
7362
7363 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7364 `PT_GET_PROCESS_STATE' block.
7365
7366 2020-04-24 Tom Tromey <tom@tromey.com>
7367
7368 * symtab.h (symbol_get_demangled_name): Don't declare.
7369 * symtab.c (symbol_get_demangled_name): Remove.
7370 (general_symbol_info::natural_name)
7371 (general_symbol_info::demangled_name): Update.
7372
7373 2020-04-24 Tom Tromey <tom@tromey.com>
7374
7375 PR rust/25025:
7376 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7377
7378 2020-04-24 Tom Tromey <tom@tromey.com>
7379
7380 PR symtab/12707:
7381 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7382 exists.
7383 (new_symbol): Likewise.
7384 * compile/compile-object-load.c (get_out_value_type): Use
7385 symbol_matches_search_name.
7386
7387 2020-04-24 Tom Tromey <tom@tromey.com>
7388
7389 * dwarf2/read.c (add_partial_symbol): Do not call
7390 compute_and_set_names.
7391
7392 2020-04-24 Tom Tromey <tom@tromey.com>
7393
7394 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7395 overload.
7396
7397 2020-04-24 Tom Tromey <tom@tromey.com>
7398
7399 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7400 (add_psymbol_to_list): New overload. Make old overload call new
7401 one.
7402 * psympriv.h (add_psymbol_to_list): New overload.
7403
7404 2020-04-24 Tom Tromey <tom@tromey.com>
7405
7406 * dwarf2/read.c (partial_die_info::read) <case
7407 DW_AT_linkage_name>: Use value_as_string.
7408 (dwarf2_string_attr): Use value_as_string.
7409 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7410 method.
7411 * dwarf2/attribute.c (attribute::value_as_string): New method.
7412
7413 2020-04-24 Tom Tromey <tom@tromey.com>
7414
7415 * symtab.c (general_symbol_info::natural_name)
7416 (general_symbol_info::demangled_name): Check for language_rust.
7417
7418 2020-04-24 Tom Tromey <tom@tromey.com>
7419
7420 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7421 (dwarf2_physname): ... from here.
7422 (partial_die_info::read): Add Rust "{" hack.
7423
7424 2020-04-24 Tom Tromey <tom@tromey.com>
7425
7426 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7427 method.
7428 (symbol_set_demangled_name): Don't declare.
7429 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7430 symbol_set_demangled_name.
7431 (general_symbol_info::set_language)
7432 (general_symbol_info::compute_and_set_names): Update.
7433 * minsyms.c (minimal_symbol_reader::install): Update.
7434 * dwarf2/read.c (new_symbol): Update.
7435
7436 2020-04-24 Tom Tromey <tromey@adacore.com>
7437
7438 PR python/23662:
7439 * python/py-type.c (convert_field): Handle
7440 FIELD_LOC_KIND_DWARF_BLOCK.
7441 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7442 (typy_get_dynamic): Nw function.
7443 (type_object_getset): Add "dynamic".
7444 * NEWS: Add entry.
7445
7446 2020-04-24 Tom Tromey <tromey@adacore.com>
7447
7448 * ada-typeprint.c (print_choices, print_variant_part)
7449 (print_record_field_types_dynamic): New functions.
7450 (print_record_field_types): Use print_record_field_types_dynamic.
7451
7452 2020-04-24 Tom Tromey <tromey@adacore.com>
7453
7454 * dwarf2/read.c (handle_data_member_location): New overload.
7455 (dwarf2_add_field): Use it.
7456 (decode_locdesc): Add "computed" parameter. Update comment.
7457 * gdbtypes.c (is_dynamic_type_internal): Also look for
7458 FIELD_LOC_KIND_DWARF_BLOCK.
7459 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7460 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7461 virtual base classes.
7462 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7463 FIELD_LOC_KIND_DWARF_BLOCK.
7464
7465 2020-04-24 Tom Tromey <tromey@adacore.com>
7466
7467 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7468 * gdbtypes.c (is_dynamic_type_internal): Check
7469 TYPE_HAS_DYNAMIC_LENGTH.
7470 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7471 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7472 New macros.
7473 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7474 constant.
7475
7476 2020-04-24 Tom Tromey <tromey@adacore.com>
7477
7478 * dwarf2/read.c (struct variant_field): Rewrite.
7479 (struct variant_part_builder): New.
7480 (struct nextfield): Remove "variant" field. Add "offset".
7481 (struct field_info): Add "current_variant_part" and
7482 "variant_parts".
7483 (alloc_discriminant_info): Remove.
7484 (alloc_rust_variant): New function.
7485 (quirk_rust_enum): Update.
7486 (dwarf2_add_field): Set "offset" member. Don't handle
7487 DW_TAG_variant_part.
7488 (offset_map_type): New typedef.
7489 (convert_variant_range, create_one_variant)
7490 (create_one_variant_part, create_variant_parts)
7491 (add_variant_property): New functions.
7492 (dwarf2_attach_fields_to_type): Call add_variant_property.
7493 (read_structure_type): Don't handle DW_TAG_variant_part.
7494 (handle_variant_part, handle_variant): New functions.
7495 (handle_struct_member_die): Use them.
7496 (process_structure_scope): Don't handle variant parts.
7497 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7498 (struct discriminant_info): Remove.
7499 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7500 (struct main_type) <flag_discriminated_union>: Remove.
7501 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7502 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7503 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7504 Update.
7505 * valops.c (value_union_variant): Remove.
7506 * value.h (value_union_variant): Don't declare.
7507
7508 2020-04-24 Tom Tromey <tromey@adacore.com>
7509
7510 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7511 (ada_value_primitive_packed_val): Update.
7512 * ada-valprint.c (ada_value_print_1): Update.
7513 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7514 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7515 just an address. Use evaluate_for_locexpr_baton.
7516 (dwarf2_evaluate_property): Update.
7517 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7518 array_view.
7519 * findvar.c (default_read_var_value): Update.
7520 * gdbtypes.c (compute_variant_fields_inner)
7521 (resolve_dynamic_type_internal): Update.
7522 (resolve_dynamic_type): Change type of valaddr parameter.
7523 * gdbtypes.h (resolve_dynamic_type): Update.
7524 * valarith.c (value_subscripted_rvalue): Update.
7525 * value.c (value_from_contents_and_address): Update.
7526
7527 2020-04-24 Tom Tromey <tromey@adacore.com>
7528
7529 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7530 "push_initial_value" parameter.
7531 (dwarf2_evaluate_property): Likewise.
7532 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7533
7534 2020-04-24 Tom Tromey <tromey@adacore.com>
7535
7536 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7537 (variant::matches, compute_variant_fields_recurse)
7538 (compute_variant_fields_inner, compute_variant_fields): New
7539 functions.
7540 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7541 Use resolved_type after type is made.
7542 (operator==): Add new cases.
7543 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7544 (struct discriminant_range, struct variant, struct variant_part):
7545 New.
7546 (union dynamic_prop_data) <variant_parts, original_type>: New
7547 members.
7548 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7549 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7550 constants.
7551 * value.c (unpack_bits_as_long): Now public.
7552 * value.h (unpack_bits_as_long): Declare.
7553
7554 2020-04-24 Tom Tromey <tromey@adacore.com>
7555
7556 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7557 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7558
7559 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
7560
7561 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7562
7563 2020-04-24 Kamil Rytarowski <n54@gmx.com>
7564
7565 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7566 (remove_fork_catchpoint, post_startup_inferior)
7567 (post_attach): Move...
7568 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7569 (remove_fork_catchpoint, post_startup_inferior)
7570 (post_attach): ...here.
7571 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7572 (remove_fork_catchpoint, post_startup_inferior)
7573 (post_attach): Move...
7574 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7575 (remove_fork_catchpoint, post_startup_inferior)
7576 (post_attach): ...here.
7577
7578 2020-04-24 Tom Tromey <tromey@adacore.com>
7579
7580 * nat/windows-nat.h (struct windows_thread_info)
7581 <pc_adjusted>: New member.
7582 * windows-nat.c (windows_fetch_one_register): Check
7583 pc_adjusted.
7584 (windows_nat_target::get_windows_debug_event)
7585 (windows_nat_target::wait): Set pc_adjusted.
7586
7587 2020-04-24 Tom de Vries <tdevries@suse.de>
7588
7589 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7590 Run gdb-add-index inside temp dir.
7591
7592 2020-04-23 Tom Tromey <tromey@adacore.com>
7593
7594 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7595 in loop.
7596
7597 2020-04-23 Luis Machado <luis.machado@linaro.org>
7598
7599 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7600 get_frame_register instead of gdbarch_unwind_pc.
7601
7602 2020-04-23 Tom de Vries <tdevries@suse.de>
7603
7604 * symtab.c (lookup_global_symbol): Prefer def over decl.
7605
7606 2020-04-23 Tom de Vries <tdevries@suse.de>
7607
7608 PR symtab/25807
7609 * block.c (best_symbol, better_symbol): Promote to external.
7610 * block.h (best_symbol, better_symbol): Declare.
7611 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7612 decl.
7613
7614 2020-04-23 Tom Tromey <tromey@adacore.com>
7615
7616 PR ada/25837:
7617 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7618 "const char *", not a "const std::string &".
7619 <name_and_matcher::operator==>: Update.
7620 * unittests/lookup_name_info-selftests.c: Change type of
7621 "result".
7622
7623 2020-04-23 Tom Tromey <tom@tromey.com>
7624
7625 * inferior.h (iterate_over_inferiors): Don't declare.
7626 * inferior.c (iterate_over_inferiors): Remove.
7627 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7628 Remove.
7629 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7630 use iterate_over_inferiors.
7631 (darwin_resume_inferior_it)
7632 (struct resume_inferior_threads_param)
7633 (darwin_resume_inferior_threads_it): Remove.
7634 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7635
7636 2020-04-23 Tom de Vries <tdevries@suse.de>
7637
7638 * blockframe.c (find_pc_partial_function): Use
7639 find_pc_sect_compunit_symtab rather than
7640 objfile->sf->qf->find_pc_sect_compunit_symtab.
7641
7642 2020-04-22 Tom de Vries <tdevries@suse.de>
7643
7644 PR symtab/25764
7645 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7646 in psymtabs.
7647
7648 2020-04-22 Tom de Vries <tdevries@suse.de>
7649
7650 PR symtab/25801
7651 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7652 symtabs.
7653
7654 2020-04-22 Tom de Vries <tdevries@suse.de>
7655
7656 PR symtab/25700
7657 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7658 CU if already created.
7659
7660 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7661
7662 * infrun.c (displaced_step_fixup): Switch to the event_thread
7663 before calling displaced_step_restore, not after.
7664
7665 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7666
7667 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7668 its inferior is not recorded by us.
7669 (record_btrace_target_open): Replace call to
7670 all_non_exited_threads () with call to current_inferior
7671 ()->non_exited_threads ().
7672 (record_btrace_target::stop_recording): Likewise.
7673 (record_btrace_target::close): Likewise.
7674 (record_btrace_target::wait): Likewise.
7675 (record_btrace_target::record_stop_replaying): Likewise.
7676
7677 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7678
7679 * btrace.c (btrace_enable): Throw an error on double enables and
7680 when enabling recording fails.
7681 (btrace_disable): Throw an error if the thread is not recorded.
7682
7683 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7684
7685 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7686 request if we do not have a thread_info.
7687
7688 2020-04-21 Tom de Vries <tdevries@suse.de>
7689
7690 PR gdb/25471
7691 * thread.c
7692 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7693 exception in get_frame_id.
7694
7695 2020-04-20 Tom Tromey <tromey@adacore.com>
7696
7697 * python/python.c (struct gdbpy_event): Mark move constructor as
7698 noexcept.
7699 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7700 constructor as noexcept.
7701 * completer.h (struct completion_result): Mark move constructor as
7702 noexcept.
7703 * completer.c (completion_result::completion_result): Use
7704 initialization style. Don't call reset_match_list.
7705
7706 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7707
7708 * MAINTAINERS (Write After Approval): Add myself.
7709
7710 2020-04-18 Tom Tromey <tom@tromey.com>
7711
7712 * windows-tdep.c (init_w32_command_list)
7713 (w32_prefix_command_valid): Restore.
7714 (_initialize_windows_tdep): Call init_w32_command_list.
7715
7716 2020-04-18 Tom Tromey <tom@tromey.com>
7717
7718 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7719 * value.c (value_fn_field): Update.
7720 * valops.c (find_function_in_inferior)
7721 (value_allocate_space_in_inferior): Update.
7722 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7723 Update.
7724 * tui/tui-source.c (tui_source_window::set_contents): Update.
7725 * symtab.c (lookup_global_or_static_symbol)
7726 (find_function_start_sal_1, skip_prologue_sal)
7727 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7728 * symmisc.c (dump_msymbols, dump_symtab_1)
7729 (maintenance_print_one_line_table): Update.
7730 * symfile.c (init_entry_point_info, section_is_mapped)
7731 (list_overlays_command, simple_read_overlay_table)
7732 (simple_overlay_update_1): Update.
7733 * stap-probe.c (handle_stap_probe): Update.
7734 * stabsread.c (dbx_init_float_type, define_symbol)
7735 (read_one_struct_field, read_enum_type, read_range_type): Update.
7736 * source.c (info_line_command): Update.
7737 * python/python.c (gdbpy_source_objfile_script)
7738 (gdbpy_execute_objfile_script): Update.
7739 * python/py-type.c (save_objfile_types): Update.
7740 * python/py-objfile.c (py_free_objfile): Update.
7741 * python/py-inferior.c (python_new_objfile): Update.
7742 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7743 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7744 (maintenance_check_psymtabs): Update.
7745 * printcmd.c (info_address_command): Update.
7746 * objfiles.h (struct objfile) <arch>: New method, from
7747 get_objfile_arch.
7748 (get_objfile_arch): Don't declare.
7749 * objfiles.c (get_objfile_arch): Remove.
7750 (filter_overlapping_sections): Update.
7751 * minsyms.c (msymbol_is_function): Update.
7752 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7753 (output_nondebug_symbol): Update.
7754 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7755 (mdebug_expand_psymtab): Update.
7756 * machoread.c (macho_add_oso_symfile): Update.
7757 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7758 Update.
7759 * linux-fork.c (checkpoint_command): Update.
7760 * linespec.c (convert_linespec_to_sals): Update.
7761 * jit.c (finalize_symtab): Update.
7762 * infrun.c (insert_exception_resume_from_probe): Update.
7763 * ia64-tdep.c (ia64_find_unwind_table): Update.
7764 * hppa-tdep.c (internalize_unwinds): Update.
7765 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7766 Update.
7767 * gcore.c (call_target_sbrk): Update.
7768 * elfread.c (record_minimal_symbol, elf_symtab_read)
7769 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7770 (elf_gnu_ifunc_resolve_by_got): Update.
7771 * dwarf2/read.c (create_addrmap_from_index)
7772 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7773 (read_debug_names_from_section)
7774 (process_psymtab_comp_unit_reader, add_partial_symbol)
7775 (add_partial_subprogram, process_full_comp_unit)
7776 (read_file_scope, read_func_scope, read_lexical_block_scope)
7777 (read_call_site_scope, dwarf2_ranges_read)
7778 (dwarf2_record_block_ranges, dwarf2_add_field)
7779 (mark_common_block_symbol_computed, read_tag_pointer_type)
7780 (read_tag_string_type, dwarf2_init_float_type)
7781 (dwarf2_init_complex_target_type, read_base_type)
7782 (partial_die_info::read, partial_die_info::read)
7783 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7784 (dwarf2_fetch_die_loc_sect_off): Update.
7785 * dwarf2/loc.c (dwarf2_find_location_expression)
7786 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7787 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7788 (dwarf2_loc_desc_get_symbol_read_needs)
7789 (locexpr_describe_location_piece, locexpr_describe_location_1)
7790 (loclist_describe_location): Update.
7791 * dwarf2/index-write.c (write_debug_names): Update.
7792 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7793 * dtrace-probe.c (dtrace_process_dof): Update.
7794 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7795 (process_one_symbol): Update.
7796 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7797 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7798 (coff_read_enum_type): Update.
7799 * cli/cli-cmds.c (edit_command, list_command): Update.
7800 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7801 * breakpoint.c (create_overlay_event_breakpoint)
7802 (create_longjmp_master_breakpoint)
7803 (create_std_terminate_master_breakpoint)
7804 (create_exception_master_breakpoint, get_sal_arch): Update.
7805 * block.c (block_gdbarch): Update.
7806 * annotate.c (annotate_source_line): Update.
7807
7808 2020-04-17 Tom Tromey <tromey@adacore.com>
7809
7810 * auto-load.c (show_auto_load_cmd): Remove.
7811 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7812 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7813 (maintenance_print_arc_command): Remove.
7814 * tui/tui-win.c (tui_command): Remove.
7815 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7816 * tui/tui-layout.c (tui_layout_command): Remove.
7817 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7818 * python/python.c (user_set_python, user_show_python): Remove.
7819 (_initialize_python): Use add_basic_prefix_cmd,
7820 add_show_prefix_cmd.
7821 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7822 (install_gdb_commands): Use add_basic_prefix_cmd,
7823 add_show_prefix_cmd.
7824 (info_guile_command): Remove.
7825 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7826 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7827 add_show_prefix_cmd.
7828 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7829 Remove do_set and do_show parameters.
7830 * cli/cli-style.c (set_style, show_style): Remove.
7831 (_initialize_cli_style): Use add_basic_prefix_cmd,
7832 add_show_prefix_cmd.
7833 (cli_style_option::add_setshow_commands): Remove do_set and
7834 do_show parameters.
7835 (cli_style_option::add_setshow_commands): Use
7836 add_basic_prefix_cmd, add_show_prefix_cmd.
7837 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7838 (set_style_name): Remove.
7839 * cli/cli-dump.c (dump_command, append_command): Remove.
7840 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7841 (tekhex_dump_command, binary_dump_command)
7842 (binary_append_command): Remove.
7843 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7844 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7845 (init_w32_command_list): Remove; move into ...
7846 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7847 * valprint.c (set_print, show_print, set_print_raw)
7848 (show_print_raw): Remove.
7849 (_initialize_valprint): Use add_basic_prefix_cmd,
7850 add_show_prefix_cmd.
7851 * typeprint.c (set_print_type, show_print_type): Remove.
7852 (_initialize_typeprint): Use add_basic_prefix_cmd,
7853 add_show_prefix_cmd.
7854 * record.c (set_record_command, show_record_command): Remove.
7855 (_initialize_record): Use add_basic_prefix_cmd,
7856 add_show_prefix_cmd.
7857 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7858 add_show_prefix_cmd.
7859 (info_command, show_command, set_debug, show_debug): Remove.
7860 * top.h (set_history, show_history): Don't declare.
7861 * top.c (set_history, show_history): Remove.
7862 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7863 (unset_tdesc_cmd): Remove.
7864 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7865 add_show_prefix_cmd.
7866 * symtab.c (info_module_command): Remove.
7867 (_initialize_symtab): Use add_basic_prefix_cmd.
7868 * symfile.c (overlay_command): Remove.
7869 (_initialize_symfile): Use add_basic_prefix_cmd.
7870 * sparc64-tdep.c (info_adi_command): Remove.
7871 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7872 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7873 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7874 add_show_prefix_cmd.
7875 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7876 (_initialize_serial): Use add_basic_prefix_cmd,
7877 add_show_prefix_cmd.
7878 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7879 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7880 add_show_prefix_cmd.
7881 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7882 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7883 add_show_prefix_cmd.
7884 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7885 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7886 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7887 add_show_prefix_cmd.
7888 * remote.c (remote_command, set_remote_cmd): Remove.
7889 (_initialize_remote): Use add_basic_prefix_cmd.
7890 * record-full.c (set_record_full_command)
7891 (show_record_full_command): Remove.
7892 (_initialize_record_full): Use add_basic_prefix_cmd,
7893 add_show_prefix_cmd.
7894 * record-btrace.c (cmd_set_record_btrace)
7895 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7896 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7897 (cmd_show_record_btrace_pt): Remove.
7898 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7899 add_show_prefix_cmd.
7900 * ravenscar-thread.c (set_ravenscar_command)
7901 (show_ravenscar_command): Remove.
7902 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7903 add_show_prefix_cmd.
7904 * mips-tdep.c (show_mips_command, set_mips_command)
7905 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7906 add_show_prefix_cmd.
7907 * maint.c (maintenance_command, maintenance_info_command)
7908 (maintenance_check_command, maintenance_print_command)
7909 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7910 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7911 add_show_prefix_cmd.
7912 (show_per_command_cmd): Remove.
7913 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7914 Remove.
7915 (maintenance_show_test_settings_cmd): Remove.
7916 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7917 add_show_prefix_cmd.
7918 * maint-test-options.c (maintenance_test_options_command):
7919 Remove.
7920 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7921 * macrocmd.c (macro_command): Remove
7922 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7923 * language.c (set_check, show_check): Remove.
7924 (_initialize_language): Use add_basic_prefix_cmd,
7925 add_show_prefix_cmd.
7926 * infcmd.c (unset_command): Remove.
7927 (_initialize_infcmd): Use add_basic_prefix_cmd.
7928 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7929 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7930 add_show_prefix_cmd.
7931 * go32-nat.c (go32_info_dos_command): Remove.
7932 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7933 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7934 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7935 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7936 (_initialize_frame): Use add_basic_prefix_cmd,
7937 add_show_prefix_cmd.
7938 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7939 (_initialize_dcache): Use add_basic_prefix_cmd,
7940 add_show_prefix_cmd.
7941 * cp-support.c (maint_cplus_command): Remove.
7942 (_initialize_cp_support): Use add_basic_prefix_cmd.
7943 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7944 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7945 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7946 add_basic_prefix_cmd, add_show_prefix_cmd.
7947 * breakpoint.c (save_command): Remove.
7948 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7949 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7950 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7951 add_show_prefix_cmd.
7952 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7953 (set_ada_command, show_ada_command): Remove.
7954 (_initialize_ada_language): Use add_basic_prefix_cmd,
7955 add_show_prefix_cmd.
7956 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7957
7958 2020-04-16 Kamil Rytarowski <n54@gmx.com>
7959
7960 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7961 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7962
7963 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7964
7965 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7966 warning messages.
7967
7968 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7969
7970 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7971 import table is not at beginning of .idata section.
7972
7973 2020-04-16 Pedro Alves <palves@redhat.com>
7974
7975 * inferior.c (delete_inferior): Use delete operator directly
7976 instead of delete_program_space.
7977 * progspace.c (add_program_space): New, factored out from
7978 program_space::program_space.
7979 (remove_program_space): New, factored out from
7980 delete_program_space.
7981 (program_space::program_space): Remove intro comment. Rewrite.
7982 (program_space::~program_space): Remove intro comment. Call
7983 remove_program_space.
7984 (delete_program_space): Delete.
7985 * progspace.h (program_space::program_space): Make explicit. Move
7986 intro comment here, adjusted.
7987 (program_space::~program_space): Move intro comment here,
7988 adjusted.
7989 (delete_program_space): Remove.
7990
7991 2020-04-16 Tom Tromey <tromey@adacore.com>
7992
7993 * windows-nat.c (windows_nat::handle_access_violation): New
7994 function.
7995 * nat/windows-nat.h (handle_access_violation): Declare.
7996 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7997 windows-nat.c. Call handle_access_violation.
7998
7999 2020-04-16 Tom de Vries <tdevries@suse.de>
8000
8001 PR symtab/25791
8002 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8003 CUs without psymtab.
8004
8005 2020-04-16 Kevin Buettner <kevinb@redhat.com>
8006
8007 * python/python.c (do_start_initialization): Don't call
8008 PyEval_InitThreads for Python 3.9 and beyond.
8009
8010 2020-04-15 Kamil Rytarowski <n54@gmx.com>
8011
8012 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8013 thread functions.
8014 (obsd_nat_target::wait): Likewise.
8015
8016 2020-04-15 Tom Tromey <tromey@adacore.com>
8017
8018 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8019 (DEBUG_EXCEPT): Use debug_printf.
8020
8021 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8022
8023 * completer.c (class completion_tracker::completion_hash_entry)
8024 <hash_name>: New member function.
8025 (completion_tracker::discard_completions): New callback to hash a
8026 completion_hash_entry, pass this to htab_create_alloc.
8027
8028 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8029
8030 * windows-nat.c (windows_make_so): Warn rather than stopping with
8031 an error if realpath() fails.
8032
8033 2020-04-14 Kamil Rytarowski <n54@gmx.com>
8034
8035 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8036 (nbsd_nat_target::info_proc): Add do_status.
8037
8038 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8039 Tom de Vries <tdevries@suse.de>
8040
8041 PR symtab/25718
8042 * psympriv.h (struct partial_symtab::read_symtab)
8043 (struct partial_symtab::expand_psymtab)
8044 (struct partial_symtab::read_dependencies): Update comments.
8045 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8046 read_symtab for includer.
8047 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8048 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8049 (struct dwarf2_include_psymtab::m_readin): Remove.
8050 (struct dwarf2_include_psymtab::includer): New member function.
8051 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8052
8053 2020-04-14 Tom de Vries <tdevries@suse.de>
8054
8055 PR symtab/25720
8056 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8057 with NULL symbol_matcher and lookup_name.
8058 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8059 and lookup_name.
8060 * dwarf2/read.c (dw2_expand_symtabs_matching)
8061 (dw2_debug_names_expand_symtabs_matching): Same.
8062 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8063 Make lookup_name a pointer. Update comment.
8064 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8065 lookup_name being a pointer.
8066 * symfile.c (expand_symtabs_matching): Same.
8067 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8068 * linespec.c (iterate_over_all_matching_symtabs): Same.
8069
8070 2020-04-13 Tom Tromey <tom@tromey.com>
8071
8072 * run-on-main-thread.c: Update include.
8073 * unittests/main-thread-selftests.c: Update include.
8074 * tui/tui-win.c: Update include.
8075 * tui/tui-io.c: Update include.
8076 * tui/tui-interp.c: Update include.
8077 * tui/tui-hooks.c: Update include.
8078 * top.h: Update include.
8079 * top.c: Update include.
8080 * ser-base.c: Update include.
8081 * remote.c: Update include.
8082 * remote-notif.c: Update include.
8083 * remote-fileio.c: Update include.
8084 * record-full.c: Update include.
8085 * record-btrace.c: Update include.
8086 * python/python.c: Update include.
8087 * posix-hdep.c: Update include.
8088 * mingw-hdep.c: Update include.
8089 * mi/mi-main.c: Update include.
8090 * mi/mi-interp.c: Update include.
8091 * main.c: Update include.
8092 * linux-nat.c: Update include.
8093 * interps.c: Update include.
8094 * infrun.c: Update include.
8095 * inf-loop.c: Update include.
8096 * event-top.c: Update include.
8097 * event-loop.c: Move to ../gdbsupport/.
8098 * event-loop.h: Move to ../gdbsupport/.
8099 * async-event.h: Update include.
8100 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8101
8102 2020-04-13 Tom Tromey <tom@tromey.com>
8103
8104 * tui/tui-win.c: Include async-event.h.
8105 * remote.c: Include async-event.h.
8106 * remote-notif.c: Include async-event.h.
8107 * record-full.c: Include async-event.h.
8108 * record-btrace.c: Include async-event.h.
8109 * infrun.c: Include async-event.h.
8110 * event-top.c: Include async-event.h.
8111 * event-loop.h: Move some declarations to async-event.h.
8112 * event-loop.c: Don't include ser-event.h or top.h. Move some
8113 code to async-event.c.
8114 * async-event.h: New file.
8115 * async-event.c: New file.
8116 * Makefile.in (COMMON_SFILES): Add async-event.c.
8117 (HFILES_NO_SRCDIR): Add async-event.h.
8118
8119 2020-04-13 Tom Tromey <tom@tromey.com>
8120
8121 * utils.c (flush_streams): New function.
8122 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8123
8124 2020-04-13 Tom Tromey <tom@tromey.com>
8125
8126 * event-loop.c (handle_file_event): Use warning, not
8127 printf_unfiltered.
8128
8129 2020-04-13 Tom Tromey <tom@tromey.com>
8130
8131 * event-loop.c: Include <chrono>.
8132
8133 2020-04-13 Tom Tromey <tom@tromey.com>
8134
8135 * gdb_select.h: Move to ../gdbsupport/.
8136 * event-loop.c: Update include path.
8137 * top.c: Update include path.
8138 * ser-base.c: Update include path.
8139 * ui-file.c: Update include path.
8140 * ser-tcp.c: Update include path.
8141 * guile/scm-ports.c: Update include path.
8142 * posix-hdep.c: Update include path.
8143 * ser-unix.c: Update include path.
8144 * gdb_usleep.c: Update include path.
8145 * mingw-hdep.c: Update include path.
8146 * inflow.c: Update include path.
8147 * infrun.c: Update include path.
8148 * event-top.c: Update include path.
8149
8150 2020-04-13 Tom Tromey <tom@tromey.com>
8151
8152 * configure: Rebuild.
8153 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8154
8155 2020-04-13 Tom Tromey <tom@tromey.com>
8156
8157 * event-loop.h (start_event_loop): Don't declare.
8158 * event-loop.c (start_event_loop): Move...
8159 * main.c (start_event_loop): ...here. Now static.
8160
8161 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8162
8163 * MAINTAINERS: Update my email address.
8164
8165 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8166
8167 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8168 IP_ALL.
8169
8170 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8171
8172 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
8173 (nbsd_nat_target::info_proc): Add do_cmdline.
8174
8175 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8176
8177 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
8178 (nbsd_nat_target::info_proc): Add do_cwd.
8179
8180 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8181
8182 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8183
8184 2020-04-11 Kamil Rytarowski <n54@gmx.com>
8185
8186 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8187 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8188 (nbsd_nat_target::info_proc): New functions.
8189 * nbsd-nat.c (kinfo_get_vmmap): New function.
8190 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8191 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8192 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8193 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8194 functions.
8195 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8196 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8197 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8198 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8199 (KINFO_VME_FLAG_GROWS_DOWN): New.
8200
8201 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8202
8203 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8204 bit shift.
8205
8206 2020-04-10 Tom Tromey <tromey@adacore.com>
8207
8208 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8209
8210 2020-04-10 Tom Tromey <tromey@adacore.com>
8211
8212 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8213 separate debug files.
8214
8215 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
8216
8217 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8218 Move to...
8219 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8220 ... here.
8221 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8222 Check for STATUS_WX86_BREAKPOINT.
8223 (windows_nat_target::wait): Same.
8224
8225 2020-04-10 Tom de Vries <tdevries@suse.de>
8226
8227 PR cli/25808
8228 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8229
8230 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8231
8232 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8233 (Write After Approval): Remove Tom de Vries.
8234
8235 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8236
8237 revert partially:
8238 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8239
8240 * buildsym.c (record_line): Fix undefined behavior and preserve
8241 lines at eof.
8242
8243 2020-04-09 Kamil Rytarowski <n54@gmx.com>
8244
8245 * auxv.h (svr4_auxv_parse): New.
8246 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8247 and generic_auxv_parse.
8248 (svr4_auxv_parse): Add.
8249 * obsd-tdep.c: Include "auxv.h".
8250 (obsd_auxv_parse): Remove.
8251 (obsd_init_abi): Remove comment.
8252 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8253 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8254 * nbsd-tdep.c: Include "auxv.h".
8255 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8256
8257 2020-04-08 Tom Tromey <tromey@adacore.com>
8258
8259 * nat/windows-nat.h (last_wait_event): Don't declare.
8260 (wait_for_debug_event): Update comment.
8261 * nat/windows-nat.c (last_wait_event): Now static.
8262
8263 2020-04-08 Tom Tromey <tromey@adacore.com>
8264
8265 * windows-nat.c (wait_for_debug_event): Move to
8266 nat/windows-nat.c.
8267 * nat/windows-nat.h (wait_for_debug_event): Declare.
8268 * nat/windows-nat.c (wait_for_debug_event): Move from
8269 windows-nat.c. No longer static.
8270
8271 2020-04-08 Tom Tromey <tromey@adacore.com>
8272
8273 * windows-nat.c (get_windows_debug_event): Use
8274 fetch_pending_stop.
8275 * nat/windows-nat.h (fetch_pending_stop): Declare.
8276 * nat/windows-nat.c (fetch_pending_stop): New function.
8277
8278 2020-04-08 Tom Tromey <tromey@adacore.com>
8279
8280 * windows-nat.c (windows_continue): Use matching_pending_stop and
8281 continue_last_debug_event.
8282 * nat/windows-nat.h (matching_pending_stop)
8283 (continue_last_debug_event): Declare.
8284 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8285 (matching_pending_stop, continue_last_debug_event): New
8286 functions.
8287
8288 2020-04-08 Tom Tromey <tromey@adacore.com>
8289
8290 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8291 (handle_exception_result): Move to nat/windows-nat.h.
8292 (DEBUG_EXCEPTION_SIMPLE): Remove.
8293 (windows_nat::handle_ms_vc_exception): New function.
8294 (handle_exception): Move to nat/windows-nat.c.
8295 (get_windows_debug_event): Update.
8296 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8297 nat/windows-nat.c.
8298 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8299 (handle_exception_result): Move from windows-nat.c.
8300 (handle_exception): Declare.
8301 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8302 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8303 windows-nat.c.
8304
8305 2020-04-08 Tom Tromey <tromey@adacore.com>
8306
8307 * windows-nat.c (exception_count, event_count): Remove.
8308 (handle_exception, get_windows_debug_event)
8309 (do_initial_windows_stuff): Update.
8310
8311 2020-04-08 Tom Tromey <tromey@adacore.com>
8312
8313 * windows-nat.c (windows_nat::handle_load_dll)
8314 (windows_nat::handle_unload_dll): Rename. No longer static.
8315 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8316 Declare.
8317
8318 2020-04-08 Tom Tromey <tromey@adacore.com>
8319
8320 * complaints.h (stop_whining): Declare at top-level.
8321 (complaint): Don't declare stop_whining.
8322
8323 2020-04-08 Tom Tromey <tromey@adacore.com>
8324
8325 * windows-nat.c (windows_nat::handle_output_debug_string):
8326 Rename. No longer static.
8327 * nat/windows-nat.h (handle_output_debug_string): Declare.
8328
8329 2020-04-08 Tom Tromey <tromey@adacore.com>
8330
8331 * windows-nat.c (current_process_handle, current_process_id)
8332 (main_thread_id, last_sig, current_event, last_wait_event)
8333 (current_windows_thread, desired_stop_thread_id, pending_stops)
8334 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8335 (display_selectors, fake_create_process)
8336 (get_windows_debug_event): Update.
8337 * nat/windows-nat.h (current_process_handle, current_process_id)
8338 (main_thread_id, last_sig, current_event, last_wait_event)
8339 (current_windows_thread, desired_stop_thread_id, pending_stops)
8340 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8341 * nat/windows-nat.c (current_process_handle, current_process_id)
8342 (main_thread_id, last_sig, current_event, last_wait_event)
8343 (current_windows_thread, desired_stop_thread_id, pending_stops)
8344 (siginfo_er): New globals. Move from windows-nat.c.
8345
8346 2020-04-08 Tom Tromey <tromey@adacore.com>
8347
8348 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8349 (handle_load_dll): Update.
8350 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8351
8352 2020-04-08 Tom Tromey <tromey@adacore.com>
8353
8354 * windows-nat.c (enum thread_disposition_type): Move to
8355 nat/windows-nat.h.
8356 (windows_nat::thread_rec): Rename from thread_rec. No longer
8357 static.
8358 (windows_add_thread, windows_nat_target::fetch_registers)
8359 (windows_nat_target::store_registers, handle_exception)
8360 (windows_nat_target::resume, get_windows_debug_event)
8361 (windows_nat_target::get_tib_address)
8362 (windows_nat_target::thread_name)
8363 (windows_nat_target::thread_alive): Update.
8364 * nat/windows-nat.h (enum thread_disposition_type): Move from
8365 windows-nat.c.
8366 (thread_rec): Declare.
8367
8368 2020-04-08 Tom Tromey <tromey@adacore.com>
8369
8370 * windows-nat.c: Add "using namespace".
8371 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8372 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8373
8374 2020-04-08 Tom Tromey <tromey@adacore.com>
8375
8376 * nat/windows-nat.h (struct windows_thread_info): Declare
8377 destructor.
8378 * nat/windows-nat.c (~windows_thread_info): New.
8379
8380 2020-04-08 Tom Tromey <tromey@adacore.com>
8381
8382 PR gdb/22992
8383 * windows-nat.c (current_event): Update comment.
8384 (last_wait_event, desired_stop_thread_id): New globals.
8385 (struct pending_stop): New.
8386 (pending_stops): New global.
8387 (windows_nat_target) <stopped_by_sw_breakpoint>
8388 <supports_stopped_by_sw_breakpoint>: New methods.
8389 (windows_fetch_one_register): Add assertions. Adjust PC.
8390 (windows_continue): Handle pending stops. Suspend other threads
8391 when stepping. Use last_wait_event
8392 (wait_for_debug_event): New function.
8393 (get_windows_debug_event): Use wait_for_debug_event. Handle
8394 pending stops. Queue spurious stops.
8395 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8396 (windows_nat_target::kill): Use wait_for_debug_event.
8397 * nat/windows-nat.h (struct windows_thread_info)
8398 <stopped_at_software_breakpoint>: New field.
8399 * nat/windows-nat.c (windows_thread_info::resume): Clear
8400 stopped_at_software_breakpoint.
8401
8402 2020-04-08 Tom Tromey <tromey@adacore.com>
8403
8404 * windows-nat.c (enum thread_disposition_type): New.
8405 (thread_rec): Replace "get_context" parameter with "disposition";
8406 change type.
8407 (windows_add_thread, windows_nat_target::fetch_registers)
8408 (windows_nat_target::store_registers, handle_exception)
8409 (windows_nat_target::resume, get_windows_debug_event)
8410 (windows_nat_target::get_tib_address)
8411 (windows_nat_target::thread_name)
8412 (windows_nat_target::thread_alive): Update.
8413
8414 2020-04-08 Tom Tromey <tromey@adacore.com>
8415
8416 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8417 (windows_continue): Use windows_continue::resume.
8418 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8419 resume>: Declare new methods.
8420 * nat/windows-nat.c: New file.
8421 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8422
8423 2020-04-08 Tom Tromey <tromey@adacore.com>
8424
8425 * windows-nat.c (windows_add_thread, windows_delete_thread)
8426 (windows_nat_target::fetch_registers)
8427 (windows_nat_target::store_registers, fake_create_process)
8428 (windows_nat_target::resume, windows_nat_target::resume)
8429 (get_windows_debug_event, windows_nat_target::wait)
8430 (windows_nat_target::pid_to_str)
8431 (windows_nat_target::get_tib_address)
8432 (windows_nat_target::get_ada_task_ptid)
8433 (windows_nat_target::thread_name)
8434 (windows_nat_target::thread_alive): Use lwp, not tid.
8435
8436 2020-04-08 Tom Tromey <tromey@adacore.com>
8437
8438 * windows-nat.c (handle_exception)
8439 (windows_nat_target::thread_name): Update.
8440 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8441 <name>: Now unique_xmalloc_ptr.
8442
8443 2020-04-08 Tom Tromey <tromey@adacore.com>
8444
8445 * windows-nat.c (thread_rec)
8446 (windows_nat_target::fetch_registers): Update.
8447 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8448 Update comment.
8449 <debug_registers_changed, reload_context>: Now bool.
8450
8451 2020-04-08 Tom Tromey <tromey@adacore.com>
8452
8453 * windows-nat.c (windows_add_thread): Use new.
8454 (windows_init_thread_list, windows_delete_thread): Use delete.
8455 (get_windows_debug_event): Update.
8456 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8457 destructor, and initializers.
8458
8459 2020-04-08 Tom Tromey <tromey@adacore.com>
8460
8461 * windows-nat.c (struct windows_thread_info): Remove.
8462 * nat/windows-nat.h: New file.
8463
8464 2020-04-08 Tom Tromey <tromey@adacore.com>
8465
8466 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8467 (thread_rec, windows_add_thread, windows_delete_thread)
8468 (windows_continue): Update.
8469
8470 2020-04-08 Tom Tromey <tromey@adacore.com>
8471
8472 * windows-nat.c (struct windows_thread_info): Remove typedef.
8473 (thread_head): Remove.
8474 (thread_list): New global.
8475 (thread_rec, windows_add_thread, windows_init_thread_list)
8476 (windows_delete_thread, windows_continue): Update.
8477
8478 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8479
8480 * windows-tdep.h (windows_init_abi): Add comment.
8481 (cygwin_init_abi): New declaration.
8482 * windows-tdep.c: Split signal enumeration in two, one for
8483 Windows and one for Cygwin.
8484 (windows_gdb_signal_to_target): Only deal with signal of the
8485 Windows OS ABI.
8486 (cygwin_gdb_signal_to_target): New function.
8487 (windows_init_abi): Rename to windows_init_abi_common, don't set
8488 gdb_signal_to_target gdbarch method. Add new new function with
8489 this name.
8490 (cygwin_init_abi): New function.
8491 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8492 comment. Don't call windows_init_abi.
8493 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8494 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8495 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8496 i386_windows_init_abi_common, don't call windows_init_abi. Add
8497 a new function of this name.
8498 (i386_cygwin_init_abi): New function.
8499 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8500 OS ABI Cygwin.
8501
8502 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8503
8504 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8505 parameter.c.
8506 (dwarf2_read_gdb_index): Update.
8507
8508 2020-04-07 Kamil Rytarowski <n54@gmx.com>
8509
8510 * nbsd-tdep.c: Include "objfiles.h".
8511 (nbsd_skip_solib_resolver): New.
8512 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8513
8514 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8515
8516 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8517 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8518 with DW_LLE_base_addressx are being emitted in DWARFv5.
8519 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8520 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8521 unsigned integer.
8522
8523 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8524
8525 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8526 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8527 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8528 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8529 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8530 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8531 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8532
8533
8534 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8535
8536 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8537 (read_loclist_index): New function definition.
8538 (lookup_loclist_base): New function definition.
8539 (read_loclist_header): New function definition.
8540 (dwarf2_cu): Add loclist_base and loclist_header field.
8541 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8542 (read_full_die_1): Read the value of DW_AT_loclists_base.
8543 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8544 (read_attribute_value): Handle DW_FORM_loclistx.
8545 (skip_one_die): Handle DW_FORM_loclistx.
8546 (loclist_header): New structure declaration.
8547 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8548
8549 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8550
8551 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8552 constructor. Remove `addr` parameter from other constructor and
8553 add `per_cu` parameter.
8554 * dwarf2/read.c (create_partial_symtab): Update.
8555
8556 2020-04-07 Tom de Vries <tdevries@suse.de>
8557
8558 PR symtab/25796
8559 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8560 (partial_die_info::fixup): Inherit has_const_value.
8561
8562 2020-04-07 Tom de Vries <tdevries@suse.de>
8563
8564 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8565 symbols without address.
8566
8567 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8568
8569 * nbsd-nat.h (struct thread_info): Add forward declaration.
8570 (nbsd_nat_target::thread_alive): Add.
8571 (nbsd_nat_target::thread_name): Likewise.
8572 (nbsd_nat_target::update_thread_list): Likewise.
8573 (update_thread_list::post_attach): Likewise.
8574 (post_attach::pid_to_str): Likewise.
8575 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8576 (nbsd_thread_lister): Add.
8577 (nbsd_nat_target::thread_alive): Likewise.
8578 (nbsd_nat_target::thread_name): Likewise.
8579 (nbsd_add_threads): Likewise.
8580 (update_thread_list::post_attach): Likewise.
8581 (nbsd_nat_target::update_thread_list): Likewise.
8582 (post_attach::pid_to_str): Likewise.
8583
8584 2020-04-06 Tom Tromey <tromey@adacore.com>
8585
8586 * ada-valprint.c (print_variant_part): Extract the variant field.
8587 (print_field_values): Use the field as the outer value when
8588 recursing.
8589
8590 2020-04-06 Tom Tromey <tromey@adacore.com>
8591
8592 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8593 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8594 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8595 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8596 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8597
8598 2020-04-06 Tom Tromey <tromey@adacore.com>
8599
8600 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8601 TYPE_CODE_ERROR.
8602
8603 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8604
8605 * nbsd-tdep.c: Include "gdbarch.h".
8606 Define enum with NetBSD signal numbers.
8607 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8608 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8609 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8610 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8611 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8612 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8613 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8614 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8615 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8616 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8617 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8618 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8619
8620 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
8621
8622 PR gdb/25325
8623 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8624
8625 2020-04-03 Tom Tromey <tromey@adacore.com>
8626
8627 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8628 Read constant block.
8629
8630 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8631
8632 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8633 (gdb_bfd_get_full_section_contents): New declaration.
8634 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8635 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8636 gdb_bfd_get_full_section_contents.
8637
8638 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8639
8640 * exec.c (build_section_table): Replace internal_error with
8641 gdb_assert.
8642 (section_table_xfer_memory_partial): Likewise.
8643 * mdebugread.c (parse_partial_symbols): Likewise.
8644 * psymtab.c (lookup_partial_symbol): Likewise.
8645 * utils.c (wrap_here): Likewise.
8646
8647 2020-04-02 Tom Tromey <tromey@adacore.com>
8648
8649 * f-lang.c (build_fortran_types): Use arch_type to initialize
8650 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8651
8652 2020-04-02 Tom Tromey <tromey@adacore.com>
8653
8654 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8655 of attributes.
8656
8657 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8658 Bernd Edlinger <bernd.edlinger@hotmail.de>
8659 Tom Tromey <tromey@adacore.com>
8660
8661 * buildsym.c (buildsym_compunit::record_line): Remove
8662 deduplication code.
8663
8664 2020-04-02 Tom de Vries <tdevries@suse.de>
8665
8666 PR ada/24671
8667 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8668
8669 2020-04-02 Tom de Vries <tdevries@suse.de>
8670
8671 * dwarf2/read.c (dwarf2_gdb_index_functions,
8672 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8673 NULL.
8674 * psymtab.c (psym_lookup_global_symbol_language): New function.
8675 (psym_functions): Init psym_lookup_global_symbol_language with
8676 psym_lookup_global_symbol_language.
8677 * symfile-debug.c (debug_sym_quick_functions): Init
8678 lookup_global_symbol_language with NULL.
8679 * symfile.c (set_initial_language): Remove fixme comment.
8680 * symfile.h (struct quick_symbol_functions): Add
8681 lookup_global_symbol_language.
8682 * symtab.c (find_quick_global_symbol_language): New function.
8683 (find_main_name): Use find_quick_global_symbol_language.
8684
8685 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8686
8687 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8688
8689 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8690
8691 * buildsym.c (record_line): Fix undefined behavior and preserve
8692 lines at eof.
8693
8694 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8695
8696 * buildsym.c (record_line): Fix the resizing condition.
8697
8698 2020-04-01 Tom Tromey <tom@tromey.com>
8699
8700 * value.h (value_literal_complex): Add comment.
8701 * valops.c (value_literal_complex): Refer to value.h.
8702
8703 2020-04-01 Tom Tromey <tom@tromey.com>
8704
8705 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8706 (scalar_type): New rule, from typebase.
8707 (typebase): Use scalar_type. Recognize complex types.
8708 (field_name): Handle FLOAT_KEYWORD.
8709 (ident_tokens): Add _Complex and __complex__.
8710
8711 2020-04-01 Tom Tromey <tom@tromey.com>
8712
8713 PR exp/25299:
8714 * valarith.c (promotion_type, complex_binop): New functions.
8715 (scalar_binop): Handle complex numbers. Use promotion_type.
8716 (value_pos, value_neg, value_complement): Handle complex numbers.
8717
8718 2020-04-01 Tom Tromey <tom@tromey.com>
8719
8720 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8721 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8722 (parse_number): Handle complex numbers.
8723
8724 2020-04-01 Tom Tromey <tom@tromey.com>
8725
8726 * c-valprint.c (c_decorations): Change complex suffix to "i".
8727
8728 2020-04-01 Tom Tromey <tom@tromey.com>
8729
8730 * valprint.c (generic_value_print_complex): Use accessors.
8731 * value.h (value_real_part, value_imaginary_part): Declare.
8732 * valops.c (value_real_part, value_imaginary_part): New
8733 functions.
8734 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8735
8736 2020-04-01 Tom Tromey <tom@tromey.com>
8737
8738 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8739 (read_range_type): Update.
8740 * mdebugread.c (basic_type): Update.
8741 * go-lang.c (build_go_types): Use init_complex_type.
8742 * gdbtypes.h (struct main_type) <complex_type>: New member.
8743 (init_complex_type): Update.
8744 (arch_complex_type): Don't declare.
8745 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8746 Make name if none given. Use alloc_type_copy. Look for cached
8747 complex type.
8748 (arch_complex_type): Remove.
8749 (gdbtypes_post_init): Use init_complex_type.
8750 * f-lang.c (build_fortran_types): Use init_complex_type.
8751 * dwarf2/read.c (read_base_type): Update.
8752 * d-lang.c (build_d_types): Use init_complex_type.
8753 * ctfread.c (read_base_type): Update.
8754
8755 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8756
8757 * infrun.c (stop_all_threads): Update assertion, plus when
8758 stopping threads, take into account that we might be trying
8759 to stop an all-stop target.
8760 (stop_waiting): Call 'stop_all_threads' if there exists a
8761 non-stop target.
8762
8763 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8764
8765 * target.h (exists_non_stop_target): New function declaration.
8766 * target.c (exists_non_stop_target): New function.
8767
8768 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
8769
8770 PR gdb/24789
8771 * eval.c (is_integral_or_integral_reference): New function.
8772 (evaluate_subexp_standard): Allow integer references in
8773 pointer arithmetic.
8774
8775 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8776
8777 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8778 check for no ptid in the stop reply when the target is non-stop.
8779
8780 2020-04-01 Tom Tromey <tromey@adacore.com>
8781
8782 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8783 "name" parameter to rvalue reference. Initialize m_name_holder.
8784 <lookup_name_info>: New overloads.
8785 <name>: Return gdb::string_view.
8786 <c_str>: New method.
8787 <make_ignore_params>: Update.
8788 <search_name_hash>: Update.
8789 <language_lookup_name>: Return const char *.
8790 <m_name>: Change type.
8791 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8792 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8793 (lookup_name_info::match_any): Update.
8794 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8795 Update.
8796 * minsyms.c (linkage_name_str): Update.
8797 * language.c (default_symbol_name_matcher): Update.
8798 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8799 Update.
8800 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8801 (ada_lookup_name_info::ada_lookup_name_info): Update.
8802 (literal_symbol_name_matcher): Update.
8803
8804 2020-04-01 Tom Tromey <tromey@adacore.com>
8805
8806 * psymtab.c (psymtab_search_name): Remove function.
8807 (psym_lookup_symbol): Create search name and lookup name here.
8808 (lookup_partial_symbol): Remove "name" parameter; add
8809 lookup_name.
8810 (psym_expand_symtabs_for_function): Update.
8811
8812 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
8813
8814 PR tui/25597:
8815 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8816
8817 2020-03-31 Tom Tromey <tromey@adacore.com>
8818
8819 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8820 memcpy.
8821
8822 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
8823
8824 * features/riscv/32bit-csr.xml: Regenerated.
8825 * features/riscv/64bit-csr.xml: Regenerated.
8826
8827 2020-03-30 Tom Tromey <tromey@adacore.com>
8828
8829 * ada-valprint.c (print_variant_part): Update.
8830 * ada-lang.h (ada_which_variant_applies): Update.
8831 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8832 outer_valaddr parameters; replace with "outer" value parameter.
8833 (to_fixed_variant_branch_type): Update.
8834
8835 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8836
8837 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8838 <list>. Remove inclusion of observable.h.
8839 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8840 (struct arch_lwp_info): New struct.
8841 (class ppc_linux_dreg_interface): New class.
8842 (struct ppc_linux_process_info): New struct.
8843 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8844 <low_new_clone, low_forget_process, low_prepare_to_resume>
8845 <copy_thread_dreg_state, mark_thread_stale>
8846 <mark_debug_registers_changed, register_hw_breakpoint>
8847 <clear_hw_breakpoint, register_wp, clear_wp>
8848 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8849 <num_memory_accesses, get_trigger_type>
8850 <create_watchpoint_request, hwdebug_point_cmp>
8851 <init_arch_lwp_info, get_arch_lwp_info>
8852 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8853 methods.
8854 <struct ptid_hash>: New inner struct.
8855 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8856 members.
8857 (saved_dabr_value, hwdebug_info, max_slots_number)
8858 (struct hw_break_tuple, struct thread_points, ppc_threads)
8859 (have_ptrace_hwdebug_interface)
8860 (hwdebug_find_thread_points_by_tid)
8861 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8862 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8863 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8864 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8865 use m_dreg_interface.
8866 (hwdebug_point_cmp): Change to...
8867 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8868 reference arguments instead of pointers.
8869 (ppc_linux_nat_target::ranged_break_num_registers): Use
8870 m_dreg_interface.
8871 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8872 m_dreg_interface. Call register_hw_breakpoint.
8873 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8874 m_dreg_interface. Call clear_hw_breakpoint.
8875 (get_trigger_type): Change to...
8876 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8877 comment.
8878 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8879 use m_dreg_interface. Call register_hw_breakpoint.
8880 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8881 use m_dreg_interface. Call clear_hw_breakpoint.
8882 (can_use_watchpoint_cond_accel): Change to...
8883 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8884 method. Update comment, use m_dreg_interface and
8885 m_process_info.
8886 (calculate_dvc): Change to...
8887 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8888 m_dreg_interface.
8889 (num_memory_accesses): Change to...
8890 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8891 (check_condition): Change to...
8892 (ppc_linux_nat_target::check_condition): ...this method.
8893 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8894 comment, use m_dreg_interface.
8895 (create_watchpoint_request): Change to...
8896 (ppc_linux_nat_target::create_watchpoint_request): ...this
8897 method. Use m_dreg_interface.
8898 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8899 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8900 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8901 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8902 (ppc_linux_nat_target::low_forget_process)
8903 (ppc_linux_nat_target::low_new_fork)
8904 (ppc_linux_nat_target::low_new_clone)
8905 (ppc_linux_nat_target::low_delete_thread)
8906 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8907 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8908 only call mark_thread_stale.
8909 (ppc_linux_thread_exit): Remove.
8910 (ppc_linux_nat_target::stopped_data_address): Change to...
8911 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8912 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8913 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8914 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8915 comment. Call low_stopped_data_address.
8916 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8917 m_dreg_interface.
8918 (ppc_linux_nat_target::masked_watch_num_registers): Use
8919 m_dreg_interface.
8920 (ppc_linux_nat_target::copy_thread_dreg_state)
8921 (ppc_linux_nat_target::mark_thread_stale)
8922 (ppc_linux_nat_target::mark_debug_registers_changed)
8923 (ppc_linux_nat_target::register_hw_breakpoint)
8924 (ppc_linux_nat_target::clear_hw_breakpoint)
8925 (ppc_linux_nat_target::register_wp)
8926 (ppc_linux_nat_target::clear_wp)
8927 (ppc_linux_nat_target::init_arch_lwp_info)
8928 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8929 (_initialize_ppc_linux_nat): Remove observer callback.
8930
8931 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8932
8933 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8934 (ppc_linux_nat_target::auxv_parse)
8935 (ppc_linux_nat_target::read_description)
8936 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8937 Move up.
8938
8939 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8940
8941 * linux-nat.h (low_new_clone): New method.
8942 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8943
8944 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8945
8946 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8947 (dbx_expand_psymtab): ... this.
8948 (start_psymtab): Update.
8949 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8950 (mdebug_expand_psymtab): ... this.
8951 (parse_partial_symbols): Update.
8952 (new_psymtab): Update.
8953 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8954 (xcoff_expand_psymtab): ... this.
8955 (xcoff_start_psymtab): Update.
8956
8957 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8958
8959 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8960 <expand_dependencies>: ... this.
8961 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8962 (partial_symtab::expand_dependencies): ... this.
8963 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8964 Update.
8965 (dwarf2_psymtab::expand_psymtab): Update.
8966 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8967 * mdebugread.c (psymtab_to_symtab_1): Update.
8968 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8969
8970 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8971
8972 * psympriv.h (discard_psymtab): Remove.
8973 * dbxread.c (dbx_end_psymtab): Update.
8974 * xcoffread.c (xcoff_end_psymtab): Update.
8975
8976 2020-03-28 Tom Tromey <tom@tromey.com>
8977
8978 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8979 comment.
8980
8981 2020-03-28 Tom Tromey <tom@tromey.com>
8982
8983 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8984
8985 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
8986
8987 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8988
8989 2020-03-26 John Baldwin <jhb@FreeBSD.org>
8990
8991 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8992
8993 2020-03-26 Tom Tromey <tom@tromey.com>
8994
8995 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8996 (mark_common_block_symbol_computed, read_tag_string_type)
8997 (attr_to_dynamic_prop, read_subrange_type): Update.
8998 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8999 to be methods on struct attribute.
9000 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9001 (read_call_site_scope, partial_die_info::read)
9002 (partial_die_info::read, lookup_die_type, follow_die_ref):
9003 Update.
9004 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9005 from dwarf2_get_ref_die_offset.
9006 (attribute::constant_value): New method, from
9007 dwarf2_get_attr_constant_value.
9008 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9009 Declare method.
9010 <constant_value>: New method.
9011
9012 2020-03-26 Tom Tromey <tom@tromey.com>
9013
9014 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9015 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9016 (dwarf_type_encoding_name): Move to stringify.c.
9017 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9018 * dwarf2/stringify.c: New file.
9019 * dwarf2/stringify.h: New file.
9020
9021 2020-03-26 Tom Tromey <tom@tromey.com>
9022
9023 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9024 Rewrite.
9025
9026 2020-03-26 Tom Tromey <tom@tromey.com>
9027
9028 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9029 methods.
9030 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9031 (lookup_ranges_base): Likewise.
9032 (read_cutu_die_from_dwo, read_full_die_1): Update.
9033
9034 2020-03-26 Tom Tromey <tom@tromey.com>
9035
9036 * dwarf2/read.c (read_import_statement, read_file_scope)
9037 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9038 (read_lexical_block_scope, read_call_site_scope)
9039 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9040 (handle_struct_member_die, process_structure_scope)
9041 (update_enumeration_type_from_children)
9042 (process_enumeration_scope, read_array_type, read_common_block)
9043 (read_namespace, read_module, read_subroutine_type): Update.
9044 (sibling_die): Remove.
9045
9046 2020-03-26 Tom Tromey <tom@tromey.com>
9047
9048 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9049 (build_type_psymtabs_reader, read_structure_type)
9050 (read_enumeration_type, read_full_die_1): Update.
9051 (dwarf2_attr_no_follow): Move to die.h.
9052 * dwarf2/die.h (struct die_info) <attr>: New method.
9053
9054 2020-03-26 Tom Tromey <tom@tromey.com>
9055
9056 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9057 <base_address>: Now an optional.
9058 (dwarf2_find_base_address, dwarf2_rnglists_process)
9059 (dwarf2_ranges_process, fill_in_loclist_baton)
9060 (dwarf2_symbol_mark_computed): Update.
9061
9062 2020-03-26 Tom Tromey <tom@tromey.com>
9063
9064 * dwarf2/read.c (struct die_info): Move to die.h.
9065 * dwarf2/die.h: New file.
9066
9067 2020-03-26 Tom Tromey <tom@tromey.com>
9068
9069 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9070 * dwarf2/read.c
9071 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9072 Move to line-header.c.
9073 (read_checked_initial_length_and_offset, read_formatted_entries):
9074 Likewise.
9075 (dwarf_decode_line_header): Split into two.
9076 * dwarf2/line-header.c
9077 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9078 Move from read.c.
9079 (read_checked_initial_length_and_offset, read_formatted_entries):
9080 Likewise.
9081 (dwarf_decode_line_header): New function, split from read.c.
9082
9083 2020-03-26 Tom Tromey <tom@tromey.com>
9084
9085 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9086 Declare method.
9087 * dwarf2/read.c (read_attribute_value): Update.
9088 (dwarf2_per_objfile::read_line_string): Rename from
9089 read_indirect_line_string.
9090 (read_formatted_entries): Update.
9091
9092 2020-03-26 Tom Tromey <tom@tromey.com>
9093
9094 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9095 variable.
9096
9097 2020-03-26 Tom Tromey <tom@tromey.com>
9098
9099 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9100 const.
9101 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9102 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9103 parameter const.
9104
9105 2020-03-26 Tom Tromey <tom@tromey.com>
9106
9107 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9108 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9109 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9110 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9111
9112 2020-03-26 Tom Tromey <tom@tromey.com>
9113
9114 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9115 file_names_size, file_full_name, file_file_name>: Use const.
9116 <file_name_at, file_names>: Add const overload.
9117 * dwarf2/line-header.c (line_header::file_file_name)
9118 (line_header::file_full_name): Update.
9119
9120 2020-03-26 Tom Tromey <tom@tromey.com>
9121
9122 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9123 (macro_start_file, consume_improper_spaces)
9124 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9125 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9126 (dwarf_decode_macros): Move to macro.c.
9127 * dwarf2/macro.c: New file.
9128 * dwarf2/macro.h: New file.
9129 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9130
9131 2020-03-26 Tom Tromey <tom@tromey.com>
9132
9133 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9134 method.
9135 * dwarf2/section.c: New method. From
9136 read_indirect_string_at_offset_from.
9137 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9138 (read_indirect_string_at_offset_from): Move to section.c.
9139 (read_indirect_string_at_offset): Rewrite.
9140 (read_indirect_line_string_at_offset): Remove.
9141 (read_indirect_string, read_indirect_line_string)
9142 (dwarf_decode_macro_bytes): Update.
9143
9144 2020-03-26 Tom Tromey <tom@tromey.com>
9145
9146 * dwarf2/section.h (struct dwarf2_section_info)
9147 <overload_complaint>: Declare.
9148 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9149 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9150 Rename from dwarf2_section_buffer_overflow_complaint.
9151 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9152 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9153
9154 2020-03-26 Tom Tromey <tom@tromey.com>
9155
9156 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9157 Declare.
9158 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9159 Move from read.c.
9160 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9161 to section.c.
9162
9163 2020-03-26 Tom Tromey <tom@tromey.com>
9164
9165 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9166
9167 2020-03-26 Tom Tromey <tom@tromey.com>
9168
9169 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9170 "builder".
9171 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9172 parameter.
9173 (dwarf_decode_macros): Update.
9174
9175 2020-03-26 Tom Tromey <tom@tromey.com>
9176
9177 * dwarf2/read.c (read_attribute_value): Update.
9178 (read_indirect_string_from_dwz): Move to dwz.c; change into
9179 method.
9180 (dwarf_decode_macro_bytes): Update.
9181 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9182 * dwarf2/dwz.c: New file.
9183 * Makefile.in (COMMON_SFILES): Add dwz.c.
9184
9185 2020-03-26 Tom Tromey <tom@tromey.com>
9186
9187 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9188 * dwarf2/read.c: Add include.
9189 * dwarf2/index-write.c: Add include.
9190 * dwarf2/index-cache.c: Add include.
9191 * dwarf2/dwz.h: New file.
9192
9193 2020-03-25 Tom Tromey <tom@tromey.com>
9194
9195 * compile/compile-object-load.c (get_out_value_type): Mention
9196 correct symbol name in error message.
9197
9198 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
9199
9200 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9201
9202 2020-03-25 Tom de Vries <tdevries@suse.de>
9203
9204 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9205 * symmisc.c (dump_symtab_1): Print user and includes fields.
9206 (maintenance_info_symtabs): Same.
9207
9208 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9209
9210 PR gdb/25534
9211 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9212 (riscv_regcache_cooked_write): New function.
9213 (riscv_push_dummy_call): Use new function.
9214 (riscv_return_value): Likewise.
9215
9216 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9217
9218 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9219 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9220 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9221 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9222 * infrun.c (follow_fork): Likewise.
9223 (follow_fork_inferior): Likewise.
9224 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9225 * linux-nat.h (class linux_nat_target): Likewise.
9226 * remote.c (class remote_target) <follow_fork>: Likewise.
9227 (remote_target::follow_fork): Likewise.
9228 * target-delegates.c: Re-generate.
9229 * target.c (default_follow_fork): Likewise.
9230 (target_follow_fork): Likewise.
9231 * target.h (struct target_ops) <follow_fork>: Likewise.
9232 (target_follow_fork): Likewise.
9233
9234 2020-03-24 Tom de Vries <tdevries@suse.de>
9235
9236 * psymtab.c (maintenance_info_psymtabs): Print user field.
9237
9238 2020-03-20 Tom Tromey <tromey@adacore.com>
9239
9240 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9241 const.
9242 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9243 const.
9244
9245 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
9246
9247 * ptrace.m4: Don't check for ptrace declaration.
9248 * config.in: Re-generate.
9249 * configure: Re-generate.
9250 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9251 not defined.
9252
9253 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9254
9255 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9256 `PTRACE_TYPE_RET'.
9257 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9258 * sparc-nat.c (gdb_ptrace): Likewise.
9259 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9260
9261 2020-03-20 Tom Tromey <tromey@adacore.com>
9262
9263 * c-exp.y (lex_one_token): Fix assert.
9264
9265 2020-03-20 Tom Tromey <tromey@adacore.com>
9266
9267 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9268 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9269 strncpy call.
9270
9271 2020-03-20 Tom Tromey <tromey@adacore.com>
9272
9273 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9274
9275 2020-03-20 Tom Tromey <tromey@adacore.com>
9276
9277 * ada-valprint.c (print_variant_part): Remove parameters; switch
9278 to value-based API.
9279 (print_field_values): Likewise.
9280 (ada_val_print_struct_union): Likewise.
9281 (ada_value_print_1): Update.
9282
9283 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9284
9285 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9286 nbsd_nat_target instead of inf_ptrace_target.
9287 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9288 nbsd_nat_target.
9289
9290 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9291
9292 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9293 it to the ptrace call.
9294 * (store_registers): Likewise.
9295
9296 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9297
9298 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9299 it to the ptrace call.
9300 * (store_registers): Likewise.
9301
9302 2020-03-19 Luis Machado <luis.machado@linaro.org>
9303
9304 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9305 valid, fetch vg value from ptrace.
9306
9307 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9308 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9309 * inf-ptrace.c: Likewise.
9310 * (gdb_ptrace): Add.
9311 * (inf_ptrace_target::resume): Update.
9312 * (inf_ptrace_target::xfer_partial): Likewise.
9313 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9314 * (inf_ptrace_peek_poke): Update.
9315
9316 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9317
9318 * x86-bsd-nat.c (gdb_ptrace): New.
9319 * (x86bsd_dr_set): Add new argument `ptid'.
9320 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9321 x86bsd_dr_set_addr): Update.
9322
9323 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9324
9325 * remote.c (remote_target::process_stop_reply): Handle events for
9326 all threads differently.
9327
9328 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9329
9330 * completer.c (completion_tracker::remove_completion): Define new
9331 function.
9332 * completer.h (completion_tracker::remove_completion): Declare new
9333 function.
9334 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9335 when adding a C++ function symbol.
9336
9337 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9338
9339 * completer.c (completion_tracker::completion_hash_entry): Define
9340 new class.
9341 (advance_to_filename_complete_word_point): Call
9342 recompute_lowest_common_denominator.
9343 (completion_tracker::completion_tracker): Call discard_completions
9344 to setup the hash table.
9345 (completion_tracker::discard_completions): Allow for being called
9346 from the constructor, pass new equal function, and element deleter
9347 when constructing the hash table. Initialise new class member
9348 variables.
9349 (completion_tracker::maybe_add_completion): Remove use of
9350 m_entries_vec, and store more information into m_entries_hash.
9351 (completion_tracker::recompute_lcd_visitor): New function, most
9352 content taken from...
9353 (completion_tracker::recompute_lowest_common_denominator):
9354 ...here, this now just visits each item in the hash calling the
9355 above visitor.
9356 (completion_tracker::build_completion_result): Remove use of
9357 m_entries_vec, call recompute_lowest_common_denominator.
9358 * completer.h (completion_tracker::have_completions): Remove use
9359 of m_entries_vec.
9360 (completion_tracker::completion_hash_entry): Declare new class.
9361 (completion_tracker::recompute_lowest_common_denominator): Change
9362 function signature.
9363 (completion_tracker::recompute_lcd_visitor): Declare new function.
9364 (completion_tracker::m_entries_vec): Delete.
9365 (completion_tracker::m_entries_hash): Initialize to NULL.
9366 (completion_tracker::m_lowest_common_denominator_valid): New
9367 member variable.
9368 (completion_tracker::m_lowest_common_denominator_max_length): New
9369 member variable.
9370
9371 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9372
9373 * regformats/regdef.h: Put reg in gdb namespace.
9374
9375 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9376
9377 * i386-bsd-nat.c (gdb_ptrace): New.
9378 * (i386bsd_fetch_inferior_registers,
9379 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9380 * (i386bsd_fetch_inferior_registers,
9381 i386bsd_store_inferior_registers) Use gdb_ptrace.
9382
9383 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9384
9385 * amd64-bsd-nat.c (gdb_ptrace): New.
9386 * (amd64bsd_fetch_inferior_registers,
9387 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9388 * (amd64bsd_fetch_inferior_registers,
9389 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9390
9391 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9392
9393 * user-regs.c (user_reg::read): Rename to...
9394 (user_reg::xread): ...this.
9395 * (append_user_reg): Rename argument `read' to `xread'.
9396 * (user_reg_add_builtin): Likewise.
9397 * (user_reg_add): Likewise.
9398 * (value_of_user_reg): Likewise.
9399
9400 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9401
9402 * sparc-nat.c (gdb_ptrace): New.
9403 * sparc-nat.c (sparc_fetch_inferior_registers)
9404 (sparc_store_inferior_registers) Remove obsolete comment.
9405 * sparc-nat.c (sparc_fetch_inferior_registers)
9406 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9407 * sparc-nat.c (sparc_fetch_inferior_registers)
9408 (sparc_store_inferior_registers) Use gdb_ptrace.
9409
9410 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9411
9412 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9413 it to the ptrace call.
9414 * sh-nbsd-nat.c (store_registers): Likewise.
9415
9416 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9417
9418 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9419 nbsd_nat_target instead of inf_ptrace_target.
9420 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9421 nbsd_nat_target.
9422
9423 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9424
9425 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9426
9427 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9428
9429 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9430 <sys/sysctl.h>.
9431 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9432
9433 2020-03-17 Tom de Vries <tdevries@suse.de>
9434
9435 PR gdb/23710
9436 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9437 fields.
9438 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9439 fields.
9440 (process_imported_unit_die): Skip import of c++ CUs.
9441
9442 2020-03-16 Tom Tromey <tom@tromey.com>
9443
9444 * p-valprint.c (pascal_object_print_value): Initialize
9445 base_value.
9446
9447 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9448 Shahab Vahedi <shahab@synopsys.com>
9449
9450 * Makefile.in: Add arch/arc.o
9451 * configure.tgt: Likewise.
9452 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9453 (_initialize_arc_tdep): Don't initialize old target descriptions.
9454 (arc_read_description): New function to cache target descriptions.
9455 * arc-tdep.h (arc_read_description): Add proto type.
9456 * arch/arc.c: New file.
9457 * arch/arc.h: Likewise.
9458 * features/Makefile: Replace old target descriptions with new.
9459 * features/arc-arcompact.c: Remove.
9460 * features/arc-arcompact.xml: Likewise.
9461 * features/arc-v2.c: Likewise
9462 * features/arc-v2.xml: Likewise
9463 * features/arc/aux-arcompact.xml: New file.
9464 * features/arc/aux-v2.xml: Likewise.
9465 * features/arc/core-arcompact.xml: Likewise.
9466 * features/arc/core-v2.xml: Likewise.
9467 * features/arc/aux-arcompact.c: Generate.
9468 * features/arc/aux-v2.c: Likewise.
9469 * features/arc/core-arcompact.c: Likewise.
9470 * features/arc/core-v2.c: Likewise.
9471 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9472
9473 2020-03-16 Tom Tromey <tromey@adacore.com>
9474
9475 PR gdb/25663:
9476 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9477 putting value into bcache.
9478
9479 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9480
9481 PR gdb/21500
9482 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9483 to...
9484 (amd64_windows_init_abi_common): ... this. Don't set size of
9485 long type.
9486 (amd64_windows_init_abi): New function.
9487 (amd64_cygwin_init_abi): New function.
9488 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9489 the Cygwin OS ABI.
9490 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9491 comment.
9492
9493 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9494
9495 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9496 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9497 (pe_import_directory_entry): New struct type.
9498 (is_linked_with_cygwin_dll): New function.
9499 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9500 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9501 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9502
9503 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9504
9505 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9506 i386_cygwin_core_osabi_sniffer.
9507
9508 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9509
9510 * i386-cygwin-tdep.c: Rename to...
9511 * i386-windows-tdep.c: ... this.
9512 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9513 i386-windows-tdep.c.
9514 * configure.tgt: Likewise.
9515
9516 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9517
9518 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9519 * osabi.c (gdb_osabi_names): Add "Windows".
9520 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9521 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9522 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9523 i386_cygwin_osabi_sniffer.
9524 (_initialize_i386_cygwin_tdep): Register OS ABI
9525 GDB_OSABI_WINDOWS for i386.
9526 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9527 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9528 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9529 for x86-64.
9530 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9531 when the target matches '*-*-mingw*'.
9532
9533 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9534
9535 * defs.h (enum gdb_osabi): Move to...
9536 * osabi.h (enum gdb_osabi): ... here.
9537 * gdbarch.sh: Include osabi.h in gdbarch.h.
9538 * gdbarch.h: Re-generate.
9539
9540 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9541
9542 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9543 function.
9544 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9545
9546 2020-03-14 Tom Tromey <tom@tromey.com>
9547
9548 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9549 for C++.
9550 (c_type_print_modifier): Likewise. Add "language" parameter.
9551 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9552 (c_type_print_base_1): Update.
9553 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9554 constants.
9555 * type-stack.c (type_stack::insert): Handle tp_atomic and
9556 tp_restrict.
9557 (type_stack::follow_type_instance_flags): Likewise.
9558 (type_stack::follow_types): Likewise. Merge type-following code.
9559 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9560 (space_identifier, cv_with_space_id)
9561 (const_or_volatile_or_space_identifier_noopt)
9562 (const_or_volatile_or_space_identifier): Remove.
9563 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9564 rules.
9565 (ptr_operator, typebase): Update.
9566 (enum token_flag) <FLAG_C>: New constant.
9567 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9568 "_Atomic".
9569 (lex_one_token): Handle FLAG_C.
9570
9571 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9572
9573 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9574 it to the ptrace call.
9575 * m68k-bsd-nat.c (store_registers): Likewise.
9576
9577 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9578
9579 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9580 gdb_byte *.
9581 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9582 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9583 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9584
9585 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9586
9587 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9588 nbsd_nat_target instead of inf_ptrace_target.
9589 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9590 nbsd_nat_target.
9591
9592 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9593
9594 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9595 register_t.
9596
9597 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9598
9599 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9600 it to the ptrace call.
9601 * alpha-bsd-nat.c (store_registers): Likewise.
9602
9603 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9604
9605 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9606 includes.
9607 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9608 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9609 fill_fpregset): Likewise.
9610
9611 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9612
9613 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9614 nbsd_nat_target instead of inf_ptrace_target.
9615 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9616 nbsd_nat_target.
9617
9618 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9619
9620 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9621 register_t.
9622
9623 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9624
9625 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9626 it to the ptrace call.
9627 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9628 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9629 * arm-nbsd-nat.c (store_register): Likewise.
9630 * arm-nbsd-nat.c (store_regs): Likewise.
9631 * arm-nbsd-nat.c (store_fp_register): Likewise.
9632 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9633
9634 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9635
9636 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9637 nbsd_nat_target instead of inf_ptrace_target.
9638 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9639 nbsd_nat_target.
9640
9641 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9642
9643 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9644 it to the ptrace call.
9645 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9646
9647 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9648
9649 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9650 it to the ptrace call.
9651 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9652
9653 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9654
9655 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9656 gdb_byte *.
9657 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9658
9659 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9660
9661 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9662 instead of inf_ptrace_target.
9663 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9664 nbsd_nat_target.
9665
9666 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9667
9668 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9669 register_t.
9670
9671 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9672
9673 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9674 register_t.
9675
9676 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9677
9678 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9679 register_t.
9680
9681 2020-03-13 Tom Tromey <tom@tromey.com>
9682
9683 * value.h (val_print): Don't declare.
9684 * valprint.h (val_print_array_elements)
9685 (val_print_scalar_formatted, generic_val_print): Don't declare.
9686 * valprint.c (generic_val_print_array): Take a struct value.
9687 (generic_val_print_ptr, generic_val_print_memberptr)
9688 (generic_val_print_bool, generic_val_print_int)
9689 (generic_val_print_char, generic_val_print_complex)
9690 (generic_val_print): Remove.
9691 (generic_value_print): Update.
9692 (do_val_print): Remove unused parameters. Don't call
9693 la_val_print.
9694 (val_print): Remove.
9695 (common_val_print): Update. Don't call value_check_printable.
9696 (val_print_scalar_formatted, val_print_array_elements): Remove.
9697 * rust-lang.c (rust_val_print): Remove.
9698 (rust_language_defn): Update.
9699 * p-valprint.c (pascal_val_print): Remove.
9700 (pascal_value_print_inner): Update.
9701 (pascal_object_print_val_fields, pascal_object_print_val):
9702 Remove.
9703 (pascal_object_print_static_field): Update.
9704 * p-lang.h (pascal_val_print): Don't declare.
9705 * p-lang.c (pascal_language_defn): Update.
9706 * opencl-lang.c (opencl_language_defn): Update.
9707 * objc-lang.c (objc_language_defn): Update.
9708 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9709 * m2-lang.h (m2_val_print): Don't declare.
9710 * m2-lang.c (m2_language_defn): Update.
9711 * language.h (struct language_defn) <la_val_print>: Remove.
9712 * language.c (unk_lang_value_print_inner): Rename. Change
9713 argument types.
9714 (unknown_language_defn, auto_language_defn): Update.
9715 * go-valprint.c (go_val_print): Remove.
9716 * go-lang.h (go_val_print): Don't declare.
9717 * go-lang.c (go_language_defn): Update.
9718 * f-valprint.c (f_val_print): Remove.
9719 * f-lang.h (f_value_print): Don't declare.
9720 * f-lang.c (f_language_defn): Update.
9721 * d-valprint.c (d_val_print): Remove.
9722 * d-lang.h (d_value_print): Don't declare.
9723 * d-lang.c (d_language_defn): Update.
9724 * cp-valprint.c (cp_print_value_fields)
9725 (cp_print_value_fields_rtti, cp_print_value): Remove.
9726 (cp_print_static_field): Update.
9727 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9728 (c_val_print_struct, c_val_print_union, c_val_print_int)
9729 (c_val_print_memberptr, c_val_print): Remove.
9730 * c-lang.h (c_val_print_array, cp_print_value_fields)
9731 (cp_print_value_fields_rtti): Don't declare.
9732 * c-lang.c (c_language_defn, cplus_language_defn)
9733 (asm_language_defn, minimal_language_defn): Update.
9734 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9735 (ada_val_print_enum): Take a struct value.
9736 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9737 (ada_val_print): Remove.
9738 (ada_value_print_1): Update.
9739 (printable_val_type): Remove.
9740 * ada-lang.h (ada_val_print): Don't declare.
9741 * ada-lang.c (ada_language_defn): Update.
9742
9743 2020-03-13 Tom Tromey <tom@tromey.com>
9744
9745 * valprint.c (do_val_print): Update.
9746 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9747 a struct value.
9748 (value_to_value_object_no_release): Declare.
9749 * python/py-value.c (value_to_value_object_no_release): New
9750 function.
9751 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9752 struct value.
9753 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9754 function.
9755 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9756 a struct value.
9757 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9758 Declare.
9759 (gdbscm_apply_val_pretty_printer): Take a struct value.
9760 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9761 value.
9762 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9763 value.
9764 * extension-priv.h (struct extension_language_ops)
9765 <apply_val_pretty_printer>: Take a struct value.
9766 * cp-valprint.c (cp_print_value): Create a struct value.
9767 (cp_print_value): Update.
9768
9769 2020-03-13 Tom Tromey <tom@tromey.com>
9770
9771 * ada-valprint.c (print_field_values): Call common_val_print.
9772
9773 2020-03-13 Tom Tromey <tom@tromey.com>
9774
9775 * ada-valprint.c (val_print_packed_array_elements): Remove
9776 bitoffset and val parameters. Call common_val_print.
9777 (ada_val_print_string): Remove offset, address, and original_value
9778 parameters.
9779 (ada_val_print_array): Update.
9780 (ada_value_print_array): New function.
9781 (ada_value_print_1): Call it.
9782
9783 2020-03-13 Tom Tromey <tom@tromey.com>
9784
9785 * ada-valprint.c (ada_value_print): Use common_val_print.
9786
9787 2020-03-13 Tom Tromey <tom@tromey.com>
9788
9789 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9790
9791 2020-03-13 Tom Tromey <tom@tromey.com>
9792
9793 * ada-valprint.c (ada_value_print_num): New function.
9794 (ada_value_print_1): Use it.
9795
9796 2020-03-13 Tom Tromey <tom@tromey.com>
9797
9798 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9799
9800 2020-03-13 Tom Tromey <tom@tromey.com>
9801
9802 * ada-valprint.c (ada_value_print_ptr): New function.
9803 (ada_value_print_1): Use it.
9804
9805 2020-03-13 Tom Tromey <tom@tromey.com>
9806
9807 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9808 call common_val_print.
9809 (ada_val_print_1): Update.
9810 (ada_value_print_1): New function.
9811 (ada_value_print_inner): Rewrite.
9812
9813 2020-03-13 Tom Tromey <tom@tromey.com>
9814
9815 * cp-valprint.c (cp_print_value_fields): Update.
9816 (cp_print_value): New function.
9817
9818 2020-03-13 Tom Tromey <tom@tromey.com>
9819
9820 * m2-valprint.c (m2_value_print_inner): Use
9821 cp_print_value_fields.
9822 * cp-valprint.c (cp_print_value_fields): New function.
9823 * c-valprint.c (c_value_print_struct): New function.
9824 (c_value_print_inner): Use c_value_print_struct.
9825 * c-lang.h (cp_print_value_fields): Declare.
9826
9827 2020-03-13 Tom Tromey <tom@tromey.com>
9828
9829 * c-valprint.c (c_value_print_array): New function.
9830 (c_value_print_inner): Use it.
9831
9832 2020-03-13 Tom Tromey <tom@tromey.com>
9833
9834 * c-valprint.c (c_value_print_memberptr): New function.
9835 (c_value_print_inner): Use it.
9836
9837 2020-03-13 Tom Tromey <tom@tromey.com>
9838
9839 * c-valprint.c (c_value_print_int): New function.
9840 (c_value_print_inner): Use it.
9841
9842 2020-03-13 Tom Tromey <tom@tromey.com>
9843
9844 * c-valprint.c (c_value_print_ptr): New function.
9845 (c_value_print_inner): Use it.
9846
9847 2020-03-13 Tom Tromey <tom@tromey.com>
9848
9849 * c-valprint.c (c_value_print_inner): Rewrite.
9850
9851 2020-03-13 Tom Tromey <tom@tromey.com>
9852
9853 * valprint.c (generic_value_print_complex): New function.
9854 (generic_value_print): Use it.
9855
9856 2020-03-13 Tom Tromey <tom@tromey.com>
9857
9858 * valprint.c (generic_val_print_float): Don't call
9859 val_print_scalar_formatted.
9860 (generic_val_print, generic_value_print): Update.
9861
9862 2020-03-13 Tom Tromey <tom@tromey.com>
9863
9864 * valprint.c (generic_value_print_char): New function
9865 (generic_value_print): Use it.
9866
9867 2020-03-13 Tom Tromey <tom@tromey.com>
9868
9869 * valprint.c (generic_value_print_int): New function.
9870 (generic_value_print): Use it.
9871
9872 2020-03-13 Tom Tromey <tom@tromey.com>
9873
9874 * valprint.c (generic_value_print_bool): New function.
9875 (generic_value_print): Use it.
9876
9877 2020-03-13 Tom Tromey <tom@tromey.com>
9878
9879 * valprint.c (generic_val_print_func): Simplify.
9880 (generic_val_print, generic_value_print): Update.
9881
9882 2020-03-13 Tom Tromey <tom@tromey.com>
9883
9884 * valprint.c (generic_val_print_flags): Remove.
9885 (generic_val_print, generic_value_print): Update.
9886 (val_print_type_code_flags): Add original_value parameter.
9887
9888 2020-03-13 Tom Tromey <tom@tromey.com>
9889
9890 * valprint.c (generic_val_print): Update.
9891 (generic_value_print): Update.
9892 * valprint.c (generic_val_print_enum): Don't call
9893 val_print_scalar_formatted.
9894
9895 2020-03-13 Tom Tromey <tom@tromey.com>
9896
9897 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9898 * valprint.c (generic_value_print_ptr): New function.
9899
9900 2020-03-13 Tom Tromey <tom@tromey.com>
9901
9902 * valprint.c (generic_value_print): Rewrite.
9903
9904 2020-03-13 Tom Tromey <tom@tromey.com>
9905
9906 * p-valprint.c (pascal_object_print_value_fields)
9907 (pascal_object_print_value): New functions.
9908
9909 2020-03-13 Tom Tromey <tom@tromey.com>
9910
9911 * p-valprint.c (pascal_value_print_inner): Rewrite.
9912
9913 2020-03-13 Tom Tromey <tom@tromey.com>
9914
9915 * f-valprint.c (f_value_print_innner): Rewrite.
9916
9917 2020-03-13 Tom Tromey <tom@tromey.com>
9918
9919 * m2-valprint.c (m2_print_unbounded_array): New overload.
9920 (m2_print_unbounded_array): Update.
9921 (m2_print_array_contents): Take a struct value.
9922 (m2_value_print_inner): Rewrite.
9923
9924 2020-03-13 Tom Tromey <tom@tromey.com>
9925
9926 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9927 (d_value_print_inner): New function.
9928 * d-lang.h (d_value_print_inner): Declare.
9929 * d-lang.c (d_language_defn): Use d_value_print_inner.
9930
9931 2020-03-13 Tom Tromey <tom@tromey.com>
9932
9933 * go-valprint.c (go_value_print_inner): New function.
9934 * go-lang.h (go_value_print_inner): Declare.
9935 * go-lang.c (go_language_defn): Use go_value_print_inner.
9936
9937 2020-03-13 Tom Tromey <tom@tromey.com>
9938
9939 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9940 API.
9941 (rust_val_print): Rewrite.
9942 (rust_value_print_inner): New function, from rust_val_print.
9943 (rust_language_defn): Use rust_value_print_inner.
9944
9945 2020-03-13 Tom Tromey <tom@tromey.com>
9946
9947 * ada-valprint.c (ada_value_print_inner): New function.
9948 * ada-lang.h (ada_value_print_inner): Declare.
9949 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9950
9951 2020-03-13 Tom Tromey <tom@tromey.com>
9952
9953 * f-valprint.c (f_value_print_innner): New function.
9954 * f-lang.h (f_value_print_innner): Declare.
9955 * f-lang.c (f_language_defn): Use f_value_print_innner.
9956
9957 2020-03-13 Tom Tromey <tom@tromey.com>
9958
9959 * p-valprint.c (pascal_value_print_inner): New function.
9960 * p-lang.h (pascal_value_print_inner): Declare.
9961 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9962
9963 2020-03-13 Tom Tromey <tom@tromey.com>
9964
9965 * m2-valprint.c (m2_value_print_inner): New function.
9966 * m2-lang.h (m2_value_print_inner): Declare.
9967 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9968
9969 2020-03-13 Tom Tromey <tom@tromey.com>
9970
9971 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9972 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9973 * c-valprint.c (c_value_print_inner): New function.
9974 * c-lang.h (c_value_print_inner): Declare.
9975 * c-lang.c (c_language_defn, cplus_language_defn)
9976 (asm_language_defn, minimal_language_defn): Use
9977 c_value_print_inner.
9978
9979 2020-03-13 Tom Tromey <tom@tromey.com>
9980
9981 * p-valprint.c (pascal_object_print_value_fields): Now static.
9982 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9983
9984 2020-03-13 Tom Tromey <tom@tromey.com>
9985
9986 * c-valprint.c (c_val_print_array): Simplify.
9987
9988 2020-03-13 Tom Tromey <tom@tromey.com>
9989
9990 * valprint.c (value_print_array_elements): New function.
9991 * valprint.h (value_print_array_elements): Declare.
9992
9993 2020-03-13 Tom Tromey <tom@tromey.com>
9994
9995 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9996 * mips-tdep.c (mips_print_register): Use
9997 value_print_scalar_formatted.
9998
9999 2020-03-13 Tom Tromey <tom@tromey.com>
10000
10001 * valprint.h (value_print_scalar_formatted): Declare.
10002 * valprint.c (value_print_scalar_formatted): New function.
10003
10004 2020-03-13 Tom Tromey <tom@tromey.com>
10005
10006 * valprint.h (generic_value_print): Declare.
10007 * valprint.c (generic_value_print): New function.
10008
10009 2020-03-13 Tom Tromey <tom@tromey.com>
10010
10011 * valprint.c (do_val_print): Call la_value_print_inner, if
10012 available.
10013 * rust-lang.c (rust_language_defn): Update.
10014 * p-lang.c (pascal_language_defn): Update.
10015 * opencl-lang.c (opencl_language_defn): Update.
10016 * objc-lang.c (objc_language_defn): Update.
10017 * m2-lang.c (m2_language_defn): Update.
10018 * language.h (struct language_defn) <la_value_print_inner>: New
10019 member.
10020 * language.c (unknown_language_defn, auto_language_defn): Update.
10021 * go-lang.c (go_language_defn): Update.
10022 * f-lang.c (f_language_defn): Update.
10023 * d-lang.c (d_language_defn): Update.
10024 * c-lang.c (c_language_defn, cplus_language_defn)
10025 (asm_language_defn, minimal_language_defn): Update.
10026 * ada-lang.c (ada_language_defn): Update.
10027
10028 2020-03-13 Tom Tromey <tom@tromey.com>
10029
10030 * c-valprint.c (c_value_print): Use common_val_print.
10031
10032 2020-03-13 Tom Tromey <tom@tromey.com>
10033
10034 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10035
10036 2020-03-13 Tom Tromey <tom@tromey.com>
10037
10038 * f-valprint.c (f77_print_array_1, f_val_print): Use
10039 common_val_print.
10040
10041 2020-03-13 Tom Tromey <tom@tromey.com>
10042
10043 * riscv-tdep.c (riscv_print_one_register_info): Use
10044 common_val_print.
10045
10046 2020-03-13 Tom Tromey <tom@tromey.com>
10047
10048 * mi/mi-main.c (output_register): Use common_val_print.
10049
10050 2020-03-13 Tom Tromey <tom@tromey.com>
10051
10052 * infcmd.c (default_print_one_register_info): Use
10053 common_val_print.
10054
10055 2020-03-13 Tom Tromey <tom@tromey.com>
10056
10057 * valprint.h (common_val_print_checked): Declare.
10058 * valprint.c (common_val_print_checked): New function.
10059 * stack.c (print_frame_arg): Use common_val_print_checked.
10060
10061 2020-03-13 Tom Tromey <tom@tromey.com>
10062
10063 * valprint.c (do_val_print): New function, from val_print.
10064 (val_print): Use do_val_print.
10065 (common_val_print): Use do_val_print.
10066
10067 2020-03-13 Tom Tromey <tom@tromey.com>
10068
10069 * valprint.c (value_print): Use scoped_value_mark.
10070
10071 2020-03-13 Tom de Vries <tdevries@suse.de>
10072
10073 PR symtab/25646
10074 * psymtab.c (partial_symtab::partial_symtab): Don't set
10075 globals_offset and statics_offset. Push element onto
10076 current_global_psymbols and current_static_psymbols stacks.
10077 (concat): New function.
10078 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10079 element from current_global_psymbols and current_static_psymbols
10080 stacks. Concat popped elements to global_psymbols and
10081 static_symbols.
10082 (add_psymbol_to_list): Use current_global_psymbols and
10083 current_static_psymbols stacks.
10084 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10085 current_static_psymbols fields.
10086
10087 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10088
10089 * corelow.c (sniff_core_bfd): Remove.
10090 (class core_target) <m_core_vec>: Remove.
10091 (core_target::core_target): Update.
10092 (core_file_fns): Remove.
10093 (deprecated_add_core_fns): Remove.
10094 (default_core_sniffer): Remove.
10095 (sniff_core_bfd): Remove.
10096 (default_check_format): Remove.
10097 (gdb_check_format): Remove.
10098 (core_target_open): Update.
10099 (core_target::get_core_register_section): Update.
10100 (get_core_registers_cb): Update.
10101 (core_target::fetch_registers): Update.
10102 * gdbcore.h (struct core_fns): Remove.
10103 (deprecated_add_core_fns): Remove.
10104 (default_core_sniffer): Remove.
10105 (default_check_format): Remove.
10106
10107 2020-03-12 Tom Tromey <tom@tromey.com>
10108
10109 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10110 CORE_ADDR.
10111 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10112
10113 2020-03-12 Tom Tromey <tom@tromey.com>
10114
10115 * remote.c (remote_target::download_tracepoint)
10116 (remote_target::enable_tracepoint)
10117 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10118 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10119 sprintf_vma.
10120
10121 2020-03-12 Tom Tromey <tom@tromey.com>
10122
10123 * symfile-mem.c: Update CORE_ADDR size assert.
10124
10125 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10126
10127 * selftest.m4: Move to gdbsupport/.
10128 * acinclude.m4: Update path to selftest.m4.
10129
10130 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10131
10132 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10133 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10134 gdbarch-selfselftests.c and selftest-arch.c.
10135 (SUBDIR_UNITTESTS_OBS): Rename to...
10136 (SELFTESTS_OBS): ... this.
10137 (COMMON_SFILES): Remove disasm-selftests.c and
10138 gdbarch-selftests.c.
10139 * configure.ac: Don't add selftest-arch.{c,o} to
10140 CONFIG_{SRCS,OBS}.
10141 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10142 preprocessor conditions.
10143
10144 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10145
10146 * configure.ac: Don't source bfd/development.sh.
10147 * selftest.m4: Modify comment.
10148 * configure: Re-generate.
10149
10150 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10151
10152 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10153 not "true" or "false".
10154 * configure: Re-generate.
10155
10156 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10157
10158 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10159 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10160 renamed to arm_nbsd_supply_gregset.
10161 (fetch_register): Update to call arm_nbsd_supply_gregset.
10162 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10163 (arm_netbsd_nat_target::fetch_registers): Update.
10164 (fetch_elfcore_registers): Removed.
10165 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10166 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10167 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10168 not require NetBSD system headers.
10169 (arm_nbsd_regset): New struct.
10170 (arm_nbsd_iterate_over_regset_sections): New function.
10171 (arm_netbsd_init_abi_common): Updated to call
10172 set_gdbarch_iterate_over_regset_sections.
10173 * arm-nbsd-tdep.h: New file.
10174
10175 2020-03-11 Kevin Buettner <kevinb@redhat.com>
10176
10177 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10178 recursion.
10179
10180 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
10181
10182 * configure: Re-generate.
10183
10184 2020-03-11 Tom Tromey <tromey@adacore.com>
10185
10186 * ada-typeprint.c (print_choices): Fix comment.
10187
10188 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10189
10190 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10191 previous item in the list, when the list has no items.
10192
10193 2020-03-11 Tom de Vries <tdevries@suse.de>
10194
10195 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10196 PROP_LOCLIST handling code.
10197
10198 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10199
10200 * buildsym-legacy.c (record_line): Pass extra parameter to
10201 record_line.
10202 * buildsym.c (buildsym_compunit::record_line): Take an extra
10203 parameter, reduce duplication in the line table, and record the
10204 is_stmt flag in the line table.
10205 * buildsym.h (buildsym_compunit::record_line): Add extra
10206 parameter.
10207 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10208 non-statement lines.
10209 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10210 this to the symtab builder.
10211 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10212 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10213 through to dwarf_record_line_1.
10214 * infrun.c (process_event_stop_test): When stepping, don't stop at
10215 a non-statement instruction, and only refresh the step info when
10216 we land in the middle of a line's range. Also add an extra
10217 comment.
10218 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10219 field.
10220 * record-btrace.c (btrace_find_line_range): Only record lines
10221 marked as is-statement.
10222 * stack.c (frame_show_address): Show the frame address if we are
10223 in a non-statement sal.
10224 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10225 (maintenance_print_one_line_table): Print a header for the is_stmt
10226 column, and include is_stmt information in the output.
10227 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10228 preference to non-statements.
10229 (find_pcs_for_symtab_line): Prefer is-statement entries.
10230 (find_line_common): Likewise.
10231 * symtab.h (struct linetable_entry): Add is_stmt field.
10232 (struct symtab_and_line): Likewise.
10233 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10234 arranging the line table.
10235
10236 2020-03-07 Tom de Vries <tdevries@suse.de>
10237
10238 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10239 DIE.
10240
10241 2020-03-07 Tom Tromey <tom@tromey.com>
10242
10243 * valops.c (value_literal_complex): Remove obsolete comment.
10244 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10245 comment.
10246
10247 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10248
10249 * infrun.h: Forward-declare thread_info.
10250 (set_step_info): Add thread_info parameter, add doc.
10251 * infrun.c (set_step_info): Add thread_info parameter, move doc
10252 to header.
10253 * infrun.c (process_event_stop_test): Pass thread to
10254 set_step_info call.
10255 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10256 set_step_info.
10257 (prepare_one_step): Add thread_info parameter, pass it to
10258 set_step_frame and prepare_one_step (recursive) call.
10259 (step_1): Pass thread to prepare_one_step call.
10260 (step_command_fsm::should_stop): Pass thread to
10261 prepare_one_step.
10262 (until_next_fsm): Pass thread to set_step_frame call.
10263 (finish_command): Pass thread to set_step_info call.
10264
10265 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
10266
10267 * windows-tdep.c (windows_solib_create_inferior_hook):
10268 Check if inferior is running.
10269
10270 2020-03-06 Tom de Vries <tdevries@suse.de>
10271
10272 * NEWS: Fix "the the".
10273 * ctfread.c: Same.
10274
10275 2020-03-06 Tom de Vries <tdevries@suse.de>
10276
10277 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10278
10279 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10280
10281 * .dir-locals.el: Add a comment referencing the other copies of
10282 this file.
10283
10284 2020-03-05 John Baldwin <jhb@FreeBSD.org>
10285
10286 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10287 psargs.
10288
10289 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10290
10291 * .gitattributes: New file.
10292
10293 2020-03-04 Tom Tromey <tom@tromey.com>
10294
10295 * symmisc.c (print_symbol_bcache_statistics)
10296 (print_objfile_statistics): Update.
10297 * symfile.c (allocate_symtab): Use intern.
10298 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10299 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10300 macro_cache>: Remove.
10301 <string_cache>: New member.
10302 (struct objfile) <intern>: New methods.
10303 * elfread.c (elf_symtab_read): Use intern.
10304 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10305 (dwarf2_compute_name, dwarf2_physname)
10306 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10307 names.
10308 (guess_partial_die_structure_name): Update.
10309 (partial_die_info::fixup): Intern name.
10310 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10311 name.
10312 (dwarf2_name): Intern name. Update.
10313 * buildsym.c (buildsym_compunit::get_macro_table): Use
10314 string_cache.
10315
10316 2020-03-04 Tom Tromey <tom@tromey.com>
10317
10318 * jit.c (bfd_open_from_target_memory): Make "target" const.
10319 * corefile.c (gnutarget): Now const.
10320 * gdbcore.h (gnutarget): Now const.
10321
10322 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
10323
10324 * NEWS: Mention support for WOW64 processes.
10325 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10326 (amd64_windows_segment_register_p): Remove static.
10327 (_initialize_amd64_windows_nat): Update.
10328 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10329 * i386-windows-nat.c (context_offset): Update.
10330 (i386_mappings): Rename and remove static.
10331 (i386_windows_segment_register_p): Remove static.
10332 (_initialize_i386_windows_nat): Update.
10333 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10334 (STATUS_WX86_SINGLE_STEP): New macro.
10335 (EnumProcessModulesEx): New macro.
10336 (Wow64SuspendThread): New macro.
10337 (Wow64GetThreadContext): New macro.
10338 (Wow64SetThreadContext): New macro.
10339 (Wow64GetThreadSelectorEntry): New macro.
10340 (windows_set_context_register_offsets): Add static.
10341 (windows_set_segment_register_p): Likewise.
10342 (windows_add_thread): Adapt for WOW64 processes.
10343 (windows_fetch_one_register): Likewise.
10344 (windows_nat_target::fetch_registers): Likewise.
10345 (windows_store_one_register): Likewise.
10346 (display_selector): Likewise.
10347 (display_selectors): Likewise.
10348 (handle_exception): Likewise.
10349 (windows_continue): Likewise.
10350 (windows_nat_target::resume): Likewise.
10351 (windows_add_all_dlls): Likewise.
10352 (do_initial_windows_stuff): Likewise.
10353 (windows_nat_target::attach): Likewise.
10354 (windows_get_exec_module_filename): Likewise.
10355 (windows_nat_target::create_inferior): Likewise.
10356 (windows_xfer_siginfo): Likewise.
10357 (_initialize_loadable): Initialize Wow64SuspendThread,
10358 Wow64GetThreadContext, Wow64SetThreadContext,
10359 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10360 * windows-nat.h (windows_set_context_register_offsets):
10361 Remove declaration.
10362 (windows_set_segment_register_p): Likewise.
10363 (i386_windows_segment_register_p): Add declaration.
10364 (amd64_windows_segment_register_p): Likewise.
10365
10366 2020-03-04 Luis Machado <luis.machado@linaro.org>
10367
10368 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10369 in "info registers" for AArch64/ARM.
10370
10371 The change caused "info registers" to not print GPR's.
10372
10373 gdb/ChangeLog:
10374
10375 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10376
10377 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10378 when reg->group is empty and reggroup is not.
10379
10380 2020-03-03 Tom Tromey <tromey@adacore.com>
10381
10382 * dwarf2/frame.c (struct dwarf2_frame_cache)
10383 <checked_tailcall_bottom, entry_cfa_sp_offset,
10384 entry_cfa_sp_offset_p>: Remove members.
10385 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10386 (dwarf2_frame_prev_register): Don't call
10387 dwarf2_tailcall_sniffer_first.
10388 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10389 * frame-unwind.c (add_unwinder): New fuction.
10390 (frame_unwind_init): Use it. Add tailcall unwinder.
10391
10392 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10393 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10394
10395 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10396 value should be printed as true.
10397
10398 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
10399
10400 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10401 (windows_init_abi): Set and use windows_so_ops.
10402
10403 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10404
10405 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10406 when verifying if dealing with a convenience variable.
10407
10408 2020-03-03 Luis Machado <luis.machado@linaro.org>
10409
10410 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10411
10412 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10413
10414 * infrun.c (gdbarch_supports_displaced_stepping): New.
10415 (use_displaced_stepping): Break up conditions in smaller pieces.
10416 Use gdbarch_supports_displaced_stepping.
10417 (displaced_step_prepare_throw): Use
10418 gdbarch_supports_displaced_stepping.
10419
10420 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10421
10422 * NEWS: Mention new behaviour of the history filename.
10423 * top.c (write_history_p): Add comment.
10424 (show_write_history_p): Add header comment, give a different
10425 message when history writing is on, but the history filename is
10426 empty.
10427 (history_filename): Add comment.
10428 (history_filename_empty): New function.
10429 (show_history_filename): Add header comment, give a different
10430 message when the filename is empty.
10431 (init_history): Compare history_filename against nullptr, and only
10432 read history if the filename is not empty.
10433 (set_history_filename): Add header comment, and only make
10434 non-empty filenames absolute.
10435 (init_main): Make the filename argument to 'set history filename'
10436 optional.
10437
10438 2020-03-02 Christian Biesinger <cbiesinger@google.com>
10439
10440 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10441 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10442 (fetch_fp_register): Update.
10443 (fetch_fp_regs): Update.
10444 (store_fp_register): Update.
10445 (store_fp_regs): Update.
10446 (arm_netbsd_nat_target::read_description): New function.
10447 (fetch_elfcore_registers): Update.
10448
10449 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10450
10451 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10452 general_thread if the stop reply is missing a thread-id.
10453 (remote_target::process_stop_reply): Use the first non-exited
10454 thread if the target didn't pass a thread-id.
10455 * infrun.c (do_target_wait): Move call to
10456 switch_to_inferior_no_thread to ....
10457 (do_target_wait_1): ... here.
10458
10459 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10460
10461 * debuginfod-support.c: Include defs.h first.
10462
10463 2020-02-28 Tom de Vries <tdevries@suse.de>
10464
10465 * symfile.c (set_initial_language): Use default language for lookup.
10466
10467 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
10468
10469 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10470 reader variable, pass `this` to read_cutu_die_from_dwo.
10471
10472 2020-02-27 Aaron Merey <amerey@redhat.com>
10473
10474 * source.c (open_source_file): Check for nullptr when computing
10475 srcpath.
10476
10477 2020-02-27 Tom Tromey <tromey@adacore.com>
10478
10479 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10480 member.
10481 (dwarf2_add_field): Don't update nfields.
10482 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10483
10484 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10485
10486 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10487 abs.
10488
10489 2020-02-26 Tom Tromey <tom@tromey.com>
10490
10491 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10492 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10493 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10494 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10495 per_cu_data.
10496
10497 2020-02-26 Tom Tromey <tom@tromey.com>
10498
10499 * dwarf2/index-write.c (psym_index_map): Change type.
10500 (add_address_entry_worker, write_one_signatured_type)
10501 (recursively_count_psymbols, recursively_write_psymbols)
10502 (class debug_names, psyms_seen_size, write_gdbindex)
10503 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10504
10505 2020-02-26 Aaron Merey <amerey@redhat.com>
10506
10507 * Makefile.in: Handle optional debuginfod support.
10508 * NEWS: Update.
10509 * README: Add --with-debuginfod summary.
10510 * config.in: Regenerate.
10511 * configure: Regenerate.
10512 * configure.ac: Handle optional debuginfod support.
10513 * debuginfod-support.c: debuginfod helper functions.
10514 * debuginfod-support.h: Ditto.
10515 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10516 summary.
10517 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10518 when a dwz file cannot be found.
10519 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10520 debuginfo file cannot be found.
10521 * source.c (open_source_file): Query debuginfod servers when a
10522 source file cannot be found.
10523 * top.c (print_gdb_configuration): Include
10524 --{with,without}-debuginfod in the output.
10525
10526 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10527
10528 * thread.c (thr_try_catch_cmd): Print thread name.
10529
10530 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
10531
10532 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10533 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10534 dwarf2_fetch_die_type_sect_off): Move to...
10535 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10536 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10537 dwarf2_fetch_die_type_sect_off): ... here.
10538 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10539 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10540 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10541
10542 2020-02-26 Tom de Vries <tdevries@suse.de>
10543
10544 PR gdb/25603
10545 * symfile.c (set_initial_language): Exit-early if
10546 language_mode == language_mode_manual.
10547
10548 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10549
10550 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10551 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10552 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10553
10554 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10555
10556 * gdbtypes.c (create_array_type_with_stride): Handle negative
10557 array strides.
10558 * valarith.c (value_subscripted_rvalue): Likewise.
10559
10560 2020-02-25 Luis Machado <luis.machado@linaro.org>
10561
10562 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10563
10564 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10565
10566 * loc.h (dwarf2_get_die_type): Move to...
10567 * read.h (dwarf2_get_die_type): ... here.
10568 * read.c (dwarf2_get_die_type): Move doc to header.
10569
10570 2020-02-25 Joel Brobecker <brobecker@adacore.com>
10571
10572 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10573 'gnulib/Makefile.in' to the list.
10574
10575 2020-02-24 Tom Tromey <tom@tromey.com>
10576
10577 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10578 Remove.
10579 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10580 XOBNEWVEC.
10581
10582 2020-02-24 Tom Tromey <tom@tromey.com>
10583
10584 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10585 New method.
10586 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10587 (dw2_do_instantiate_symtab, dw2_get_file_names)
10588 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10589
10590 2020-02-24 Tom Tromey <tom@tromey.com>
10591
10592 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10593 make_scoped_restore.
10594 (dwarf2_psymtab::read_symtab): Don't clear
10595 reading_partial_symbols.
10596
10597 2020-02-24 Tom de Vries <tdevries@suse.de>
10598
10599 PR gdb/25592
10600 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10601
10602 2020-02-24 Tom de Vries <tdevries@suse.de>
10603
10604 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10605 commands layout next/prev/regs.
10606
10607 2020-02-22 Tom Tromey <tom@tromey.com>
10608
10609 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10610 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10611
10612 2020-02-22 Tom Tromey <tom@tromey.com>
10613
10614 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10615
10616 2020-02-22 Tom Tromey <tom@tromey.com>
10617
10618 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10619 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10620 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10621 * tui/tui.c (_initialize_tui): Add usage text.
10622
10623 2020-02-22 Tom Tromey <tom@tromey.com>
10624
10625 * tui/tui-win.c (tui_set_focus_command)
10626 (tui_set_win_height_command): Use error_no_arg.
10627 (_initialize_tui_win): Update help text.
10628 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10629
10630 2020-02-22 Tom Tromey <tom@tromey.com>
10631
10632 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10633 * tui/tui-disasm.h (struct tui_disasm_window)
10634 <display_start_addr>: Declare.
10635 * tui/tui-source.h (struct tui_source_window)
10636 <display_start_addr>: Declare.
10637 * tui/tui-winsource.h (struct tui_source_window_base)
10638 <show_source_line, display_start_addr>: New methods.
10639 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10640 Rename and move to protected section.
10641 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10642 (tui_source_window_base::do_erase_source_content): Update.
10643 (tui_source_window_base::show_source_line): Now a method.
10644 (tui_source_window_base::show_source_content)
10645 (tui_source_window_base::tui_source_window_base)
10646 (tui_source_window_base::rerender)
10647 (tui_source_window_base::refill)
10648 (tui_source_window_base::do_scroll_horizontal)
10649 (tui_source_window_base::set_is_exec_point_at)
10650 (tui_source_window_base::update_breakpoint_info)
10651 (tui_source_window_base::update_exec_info): Update.
10652 * tui/tui-source.c (tui_source_window::set_contents)
10653 (tui_source_window::showing_source_p)
10654 (tui_source_window::do_scroll_vertical)
10655 (tui_source_window::location_matches_p)
10656 (tui_source_window::line_is_displayed): Update.
10657 (tui_source_window::display_start_addr): New method.
10658 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10659 (tui_disasm_window::do_scroll_vertical)
10660 (tui_disasm_window::location_matches_p): Update.
10661 (tui_disasm_window::display_start_addr): New method.
10662
10663 2020-02-22 Tom Tromey <tom@tromey.com>
10664
10665 * NEWS: Add entry for gdb.register_window_type.
10666 * tui/tui-layout.h (window_factory): New typedef.
10667 (tui_register_window): Declare.
10668 * tui/tui-layout.c (saved_tui_windows): New global.
10669 (tui_apply_current_layout): Use it.
10670 (tui_register_window): New function.
10671 * python/python.c (do_start_initialization): Call
10672 gdbpy_initialize_tui.
10673 (python_GdbMethods): Add "register_window_type" function.
10674 * python/python-internal.h (gdbpy_register_tui_window)
10675 (gdbpy_initialize_tui): Declare.
10676 * python/py-tui.c: New file.
10677 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10678
10679 2020-02-22 Tom Tromey <tom@tromey.com>
10680
10681 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10682
10683 2020-02-22 Tom Tromey <tom@tromey.com>
10684
10685 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10686 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10687 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10688 (tui_set_win_focus_to): Move from tui-win.c.
10689
10690 2020-02-22 Tom Tromey <tom@tromey.com>
10691
10692 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10693 functions.
10694 (known_window_types): New global.
10695 (tui_get_window_by_name): Reimplement.
10696 (initialize_known_windows): New function.
10697 (validate_window_name): Rewrite.
10698 (_initialize_tui_layout): Call initialize_known_windows.
10699
10700 2020-02-22 Tom Tromey <tom@tromey.com>
10701
10702 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10703 Remove constants.
10704 * tui/tui-winsource.h (struct tui_source_window_base)
10705 <tui_source_window_base>: Remove parameter.
10706 * tui/tui-winsource.c
10707 (tui_source_window_base::tui_source_window_base): Remove
10708 parameter.
10709 (tui_source_window_base::refill): Update.
10710 * tui/tui-stack.h (struct tui_locator_window)
10711 <tui_locator_window>: Update.
10712 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10713 Default the constructor.
10714 * tui/tui-regs.h (struct tui_data_item_window)
10715 <tui_data_item_window>: Default the constructor.
10716 (struct tui_data_window) <tui_data_window>: Likewise.
10717 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10718 Default the constructor.
10719 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10720 Default the constructor.
10721 <type>: Remove.
10722 (struct tui_win_info) <tui_win_info>: Default the constructor.
10723 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10724 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10725 Default the constructor.
10726
10727 2020-02-22 Tom Tromey <tom@tromey.com>
10728
10729 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10730 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10731 * tui/tui-win.c (tui_resize_all): Don't call
10732 tui_delete_invisible_windows.
10733 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10734 done.
10735 (tui_set_layout): Update.
10736 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10737 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10738 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10739
10740 2020-02-22 Tom Tromey <tom@tromey.com>
10741
10742 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10743 correctly.
10744
10745 2020-02-22 Tom Tromey <tom@tromey.com>
10746
10747 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10748
10749 2020-02-22 Tom Tromey <tom@tromey.com>
10750
10751 * tui/tui-winsource.h (struct tui_source_window_iterator)
10752 <inner_iterator>: New etytypedef.
10753 <tui_source_window_iterator>: Take "end" parameter.
10754 <tui_source_window_iterator>: Take iterator.
10755 <operator*, advance>: Update.
10756 <m_iter>: Change type.
10757 <m_end>: New field.
10758 (struct tui_source_windows) <begin, end>: Update.
10759 * tui/tui-layout.c (tui_windows): New global.
10760 (tui_apply_current_layout): Clear tui_windows.
10761 (tui_layout_window::apply): Update tui_windows.
10762 * tui/tui-data.h (tui_windows): Declare.
10763 (all_tui_windows): Now inline function.
10764 (class tui_window_iterator, struct all_tui_windows): Remove.
10765
10766 2020-02-22 Tom Tromey <tom@tromey.com>
10767
10768 PR tui/17850:
10769 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10770 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10771 "height" argument.
10772 (class tui_layout_window) <get_sizes>: Likewise.
10773 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10774 argument.
10775 <get_sizes>: Add "height" argument.
10776 <m_vertical>: New field.
10777 * tui/tui-layout.c (tui_layout_split::clone): Update.
10778 (tui_layout_split::get_sizes): Add "height" argument.
10779 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10780 (tui_new_layout_command): Parse "-horizontal".
10781 (_initialize_tui_layout): Update help string.
10782 (tui_layout_split::specification): Add "-horizontal" when needed.
10783 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10784 argument.
10785 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10786 New methods.
10787
10788 2020-02-22 Tom Tromey <tom@tromey.com>
10789
10790 * tui/tui-layout.h (enum tui_adjust_result): New.
10791 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10792 (class tui_layout_window) <adjust_size>: Return
10793 tui_adjust_result. Rewrite.
10794 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10795 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10796
10797 2020-02-22 Tom Tromey <tom@tromey.com>
10798
10799 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10800 parameter and return types.
10801 (class tui_layout_base) <specification>: Add "depth".
10802 (class tui_layout_window) <specification>: Add "depth".
10803 (class tui_layout_split) <specification>: Add "depth".
10804 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10805 and return types.
10806 (tui_new_layout_command): Parse sub-layouts.
10807 (_initialize_tui_layout): Update help string.
10808 (tui_layout_window::specification): Add "depth".
10809 (add_layout_command): Update.
10810
10811 2020-02-22 Tom Tromey <tom@tromey.com>
10812
10813 * NEWS: Add "tui new-layout" item.
10814 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10815 Add new-layout command to help text.
10816 (validate_window_name): New function.
10817 (tui_new_layout_command): New function.
10818 (_initialize_tui_layout): Register "new-layout".
10819 (tui_layout_window::specification): New method.
10820 (tui_layout_window::specification): New method.
10821 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10822 method.
10823 (class tui_layout_window) <specification>: New method.
10824 (class tui_layout_split) <specification>: New method.
10825
10826 2020-02-22 Tom Tromey <tom@tromey.com>
10827
10828 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10829 * tui/tui-win.c (window_name_completer): Update comment.
10830 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10831 Declare method.
10832 (class tui_layout_window) <replace_window>: Likewise.
10833 (class tui_layout_split) <replace_window>: Likewise.
10834 (tui_set_layout): Don't declare.
10835 (tui_set_initial_layout): Declare function.
10836 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10837 (asm_regs_layout): New globals.
10838 (tui_current_layout, show_layout): Remove.
10839 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10840 (find_layout, tui_apply_layout): New function.
10841 (layout_completer): Remove.
10842 (tui_next_layout): Reimplement.
10843 (tui_next_layout_command): New function.
10844 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10845 (tui_regs_layout): Reimplement.
10846 (tui_regs_layout_command): New function.
10847 (extract_display_start_addr): Rewrite.
10848 (next_layout, prev_layout): Remove.
10849 (tui_layout_window::replace_window): New method.
10850 (tui_layout_split::replace_window): New method.
10851 (destroy_layout): New function.
10852 (layout_list): New global.
10853 (add_layout_command): New function.
10854 (initialize_layouts): Update.
10855 (tui_layout_command): New function.
10856 (_initialize_tui_layout): Install "layout" commands.
10857 * tui/tui-data.h (enum tui_layout_type): Remove.
10858 (tui_current_layout): Don't declare.
10859
10860 2020-02-22 Tom Tromey <tom@tromey.com>
10861
10862 * tui/tui-regs.c (tui_reg_layout): Remove.
10863 (tui_reg_command): Use tui_regs_layout.
10864 * tui/tui-layout.h (tui_reg_command): Declare.
10865 * tui/tui-layout.c (tui_reg_command): New function.
10866
10867 2020-02-22 Tom Tromey <tom@tromey.com>
10868
10869 * tui/tui.c (tui_rl_delete_other_windows): Call
10870 tui_remove_some_windows.
10871 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10872 Declare method.
10873 (class tui_layout_window) <remove_windows>: New method.
10874 (class tui_layout_split) <remove_windows>: Declare.
10875 (tui_remove_some_windows): Declare.
10876 * tui/tui-layout.c (tui_remove_some_windows): New function.
10877 (tui_layout_split::remove_windows): New method.
10878
10879 2020-02-22 Tom Tromey <tom@tromey.com>
10880
10881 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10882 * tui/tui-layout.h (tui_next_layout): Declare.
10883 * tui/tui-layout.c (tui_next_layout): New function.
10884
10885 2020-02-22 Tom Tromey <tom@tromey.com>
10886
10887 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10888 correct coordinates.
10889
10890 2020-02-22 Tom Tromey <tom@tromey.com>
10891
10892 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10893 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10894 DATA_WIN case.
10895
10896 2020-02-22 Tom Tromey <tom@tromey.com>
10897
10898 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10899 TUI_DISASM_WIN, not tui_win_list.
10900
10901 2020-02-22 Tom Tromey <tom@tromey.com>
10902
10903 * valprint.c (generic_val_print_enum_1)
10904 (val_print_type_code_flags): Style member names.
10905 * rust-lang.c (val_print_struct, rust_print_enum)
10906 (rust_print_struct_def, rust_internal_print_type): Style member
10907 names.
10908 * p-valprint.c (pascal_object_print_value_fields): Style member
10909 names. Only call fprintf_symbol_filtered for static members.
10910 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10911 * f-valprint.c (f_val_print): Style member names.
10912 * f-typeprint.c (f_type_print_base): Style member names.
10913 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10914 call fprintf_symbol_filtered for static members.
10915 (cp_print_class_member): Style member names.
10916 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10917 member names.
10918 * ada-valprint.c (ada_print_scalar): Style enum names.
10919 (ada_val_print_enum): Likewise.
10920 * ada-typeprint.c (print_enum_type): Style enum names.
10921
10922 2020-02-21 Tom Tromey <tom@tromey.com>
10923
10924 * psympriv.h (struct partial_symtab): Update comment.
10925
10926 2020-02-21 Tom Tromey <tromey@adacore.com>
10927
10928 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10929 type is CORE_ADDR.
10930
10931 2020-02-21 Tom de Vries <tdevries@suse.de>
10932
10933 PR gdb/25534
10934 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10935 if dependencies[i]->user != NULL.
10936
10937 2020-02-21 Ali Tamur <tamur@google.com>
10938
10939 * dwarf2/read.c (dwarf2_name): Add null check.
10940
10941 2020-02-20 Tom Tromey <tom@tromey.com>
10942
10943 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10944 ">=", in binary search.
10945 (dwarf2_find_containing_comp_unit): New overload.
10946 (run_test): New self-test.
10947 (_initialize_dwarf2_read): Register new test.
10948
10949 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
10950
10951 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10952 * riscv-tdep.h: Likewise.
10953 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10954 rv32-only CSR.
10955 * features/riscv/64bit-csr.xml: Regenerated.
10956
10957 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10958 Tom Tromey <tom@tromey.com>
10959
10960 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10961 of 'fputc_unfiltered'.
10962 (putchar_unfiltered): Call 'fputc_unfiltered'.
10963 (fputc_unfiltered): Call 'fputs_unfiltered'.
10964
10965 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10966
10967 * config.in: Regenerate.
10968 * configure: Regenerate.
10969 * configure.ac: Add --with-python-libdir option.
10970 * main.c: Use WITH_PYTHON_LIBDIR.
10971
10972 2020-02-19 Tom Tromey <tom@tromey.com>
10973
10974 * symtab.c (general_symbol_info::compute_and_set_names): Use
10975 obstack_strndup. Simplify call to symbol_set_demangled_name.
10976
10977 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
10978
10979 * dwarf2/read.c (allocate_signatured_type_table,
10980 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10981 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10982 Remove objfile parameter, update all callers.
10983
10984 2020-02-19 Doug Evans <dje@google.com>
10985
10986 PR rust/25535
10987 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10988 rust_enum_variant calculation.
10989
10990 2020-02-19 Tom Tromey <tromey@adacore.com>
10991
10992 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10993
10994 2020-02-19 Tom Tromey <tromey@adacore.com>
10995
10996 * ada-lang.c (cache_symbol): Use obstack_strdup.
10997
10998 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10999
11000 * configure: Regenerate.
11001
11002 2020-02-19 Tom Tromey <tromey@adacore.com>
11003
11004 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11005 NULL check.
11006
11007 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
11008
11009 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11010
11011 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11012
11013 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11014 if GDBSERVER is not defined.
11015 (riscv_tdesc_cache): Likewise, also store const target_desc.
11016 (STATIC_IN_GDB): Define.
11017 (riscv_create_target_description): Update declaration with
11018 STATIC_IN_GDB.
11019 (riscv_lookup_target_description): New function, only define if
11020 GDBSERVER is not defined.
11021 * arch/riscv.h (riscv_create_target_description): Declare only
11022 when GDBSERVER is defined.
11023 (riscv_lookup_target_description): New declaration when GDBSERVER
11024 is not defined.
11025 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11026 (riscv_linux_read_features): ...this, and return
11027 riscv_gdbarch_features instead of target_desc.
11028 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11029 (riscv_linux_read_description): Rename to...
11030 (riscv_linux_read_features): ...this.
11031 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11032 Update to use riscv_gdbarch_features and
11033 riscv_lookup_target_description.
11034 * riscv-tdep.c (riscv_find_default_target_description): Use
11035 riscv_lookup_target_description instead of
11036 riscv_create_target_description.
11037
11038 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11039
11040 * valprint.c (generic_val_print_enum_1): When printing a flag
11041 enum with value 0 and there is no enumerator with value 0, print
11042 just "0" instead of "(unknown: 0x0)".
11043
11044 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11045
11046 * valprint.c (generic_val_print_enum_1): Print unknown part of
11047 flag enum in hex.
11048
11049 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11050
11051 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11052 flag enums to contain duplicate enumerators.
11053 * valprint.c (generic_val_print_enum_1): Update comment.
11054
11055 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11056
11057 * dwarf2/read.c: Include "count-one-bits.h".
11058 (update_enumeration_type_from_children): If an enumerator has
11059 multiple bits set, don't treat the enumeration as a "flag enum".
11060 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11061 of flag enums have 0 or 1 bit set.
11062
11063 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11064
11065 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11066 conversion.
11067 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11068 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11069 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11070 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11071 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11072
11073 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11074
11075 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11076
11077 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11078
11079 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11080 displaced_step_closure_up.
11081 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11082 (struct displaced_step_closure_up):
11083 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11084 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11085 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11086 Likewise.
11087 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11088 * gdbarch.c, gdbarch.h: Re-generate.
11089 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11090 displaced_step_closure_up.
11091 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11092 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11093 * infrun.h (displaced_step_closure_up): New type alias.
11094 (struct displaced_step_inferior_state) <step_closure>: Change
11095 type to displaced_step_closure_up.
11096 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11097 displaced_step_closure_up.
11098 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11099
11100 2020-02-14 Tom Tromey <tom@tromey.com>
11101
11102 * minidebug.c (gnu_debug_key): New global.
11103 (find_separate_debug_file_in_section): Use it.
11104
11105 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11106
11107 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11108 std::unique_ptr.
11109 * gdbarch.c: Re-generate.
11110 * gdbarch.h: Re-generate.
11111 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11112 change.
11113 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11114 type to std::unique_ptr.
11115 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11116 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11117 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11118 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11119 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11120 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11121 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11122 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11123 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11124
11125 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11126
11127 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11128 std::unique_ptr.
11129 (displaced_step_clear): Rename to...
11130 (displaced_step_reset): ... this. Just call displaced->reset ().
11131 (displaced_step_clear_cleanup): Rename to...
11132 (displaced_step_reset_cleanup): ... this.
11133 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11134 (displaced_step_fixup): Likewise.
11135 (resume_1): Likewise.
11136 (handle_inferior_event): Restore child's memory before calling
11137 displaced_step_fixup on the parent.
11138 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11139 to std::unique_ptr.
11140 <step_closure>: Change type to std::unique_ptr.
11141
11142 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11143
11144 * arm-tdep.c: Include count-one-bits.h.
11145 (cleanup_block_store_pc): Use count_one_bits.
11146 (cleanup_block_load_pc): Use count_one_bits.
11147 (arm_copy_block_xfer): Use count_one_bits.
11148 (thumb2_copy_block_xfer): Use count_one_bits.
11149 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11150 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11151 (thumb_get_next_pcs_raw): Use count_one_bits.
11152 (arm_get_next_pcs_raw): Use count_one_bits_l.
11153 * arch/arm.c (bitcount): Remove.
11154 * arch/arm.h (bitcount): Remove.
11155
11156 2020-02-14 Tom Tromey <tromey@adacore.com>
11157
11158 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11159 Update.
11160 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11161 * dwarf2/loc.c (call_site_find_chain_1): Return
11162 unique_xmalloc_ptr.
11163 (call_site_find_chain): Likewise.
11164
11165 2020-02-14 Richard Biener <rguenther@suse.de>
11166
11167 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11168 on expression with division operators.
11169
11170 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11171
11172 * MAINTAINERS (Write After Approval): Adding myself.
11173
11174 2020-02-12 Tom Tromey <tom@tromey.com>
11175
11176 * event-loop.c (event_data, gdb_event, event_handler_func):
11177 Remove.
11178
11179 2020-02-12 Tom Tromey <tom@tromey.com>
11180
11181 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11182 (dwarf2_frame_objfile_data): Add comment.
11183 (find_comp_unit, set_comp_unit): New functions.
11184 (dwarf2_frame_find_fde): Use find_comp_unit.
11185 (dwarf2_build_frame_info): Use set_comp_unit.
11186
11187 2020-02-12 Tom Tromey <tom@tromey.com>
11188
11189 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11190 (comp_unit): Don't initialize objfile.
11191 (execute_cfa_program): Add text_offset parameter.
11192 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11193 (dwarf2_frame_cache): Update.
11194 (dwarf2_build_frame_info): Don't set "objfile" member.
11195
11196 2020-02-12 Tom Tromey <tom@tromey.com>
11197
11198 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11199 (decode_frame_entry): Likewise.
11200 (dwarf2_build_frame_info): Update.
11201
11202 2020-02-12 Tom Tromey <tom@tromey.com>
11203
11204 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11205 (decode_frame_entry_1): Use the comp_unit obstack.
11206
11207 2020-02-12 Tom Tromey <tom@tromey.com>
11208
11209 * dwarf2/frame.c (struct comp_unit): Add initializers and
11210 constructor.
11211 (dwarf2_frame_objfile_data): Store a comp_unit.
11212 (dwarf2_frame_find_fde): Update.
11213 (dwarf2_build_frame_info): Use "new".
11214
11215 2020-02-12 Tom Tromey <tom@tromey.com>
11216
11217 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11218 (dwarf2_fde_table): Typedef for std::vector.
11219 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11220 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11221 (decode_frame_entry): Update.
11222 (dwarf2_build_frame_info): Use "new".
11223
11224 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11225
11226 * arm-tdep.c (arm_gdbarch_init): Update.
11227 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11228 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11229 have_neon, is_m>: Change to bool.
11230
11231 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11232
11233 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11234
11235 2020-02-12 Tom Tromey <tom@tromey.com>
11236
11237 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11238
11239 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
11240
11241 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11242 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11243
11244 2020-02-11 Tom Tromey <tom@tromey.com>
11245
11246 * psymtab.h: Update comment.
11247
11248 2020-02-11 Tom Tromey <tom@tromey.com>
11249
11250 * gdb_obstack.h (struct auto_obstack): Use
11251 DISABLE_COPY_AND_ASSIGN.
11252
11253 2020-02-11 Tom Tromey <tom@tromey.com>
11254
11255 * dwarf2/frame.h (struct objfile): Don't forward declare.
11256
11257 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11258
11259 * cris-tdep.c (cris_supply_gregset): Change signature to match
11260 what struct regset expects.
11261 (cris_regset): New struct.
11262 (fetch_core_registers): Remove.
11263 (cris_iterate_over_regset_sections): New function.
11264 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11265 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11266
11267 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11268
11269 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11270 registers.
11271
11272 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11273
11274 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11275
11276 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11277
11278 * configure: Re-generate.
11279
11280 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11281
11282 * configure: Re-generate.
11283
11284 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11285
11286 * acinclude: Update warning.m4 path.
11287 * warning.m4: Move to gdbsupport.
11288
11289 2020-02-11 Tom Tromey <tromey@adacore.com>
11290
11291 * remote.c (remote_console_output): Update.
11292 * printcmd.c (printf_command): Update.
11293 * event-loop.c (gdb_wait_for_event): Update.
11294 * linux-nat.c (sigchld_handler): Update.
11295 * remote-sim.c (gdb_os_write_stdout): Update.
11296 (gdb_os_flush_stdout): Update.
11297 (gdb_os_flush_stderr): Update.
11298 (gdb_os_write_stderr): Update.
11299 * exceptions.c (print_exception): Update.
11300 * remote-fileio.c (remote_fileio_func_read): Update.
11301 (remote_fileio_func_write): Update.
11302 * tui/tui.c (tui_enable): Update.
11303 * tui/tui-interp.c (tui_interp::init): Update.
11304 * utils.c (init_page_info): Update.
11305 (putchar_unfiltered, fputc_unfiltered): Update.
11306 (gdb_flush): Update.
11307 (emit_style_escape): Update.
11308 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11309 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11310 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11311 (stderr_file::write): Update.
11312 (stderr_file::puts): Update.
11313 * ui-file.h (ui_file_isatty, ui_file_write)
11314 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11315 (ui_file_puts): Don't declare.
11316
11317 2020-02-10 Tom de Vries <tdevries@suse.de>
11318
11319 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11320 sentinel to char *.
11321
11322 2020-02-09 Tom de Vries <tdevries@suse.de>
11323
11324 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11325 filename if it matches "<artificial>".
11326
11327 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11328
11329 * windows-tdep.c (struct enum_value_name): New struct.
11330 (create_enum): New function.
11331 (windows_get_siginfo_type): Create and use enum types.
11332
11333 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11334
11335 * NEWS: Mention $_siginfo support for Windows.
11336 * windows-nat.c (handle_exception): Set siginfo_er.
11337 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11338 (windows_xfer_siginfo): New function.
11339 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11340 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11341 (init_windows_gdbarch_data): New function.
11342 (get_windows_gdbarch_data): New function.
11343 (windows_get_siginfo_type): New function.
11344 (windows_init_abi): Register windows_get_siginfo_type.
11345 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11346
11347 2020-02-08 Tom Tromey <tom@tromey.com>
11348
11349 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11350 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11351 <keep>: Declare method.
11352 <m_keep>: Remove member.
11353 <~cutu_reader>: Remove.
11354 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11355 (cutu_reader::cutu_reader): Update.
11356 (cutu_reader::keep): Rename from ~cutu_reader.
11357 (process_psymtab_comp_unit, build_type_psymtabs_1)
11358 (process_skeletonless_type_unit, load_partial_comp_unit)
11359 (load_full_comp_unit, dwarf2_read_addr_index)
11360 (read_signatured_type): Update.
11361
11362 2020-02-08 Tom Tromey <tom@tromey.com>
11363
11364 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11365 "want_partial_unit" parameter.
11366 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11367 Inline check for DW_TAG_partial_unit.
11368 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11369
11370 2020-02-08 Tom Tromey <tom@tromey.com>
11371
11372 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11373 read.c.
11374 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11375 read.c.
11376
11377 2020-02-08 Tom Tromey <tom@tromey.com>
11378
11379 * dwarf2/read.c (read_address): Move to comp-unit.c.
11380 (dwarf2_rnglists_process, dwarf2_ranges_process)
11381 (read_attribute_value, dwarf_decode_lines_1)
11382 (var_decode_location, decode_locdesc): Update.
11383 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11384 read.c. Remove "cu" parameter.
11385 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11386 method.
11387
11388 2020-02-08 Tom Tromey <tom@tromey.com>
11389
11390 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11391 (read_indirect_line_string): Update.
11392 * dwarf2/comp-unit.c (read_offset): Remove.
11393 (read_comp_unit_head): Update.
11394 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11395 method.
11396 (read_offset): Don't declare.
11397
11398 2020-02-08 Tom Tromey <tom@tromey.com>
11399
11400 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11401 * dwarf2/read.c (struct comp_unit_head): Move to
11402 dwarf2/comp-unit.h.
11403 (enum class rcuh_kind): Move to comp-unit.h.
11404 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11405 (read_comp_unit_head, error_check_comp_unit_head)
11406 (read_and_check_comp_unit_head): Move to comp-unit.c.
11407 (read_offset, dwarf_unit_type_name): Likewise.
11408 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11409 (cutu_reader::cutu_reader, read_call_site_scope)
11410 (find_partial_die, follow_die_offset): Update.
11411 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11412
11413 2020-02-08 Tom Tromey <tom@tromey.com>
11414
11415 * dwarf2/read.c (read_offset_1): Move to leb.c.
11416 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11417 (dwarf_decode_macro_bytes): Update.
11418 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11419 * dwarf2/leb.h (read_offset): Declare.
11420
11421 2020-02-08 Tom Tromey <tom@tromey.com>
11422
11423 * dwarf2/read.c (dwarf2_section_size): Remove.
11424 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11425 Update.
11426 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11427
11428 2020-02-08 Tom Tromey <tom@tromey.com>
11429
11430 * dwarf2/read.c (read_initial_length): Move to leb.c.
11431 * dwarf2/leb.h (read_initial_length): Declare.
11432 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11433 handle_nonstd parameter.
11434 * dwarf2/frame.c (read_initial_length): Remove.
11435 (decode_frame_entry_1): Update.
11436
11437 2020-02-08 Tom Tromey <tom@tromey.com>
11438
11439 * dwarf2/loc.c (dwarf2_find_location_expression)
11440 (dwarf_evaluate_loc_desc::get_tls_address)
11441 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11442 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11443 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11444 (dwarf2_compile_property_to_c)
11445 (dwarf2_loc_desc_get_symbol_read_needs)
11446 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11447 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11448 (loclist_describe_location, loclist_tracepoint_var_ref)
11449 (loclist_generate_c_location): Update.
11450 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11451 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11452 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11453 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11454 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11455 (dwarf2_per_cu_data::addr_size)
11456 (dwarf2_per_cu_data::ref_addr_size)
11457 (dwarf2_per_cu_data::text_offset)
11458 (dwarf2_per_cu_data::addr_type): Now methods.
11459 (per_cu_header_read_in): Make per_cu "const".
11460 (dwarf2_version): Remove.
11461 (dwarf2_per_cu_data::int_type): Now a method.
11462 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11463 (set_die_type, read_array_type, read_subrange_index_type)
11464 (read_tag_string_type, read_subrange_type): Update.
11465 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11466 offset_size, ref_addr_size, text_offset, addr_type, version,
11467 objfile, int_type, addr_sized_int_type>: Declare methods.
11468
11469 2020-02-08 Tom Tromey <tom@tromey.com>
11470
11471 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11472 Move earlier.
11473
11474 2020-02-08 Tom Tromey <tom@tromey.com>
11475
11476 * dwarf2/read.h (dwarf_line_debug): Declare.
11477 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11478 * dwarf2/read.c: Move line_header code to new files.
11479 (dwarf_line_debug): No longer static.
11480 * dwarf2/line-header.c: New file.
11481 * dwarf2/line-header.h: New file.
11482
11483 2020-02-08 Tom Tromey <tom@tromey.com>
11484
11485 * dwarf2/read.c (struct line_header) <file_full_name,
11486 file_file_name>: Return unique_xmalloc_ptr.
11487 (line_header::file_file_name): Update.
11488 (line_header::file_full_name): Update.
11489 (dw2_get_file_names_reader): Update.
11490 (macro_start_file): Update.
11491
11492 2020-02-08 Tom Tromey <tom@tromey.com>
11493
11494 * dwarf2/read.c (struct line_header) <file_full_name,
11495 file_file_name>: Declare methods.
11496 (dw2_get_file_names_reader): Update.
11497 (file_file_name): Now a method.
11498 (file_full_name): Likewise.
11499 (macro_start_file): Update.
11500
11501 2020-02-08 Tom Tromey <tom@tromey.com>
11502
11503 * dwarf2/read.c (dwarf_always_disassemble)
11504 (show_dwarf_always_disassemble): Move to loc.c.
11505 (_initialize_dwarf2_read): Move "always-disassemble" registration
11506 to loc.c.
11507 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11508 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11509 static.
11510 (show_dwarf_always_disassemble): Move from read.c.
11511 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11512
11513 2020-02-08 Tom Tromey <tom@tromey.com>
11514
11515 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11516 (create_quick_file_names_table): Return htab_up.
11517 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11518 Update.
11519 * dwarf2/read.h (struct dwarf2_per_objfile)
11520 <quick_file_names_table>: Now htab_up.
11521
11522 2020-02-08 Tom Tromey <tom@tromey.com>
11523
11524 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11525
11526 2020-02-08 Tom Tromey <tom@tromey.com>
11527
11528 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11529 Rewrite.
11530 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11531 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11532 (abbrev_table::abbrev_table): No longer inline.
11533 (ABBREV_HASH_SIZE): Remove.
11534 (abbrev_table::m_abbrevs): Now an htab_up.
11535
11536 2020-02-08 Tom Tromey <tom@tromey.com>
11537
11538 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11539 (cutu_reader): Update.
11540 (build_type_psymtabs_1): Update.
11541 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11542 (abbrev_table::alloc_abbrev): Update.
11543 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11544 (abbrev_table::read): New static method, renamed from
11545 abbrev_table_read_table.
11546 (abbrev_table::alloc_abbrev)
11547 (abbrev_table::add_abbrev): Now private.
11548 (abbrev_table::abbrev_table): Now private.
11549 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11550
11551 2020-02-08 Tom Tromey <tom@tromey.com>
11552
11553 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11554 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11555 htab_up.
11556
11557 2020-02-08 Tom Tromey <tom@tromey.com>
11558
11559 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11560 htab_up.
11561 (lookup_dwo_unit_in_dwp): Update.
11562 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11563 on obstack.
11564
11565 2020-02-08 Tom Tromey <tom@tromey.com>
11566
11567 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11568 obstack.
11569
11570 2020-02-08 Tom Tromey <tom@tromey.com>
11571
11572 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11573 line_header_hash.
11574 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11575 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11576 Change type to htab_up.
11577
11578 2020-02-08 Tom Tromey <tom@tromey.com>
11579
11580 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11581 htab_up. Don't allocate on obstack.
11582 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11583 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11584 Change type to htab_up.
11585
11586 2020-02-08 Tom Tromey <tom@tromey.com>
11587
11588 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11589 Change type to htab_up.
11590 * dwarf2/read.c (create_signatured_type_table_from_index)
11591 (create_signatured_type_table_from_debug_names)
11592 (create_all_type_units, add_type_unit)
11593 (lookup_dwo_signatured_type, lookup_signatured_type)
11594 (process_skeletonless_type_unit): Update.
11595 (create_debug_type_hash_table, create_debug_types_hash_table):
11596 Change type of types_htab.
11597 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11598 htab_up. Don't allocate on obstack.
11599 (create_cus_hash_table): Change type of cus_htab parameter.
11600 (struct dwo_file) <cus, tus>: Now htab_up.
11601 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11602 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11603 (queue_and_load_all_dwo_tus): Update.
11604 * dwarf2/index-write.c (write_gdbindex): Update.
11605 (write_debug_names): Update.
11606
11607 2020-02-08 Tom Tromey <tom@tromey.com>
11608
11609 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11610 dwarf2/read.c. Remove "next" member. Add constructor ntad
11611 destructor.
11612 (struct dwarf2_per_objfile) <queue>: New member.
11613 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11614 dwarf2/read.h.
11615 (dwarf2_queue, dwarf2_queue_tail): Remove.
11616 (class dwarf2_queue_guard): Add parameter to constructor. Use
11617 DISABLE_COPY_AND_ASSIGN.
11618 <m_per_objfile>: New member.
11619 <~dwarf2_queue_guard>: Rewrite.
11620 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11621 Update.
11622 (~dwarf2_queue_item): New.
11623
11624 2020-02-08 Tom Tromey <tom@tromey.com>
11625
11626 * dwarf2/read.c (struct die_info) <has_children>: New member.
11627 (dw2_get_file_names_reader): Remove has_children.
11628 (dw2_get_file_names): Update.
11629 (read_cutu_die_from_dwo): Remove has_children.
11630 (cutu_reader::init_tu_and_read_dwo_dies)
11631 (cutu_reader::cutu_reader): Update.
11632 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11633 Remove has_children.
11634 (build_type_psymtabs_1, process_skeletonless_type_unit)
11635 (load_partial_comp_unit, load_full_comp_unit): Update.
11636 (create_dwo_cu_reader): Remove has_children.
11637 (create_cus_hash_table, read_die_and_children): Update.
11638 (read_full_die_1,read_full_die): Remove has_children.
11639 (read_signatured_type): Update.
11640 (class cutu_reader) <has_children>: Remove.
11641
11642 2020-02-08 Tom Tromey <tom@tromey.com>
11643
11644 * dwarf2/expr.c: Rename from dwarf2expr.c.
11645 * dwarf2/expr.h: Rename from dwarf2expr.h.
11646 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11647 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11648 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11649 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11650 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11651 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11652 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11653 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11654 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11655 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11656 * dwarf2/loc.c: Rename from dwarf2loc.c.
11657 * dwarf2/loc.h: Rename from dwarf2loc.h.
11658 * dwarf2/read.c: Rename from dwarf2read.c.
11659 * dwarf2/read.h: Rename from dwarf2read.h.
11660 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11661 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11662 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11663 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11664 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11665 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11666 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11667 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11668 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11669 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11670 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11671 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11672 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11673 Update.
11674 * Makefile.in (COMMON_SFILES): Update.
11675 (HFILES_NO_SRCDIR): Update.
11676
11677 2020-02-08 Tom Tromey <tom@tromey.com>
11678
11679 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11680 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11681
11682 2020-02-08 Tom Tromey <tom@tromey.com>
11683
11684 * dwarf2read.h (struct die_info): Don't declare.
11685
11686 2020-02-08 Tom Tromey <tom@tromey.com>
11687
11688 * dwarf2read.h (die_info_ptr): Remove typedef.
11689
11690 2020-02-08 Tom Tromey <tom@tromey.com>
11691
11692 * dwarf2read.c (read_call_site_scope)
11693 (handle_data_member_location, dwarf2_add_member_fn)
11694 (mark_common_block_symbol_computed, read_common_block)
11695 (attr_to_dynamic_prop, partial_die_info::read)
11696 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11697 (dwarf2_symbol_mark_computed, set_die_type): Update.
11698 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11699 method.
11700 (attr_form_is_block): Don't declare.
11701 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11702
11703 2020-02-08 Tom Tromey <tom@tromey.com>
11704
11705 * dwarf2read.c (dwarf2_find_base_address, )
11706 (read_call_site_scope, rust_containing_type)
11707 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11708 (handle_data_member_location, dwarf2_add_member_fn)
11709 (get_alignment, read_structure_type, process_structure_scope)
11710 (mark_common_block_symbol_computed, read_common_block)
11711 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11712 (partial_die_info::read, read_attribute_value, new_symbol)
11713 (lookup_die_type, dwarf2_get_ref_die_offset)
11714 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11715 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11716 (dwarf2_symbol_mark_computed): Update.
11717 * dwarf2/attribute.h (struct attribute) <value_as_address,
11718 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11719 methods.
11720 (value_as_address, attr_form_is_section_offset)
11721 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11722 * dwarf2/attribute.c (attribute::value_as_address)
11723 (attribute::form_is_section_offset, attribute::form_is_constant)
11724 (attribute::form_is_ref): Now methods.
11725
11726 2020-02-08 Tom Tromey <tom@tromey.com>
11727
11728 * dwarf2read.c (struct attribute, DW_STRING)
11729 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11730 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11731 (attr_form_is_block, attr_form_is_section_offset)
11732 (attr_form_is_constant, attr_form_is_ref): Move.
11733 * dwarf2/attribute.h: New file.
11734 * dwarf2/attribute.c: New file, from dwarf2read.c.
11735 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11736
11737 2020-02-08 Tom Tromey <tom@tromey.com>
11738
11739 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11740 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11741 Move.
11742 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11743 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11744 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11745 abbrev.c.
11746 * dwarf2/abbrev.h: New file.
11747 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11748 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11749
11750 2020-02-08 Tom Tromey <tom@tromey.com>
11751
11752 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11753 (dwarf2_section_size, dwarf2_get_section_info)
11754 (create_signatured_type_table_from_debug_names)
11755 (create_addrmap_from_aranges, read_debug_names_from_section)
11756 (get_gdb_index_contents_from_section, read_comp_unit_head)
11757 (error_check_comp_unit_head, read_abbrev_offset)
11758 (create_debug_type_hash_table, init_cu_die_reader)
11759 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11760 (read_comp_units_from_section, create_cus_hash_table)
11761 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11762 (create_dwp_v2_section, dwarf2_rnglists_process)
11763 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11764 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11765 (read_indirect_string_from_dwz, read_addr_index_1)
11766 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11767 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11768 (fill_in_loclist_baton): Update.
11769 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11770 get_containing_section, get_bfd_owner, get_bfd_section,
11771 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11772 (dwarf2_read_section, get_section_name, get_section_file_name)
11773 (get_containing_section, get_section_bfd_owner)
11774 (get_section_bfd_section, get_section_name, get_section_file_name)
11775 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11776 declare.
11777 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11778 (dwarf2_section_info::get_bfd_owner)
11779 (dwarf2_section_info::get_bfd_section)
11780 (dwarf2_section_info::get_name)
11781 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11782 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11783 (dwarf2_section_info::read): Now methods.
11784 * dwarf-index-write.c (class debug_names): Update.
11785
11786 2020-02-08 Tom Tromey <tom@tromey.com>
11787
11788 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11789 Move to dwarf2/section.h.
11790 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11791 (get_section_bfd_section, get_section_name)
11792 (get_section_file_name, get_section_id, get_section_flags)
11793 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11794 dwarf2/section.c.
11795 * dwarf2/section.h: New file.
11796 * dwarf2/section.c: New file, from dwarf2read.c.
11797 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11798
11799 2020-02-08 Tom Tromey <tom@tromey.com>
11800
11801 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11802 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11803 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11804 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11805 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11806 * dwarf2/leb.h: New file, from dwarf2read.c.
11807 * dwarf2/leb.c: New file, from dwarf2read.c.
11808 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11809 Remove.
11810 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11811 (COMMON_SFILES): Add dwarf2/leb.c.
11812
11813 2020-02-08 Joel Brobecker <brobecker@adacore.com>
11814
11815 GDB 9.1 released.
11816
11817 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11818
11819 PR gdb/25190:
11820 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11821 * gdb/remote.c (remote_console_output): Update.
11822 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11823 (ui_file_puts): ...this.
11824 * gdb/ui-file.h (ui_file_puts): Add declaration.
11825 * gdb/utils.c (emit_style_escape): Update.
11826 (flush_wrap_buffer): Update.
11827 (fputs_maybe_filtered): Update.
11828 (fputs_unfiltered): Add function.
11829
11830 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11831
11832 * gdb/event-loop.c (gdb_wait_for_event): Update.
11833 * gdb/printcmd.c (printf_command): Update.
11834 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11835 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11836 (gdb_os_flush_stderr): Update.
11837 * gdb/remote.c (remote_console_output): Update.
11838 * gdb/ui-file.c (gdb_flush): Rename to...
11839 (ui_file_flush): ...this.
11840 (stderr_file::write): Update.
11841 (stderr_file::puts): Update.
11842 * gdb/ui-file.h (gdb_flush): Rename to...
11843 (ui_file_flush): ...this.
11844 * gdb/utils.c (gdb_flush): Add function.
11845 * gdb/utils.h (gdb_flush): Add declaration.
11846
11847 2020-02-07 Tom Tromey <tromey@adacore.com>
11848
11849 PR breakpoints/24915:
11850 * source.c (find_and_open_source): Do not check basenames_may_differ.
11851
11852 2020-02-07 Tom Tromey <tom@tromey.com>
11853
11854 * README: Update gdbserver documentation.
11855 * gdbserver: Move to top level.
11856 * configure.tgt (build_gdbserver): Remove.
11857 * configure.ac: Remove --enable-gdbserver.
11858 * configure: Rebuild.
11859 * Makefile.in (distclean): Don't mention gdbserver.
11860
11861 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11862
11863 * source-cache.c (source_cache::ensure): Surround
11864 get_plain_source_lines with a try/catch.
11865 (source_cache::get_line_charpos): Get rid of try/catch
11866 and only check for the return value of "ensure".
11867 * tui/tui-source.c (tui_source_window::set_contents):
11868 Simplify "nlines" calculation.
11869
11870 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11871
11872 * MAINTAINERS (Write After Approval): Add myself.
11873
11874 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11875
11876 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11877 function call.
11878
11879 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11880
11881 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11882
11883 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
11884
11885 * nat/riscv-linux-tdesc.h: New file.
11886 * nat/riscv-linux-tdesc.c: New file, taking code from...
11887 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11888 ... here.
11889 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11890 NATDEPFILES.
11891
11892 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11893
11894 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11895 we don't set the fake simulator ptid to the null_ptid.
11896
11897 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
11898
11899 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11900 * gdbthread.h (class thread_info) <resumed>: Likewise.
11901 * infrun.c (resume_1): Likewise.
11902 (proceed): Likewise.
11903 (infrun_thread_stop_requested): Likewise.
11904 (stop_all_threads): Likewise.
11905 (handle_inferior_event): Likewise.
11906 (restart_threads): Likewise.
11907 (finish_step_over): Likewise.
11908 (keep_going_stepped_thread): Likewise.
11909 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11910 (linux_handle_extended_wait): Likewise.
11911 * record-btrace.c (get_thread_current_frame_id): Likewise.
11912 * record-full.c (record_full_wait_1): Likewise.
11913 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11914 * target.c (target_resume): Likewise.
11915 * thread.c (set_running_thread): Likewise.
11916
11917 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11918
11919 * f-valprint.c (f77_print_array_1): Changed datatype of index
11920 variable to LONGEST from int to enable it to contain bound
11921 values correctly.
11922
11923 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
11924
11925 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11926 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11927 offsets according to FLEN determined.
11928 (riscv_linux_nat_target::read_description): Determine FLEN
11929 dynamically.
11930 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11931 according to FLEN determined.
11932 (riscv_linux_nat_target::store_registers): Likewise.
11933
11934 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11935
11936 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11937 when reg->group is empty and reggroup is not.
11938
11939 2020-01-31 Tom Tromey <tromey@adacore.com>
11940
11941 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11942 Call beneath target's mourn_inferior after unpushing.
11943
11944 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11945
11946 PR tui/9765
11947 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11948 have enough lines to fill the screen, still return the lowest
11949 address we found.
11950
11951 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11952
11953 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11954 '-', '<', and '>' commands.
11955
11956 2020-01-29 Pedro Alves <palves@redhat.com>
11957 Sergio Durigan Junior <sergiodj@redhat.com>
11958
11959 * infcmd.c (construct_inferior_arguments): Assert that
11960 'argc' is greater than 0.
11961
11962 2020-01-29 Luis Machado <luis.machado@linaro.org>
11963
11964 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11965 (BRK_INSN_MASK): Define to 0xd4200000.
11966 (aarch64_program_breakpoint_here_p): New function.
11967 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11968 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11969 breakpoint.c.
11970 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11971 breakpoint.h
11972 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11973 call gdbarch_program_breakpoint_here_p.
11974 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11975 default_program_breakpoint_here_p, changed return type to bool and
11976 simplified.
11977 * breakpoint.h (program_breakpoint_here): Moved prototype to
11978 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11979 return type to bool.
11980 * gdbarch.c: Regenerate.
11981 * gdbarch.h: Regenerate.
11982 * gdbarch.sh (program_breakpoint_here_p): New method.
11983 * infrun.c (handle_signal_stop): Call
11984 gdbarch_program_breakpoint_here_p.
11985
11986 2020-01-26 Tom Tromey <tom@tromey.com>
11987
11988 * ctfread.c (struct ctf_fp_info): Reindent.
11989 (_initialize_ctfread): Remove.
11990
11991 2020-01-26 Tom Tromey <tom@tromey.com>
11992
11993 * psymtab.c (partial_map_expand_apply)
11994 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11995 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11996 (psym_print_stats, psym_expand_symtabs_for_function)
11997 (psym_map_symbol_filenames, psym_map_matching_symbols)
11998 (psym_expand_symtabs_matching)
11999 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12000 (maintenance_check_psymtabs): Use new methods.
12001 * psympriv.h (struct partial_symtab) <readin_p,
12002 get_compunit_symtab>: New methods.
12003 <readin, compunit_symtab>: Remove members.
12004 (struct standard_psymtab): New.
12005 (struct legacy_psymtab): Derive from standard_psymtab.
12006 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12007 standard_psymtab.
12008 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12009
12010 2020-01-26 Tom Tromey <tom@tromey.com>
12011
12012 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12013 read_dependencies. Add assert.
12014 * psymtab.c (partial_symtab::read_dependencies): New method.
12015 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12016 method.
12017 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12018 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12019 read_dependencies.
12020 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12021 Add assert.
12022
12023 2020-01-26 Tom Tromey <tom@tromey.com>
12024
12025 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12026 Call expand_psymtab.
12027 (xcoff_read_symtab): Call expand_psymtab.
12028 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12029 legacy_expand_psymtab.
12030 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12031 method.
12032 (struct legacy_psymtab) <expand_psymtab>: Implement.
12033 <legacy_expand_psymtab>: New member.
12034 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12035 (parse_partial_symbols): Set legacy_expand_psymtab.
12036 (psymtab_to_symtab_1): Change argument order. Call
12037 expand_psymtab.
12038 (new_psymtab): Set legacy_expand_psymtab.
12039 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12040 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12041 expand_psymtab.
12042 (dwarf2_psymtab::expand_psymtab): Rename from
12043 psymtab_to_symtab_1. Call expand_psymtab.
12044 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12045 (dbx_end_psymtab): Likewise.
12046 (dbx_psymtab_to_symtab_1): Change argument order. Call
12047 expand_psymtab.
12048 (dbx_read_symtab): Call expand_psymtab.
12049 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12050 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12051 (ctf_psymtab::read_symtab): Call expand_psymtab.
12052
12053 2020-01-26 Tom Tromey <tom@tromey.com>
12054
12055 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12056 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12057 messages.
12058 * mdebugread.c (mdebug_read_symtab): Remove prints.
12059 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12060 assert.
12061 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12062
12063 2020-01-26 Tom Tromey <tom@tromey.com>
12064
12065 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12066 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12067 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12068 legacy_symtab.
12069 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12070 * psymtab.c (psymtab_to_symtab): Call method.
12071 (dump_psymtab): Update.
12072 * psympriv.h (struct partial_symtab): Add virtual destructor.
12073 <read_symtab>: New method.
12074 (struct legacy_symtab): New.
12075 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12076 (struct pst_map) <pst>: Now a legacy_psymtab.
12077 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12078 (new_psymtab): Use legacy_psymtab.
12079 * dwarf2read.h (struct dwarf2_psymtab): New.
12080 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12081 * dwarf2read.c (dwarf2_create_include_psymtab)
12082 (dwarf2_build_include_psymtabs, create_type_unit_group)
12083 (create_partial_symtab, process_psymtab_comp_unit_reader)
12084 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12085 (set_partial_user): Use dwarf2_psymtab.
12086 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12087 (psymtab_to_symtab_1, process_full_comp_unit)
12088 (process_full_type_unit, dwarf2_ranges_read)
12089 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12090 (dwarf_decode_lines): Use dwarf2_psymtab.
12091 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12092 (add_address_entry_worker, write_one_signatured_type)
12093 (recursively_count_psymbols, recursively_write_psymbols)
12094 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12095 (write_debug_names): Likewise.
12096 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12097 <pst>: Now a legacy_psymtab.
12098 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12099 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12100 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12101 * ctfread.c (struct ctf_psymtab): New.
12102 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12103 ctf_psymtab.
12104 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12105 (create_partial_symtab): Return a ctf_psymtab.
12106 (scan_partial_symbols): Update.
12107
12108 2020-01-26 Tom Tromey <tom@tromey.com>
12109
12110 * xcoffread.c (xcoff_start_psymtab): Use new.
12111 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12112 renamed from start_psymtab_common.
12113 * psympriv.h (struct partial_symtab): Add new constructor.
12114 (start_psymtab_common): Don't declare.
12115 * mdebugread.c (parse_partial_symbols): Use new.
12116 * dwarf2read.c (create_partial_symtab): Use new.
12117 * dbxread.c (start_psymtab): Use new.
12118 * ctfread.c (create_partial_symtab): Use new.
12119
12120 2020-01-26 Tom Tromey <tom@tromey.com>
12121
12122 * xcoffread.c (xcoff_end_psymtab): Use new.
12123 * psymtab.c (start_psymtab_common): Use new.
12124 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12125 Update.
12126 * psympriv.h (struct partial_symtab): Add parameters to
12127 constructor. Don't inline.
12128 (allocate_psymtab): Don't declare.
12129 * mdebugread.c (new_psymtab): Use new.
12130 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12131 * dbxread.c (dbx_end_psymtab): Use new.
12132
12133 2020-01-26 Tom Tromey <tom@tromey.com>
12134
12135 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12136 allocate_psymtab. Update documentation.
12137 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12138 allocate_psymtab. Do not use new.
12139 (allocate_psymtab): Use new. Update.
12140
12141 2020-01-26 Tom Tromey <tom@tromey.com>
12142
12143 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12144 * psymtab.c (psym_print_stats): Update.
12145 * psympriv.h (struct partial_symtab) <readin,
12146 psymtabs_addrmap_supported, anonymous>: Now bool.
12147 * mdebugread.c (psymtab_to_symtab_1): Update.
12148 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12149 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12150 (process_full_comp_unit, process_full_type_unit): Update.
12151 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12152 * ctfread.c (psymtab_to_symtab): Update.
12153
12154 2020-01-26 Tom Tromey <tom@tromey.com>
12155
12156 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12157 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12158 * psymtab.c (psymtab_storage): Delete psymtabs.
12159 (psymtab_storage::allocate_psymtab): Use new.
12160 (psymtab_storage::discard_psymtab): Use delete.
12161 * psympriv.h (struct partial_symtab): Add constructor and
12162 initializers.
12163
12164 2020-01-26 Tom Tromey <tom@tromey.com>
12165
12166 * machoread.c: Do not include psympriv.h.
12167
12168 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12169
12170 * NEWS: Mention the new option and the set/show commands.
12171
12172 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12173
12174 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12175 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12176 (validate_exec_file): New variables, enums, functions.
12177 (exec_file_locate_attach, print_section_info): Style the filenames.
12178 (_initialize_exec): Install show_exec_file_mismatch_command and
12179 set_exec_file_mismatch_command.
12180 * gdbcore.h (validate_exec_file): Declare.
12181 * infcmd.c (attach_command): Call validate_exec_file.
12182 * remote.c ( remote_target::remote_add_inferior): Likewise.
12183
12184 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12185
12186 * frame.c (find_frame_sal): Move call to get_next_frame into more
12187 inner scope.
12188 * inline-frame.c (inilne_state) <inline_state>: Update argument
12189 types.
12190 (inilne_state) <skipped_symbol>: Rename to...
12191 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12192 (skip_inline_frames): Build vector of skipped symbols and use this
12193 to reate the inline_state.
12194 (inline_skipped_symbol): Add a comment and some assertions, fetch
12195 skipped symbol from the list.
12196
12197 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12198
12199 * buildsym.c (lte_is_less_than): Delete.
12200 (buildsym_compunit::end_symtab_with_blockvector): Create local
12201 lambda function to sort line table entries, and use
12202 std::stable_sort instead of std::sort.
12203 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12204 markers when looking for a previous line.
12205
12206 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12207
12208 * dwarf2read.c (lnp_state_machine::record_line): Include
12209 end_sequence parameter in debug print out. Record the line if we
12210 are at an end_sequence marker even if it's not the start of a
12211 statement.
12212 * symmisc.c (maintenance_print_one_line_table): Print end of
12213 sequence markers with 'END' not '0'.
12214
12215 2020-01-24 Pedro Alves <palves@redhat.com>
12216
12217 PR gdb/25410
12218 * thread.c (scoped_restore_current_thread::restore): Use
12219 switch_to_inferior_no_thread.
12220 * exec.c: Include "progspace-and-thread.h".
12221 (add_target_sections, remove_target_sections):
12222 scoped_restore_current_pspace_and_thread instead of
12223 scoped_restore_current_thread.
12224 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12225 and aspace to the inferior before calling clone_program_space.
12226 Remove stale comment.
12227
12228 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12229
12230 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12231 (arm_netbsd_nat_target::fetch_registers): ...this.
12232 (arm_nbsd_nat_target::store_registers): Rename to...
12233 (arm_netbsd_nat_target::store_registers): ...this.
12234
12235 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12236
12237 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12238 register_t.
12239
12240 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12241
12242 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12243 Update comment.
12244 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12245 Likewise.
12246 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12247 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12248 the correct replacement (iterate_over_regset_sections).
12249 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12250 Update comment.
12251
12252 2020-01-24 Graham Markall <graham.markall@embecosm.com>
12253
12254 PR gdb/23718
12255 * gdb/python/python.c (execute_gdb_command): Call
12256 async_enable_stdin in catch block.
12257
12258 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12259
12260 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12261 SWITCH_THRU_ALL_UIS.
12262
12263 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12264
12265 PR tui/9765
12266 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12267 comment, add extra parameter, and update to store previous symbol
12268 when appropriate.
12269 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12270 add extra parameter.
12271 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12272 remove unneeded parameter, add try/catch around gdb_print_insn,
12273 rewrite to add items to asm_lines vector.
12274 (tui_find_backward_disassembly_start_address): New function.
12275 (tui_find_disassembly_address): Updated throughout.
12276 (tui_disasm_window::set_contents): Update for changes to
12277 tui_disassemble.
12278 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12279 number of lines to scroll.
12280
12281 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12282
12283 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12284 (SECT_OFF_DATA): Likewise.
12285 (SECT_OFF_RODATA): Likewise.
12286 (SECT_OFF_TEXT): Likewise.
12287 (SECT_OFF_BSS): Likewise.
12288 (struct objfile) <text_section_offset, data_section_offset>: New
12289 methods.
12290 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12291 objfile::text_section_offset.
12292 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12293 * coffread.c (coff_symtab_read): Likewise.
12294 (enter_linenos): Likewise.
12295 (process_coff_symbol): Likewise.
12296 * ctfread.c (get_objfile_text_range): Likewise.
12297 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12298 Use objfile::data_section_offset.
12299 * dwarf2-frame.c (execute_cfa_program): Use
12300 objfile::text_section_offset.
12301 (dwarf2_frame_find_fde): Likewise.
12302 * dwarf2read.c (create_addrmap_from_index): Likewise.
12303 (create_addrmap_from_aranges): Likewise.
12304 (dw2_find_pc_sect_compunit_symtab): Likewise.
12305 (process_psymtab_comp_unit_reader): Likewise.
12306 (add_partial_symbol): Likewise.
12307 (add_partial_subprogram): Likewise.
12308 (process_full_comp_unit): Likewise.
12309 (read_file_scope): Likewise.
12310 (read_func_scope): Likewise.
12311 (read_lexical_block_scope): Likewise.
12312 (read_call_site_scope): Likewise.
12313 (dwarf2_rnglists_process): Likewise.
12314 (dwarf2_ranges_process): Likewise.
12315 (dwarf2_ranges_read): Likewise.
12316 (dwarf_decode_lines_1): Likewise.
12317 (new_symbol): Likewise.
12318 (dwarf2_fetch_die_loc_sect_off): Likewise.
12319 (dwarf2_per_cu_text_offset): Likewise.
12320 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12321 * hppa-tdep.c (read_unwind_info): Likewise.
12322 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12323 * psympriv.h (struct partial_symtab): Likewise.
12324 * psymtab.c (find_pc_sect_psymtab): Likewise.
12325 * solib-svr4.c (enable_break): Likewise.
12326 * stap-probe.c (relocate_address): Use
12327 objfile::data_section_offset.
12328 * xcoffread.c (enter_line_range): Use
12329 objfile::text_section_offset.
12330 (read_xcoff_symtab): Likewise.
12331
12332 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12333
12334 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12335 declaration to narrower scopes.
12336
12337 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12338
12339 * darwin-nat.h (struct darwin_exception_msg, enum
12340 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12341 Move up.
12342 (class darwin_nat_target) <wait_1, check_new_threads,
12343 decode_exception_message, decode_message, stop_inferior,
12344 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12345 * darwin-nat.c (darwin_check_new_threads): Rename to...
12346 (darwin_nat_target::check_new_threads): ... this.
12347 (darwin_suspend_inferior_it): Remove.
12348 (darwin_decode_exception_message): Rename to...
12349 (darwin_nat_target::decode_exception_message): ... this.
12350 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12351 (darwin_decode_message): Rename to...
12352 (darwin_nat_target::decode_message): ... this.
12353 (cancel_breakpoint): Rename to...
12354 (darwin_nat_target::cancel_breakpoint): ... this.
12355 (darwin_wait): Rename to...
12356 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12357 instead of iterate_over_inferiors.
12358 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12359 (darwin_stop_inferior): Rename to...
12360 (darwin_nat_target::stop_inferior): ... this.
12361 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12362 (darwin_init_thread_list): Rename to...
12363 (darwin_nat_target::init_thread_list): ... this.
12364 (darwin_ptrace_him): Rename to...
12365 (darwin_nat_target::ptrace_him): ... this.
12366 (darwin_nat_target::create_inferior): Pass lambda function to
12367 fork_inferior.
12368 (darwin_nat_target::detach): Call stop_inferior instead of
12369 darwin_stop_inferior.
12370 * fork-inferior.h (fork_inferior): Change init_trace_fun
12371 parameter to gdb::function_view.
12372 * fork-inferior.c (fork_inferior): Likewise.
12373
12374 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
12375
12376 * i386-cygwin-tdep.c (core_process_module_section): Update.
12377 * windows-nat.c (struct lm_info_windows): Add text_offset.
12378 (windows_xfer_shared_libraries): Update.
12379 * windows-tdep.c (windows_xfer_shared_library):
12380 Add text_offset_cached argument.
12381 * windows-tdep.h (windows_xfer_shared_library): Update.
12382
12383 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12384
12385 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12386
12387 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12388
12389 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12390 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12391 replace with range-based for.
12392 (gdbsim_interrupt_inferior): Remove.
12393 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12394 with a range-based for. Inline code from
12395 gdbsim_interrupt_inferior.
12396
12397 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12398
12399 * infrun.c (proceed): Fix indentation.
12400
12401 2020-01-21 Tom Tromey <tromey@adacore.com>
12402
12403 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12404 * python/python.c (python_extension_ops): Update.
12405 (gdbpy_colorize): New function.
12406 * python/lib/gdb/__init__.py (colorize): New function.
12407 * extension.h (ext_lang_colorize): Declare.
12408 * extension.c (ext_lang_colorize): New function.
12409 * extension-priv.h (struct extension_language_ops) <colorize>: New
12410 member.
12411 * cli/cli-style.c (_initialize_cli_style): Update help text.
12412
12413 2020-01-21 Luis Machado <luis.machado@linaro.org>
12414
12415 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12416 <cond>: Change type to bool.
12417 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12418 (aarch64_displaced_step_cb): Likewise.
12419 (aarch64_displaced_step_tb): Likewise.
12420
12421 2020-01-21 Luis Machado <luis.machado@linaro.org>
12422
12423 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12424 output.
12425
12426 2020-01-21 Luis Machado <luis.machado@linaro.org>
12427
12428 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12429 <pc_adjust>: Adjust the documentation.
12430 (aarch64_displaced_step_fixup): Check if PC really moved before
12431 adjusting it.
12432
12433 2020-01-19 Tom Tromey <tom@tromey.com>
12434
12435 * disasm.c (~gdb_disassembler): New destructor.
12436 (gdb_buffered_insn_length): Call disassemble_free_target.
12437 * disasm.h (class gdb_disassembler): Declare destructor. Use
12438 DISABLE_COPY_AND_ASSIGN.
12439
12440 2020-01-19 Tom Tromey <tom@tromey.com>
12441
12442 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12443 (die_reader_func_ftype): Remove.
12444 (cutu_reader): New class.
12445 (dw2_get_file_names_reader): Remove "data" parameter.
12446 (dw2_get_file_names): Use cutu_reader.
12447 (create_debug_type_hash_table): Update.
12448 (read_cutu_die_from_dwo): Update comment.
12449 (lookup_dwo_unit): Add dwo_name parameter.
12450 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12451 die_reader_func_ftype and data parameters.
12452 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12453 Remove die_reader_func_ftype and data parameters.
12454 (~cutu_reader): New; from init_cutu_and_read_dies.
12455 (cutu_reader::cutu_reader): Rename from
12456 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12457 and data parameters.
12458 (init_cutu_and_read_dies_simple): Remove.
12459 (struct process_psymtab_comp_unit_data): Remove.
12460 (process_psymtab_comp_unit_reader): Remove data parameter; add
12461 want_partial_unit and pretend_language parameters.
12462 (process_psymtab_comp_unit): Use cutu_reader.
12463 (build_type_psymtabs_reader): Remove data parameter.
12464 (build_type_psymtabs_1): Use cutu_reader.
12465 (process_skeletonless_type_unit): Likewise.
12466 (load_partial_comp_unit_reader): Remove.
12467 (load_partial_comp_unit): Use cutu_reader.
12468 (load_full_comp_unit_reader): Remove.
12469 (load_full_comp_unit): Use cutu_reader.
12470 (struct create_dwo_cu_data): Remove.
12471 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12472 dwo_unit parameters.
12473 (create_cus_hash_table): Use cutu_reader.
12474 (struct dwarf2_read_addr_index_data): Remove.
12475 (dwarf2_read_addr_index_reader): Remove.
12476 (dwarf2_read_addr_index): Use cutu_reader.
12477 (read_signatured_type_reader): Remove.
12478 (read_signatured_type): Use cutu_reader.
12479
12480 2020-01-19 Tom Tromey <tom@tromey.com>
12481
12482 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12483 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12484 (tui_wrefresh): Declare.
12485 * tui/tui-wingeneral.c (suppress_output): New global.
12486 (tui_suppress_output, ~tui_suppress_output): New constructor and
12487 destructor.
12488 (tui_wrefresh): New function.
12489 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12490 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12491 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12492 method.
12493 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12494 tui_wrefresh.
12495 (tui_data_window::no_refresh): New method.
12496 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12497 (tui_reg_command): Use tui_suppress_output
12498 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12499 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12500 method.
12501 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12502
12503 2020-01-19 Tom Tromey <tom@tromey.com>
12504
12505 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12506 Handle case where symtab is null.
12507
12508 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12509
12510 * linux-fork.c (one_fork_p): Simplify.
12511
12512 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12513
12514 * top.c (struct qt_args): Remove.
12515 (kill_or_detach): Change return type to void, replace `void *`
12516 parameter with a proper one.
12517 (print_inferior_quit_action): Likewise.
12518 (quit_confirm): Use range-based for loop to iterate over inferiors.
12519 (quit_force): Likewise.
12520
12521 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12522
12523 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12524 `void *` parameter with proper parameters.
12525 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12526 (print_one_inferior): Change return type to void, replace `void *`
12527 parameter with proper parameters.
12528 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12529 inferiors.
12530 (get_other_inferior): Remove.
12531 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12532 inferiors.
12533
12534 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12535
12536 * mi/mi-interp.c (report_initial_inferior): Remove.
12537 (mi_interp::init): Use range-based for to iterate over inferiors.
12538
12539 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12540
12541 * python/py-inferior.c (build_inferior_list): Remove.
12542 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12543
12544 2020-01-16 Christian Biesinger <cbiesinger@google.com>
12545
12546 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12547 (btrace_stitch_trace): Likewise.
12548 * charset.c (intermediate_encoding): Likewise (vaild).
12549 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12550 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12551 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12552
12553 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
12554
12555 * windows-tdep.c (windows_get_tlb_type):
12556 Add rtl_user_process_parameters type.
12557
12558 2020-01-16 Pedro Alves <palves@redhat.com>
12559 Norbert Lange <nolange79@gmail.com>
12560
12561 PR build/24805
12562 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12563 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12564 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12565 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12566 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12567 (ps_plog): Redeclare exported functions with default visibility.
12568
12569 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12570
12571 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12572 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12573
12574 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
12575
12576 * infcmd.c (post_create_inferior): Use get_thread_regcache
12577 instead of get_current_regcache.
12578
12579 2020-01-14 Tom Tromey <tom@tromey.com>
12580
12581 PR symtab/12535:
12582 * python/python.c (gdbpy_decode_line): Treat empty string the same
12583 as no argument.
12584
12585 2020-01-14 Tom Tromey <tom@tromey.com>
12586
12587 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12588
12589 2020-01-14 Tom Tromey <tom@tromey.com>
12590
12591 * nat/linux-btrace.c: Don't include <config.h>.
12592 * nat/linux-ptrace.c: Don't include <config.h>.
12593 * nat/x86-linux-dregs.c: Don't include <config.h>.
12594
12595 2020-01-14 Tom Tromey <tom@tromey.com>
12596
12597 * configure: Rebuild.
12598 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12599
12600 2020-01-14 Tom Tromey <tom@tromey.com>
12601
12602 * nat/x86-linux-dregs.c: Include configh.h.
12603 * nat/linux-ptrace.c: Include configh.h.
12604 * nat/linux-btrace.c: Include configh.h.
12605 * defs.h: Include config.h, bfd.h.
12606 * configure.ac: Don't source common.host.
12607 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12608 * configure: Rebuild.
12609 * acinclude.m4: Update path.
12610 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12611 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12612 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12613 (CLIBS): Add LIBSUPPORT.
12614 (CDEPS): Likewise.
12615 (COMMON_SFILES): Remove gdbsupport files.
12616 (HFILES_NO_SRCDIR): Likewise.
12617 (stamp-version): Update path to create-version.sh.
12618 (ALLDEPFILES): Remove gdbsupport files.
12619
12620 2020-01-14 Tom Tromey <tom@tromey.com>
12621
12622 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12623 USE_WIN32API when needed.
12624 * configure.ac (USE_WIN32API): Don't define.
12625 (WIN32LIBS): Use WIN32APILIBS.
12626 * configure: Rebuild.
12627
12628 2020-01-14 Tom Tromey <tom@tromey.com>
12629
12630 * configure: Rebuild.
12631 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12632
12633 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12634
12635 * skip.c (skip_function_command): Make skip w/o arguments use the
12636 name of the inlined function if pc is inside any inlined function.
12637
12638 2020-01-14 Luis Machado <luis.machado@linaro.org>
12639
12640 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12641 * infrun.c (resume_1): Likewise.
12642 (handle_inferior_event): Remove stale comment.
12643 * linux-nat.c (linux_nat_target::resume): Update comments.
12644 (save_stop_reason): Likewise.
12645 (linux_nat_filter_event): Likewise.
12646 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12647
12648 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12649
12650 * elfread.c (record_minimal_symbol): Set section index to 0 for
12651 non-allocatable sections.
12652
12653
12654 2020-01-13 Ali Tamur <tamur@google.com>
12655
12656 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12657 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12658 to gdb::optional. Update comments.
12659 (dwo_file): Update comments.
12660 (read_attribute): Update API to take an additional out parameter,
12661 need_reprocess. This is used to mark attributes that need other
12662 attributes (e.g. str_offsets_base) for correct computation which may not
12663 have been read yet.
12664 (read_attribute_reprocess): New function declaration.
12665 (read_addr_index): Likewise.
12666 (read_dwo_str_index): Likewise.
12667 (read_stub_str_index): Likewise.
12668 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12669 (lookup_addr_base): New function definition.
12670 (lookup_ranges_base): Likewise.
12671 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12672 lookup_ranges_base.
12673 (init_cutu_and_read_dies): Update comments.
12674 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12675 unit. This is used to inherit parent's str_offsets_base and addr_base.
12676 Update comments.
12677 (init_cutu_and_read_dies_simple): Reflect API changes.
12678 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12679 (create_cus_hash_table): Change API to take parent compile unit.
12680 Reflect API changes.
12681 (open_and_init_dwo_file): Reflect API changes.
12682 (dwarf2_get_pc_bounds): Update comments.
12683 (dwarf2_record_block_ranges): Likewise.
12684 (read_full_die_1): Change implementation to reprocess attributes that
12685 need str_offsets_base and addr_base.
12686 (partial_die_info::read): Likewise.
12687 (read_attribute_reprocess): New function definition.
12688 (read_attribute_value): Change API to take an additional out parameter,
12689 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12690 when a non-dwo compile unit has index based attributes.
12691 (read_attribute): Reflect API changes.
12692 (read_addr_index_1): Reflect API changes. Update comments.
12693 (dwarf2_read_addr_index_data): Reflect API changes.
12694 (dwarf2_read_addr_index): Likewise.
12695 (read_str_index): Change API and implementation. This becomes a helper
12696 to be used by the new string index related methods. Update error
12697 message and comments.
12698 (read_dwo_str_index): New function definition.
12699 (read_stub_str_index): Likewise.
12700 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12701 * symfile.h (dwarf2_debug_sections): Likewise.
12702 * xcoffread.c (dwarf2_debug_sections): Likewise.
12703
12704 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12705
12706 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12707 core_reg_sect type to gdb_byte *.
12708 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12709 * cris-tdep.c (fetch_core_registers): Likewise.
12710 * corelow.c (core_target::get_core_register_section): Change
12711 type of `contents` to gdb::byte_vector.
12712
12713 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12714
12715 * tui/tui-wingeneral.c (box_win): Position the title in the center
12716 of the border.
12717
12718 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12719
12720 * corelow.c (core_target::get_core_register_section): Use
12721 std::vector instead of alloca.
12722
12723 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12724
12725 * warning.m4: Add -Wmissing-declarations to build_warnings.
12726 * configure: Re-generate.
12727
12728 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12729
12730 * python/python.c (init__gdb_module): Add declaration.
12731
12732 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12733
12734 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12735 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12736 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12737 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12738 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12739 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12740 * ada-exp.y (_initialize_ada_exp): Add declaration.
12741 * ada-lang.c (_initialize_ada_language): Add declaration.
12742 * ada-tasks.c (_initialize_tasks): Add declaration.
12743 * agent.c (_initialize_agent): Add declaration.
12744 * aix-thread.c (_initialize_aix_thread): Add declaration.
12745 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12746 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12747 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12748 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12749 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12750 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12751 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12752 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12753 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12754 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12755 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12756 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12757 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12758 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12759 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12760 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12761 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12762 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12763 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12764 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12765 * annotate.c (_initialize_annotate): Add declaration.
12766 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12767 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12768 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12769 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12770 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12771 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12772 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12773 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12774 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12775 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12776 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12777 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12778 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12779 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12780 * auto-load.c (_initialize_auto_load): Add declaration.
12781 * auxv.c (_initialize_auxv): Add declaration.
12782 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12783 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12784 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12785 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12786 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12787 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12788 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12789 * breakpoint.c (_initialize_breakpoint): Add declaration.
12790 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12791 * btrace.c (_initialize_btrace): Add declaration.
12792 * charset.c (_initialize_charset): Add declaration.
12793 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12794 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12795 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12796 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12797 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12798 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12799 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12800 * coffread.c (_initialize_coffread): Add declaration.
12801 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12802 * compile/compile.c (_initialize_compile): Add declaration.
12803 * complaints.c (_initialize_complaints): Add declaration.
12804 * completer.c (_initialize_completer): Add declaration.
12805 * copying.c (_initialize_copying): Add declaration.
12806 * corefile.c (_initialize_core): Add declaration.
12807 * corelow.c (_initialize_corelow): Add declaration.
12808 * cp-abi.c (_initialize_cp_abi): Add declaration.
12809 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12810 * cp-support.c (_initialize_cp_support): Add declaration.
12811 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12812 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12813 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12814 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12815 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12816 * ctfread.c (_initialize_ctfread): Add declaration.
12817 * d-lang.c (_initialize_d_language): Add declaration.
12818 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12819 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12820 * dbxread.c (_initialize_dbxread): Add declaration.
12821 * dcache.c (_initialize_dcache): Add declaration.
12822 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12823 * disasm.c (_initialize_disasm): Add declaration.
12824 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12825 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12826 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12827 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12828 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12829 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12830 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12831 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12832 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12833 * elfread.c (_initialize_elfread): Add declaration.
12834 * exec.c (_initialize_exec): Add declaration.
12835 * extension.c (_initialize_extension): Add declaration.
12836 * f-lang.c (_initialize_f_language): Add declaration.
12837 * f-valprint.c (_initialize_f_valprint): Add declaration.
12838 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12839 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12840 * filesystem.c (_initialize_filesystem): Add declaration.
12841 * findcmd.c (_initialize_mem_search): Add declaration.
12842 * findvar.c (_initialize_findvar): Add declaration.
12843 * fork-child.c (_initialize_fork_child): Add declaration.
12844 * frame-base.c (_initialize_frame_base): Add declaration.
12845 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12846 * frame.c (_initialize_frame): Add declaration.
12847 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12848 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12849 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12850 * gcore.c (_initialize_gcore): Add declaration.
12851 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12852 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12853 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12854 * gdbarch.c (_initialize_gdbarch): Add declaration.
12855 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12856 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12857 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12858 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12859 * go-lang.c (_initialize_go_language): Add declaration.
12860 * go32-nat.c (_initialize_go32_nat): Add declaration.
12861 * guile/guile.c (_initialize_guile): Add declaration.
12862 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12863 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12864 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12865 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12866 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12867 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12868 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12869 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12870 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12871 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12872 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12873 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12874 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12875 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12876 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12877 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12878 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12879 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12880 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12881 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12882 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12883 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12884 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12885 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12886 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12887 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12888 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12889 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12890 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12891 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12892 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12893 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12894 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12895 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12896 * infcall.c (_initialize_infcall): Add declaration.
12897 * infcmd.c (_initialize_infcmd): Add declaration.
12898 * inflow.c (_initialize_inflow): Add declaration.
12899 * infrun.c (_initialize_infrun): Add declaration.
12900 * interps.c (_initialize_interpreter): Add declaration.
12901 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12902 * jit.c (_initialize_jit): Add declaration.
12903 * language.c (_initialize_language): Add declaration.
12904 * linux-fork.c (_initialize_linux_fork): Add declaration.
12905 * linux-nat.c (_initialize_linux_nat): Add declaration.
12906 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12907 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12908 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12909 * m2-lang.c (_initialize_m2_language): Add declaration.
12910 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12911 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12912 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12913 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12914 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12915 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12916 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12917 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12918 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12919 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12920 * machoread.c (_initialize_machoread): Add declaration.
12921 * macrocmd.c (_initialize_macrocmd): Add declaration.
12922 * macroscope.c (_initialize_macroscope): Add declaration.
12923 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12924 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12925 * maint.c (_initialize_maint_cmds): Add declaration.
12926 * mdebugread.c (_initialize_mdebugread): Add declaration.
12927 * memattr.c (_initialize_mem): Add declaration.
12928 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12929 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12930 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12931 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12932 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12933 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12934 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12935 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12936 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12937 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12938 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12939 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12940 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12941 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12942 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12943 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12944 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12945 * mipsread.c (_initialize_mipsread): Add declaration.
12946 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12947 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12948 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12949 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12950 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12951 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12952 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12953 * nto-procfs.c (_initialize_procfs): Add declaration.
12954 * objc-lang.c (_initialize_objc_language): Add declaration.
12955 * observable.c (_initialize_observer): Add declaration.
12956 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12957 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12958 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12959 * osabi.c (_initialize_gdb_osabi): Add declaration.
12960 * osdata.c (_initialize_osdata): Add declaration.
12961 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12962 * parse.c (_initialize_parse): Add declaration.
12963 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12964 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12965 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12966 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12967 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12968 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12969 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12970 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12971 * printcmd.c (_initialize_printcmd): Add declaration.
12972 * probe.c (_initialize_probe): Add declaration.
12973 * proc-api.c (_initialize_proc_api): Add declaration.
12974 * proc-events.c (_initialize_proc_events): Add declaration.
12975 * proc-service.c (_initialize_proc_service): Add declaration.
12976 * procfs.c (_initialize_procfs): Add declaration.
12977 * producer.c (_initialize_producer): Add declaration.
12978 * psymtab.c (_initialize_psymtab): Add declaration.
12979 * python/python.c (_initialize_python): Add declaration.
12980 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12981 * record-btrace.c (_initialize_record_btrace): Add declaration.
12982 * record-full.c (_initialize_record_full): Add declaration.
12983 * record.c (_initialize_record): Add declaration.
12984 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12985 * regcache.c (_initialize_regcache): Add declaration.
12986 * reggroups.c (_initialize_reggroup): Add declaration.
12987 * remote-notif.c (_initialize_notif): Add declaration.
12988 * remote-sim.c (_initialize_remote_sim): Add declaration.
12989 * remote.c (_initialize_remote): Add declaration.
12990 * reverse.c (_initialize_reverse): Add declaration.
12991 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12992 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12993 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12994 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12995 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12996 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12997 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12998 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12999 Add declaration.
13000 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13001 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13002 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13003 * rust-exp.y (_initialize_rust_exp): Add declaration.
13004 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13005 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13006 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13007 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13008 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13009 * score-tdep.c (_initialize_score_tdep): Add declaration.
13010 * ser-go32.c (_initialize_ser_dos): Add declaration.
13011 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13012 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13013 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13014 * ser-uds.c (_initialize_ser_socket): Add declaration.
13015 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13016 * serial.c (_initialize_serial): Add declaration.
13017 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13018 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13019 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13020 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13021 * skip.c (_initialize_step_skip): Add declaration.
13022 * sol-thread.c (_initialize_sol_thread): Add declaration.
13023 * solib-aix.c (_initialize_solib_aix): Add declaration.
13024 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13025 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13026 * solib-frv.c (_initialize_frv_solib): Add declaration.
13027 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13028 * solib-target.c (_initialize_solib_target): Add declaration.
13029 * solib.c (_initialize_solib): Add declaration.
13030 * source-cache.c (_initialize_source_cache): Add declaration.
13031 * source.c (_initialize_source): Add declaration.
13032 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13033 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13034 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13035 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13036 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13037 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13038 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13039 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13040 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13041 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13042 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13043 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13044 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13045 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13046 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13047 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13048 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13049 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13050 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13051 * stabsread.c (_initialize_stabsread): Add declaration.
13052 * stack.c (_initialize_stack): Add declaration.
13053 * stap-probe.c (_initialize_stap_probe): Add declaration.
13054 * std-regs.c (_initialize_frame_reg): Add declaration.
13055 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13056 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13057 * symfile.c (_initialize_symfile): Add declaration.
13058 * symmisc.c (_initialize_symmisc): Add declaration.
13059 * symtab.c (_initialize_symtab): Add declaration.
13060 * target.c (_initialize_target): Add declaration.
13061 * target-connection.c (_initialize_target_connection): Add
13062 declaration.
13063 * target-dcache.c (_initialize_target_dcache): Add declaration.
13064 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13065 * thread.c (_initialize_thread): Add declaration.
13066 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13067 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13068 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13069 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13070 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13071 * tracectf.c (_initialize_ctf): Add declaration.
13072 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13073 * tracefile.c (_initialize_tracefile): Add declaration.
13074 * tracepoint.c (_initialize_tracepoint): Add declaration.
13075 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13076 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13077 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13078 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13079 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13080 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13081 * tui/tui.c (_initialize_tui): Add declaration.
13082 * typeprint.c (_initialize_typeprint): Add declaration.
13083 * ui-style.c (_initialize_ui_style): Add declaration.
13084 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13085 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13086 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13087 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13088 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13089 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13090 * unittests/filtered_iterator-selftests.c
13091 (_initialize_filtered_iterator_selftests): Add declaration.
13092 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13093 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13094 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13095 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13096 * unittests/main-thread-selftests.c
13097 (_initialize_main_thread_selftests): Add declaration.
13098 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13099 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13100 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13101 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13102 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13103 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13104 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13105 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13106 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13107 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13108 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13109 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13110 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13111 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13112 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13113 declaration.
13114 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13115 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13116 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13117 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13118 * user-regs.c (_initialize_user_regs): Add declaration.
13119 * utils.c (_initialize_utils): Add declaration.
13120 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13121 * valops.c (_initialize_valops): Add declaration.
13122 * valprint.c (_initialize_valprint): Add declaration.
13123 * value.c (_initialize_values): Add declaration.
13124 * varobj.c (_initialize_varobj): Add declaration.
13125 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13126 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13127 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13128 * windows-nat.c (_initialize_windows_nat): Add declaration.
13129 (_initialize_check_for_gdb_ini): Add declaration.
13130 (_initialize_loadable): Add declaration.
13131 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13132 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13133 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13134 * xcoffread.c (_initialize_xcoffread): Add declaration.
13135 * xml-support.c (_initialize_xml_support): Add declaration.
13136 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13137 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13138 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13139 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13140
13141 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13142
13143 * regformats/regdat.sh: Generate declaration for init function.
13144
13145 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13146
13147 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13148 up.
13149 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13150 close_one_inferior>: New methods.
13151 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13152 pass down target to find_inferior_pid.
13153 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13154 Pass down target to find_inferior_ptid.
13155 (gdbsim_target::create_inferior): Pass down target to
13156 add_thread_silent.
13157 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13158 target down to find_inferior_ptid and switch_to_thread.
13159 (gdbsim_target::close): Update to call close_one_inferior.
13160 (struct resume_data): Remove.
13161 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13162 directly, rather than through a void pointer.
13163 (gdbsim_target::resume): Update to call resume_one_inferior.
13164
13165 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13166
13167 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13168
13169 2020-01-12 Pedro Alves <palves@redhat.com>
13170
13171 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13172 directly for the current inferior instead of
13173 discard_all_inferiors.
13174 (discard_all_inferiors): Delete.
13175
13176 2020-01-11 Tom Tromey <tom@tromey.com>
13177
13178 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13179 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13180 deprecated_safe_get_selected_frame.
13181
13182 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13183
13184 * inferior.c (print_inferior): Switch inferior before printing it.
13185
13186 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13187 Pedro Alves <palves@redhat.com>
13188
13189 * progspace-and-thread.c (switch_to_program_space_and_thread):
13190 Assert there's an inferior for PSPACE. Use
13191 switch_to_inferior_no_thread to switch the inferior too.
13192 * progspace.c (program_space::~program_space): Call
13193 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13194 (program_space::free_all_objfiles): Don't call clear_symtab_users
13195 here.
13196 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13197
13198 2020-01-10 Pedro Alves <palves@redhat.com>
13199
13200 * NEWS: Mention multi-target debugging, "info connections", and
13201 "add-inferior -no-connection".
13202
13203 2020-01-10 Pedro Alves <palves@redhat.com>
13204
13205 * infrun.c: Include "target-connection.h".
13206 (check_multi_target_resumption): New.
13207 (proceed): Call it.
13208 * target-connection.c (make_target_connection_string): Make
13209 extern.
13210 * target-connection.h (make_target_connection_string): Declare.
13211
13212 2020-01-10 Pedro Alves <palves@redhat.com>
13213
13214 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13215 * inferior.c (uiout_field_connection): New function.
13216 (print_inferior): Add new "connection-id" column.
13217 (add_inferior_command): Show connection number/string of added
13218 inferior.
13219 * process-stratum-target.h
13220 (process_stratum_target::connection_string): New virtual method.
13221 (process_stratum_target::connection_number): New field.
13222 * remote.c (remote_target::connection_string): New override.
13223 * target-connection.c: New file.
13224 * target-connection.h: New file.
13225 * target.c (decref_target): Remove process_stratum targets from
13226 the connection list.
13227 (target_stack::push): Add process_stratum targets to the
13228 connection list.
13229
13230 2020-01-10 Pedro Alves <palves@redhat.com>
13231
13232 Revert:
13233 2016-04-12 Pedro Alves <palves@redhat.com>
13234 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13235 Remove references to name.
13236 * serial.h (struct serial) <name>: Delete.
13237
13238 2020-01-10 Pedro Alves <palves@redhat.com>
13239
13240 * gdbarch-selftests.c (register_to_value_test): Remove "target
13241 already pushed" check.
13242
13243 2020-01-10 Pedro Alves <palves@redhat.com>
13244 John Baldwin <jhb@FreeBSD.org>
13245
13246 * aarch64-linux-nat.c
13247 (aarch64_linux_nat_target::thread_architecture): Adjust.
13248 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13249 (task_command_1): Likewise.
13250 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13251 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13252 (aix_thread_target::store_registers)
13253 (aix_thread_target::thread_alive): Adjust.
13254 * amd64-fbsd-tdep.c: Include "inferior.h".
13255 (amd64fbsd_get_thread_local_address): Pass down target.
13256 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13257 thread's gdbarch instead of target_gdbarch.
13258 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13259 get_last_target_status.
13260 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13261 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13262 inferiors.
13263 (update_inserted_breakpoint_locations): Skip if inferiors with no
13264 execution.
13265 (update_global_location_list): When handling moribund locations,
13266 find representative inferior for location's pspace, and use thread
13267 count of its process_stratum target.
13268 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13269 * bsd-uthread.c (bsd_uthread_target::wait): Use
13270 as_process_stratum_target and adjust thread_change_ptid and
13271 add_thread calls.
13272 (bsd_uthread_target::update_thread_list): Use
13273 as_process_stratum_target and adjust find_thread_ptid,
13274 thread_change_ptid and add_thread calls.
13275 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13276 find_thread_ptid call.
13277 * corelow.c (add_to_thread_list): Adjust add_thread call.
13278 (core_target_open): Adjust add_thread_silent and thread_count
13279 calls.
13280 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13281 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13282 * event-top.c (async_disconnect): Pop targets from all inferiors.
13283 * exec.c (add_target_sections): Push exec target on all inferiors
13284 sharing the program space.
13285 (remove_target_sections): Remove the exec target from all
13286 inferiors sharing the program space.
13287 (exec_on_vfork): New.
13288 * exec.h (exec_on_vfork): Declare.
13289 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13290 Pass it down.
13291 (fbsd_nat_target::update_thread_list): Adjust.
13292 (fbsd_nat_target::resume): Adjust.
13293 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13294 down.
13295 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13296 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13297 get_thread_arch_regcache call.
13298 * fork-child.c (gdb_startup_inferior): Pass target down to
13299 startup_inferior and set_executing.
13300 * gdbthread.h (struct process_stratum_target): Forward declare.
13301 (add_thread, add_thread_silent, add_thread_with_info)
13302 (in_thread_list): Add process_stratum_target parameter.
13303 (find_thread_ptid(inferior*, ptid_t)): New overload.
13304 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13305 parameter.
13306 (all_threads()): Delete overload.
13307 (all_threads, all_non_exited_threads): Add process_stratum_target
13308 parameter.
13309 (all_threads_safe): Use brace initialization.
13310 (thread_count): Add process_stratum_target parameter.
13311 (set_resumed, set_running, set_stop_requested, set_executing)
13312 (threads_are_executing, finish_thread_state): Add
13313 process_stratum_target parameter.
13314 (switch_to_thread): Use is_current_thread.
13315 * i386-fbsd-tdep.c: Include "inferior.h".
13316 (i386fbsd_get_thread_local_address): Pass down target.
13317 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13318 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13319 have_inferiors check.
13320 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13321 (inf_ptrace_target::attach): Adjust.
13322 * infcall.c (run_inferior_call): Adjust.
13323 * infcmd.c (run_command_1): Pass target to
13324 scoped_finish_thread_state.
13325 (proceed_thread_callback): Skip inferiors with no execution.
13326 (continue_command): Rename 'all_threads' local to avoid hiding
13327 'all_threads' function. Adjust get_last_target_status call.
13328 (prepare_one_step): Adjust set_running call.
13329 (signal_command): Use user_visible_resume_target. Compare thread
13330 pointers instead of inferior_ptid.
13331 (info_program_command): Adjust to pass down target.
13332 (attach_command): Mark target's 'thread_executing' flag.
13333 (stop_current_target_threads_ns): New, factored out from ...
13334 (interrupt_target_1): ... this. Switch inferior before making
13335 target calls.
13336 * inferior-iter.h
13337 (struct all_inferiors_iterator, struct all_inferiors_range)
13338 (struct all_inferiors_safe_range)
13339 (struct all_non_exited_inferiors_range): Filter on
13340 process_stratum_target too. Remove explicit.
13341 * inferior.c (inferior::inferior): Push dummy target on target
13342 stack.
13343 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13344 Add process_stratum_target parameter, and pass it down.
13345 (have_live_inferiors): Adjust.
13346 (switch_to_inferior_and_push_target): New.
13347 (add_inferior_command, clone_inferior_command): Handle
13348 "-no-connection" parameter. Use
13349 switch_to_inferior_and_push_target.
13350 (_initialize_inferior): Mention "-no-connection" option in
13351 the help of "add-inferior" and "clone-inferior" commands.
13352 * inferior.h: Include "process-stratum-target.h".
13353 (interrupt_target_1): Use bool.
13354 (struct inferior) <push_target, unpush_target, target_is_pushed,
13355 find_target_beneath, top_target, process_target, target_at,
13356 m_stack>: New.
13357 (discard_all_inferiors): Delete.
13358 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13359 (all_inferiors, all_non_exited_inferiors): Add
13360 process_stratum_target parameter.
13361 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13362 (target_last_proc_target): New global.
13363 (follow_fork_inferior): Push target on new inferior. Pass target
13364 to add_thread_silent. Call exec_on_vfork. Handle target's
13365 reference count.
13366 (follow_fork): Adjust get_last_target_status call. Also consider
13367 target.
13368 (follow_exec): Push target on new inferior.
13369 (struct execution_control_state) <target>: New field.
13370 (user_visible_resume_target): New.
13371 (do_target_resume): Call target_async.
13372 (resume_1): Set target's threads_executing flag. Consider resume
13373 target.
13374 (commit_resume_all_targets): New.
13375 (proceed): Also consider resume target. Skip threads of inferiors
13376 with no execution. Commit resumtion in all targets.
13377 (start_remote): Pass current inferior to wait_for_inferior.
13378 (infrun_thread_stop_requested): Consider target as well. Pass
13379 thread_info pointer to clear_inline_frame_state instead of ptid.
13380 (infrun_thread_thread_exit): Consider target as well.
13381 (random_pending_event_thread): New inferior parameter. Use it.
13382 (do_target_wait): Rename to ...
13383 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13384 down.
13385 (threads_are_resumed_pending_p, do_target_wait): New.
13386 (prepare_for_detach): Adjust calls.
13387 (wait_for_inferior): New inferior parameter. Handle it. Use
13388 do_target_wait_1 instead of do_target_wait.
13389 (fetch_inferior_event): Adjust. Switch to representative
13390 inferior. Pass target down.
13391 (set_last_target_status): Add process_stratum_target parameter.
13392 Save target in global.
13393 (get_last_target_status): Add process_stratum_target parameter and
13394 handle it.
13395 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13396 (context_switch): Check inferior_ptid == null_ptid before calling
13397 inferior_thread().
13398 (get_inferior_stop_soon): Pass down target.
13399 (wait_one): Rename to ...
13400 (poll_one_curr_target): ... this.
13401 (struct wait_one_event): New.
13402 (wait_one): New.
13403 (stop_all_threads): Adjust.
13404 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13405 event's target.
13406 (switch_back_to_stepped_thread): Also consider target.
13407 (print_stop_event): Update.
13408 (normal_stop): Update. Also consider the resume target.
13409 * infrun.h (wait_for_inferior): Remove declaration.
13410 (user_visible_resume_target): New declaration.
13411 (get_last_target_status, set_last_target_status): New
13412 process_stratum_target parameter.
13413 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13414 process_stratum_target parameter, and use it.
13415 (clear_inline_frame_state (thread_info*)): New.
13416 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13417 process_stratum_target parameter.
13418 (clear_inline_frame_state (thread_info*)): Declare.
13419 * linux-fork.c (delete_checkpoint_command): Pass target down to
13420 find_thread_ptid.
13421 (checkpoint_command): Adjust.
13422 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13423 instead of just tweaking inferior_ptid.
13424 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13425 (exit_lwp): Pass target down to find_thread_ptid.
13426 (attach_proc_task_lwp_callback): Pass target down to
13427 add_thread/set_running/set_executing.
13428 (linux_nat_target::attach): Pass target down to
13429 thread_change_ptid.
13430 (get_detach_signal): Pass target down to find_thread_ptid.
13431 Consider last target status's target.
13432 (linux_resume_one_lwp_throw, resume_lwp)
13433 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13434 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13435 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13436 (linux_nat_target::async_wait_fd): New.
13437 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13438 target down.
13439 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13440 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13441 * linux-thread-db.c (struct thread_db_info::process_target): New
13442 field.
13443 (add_thread_db_info): Save target.
13444 (get_thread_db_info): New process_stratum_target parameter. Also
13445 match target.
13446 (delete_thread_db_info): New process_stratum_target parameter.
13447 Also match target.
13448 (thread_from_lwp): Adjust to pass down target.
13449 (thread_db_notice_clone): Pass down target.
13450 (check_thread_db_callback): Pass down target.
13451 (try_thread_db_load_1): Always push the thread_db target.
13452 (try_thread_db_load, record_thread): Pass target down.
13453 (thread_db_target::detach): Pass target down. Always unpush the
13454 thread_db target.
13455 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13456 target down. Always unpush the thread_db target.
13457 (find_new_threads_callback, thread_db_find_new_threads_2)
13458 (thread_db_target::update_thread_list): Pass target down.
13459 (thread_db_target::pid_to_str): Pass current inferior down.
13460 (thread_db_target::get_thread_local_address): Pass target down.
13461 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13462 target down.
13463 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13464 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13465 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13466 (procfs_init_inferior): Rename to ...
13467 (procfs_target::procfs_init_inferior): ... this and adjust.
13468 (procfs_target::create_inferior, procfs_notice_thread)
13469 (procfs_do_thread_registers): Adjust.
13470 * ppc-fbsd-tdep.c: Include "inferior.h".
13471 (ppcfbsd_get_thread_local_address): Pass down target.
13472 * proc-service.c (ps_xfer_memory): Switch current inferior and
13473 program space as well.
13474 (get_ps_regcache): Pass target down.
13475 * process-stratum-target.c
13476 (process_stratum_target::thread_address_space)
13477 (process_stratum_target::thread_architecture): Pass target down.
13478 * process-stratum-target.h
13479 (process_stratum_target::threads_executing): New field.
13480 (as_process_stratum_target): New.
13481 * ravenscar-thread.c
13482 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13483 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13484 down.
13485 * record-btrace.c (record_btrace_target::info_record): Adjust.
13486 (record_btrace_target::record_method)
13487 (record_btrace_target::record_is_replaying)
13488 (record_btrace_target::fetch_registers)
13489 (get_thread_current_frame_id, record_btrace_target::resume)
13490 (record_btrace_target::wait, record_btrace_target::stop): Pass
13491 target down.
13492 * record-full.c (record_full_wait_1): Switch to event thread.
13493 Pass target down.
13494 * regcache.c (regcache::regcache)
13495 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13496 process_stratum_target parameter and handle it.
13497 (current_thread_target): New global.
13498 (get_thread_regcache): Add process_stratum_target parameter and
13499 handle it. Switch inferior before calling target method.
13500 (get_thread_regcache): Pass target down.
13501 (get_thread_regcache_for_ptid): Pass target down.
13502 (registers_changed_ptid): Add process_stratum_target parameter and
13503 handle it.
13504 (registers_changed_thread, registers_changed): Pass target down.
13505 (test_get_thread_arch_aspace_regcache): New.
13506 (current_regcache_test): Define a couple local test_target_ops
13507 instances and use them for testing.
13508 (readwrite_regcache): Pass process_stratum_target parameter.
13509 (cooked_read_test, cooked_write_test): Pass mock_target down.
13510 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13511 (get_thread_arch_aspace_regcache): Add process_stratum_target
13512 parameter.
13513 (regcache::target): New method.
13514 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13515 (regcache::registers_changed_ptid): Add process_stratum_target
13516 parameter.
13517 (regcache::m_target): New field.
13518 (registers_changed_ptid): Add process_stratum_target parameter.
13519 * remote.c (remote_state::supports_vCont_probed): New field.
13520 (remote_target::async_wait_fd): New method.
13521 (remote_unpush_and_throw): Add remote_target parameter.
13522 (get_current_remote_target): Adjust.
13523 (remote_target::remote_add_inferior): Push target.
13524 (remote_target::remote_add_thread)
13525 (remote_target::remote_notice_new_inferior)
13526 (get_remote_thread_info): Pass target down.
13527 (remote_target::update_thread_list): Skip threads of inferiors
13528 bound to other targets. (remote_target::close): Don't discard
13529 inferiors. (remote_target::add_current_inferior_and_thread)
13530 (remote_target::process_initial_stop_replies)
13531 (remote_target::start_remote)
13532 (remote_target::remote_serial_quit_handler): Pass down target.
13533 (remote_target::remote_unpush_target): New remote_target
13534 parameter. Unpush the target from all inferiors.
13535 (remote_target::remote_unpush_and_throw): New remote_target
13536 parameter. Pass it down.
13537 (remote_target::open_1): Check whether the current inferior has
13538 execution instead of checking whether any inferior is live. Pass
13539 target down.
13540 (remote_target::remote_detach_1): Pass down target. Use
13541 remote_unpush_target.
13542 (extended_remote_target::attach): Pass down target.
13543 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13544 (remote_target::append_resumption): Pass down target.
13545 (remote_target::append_pending_thread_resumptions)
13546 (remote_target::remote_resume_with_hc, remote_target::resume)
13547 (remote_target::commit_resume): Pass down target.
13548 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13549 (remote_target::interrupt_query)
13550 (remote_target::remove_new_fork_children)
13551 (remote_target::check_pending_events_prevent_wildcard_vcont)
13552 (remote_target::remote_parse_stop_reply)
13553 (remote_target::process_stop_reply): Pass down target.
13554 (first_remote_resumed_thread): New remote_target parameter. Pass
13555 it down.
13556 (remote_target::wait_as): Pass down target.
13557 (unpush_and_perror): New remote_target parameter. Pass it down.
13558 (remote_target::readchar, remote_target::remote_serial_write)
13559 (remote_target::getpkt_or_notif_sane_1)
13560 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13561 down target.
13562 (remote_target::mourn_inferior): Pass down target. Use
13563 remote_unpush_target.
13564 (remote_target::core_of_thread)
13565 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13566 (remote_target::pid_to_exec_file)
13567 (remote_target::thread_handle_to_thread_info): Pass down target.
13568 (remote_target::async_wait_fd): New.
13569 * riscv-fbsd-tdep.c: Include "inferior.h".
13570 (riscv_fbsd_get_thread_local_address): Pass down target.
13571 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13572 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13573 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13574 Adjust.
13575 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13576 * solib-svr4.c (enable_break): Pass down target.
13577 * spu-multiarch.c (parse_spufs_run): Pass down target.
13578 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13579 * target-delegates.c: Regenerate.
13580 * target.c (g_target_stack): Delete.
13581 (current_top_target): Return the current inferior's top target.
13582 (target_has_execution_1): Refer to the passed-in inferior's top
13583 target.
13584 (target_supports_terminal_ours): Check whether the initial
13585 inferior was already created.
13586 (decref_target): New.
13587 (target_stack::push): Incref/decref the target.
13588 (push_target, push_target, unpush_target): Adjust.
13589 (target_stack::unpush): Defref target.
13590 (target_is_pushed): Return bool. Adjust to refer to the current
13591 inferior's target stack.
13592 (dispose_inferior): Delete, and inline parts ...
13593 (target_preopen): ... here. Only dispose of the current inferior.
13594 (target_detach): Hold strong target reference while detaching.
13595 Pass target down.
13596 (target_thread_name): Add assertion.
13597 (target_resume): Pass down target.
13598 (target_ops::beneath, find_target_at): Adjust to refer to the
13599 current inferior's target stack.
13600 (get_dummy_target): New.
13601 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13602 has a thread running.
13603 (initialize_targets): Rename to ...
13604 (_initialize_target): ... this.
13605 * target.h: Include "gdbsupport/refcounted-object.h".
13606 (struct target_ops): Inherit refcounted_object.
13607 (target_ops::shortname, target_ops::longname): Make const.
13608 (target_ops::async_wait_fd): New method.
13609 (decref_target): Declare.
13610 (struct target_ops_ref_policy): New.
13611 (target_ops_ref): New typedef.
13612 (get_dummy_target): Declare function.
13613 (target_is_pushed): Return bool.
13614 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13615 (all_matching_threads_iterator::all_matching_threads_iterator):
13616 Handle filter target.
13617 * thread-iter.h (struct all_matching_threads_iterator, struct
13618 all_matching_threads_range, class all_non_exited_threads_range):
13619 Filter by target too. Remove explicit.
13620 * thread.c (threads_executing): Delete.
13621 (inferior_thread): Pass down current inferior.
13622 (clear_thread_inferior_resources): Pass down thread pointer
13623 instead of ptid_t.
13624 (add_thread_silent, add_thread_with_info, add_thread): Add
13625 process_stratum_target parameter. Use it for thread and inferior
13626 searches.
13627 (is_current_thread): New.
13628 (thread_info::deletable): Use it.
13629 (find_thread_ptid, thread_count, in_thread_list)
13630 (thread_change_ptid, set_resumed, set_running): New
13631 process_stratum_target parameter. Pass it down.
13632 (set_executing): New process_stratum_target parameter. Pass it
13633 down. Adjust reference to 'threads_executing'.
13634 (threads_are_executing): New process_stratum_target parameter.
13635 Adjust reference to 'threads_executing'.
13636 (set_stop_requested, finish_thread_state): New
13637 process_stratum_target parameter. Pass it down.
13638 (switch_to_thread): Also match inferior.
13639 (switch_to_thread): New process_stratum_target parameter. Pass it
13640 down.
13641 (update_threads_executing): Reimplement.
13642 * top.c (quit_force): Pop targets from all inferior.
13643 (gdb_init): Don't call initialize_targets.
13644 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13645 Declare.
13646 (windows_add_thread, windows_delete_thread): Adjust.
13647 (get_windows_debug_event): Rename to ...
13648 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13649 * tracefile-tfile.c (tfile_target_open): Pass down target.
13650 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13651 Forward declare.
13652 (switch_to_thread): Add process_stratum_target parameter.
13653 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13654 parameter. Use it.
13655 (mi_on_resume): Pass target down.
13656 * nat/fork-inferior.c (startup_inferior): Add
13657 process_stratum_target parameter. Pass it down.
13658 * nat/fork-inferior.h (startup_inferior): Add
13659 process_stratum_target parameter.
13660 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13661
13662 2020-01-10 Pedro Alves <palves@redhat.com>
13663
13664 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13665 directly. Instead find the first thread in the thread list and
13666 use switch_to_thread.
13667
13668 2020-01-10 Pedro Alves <palves@redhat.com>
13669
13670 * remote.c (remote_target::remote_add_inferior): Don't bind a
13671 process to the current inferior if the current inferior is already
13672 bound to a process.
13673
13674 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13675 Pedro Alves <palves@redhat.com>
13676
13677 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13678 If no process is specified, return null_ptid instead of
13679 inferior_ptid.
13680 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13681 TARGET_WAITKIND_SIGNALLED with no pid.
13682
13683 2020-01-10 Pedro Alves <palves@redhat.com>
13684
13685 * remote.c (first_remote_resumed_thread): New.
13686 (remote_target::wait_as): Use it as default event_ptid instead of
13687 inferior_ptid.
13688
13689 2020-01-10 Pedro Alves <palves@redhat.com>
13690
13691 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13692
13693 2020-01-10 Pedro Alves <palves@redhat.com>
13694
13695 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13696 not -1.
13697
13698 2020-01-10 Pedro Alves <palves@redhat.com>
13699
13700 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13701 ptid to get_last_target_status.
13702 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13703 ptid to get_last_target_status.
13704 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13705 get_last_target_status.
13706 (info_program_command): Don't pass a target_waitstatus to
13707 get_last_target_status.
13708 * infrun.c (init_wait_for_inferior): Use
13709 nullify_last_target_wait_ptid.
13710 (get_last_target_status): Handle nullptr arguments.
13711 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13712 (print_stop_event): Don't pass a ptid to get_last_target_status.
13713 (normal_stop): Don't pass a ptid to get_last_target_status.
13714 * infrun.h (get_last_target_status, set_last_target_status): Move
13715 comments here and update.
13716 (nullify_last_target_wait_ptid): Declare.
13717 * linux-fork.c (fork_load_infrun_state): Remove local extern
13718 declaration of nullify_last_target_wait_ptid.
13719 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13720 to get_last_target_status.
13721
13722 2020-01-10 Pedro Alves <palves@redhat.com>
13723
13724 * gdbthread.h (scoped_restore_current_thread)
13725 <dont_restore, restore, m_dont_restore>: Declare.
13726 * thread.c (thread_alive): Add assertion. Return bool.
13727 (switch_to_thread_if_alive): New.
13728 (prune_threads): Switch inferior/thread.
13729 (print_thread_info_1): Switch thread before calling target methods.
13730 (scoped_restore_current_thread::restore): New, factored out from
13731 ...
13732 (scoped_restore_current_thread::~scoped_restore_current_thread):
13733 ... this.
13734 (scoped_restore_current_thread::scoped_restore_current_thread):
13735 Add assertion.
13736 (thread_apply_all_command, thread_select): Use
13737 switch_to_thread_if_alive.
13738 * infrun.c (proceed, restart_threads, handle_signal_stop)
13739 (switch_back_to_stepped_thread): Switch current thread before
13740 calling target methods.
13741
13742 2020-01-10 Pedro Alves <palves@redhat.com>
13743
13744 * inferior.c (switch_to_inferior_no_thread): New function,
13745 factored out from ...
13746 (inferior_command): ... here.
13747 * inferior.h (switch_to_inferior_no_thread): Declare.
13748 * mi/mi-main.c (run_one_inferior): Use
13749 switch_to_inferior_no_thread.
13750
13751 2020-01-10 Pedro Alves <palves@redhat.com>
13752
13753 * infcmd.c (kill_command): Remove dead code.
13754
13755 2020-01-10 Pedro Alves <palves@redhat.com>
13756
13757 * remote.c (remote_target::mourn_inferior): No longer check
13758 whether the target is running.
13759
13760 2020-01-10 Pedro Alves <palves@redhat.com>
13761
13762 * corelow.c (core_target::has_execution): Change parameter type to
13763 inferior pointer.
13764 * inferior.c (number_of_live_inferiors): Use
13765 inferior::has_execution instead of target_has_execution_1.
13766 * inferior.h (inferior::has_execution): New.
13767 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13768 inferior::has_execution instead of target_has_execution_1.
13769 * process-stratum-target.c
13770 (process_stratum_target::has_execution): Change parameter type to
13771 inferior pointer. Check the inferior's PID instead of
13772 inferior_ptid.
13773 * process-stratum-target.h
13774 (process_stratum_target::has_execution): Change parameter type to
13775 inferior pointer.
13776 * record-full.c (record_full_core_target::has_execution): Change
13777 parameter type to inferior pointer.
13778 * target.c (target_has_execution_1): Change parameter type to
13779 inferior pointer.
13780 (target_has_execution_current): Adjust.
13781 * target.h (target_ops::has_execution): Change parameter type to
13782 inferior pointer.
13783 (target_has_execution_1): Change parameter type to inferior
13784 pointer. Change return type to bool.
13785 * tracefile.h (tracefile_target::has_execution): Change parameter
13786 type to inferior pointer.
13787
13788 2020-01-10 Pedro Alves <palves@redhat.com>
13789
13790 * exceptions.c (print_flush): Remove current_top_target() check.
13791
13792 2020-01-10 Pedro Alves <palves@redhat.com>
13793
13794 * remote.c (show_remote_exec_file): Show the current inferior's
13795 exec-file instead of the command variable's value.
13796
13797 2020-01-10 Pedro Alves <palves@redhat.com>
13798
13799 * record-full.c (record_full_resume_ptid): New global.
13800 (record_full_target::resume): Set it.
13801 (record_full_wait_1): Use record_full_resume_ptid instead of
13802 inferior_ptid.
13803
13804 2020-01-10 Pedro Alves <palves@redhat.com>
13805
13806 * gdbthread.h (scoped_restore_current_thread)
13807 <dont_restore, restore, m_dont_restore>: Declare.
13808 * thread.c (thread_alive): Add assertion. Return bool.
13809 (switch_to_thread_if_alive): New.
13810 (prune_threads): Switch inferior/thread.
13811 (print_thread_info_1): Switch thread before calling target methods.
13812 (scoped_restore_current_thread::restore): New, factored out from
13813 ...
13814 (scoped_restore_current_thread::~scoped_restore_current_thread):
13815 ... this.
13816 (scoped_restore_current_thread::scoped_restore_current_thread):
13817 Add assertion.
13818 (thread_apply_all_command, thread_select): Use
13819 switch_to_thread_if_alive.
13820
13821 2020-01-10 George Barrett <bob@bob131.so>
13822
13823 * stap-probe.c (stap_modify_semaphore): Don't check for null
13824 semaphores.
13825 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13826 for null semaphores.
13827
13828 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13829
13830 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13831 all source windows, and maintain horizontal scroll status while
13832 doing so.
13833
13834 2020-01-09 Tom Tromey <tom@tromey.com>
13835
13836 PR tui/18932:
13837 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13838 update_source_window, not print_source_lines.
13839
13840 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13841
13842 * tui/tui.c (tui_enable): Register tui hooks after calling
13843 tui_display_main.
13844
13845 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13846
13847 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13848
13849 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
13850
13851 * thread.c (print_thread_info_1): Fix indentation.
13852
13853 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13854
13855 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13856 unique_xmalloc_ptr outside the if to always free the demangled name.
13857
13858 2020-01-08 Tom Tromey <tromey@adacore.com>
13859
13860 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13861 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13862 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13863 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13864 Remove.
13865 (section_offsets): New typedef.
13866 * symtab.c (fixup_section, get_msymbol_address): Update.
13867 * symmisc.c (dump_msymbols): Update.
13868 * symfile.h (relative_addr_info_to_section_offsets)
13869 (symfile_map_offsets_to_segments): Update.
13870 * symfile.c (build_section_addr_info_from_objfile)
13871 (init_objfile_sect_indices): Update.
13872 (struct place_section_arg): Change type of "offsets".
13873 (place_section): Update.
13874 (relative_addr_info_to_section_offsets): Change type of
13875 "section_offsets". Remove "num_sections" parameter.
13876 (default_symfile_offsets, syms_from_objfile_1)
13877 (set_objfile_default_section_offset): Update.
13878 (reread_symbols): No need to preserve section offsets by hand.
13879 (symfile_map_offsets_to_segments): Change type of "offsets".
13880 * stap-probe.c (relocate_address): Update.
13881 * stabsread.h (process_one_symbol): Update.
13882 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13883 (solib_target_relocate_section_addresses): Update.
13884 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13885 Update.
13886 * solib-frv.c (frv_relocate_main_executable): Update.
13887 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13888 * solib-aix.c (solib_aix_get_section_offsets): Change return
13889 type.
13890 (solib_aix_solib_create_inferior_hook): Update.
13891 * remote.c (remote_target::get_offsets): Update.
13892 * psymtab.c (find_pc_sect_psymtab): Update.
13893 * psympriv.h (struct partial_symbol) <address, text_low,
13894 text_high>: Update.
13895 * objfiles.h (obj_section_offset): Update.
13896 (struct objfile) <section_offsets>: Change type.
13897 <num_sections>: Remove.
13898 (objfile_relocate): Update.
13899 * objfiles.c (entry_point_address_query): Update
13900 (relocate_one_symbol): Change type of "section_offsets".
13901 (objfile_relocate1, objfile_relocate1): Change type of
13902 "new_offsets".
13903 (objfile_rebase1): Update.
13904 * mipsread.c (mipscoff_symfile_read): Update.
13905 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13906 parameter.
13907 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13908 (parse_external, psymtab_to_symtab_1): Update.
13909 * machoread.c (macho_symfile_offsets): Update.
13910 * ia64-tdep.c (ia64_find_unwind_table): Update.
13911 * hppa-tdep.c (read_unwind_info): Update.
13912 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13913 * dwarf2read.c (create_addrmap_from_index)
13914 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13915 (process_psymtab_comp_unit_reader, add_partial_symbol)
13916 (add_partial_subprogram, process_full_comp_unit)
13917 (read_file_scope, read_func_scope, read_lexical_block_scope)
13918 (read_call_site_scope, dwarf2_rnglists_process)
13919 (dwarf2_ranges_process, dwarf2_ranges_read)
13920 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13921 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13922 Update.
13923 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13924 Update.
13925 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13926 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13927 (process_one_symbol): Change type of "section_offsets".
13928 * ctfread.c (get_objfile_text_range): Update.
13929 * coffread.c (coff_symtab_read, enter_linenos)
13930 (process_coff_symbol): Update.
13931 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13932 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13933
13934 2020-01-08 Tom Tromey <tromey@adacore.com>
13935
13936 * dwarf2read.c (parse_macro_definition): Use std::string.
13937 (parse_macro_definition): Likewise.
13938
13939 2020-01-08 Tom Tromey <tromey@adacore.com>
13940
13941 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13942 (ATTR_ALLOC_CHUNK): Remove.
13943
13944 2020-01-08 Tom Tromey <tromey@adacore.com>
13945
13946 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13947
13948 2020-01-08 Tom Tromey <tromey@adacore.com>
13949
13950 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13951 (dwarf2_compute_name, open_dwo_file): Likewise.
13952 (process_enumeration_scope): Use std::vector.
13953 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13954 (partial_die_info::fixup, dwarf2_start_subfile)
13955 (guess_full_die_structure_name, dwarf2_name): Likewise.
13956 (determine_prefix): Update.
13957 (guess_full_die_structure_name): Make return type const.
13958 (partial_die_full_name): Return unique_xmalloc_ptr.
13959 (DW_FIELD_ALLOC_CHUNK): Remove.
13960
13961 2020-01-07 Tom Tromey <tromey@adacore.com>
13962
13963 PR build/24937:
13964 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13965
13966 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13967
13968 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13969
13970 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13971
13972 * stack.c (print_frame_info): Move disassemble_next_line code
13973 inside source_print block.
13974
13975 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13976
13977 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13978 gdb/signals.h, as we are now using native signal symbols.
13979
13980 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13981
13982 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13983 overflow by an early check of content vs threshold.
13984 * tui/tui-source.c (tui_source_window::line_is_displayed):
13985 Likewise.
13986
13987 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13988
13989 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13990
13991 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13992
13993 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13994 export table if no section contains it's RVA.
13995
13996 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13997
13998 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13999
14000 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
14001
14002 * source.c (print_source_lines_base): Set last_line_listed.
14003
14004 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14005
14006 * tui/tui-disasm.c: Remove trailing spaces.
14007
14008 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14009 Pedro Alves <palves@redhat.com>
14010
14011 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14012 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14013 (windows_gdb_signal_to_target): New function, uses the above
14014 enumeration to convert GDB internal signal codes to equivalent
14015 Windows codes.
14016 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14017 * windows-nat.c: Include "gdb_wait.h".
14018 (get_windows_debug_event): Extract the fatal exception from the
14019 exit status and convert to the equivalent Posix signal number.
14020 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14021 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14022 * gdbsupport/gdb_wait.c: New file, implements
14023 windows_status_to_termsig.
14024 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14025 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14026
14027 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14028
14029 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14030 show_layout.
14031
14032 2020-01-05 Luis Machado <luis.machado@linaro.org>
14033
14034 * aarch64-linux-nat.c
14035 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14036 and bfd_mach_aarch64.
14037
14038 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14039
14040 * ui-file.c (stdio_file::can_emit_style_escape)
14041 (tee_file::can_emit_style_escape): Ensure style is used also on
14042 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14043 to gdb_stdout.
14044 * main.c (set_gdb_data_directory): Use file style to output the
14045 warning that the given pathname is not a directory.
14046 * top.c (show_history_filename, gdb_safe_append_history)
14047 (show_gdb_datadir): Use file style.
14048
14049 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14050
14051 * solib-target.c (struct lm_info_target):
14052 Change offsets to be a unique_xmalloc_ptr.
14053 (solib_target_relocate_section_addresses): Update.
14054
14055 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14056
14057 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14058
14059 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14060
14061 * MAINTAINERS (Write After Approval): Add myself.
14062
14063 2020-01-02 Luis Machado <luis.machado@linaro.org>
14064
14065 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14066 Cell BE architecture.
14067 * target.h (struct target_ops) <thread_architecture>: Likewise.
14068
14069 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14070
14071 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14072
14073 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14074
14075 * MAINTAINERS (Write After Approval): Add myself.
14076
14077 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14078
14079 * gdbarch.sh: Update copyright year range of generated files.
14080
14081 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14082
14083 Update copyright year range in all GDB files.
14084
14085 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14086
14087 * copyright.py: Convert to Python 3.
14088
14089 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14090
14091 * copyright.py: Adapt after move of gnulib directory from gdb
14092 directory to toplevel directory.
14093
14094 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14095
14096 * copyright.py (main): Exit if run from the wrong directory.
14097
14098 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14099
14100 * top.c (print_gdb_version): Change copyright year to 2020.
14101
14102 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14103
14104 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
14105
14106 For older changes see ChangeLog-2019.
14107 \f
14108 Local Variables:
14109 mode: change-log
14110 left-margin: 8
14111 fill-column: 74
14112 version-control: never
14113 coding: utf-8
14114 End:
This page took 0.414264 seconds and 3 git commands to generate.