]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
gdb/fortran: Change whitespace when printing arrays
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
4 for arrays.
5
6 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
7
8 * eval.c: Remove 'f-lang.h' include.
9 (value_f90_subarray): Moved to f-lang.c.
10 (eval_call): Renamed to...
11 (evaluate_subexp_do_call): ...this, is no longer static, header
12 comment moved into header file.
13 (evaluate_funcall): Update call to eval_call.
14 (skip_undetermined_arglist): Moved to f-lang.c.
15 (fortran_value_subarray): Likewise.
16 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
17 moved to evaluate_subexp_f.
18 (calc_f77_array_dims): Moved to f-lang.c
19 * expprint.c (print_subexp_funcall): New function.
20 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
21 moved to print_subexp_f, OP_FUNCALL uses new function.
22 (dump_subexp_body_funcall): New function.
23 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
24 moved to dump_subexp_f, OP_FUNCALL uses new function.
25 * expression.h (evaluate_subexp_do_call): Declare.
26 * f-lang.c (value_f90_subarray): Moved from eval.c.
27 (skip_undetermined_arglist): Likewise.
28 (calc_f77_array_dims): Likewise.
29 (fortran_value_subarray): Likewise.
30 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
31 (operator_length_f): Likewise.
32 (print_subexp_f): Likewise.
33 (dump_subexp_body_f): Likewise.
34 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
35 declaration of this operation to here.
36 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
37 support moved to operator_length_f.
38 * parser-defs.h (dump_subexp_body_funcall): Declare.
39 (print_subexp_funcall): Declare.
40 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
41 fortran-operator.def.
42
43 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
44
45 * eval.c (fortran_value_subarray): New function, content is taken
46 from...
47 (evaluate_subexp_standard): ...here, in two places. Now arrays
48 and strings both call the new function.
49 (calc_f77_array_dims): Add header comment, handle strings.
50
51 2020-09-18 Victor Collod <vcollod@nvidia.com>
52
53 PR gdb/26635
54 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
55 (i386_analyze_prologue): Call i386_skip_endbr.
56
57 2020-09-18 Tom Tromey <tromey@adacore.com>
58
59 * windows-nat.c (struct windows_nat_target) <wait>: Update.
60 (windows_nat_target::wait): Update.
61 * target/wait.h (enum target_wait_flag): New. Use
62 DEF_ENUM_FLAGS_TYPE.
63 * target/target.h (target_wait): Change type of options.
64 * target.h (target_options_to_string, default_target_wait):
65 Update.
66 (struct target_ops) <wait>: Change type of options.
67 * target.c (target_wait, default_target_wait, do_option): Change
68 type of "options".
69 (target_options_to_string): Likewise.
70 * target-delegates.c: Rebuild.
71 * target-debug.h (target_debug_print_target_wait_flags): Rename
72 from target_debug_print_options.
73 * sol-thread.c (class sol_thread_target) <wait>: Update.
74 (sol_thread_target::wait): Update.
75 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
76 (rs6000_nat_target::wait): Update.
77 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
78 Update.
79 (remote_target::wait_ns, remote_target::wait_as): Change type of
80 "options".
81 (remote_target::wait): Update.
82 * remote-sim.c (struct gdbsim_target) <wait>: Update.
83 (gdbsim_target::wait): Update.
84 * record-full.c (class record_full_base_target) <wait>: Update.
85 (record_full_wait_1): Change type of "options".
86 (record_full_base_target::wait): Update.
87 * record-btrace.c (class record_btrace_target) <wait>: Update.
88 (record_btrace_target::wait): Update.
89 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
90 Update.
91 (ravenscar_thread_target::wait): Update.
92 * procfs.c (class procfs_target) <wait>: Update.
93 (procfs_target::wait): Update.
94 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
95 * obsd-nat.c (obsd_nat_target::wait): Update.
96 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
97 (nto_procfs_target::wait): Update.
98 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
99 * nbsd-nat.c (nbsd_wait): Change type of "options".
100 (nbsd_nat_target::wait): Update.
101 * linux-thread-db.c (class thread_db_target) <wait>: Update.
102 (thread_db_target::wait): Update.
103 * linux-nat.h (class linux_nat_target) <wait>: Update.
104 * linux-nat.c (linux_nat_target::wait): Update.
105 (linux_nat_wait_1): Update.
106 * infrun.c (do_target_wait_1, do_target_wait): Change type of
107 "options".
108 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
109 * inf-ptrace.c (inf_ptrace_target::wait): Update.
110 * go32-nat.c (struct go32_nat_target) <wait>: Update.
111 (go32_nat_target::wait): Update.
112 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
113 * gnu-nat.c (gnu_nat_target::wait): Update.
114 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
115 * fbsd-nat.c (fbsd_nat_target::wait): Update.
116 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
117 * darwin-nat.c (darwin_nat_target::wait): Update.
118 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
119 (bsd_uthread_target::wait): Update.
120 * aix-thread.c (class aix_thread_target) <wait>: Update.
121 (aix_thread_target::wait): Update.
122
123 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
124
125 * compile/compile-object-run.c (create_copied_type_recursive): New
126 function.
127 (compile_object_run): Use new function.
128
129 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
130
131 * NEWS: Mention x86_64 Cygwin core file support.
132
133 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
134
135 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
136 (core_process_module_section): Handle NOTE_INFO_MODULE64.
137
138 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
139
140 * windows-tdep.h: Add prototypes.
141 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
142 (i386_windows_core_pid_to_str): Move and rename ...
143 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
144 (windows_core_pid_to_str): ... and here.
145 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
146
147 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
148 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
149 (amd64_windows_init_abi_common): ... and register.
150
151 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
152
153 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
154 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
155
156 2020-09-18 Pedro Alves <pedro@palves.net>
157
158 PR gdb/26631
159 * thread.c (thread_find_command): Switch inferior before calling
160 target methods.
161
162 2020-09-17 Tom Tromey <tromey@adacore.com>
163
164 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
165 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
166 (tdesc_arch_data_up): New typedef.
167 (tdesc_use_registers, tdesc_data_alloc): Update.
168 (tdesc_data_cleanup): Don't declare.
169 * target-descriptions.c (tdesc_data_alloc): Return a
170 tdesc_arch_data_up.
171 (tdesc_arch_data_deleter::operator()): Rename from
172 tdesc_data_cleanup. Change argument type.
173 (tdesc_use_registers): Change early_data to an rvalue reference.
174 (tdesc_use_registers): Don't use delete.
175 * sparc-tdep.c (sparc32_gdbarch_init): Update.
176 * s390-tdep.c (s390_gdbarch_init): Update.
177 * rx-tdep.c (rx_gdbarch_init): Update.
178 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
179 * riscv-tdep.c (riscv_gdbarch_init): Update.
180 * or1k-tdep.c (or1k_gdbarch_init): Update.
181 * nios2-tdep.c (nios2_gdbarch_init): Update.
182 * nds32-tdep.c (nds32_gdbarch_init): Update.
183 * mips-tdep.c (mips_gdbarch_init): Update.
184 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
185 * m68k-tdep.c (m68k_gdbarch_init): Update.
186 * i386-tdep.c (i386_gdbarch_init): Update.
187 * arm-tdep.c (arm_gdbarch_init): Update.
188 * arc-tdep.c (arc_tdesc_init): Update.
189 (arc_gdbarch_init): Update.
190 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
191
192 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
193
194 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
195 for WOW64 processes.
196
197 2020-09-17 Tom Tromey <tom@tromey.com>
198
199 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
200
201 2020-09-17 Tom Tromey <tom@tromey.com>
202
203 * value.c (preserve_values): Update.
204 * python/py-type.c (save_objfile_types): Update.
205 * guile/scm-type.c (save_objfile_types): Update.
206 * gdbtypes.h (create_copied_types_hash): Return htab_up.
207 * gdbtypes.c (create_copied_types_hash): Return htab_up.
208 * compile/compile-object-run.c (compile_object_run): Update.
209
210 2020-09-17 Tom Tromey <tom@tromey.com>
211
212 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
213 Remove.
214 <m_table>: Now htab_up.
215 * typeprint.c (typedef_hash_table::recursively_update)
216 (typedef_hash_table::add_template_parameters)
217 (typedef_hash_table::typedef_hash_table): Update.
218 (typedef_hash_table::~typedef_hash_table): Remove.
219 (typedef_hash_table::typedef_hash_table)
220 (typedef_hash_table::find_global_typedef)
221 (typedef_hash_table::find_typedef): Update.
222
223 2020-09-17 Tom Tromey <tom@tromey.com>
224
225 * target-descriptions.c (tdesc_use_registers): Use htab_up.
226
227 2020-09-17 Tom Tromey <tom@tromey.com>
228
229 * linespec.c (class decode_compound_collector)
230 <~decode_compound_collector>: Remove.
231 <m_unique_syms>: Now htab_up.
232 (decode_compound_collector::operator ()): Update.
233 (class symtab_collector) <~symtab_collector>: Remove.
234 <m_symtab_table>: Now htab_up.
235 (symtab_collector::operator ()): Update.
236
237 2020-09-17 Tom Tromey <tom@tromey.com>
238
239 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
240 (filename_seen_cache::clear): Update.
241 (~filename_seen_cache): Remove.
242 (filename_seen_cache::seen): Update.
243 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
244 htab_up.
245 <~filename_seen_cache>: Remove.
246 <traverse>: Update.
247
248 2020-09-17 Tom Tromey <tom@tromey.com>
249
250 * completer.c (completion_tracker::discard_completions)
251 (completion_tracker::~completion_tracker)
252 (completion_tracker::maybe_add_completion)
253 (completion_tracker::remove_completion)
254 (completion_tracker::recompute_lowest_common_denominator)
255 (completion_tracker::build_completion_result): Update.
256 * completer.h (class completion_tracker) <have_completions>:
257 Update.
258 <m_entries_hash>: Now htab_up.
259
260 2020-09-17 Tom Tromey <tom@tromey.com>
261
262 * breakpoint.c (ambiguous_names_p): Use htab_up.
263
264 2020-09-17 Tom Tromey <tom@tromey.com>
265
266 * auto-load.c (struct auto_load_pspace_info)
267 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
268 <loaded_script_files, loaded_script_texts>: Change type to
269 htab_up.
270 (~auto_load_pspace_info) Remove.
271 (init_loaded_scripts_info, maybe_add_script_file)
272 (maybe_add_script_text, auto_load_info_scripts): Update.
273
274 2020-09-17 Tom Tromey <tromey@adacore.com>
275
276 * c-exp.y (name_obstack): Now static.
277
278 2020-09-17 Chungyi Chi <demonic@csie.io>
279
280 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
281
282 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
283
284 * breakpoint.h (init_catchpoint): Change int parameter to bool.
285 (add_solib_catchpoint): Likewise.
286 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
287 to bool.
288 (add_solib_catchpoint): Change int parameter/variable to bool.
289 (catch_load_or_unload): Likewise.
290 (init_catchpoint): Likewise.
291 (create_fork_vfork_event_catchpoint): Likewise.
292 (catch_fork_command_1): Likewise.
293 (catch_exec_command_1): Likewise.
294
295 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
296
297 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
298 Change instance_flags to m_instance_flags.
299
300 2020-09-16 Tom Tromey <tromey@adacore.com>
301
302 PR gdb/26598:
303 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
304
305 2020-09-16 John Baldwin <jhb@FreeBSD.org>
306
307 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
308 PL_FLAG_EXEC.
309 (fbsd_nat_target::insert_exec_catchpoint)
310 (fbsd_nat_target::remove_exec_catchpoint): Always define.
311 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
312 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
313
314 2020-09-16 John Baldwin <jhb@FreeBSD.org>
315
316 * configure.ac: Remove check for kinfo_getvmmap().
317 * configure, config.in: Regenerate.
318 * fbsd-nat.c (fbsd_read_mapping): Remove
319 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
320 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
321 kinfo_get_vmmap() are always present.
322
323 2020-09-16 John Baldwin <jhb@FreeBSD.org>
324
325 * fbsd-nat.c: Always include support for
326 TARGET_OBJECT_SIGNAL_INFO.
327
328 2020-09-16 John Baldwin <jhb@FreeBSD.org>
329
330 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
331 sysctl and remove procfs fallback.
332
333 2020-09-16 John Baldwin <jhb@FreeBSD.org>
334
335 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
336 * fbsd-nat.h: Likewise.
337
338 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
339
340 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
341 argument.
342
343 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
344
345 * ada-lang.c (ada_language_data): Delete.
346 (ada_language): Remove references to ada_language_data.
347 * c-lang.c (c_language_data): Delete.
348 (c_language): Remove references to c_language_data.
349 (cplus_language_data): Delete.
350 (cplus_language): Remove references to cplus_language_data.
351 (asm_language_data): Delete.
352 (asm_language): Remove references to asm_language_data.
353 (minimal_language_data): Delete.
354 (minimal_language): Remove references to minimal_language_data.
355 * d-lang.c (d_language_data): Delete.
356 (d_language): Remove references to d_language_data.
357 * f-lang.c (f_language_data): Delete.
358 (f_language): Remove references to f_language_data.
359 * go-lang.c (go_language_data): Delete.
360 (go_language): Remove references to go_language_data.
361 * language.c (unknown_language_data): Delete.
362 (unknown_language): Remove references to unknown_language_data.
363 (auto_language_data): Delete.
364 (auto_language): Remove references to auto_language_data.
365 * language.h (language_data): Delete struct.
366 (language_defn): No longer inherit from language_data.
367 * m2-lang.c (m2_language_data): Delete.
368 (m2_language): Remove references to m2_language_data.
369 * objc-lang.c (objc_language_data): Delete.
370 (objc_language): Remove references to objc_language_data.
371 * opencl-lang.c (opencl_language_data): Delete.
372 (opencl_language): Remove references to opencl_language_data.
373 * p-lang.c (pascal_language_data): Delete.
374 (pascal_language): Remove references to pascal_language_data.
375 * rust-lang.c (rust_language_data): Delete.
376 (rust_language): Remove references to rust_language_data.
377
378 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
379
380 * ada-lang.c (ada_language_data): Remove la_op_print_tab
381 initializer.
382 (ada_language::opcode_print_table): New member function.
383 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
384 (c_language::opcode_print_table): New member function.
385 (cplus_language_data): Remove la_op_print_tab initializer.
386 (cplus_language::opcode_print_table): New member function.
387 (asm_language_data): Remove la_op_print_tab initializer.
388 (asm_language::opcode_print_table): New member function.
389 (minimal_language_data): Remove la_op_print_tab initializer.
390 (minimal_language::opcode_print_table): New member function.
391 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
392 (d_language::opcode_print_table): New member function.
393 * expprint.c (print_subexp_standard): Update call to
394 opcode_print_table.
395 (op_string): Likewise.
396 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
397 (f_language::opcode_print_table): New member function.
398 * go-lang.c (go_language_data): Remove la_op_print_tab
399 initializer.
400 (go_language::opcode_print_table): New member function.
401 * language.c (unknown_language_data): Remove la_op_print_tab
402 initializer.
403 (unknown_language::opcode_print_table): New member function.
404 (auto_language_data): Remove la_op_print_tab initializer.
405 (auto_language::opcode_print_table): New member function.
406 * language.h (language_data): Remove la_op_print_tab field.
407 (language_defn::opcode_print_table): Declare new member function.
408 * m2-lang.c (m2_language_data): Remove la_op_print_tab
409 initializer.
410 (m2_language::opcode_print_table): New member function.
411 * objc-lang.c (objc_language_data): Remove la_op_print_tab
412 initializer.
413 (objc_language::opcode_print_table): New member function.
414 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
415 initializer.
416 (opencl_language::opcode_print_table): New member function.
417 * p-lang.c (pascal_language_data): Remove la_op_print_tab
418 initializer.
419 (pascal_language::opcode_print_table): New member function.
420 * rust-lang.c (rust_language_data): Remove la_op_print_tab
421 initializer.
422 (rust_language::opcode_print_table): New member function.
423
424 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
425
426 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
427 (ada_language::expression_ops): New member function.
428 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
429 (c_language::expression_ops): New member function.
430 (cplus_language_data): Remove la_exp_desc initializer.
431 (cplus_language::expression_ops): New member function.
432 (asm_language_data): Remove la_exp_desc initializer.
433 (asm_language::expression_ops): New member function.
434 (minimal_language_data): Remove la_exp_desc initializer.
435 (minimal_language::expression_ops): New member function.
436 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
437 (d_language::expression_ops): New member function.
438 * eval.c (evaluate_subexp): Update call to expression_ops.
439 * expprint.c (print_subexp): Likewise.
440 (op_name): Likewise.
441 (dump_subexp_body): Likewise.
442 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
443 (f_language::expression_ops): New member function.
444 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
445 (go_language::expression_ops): New member function.
446 * language.c (language_defn::expression_ops): New function.
447 (unknown_language_data): Remove la_exp_desc initializer.
448 (auto_language_data): Likewise.
449 * language.h (language_data): Remove la_exp_desc field.
450 (language_defn::expression_ops): Declare new member function.
451 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
452 (m2_language::expression_ops): New member function.
453 * objc-lang.c (objc_language_data): Remove la_exp_desc
454 initializer.
455 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
456 initializer.
457 (opencl_language::expression_ops): New member function.
458 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
459 * parse.c (operator_length): Update call to expression_ops.
460 (exp_iterate): Likewise.
461 * rust-lang.c (rust_language_data): Remove la_exp_desc
462 initializer.
463 (ruse_language::expression_ops): New member function.
464
465 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
466
467 * ada-lang.c (ada_language_data): Remove la_varobj_ops
468 initializer.
469 (ada_language::varobj_ops): New member function.
470 * c-lang.c (c_language_data): Remove la_varobj_ops
471 initializer.
472 (cplus_language_data): Likewise.
473 (cplus_language::varobj_ops): New member function.
474 (asm_language_data): Remove la_varobj_ops initializer.
475 (minimal_language_data): Likewise.
476 * d-lang.c (d_language_data): Likewise.
477 * f-lang.c (f_language_data): Likewise.
478 * go-lang.c (go_language_data): Likewise.
479 * language.c (language_defn::varobj_ops): New function.
480 (unknown_language_data): Remove la_varobj_ops
481 initializer.
482 (auto_language_data): Likewise.
483 * language.h (language_data): Remove la_varobj_ops field.
484 (language_defn::varobj_ops): Declare new member function.
485 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
486 * objc-lang.c (objc_language_data): Likewise.
487 * opencl-lang.c (opencl_language_data): Likewise.
488 * p-lang.c (pascal_language_data): Likewise.
489 * rust-lang.c (rust_language_data): Likewise.
490 * varobj.c (varobj_create): Update call to varobj_ops.
491 * varobj.h (default_varobj_ops): Delete define.
492
493 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
494
495 * ada-lang.c (ada_language_data): Remove la_macro_expansion
496 initializer.
497 * c-lang.c (c_language_data): Likewise.
498 (c_language::macro_expansion): New member function.
499 (cplus_language_data): Likewise.
500 (cplus_language::macro_expansion): New member function.
501 (asm_language_data): Likewise.
502 (asm_language::macro_expansion): New member function.
503 (minimal_language_data): Likewise.
504 (minimal_language::macro_expansion): New member function.
505 * d-lang.c (d_language_data): Remove la_macro_expansion
506 initializer.
507 * f-lang.c (f_language_data): Likewise.
508 * go-lang.c (go_language_data): Likewise.
509 * language.c (unknown_language_data): Likewise.
510 (auto_language_data): Likewise.
511 * language.h (language_data): Remove la_macro_expansion field.
512 (language_defn::macro_expansion): New member function.
513 * m2-lang.c (m2_language_data): Remove la_macro_expansion
514 initializer.
515 * objc-lang.c (objc_language_data): Likewise.
516 (objc_language::macro_expansion): New member function.
517 * opencl-lang.c (opencl_language_data): Likewise.
518 (opencl_language::macro_expansion): New member function.
519 * p-lang.c (pascal_language_data): Remove la_macro_expansion
520 initializer.
521 * rust-lang.c (rust_language_data): Likewise.
522 * symtab.c (default_collect_symbol_completion_matches_break_on):
523 Update call to macro_expansion.
524
525 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
526
527 * ada-lang.c (ada_language_data): Remove la_array_ordering
528 initializer.
529 * c-lang.c (c_language_data): Likewise.
530 (cplus_language_data): Likewise.
531 (asm_language_data): Likewise.
532 (minimal_language_data): Likewise.
533 * d-lang.c (d_language_data): Likewise.
534 * dwarf2/read.c (read_array_order): Update for call to
535 array_ordering.
536 * f-lang.c (f_language_data): Remove la_array_ordering
537 initializer.
538 (f_language::array_ordering): New member function.
539 * go-lang.c (go_language_data): Remove la_array_ordering
540 initializer.
541 * language.c (unknown_language_data): Likewise.
542 (auto_language_data): Likewise.
543 * language.h (language_data): Delete la_array_ordering field.
544 (language_defn::array_ordering): New member function.
545 * m2-lang.c (m2_language_data): Remove la_array_ordering
546 initializer.
547 * objc-lang.c (objc_language_data): Likewise.
548 * opencl-lang.c (opencl_language_data): Likewise.
549 * p-lang.c (pascal_language_data): Likewise.
550 * rust-lang.c (rust_language_data): Likewise.
551
552 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
553
554 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
555 initializer.
556 * c-lang.c (c_language_data): Likewise.
557 (cplus_language_data): Likewise.
558 (asm_language_data): Likewise.
559 (minimal_language_data): Likewise.
560 * d-lang.c (d_language_data): Likewise.
561 * f-lang.c (f_language_data): Likewise.
562 (f_language::case_sensitivity): New member function.
563 * go-lang.c (go_language_data): Remove la_case_sensitivity
564 initializer.
565 * language.c (enum case_mode): Moved here from language.h.
566 (case_mode): Make static.
567 (show_case_command): Update for case_sensitivity being a method.
568 (set_case_command): Likewise.
569 (set_range_case): Likewise.
570 (unknown_language_data): Remove la_case_sensitivity initializer.
571 (auto_language_data): Likewise.
572 * language.h (case_mode): Delete, move enum declaration to
573 language.c.
574 (language_data): Delete la_case_sensitivity field.
575 (language_defn::case_sensitivity): New member function.
576 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
577 initializer.
578 * objc-lang.c (objc_language_data): Likewise.
579 * opencl-lang.c (opencl_language_data): Likewise.
580 * p-lang.c (pascal_language_data): Likewise.
581 * rust-lang.c (rust_language_data): Likewise.
582
583 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
584
585 * ada-lang.c (ada_language_data): Remove la_range_check
586 initializer.
587 * c-lang.c (c_language_data): Likewise.
588 (cplus_language_data): Likewise.
589 (asm_language_data): Likewise.
590 (minimal_language_data): Likewise.
591 * d-lang.c (d_language_data): Likewise.
592 * f-lang.c (f_language_data): Likewise.
593 (f_language::range_checking_on_by_default): New member function.
594 * go-lang.c (go_language_data): Remove la_range_check initializer.
595 * language.c (enum range_mode): Moved here from language.h.
596 (range_mode): Made static.
597 (show_range_command): Update to use
598 range_checking_on_by_default.
599 (set_range_command): Likewise.
600 (set_range_case): Likewise.
601 (unknown_language_data): Remove la_range_check initializer.
602 (auto_language_data): Likewise.
603 * language.h (range_mode): Delete. Enum definition moved to
604 language.c.
605 (language_data): Remove la_range_check field.
606 (language_defn::range_checking_on_by_default): New member
607 function.
608 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
609 (m2_language::range_checking_on_by_default): New member function.
610 * objc-lang.c (objc_language_data): Remove la_range_check
611 initializer.
612 * opencl-lang.c (opencl_language_data): Likewise.
613 * p-lang.c (pascal_language_data): Likewise.
614 (pascal_language::range_checking_on_by_default): New member
615 function.
616 * rust-lang.c (rust_language_data): Remove la_range_check
617 initializer.
618 (rust_language::range_checking_on_by_default): New member
619 function.
620
621 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
622
623 * dwarf2/read.c (dwarf2_physname): Remove special case for
624 language_go.
625 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
626 member function.
627
628 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
629
630 * ada-lang.c (ada_language_data): Remove
631 la_store_sym_names_in_linkage_form_p initializer.
632 (ada_language::store_sym_names_in_linkage_form_p): New member
633 function.
634 * c-lang.c (c_language_data): Remove
635 la_store_sym_names_in_linkage_form_p initializer.
636 (c_language::store_sym_names_in_linkage_form_p): New member
637 function.
638 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
639 initializer.
640 (asm_language_data): Likewise.
641 (asm_language::store_sym_names_in_linkage_form_p): New member
642 function.
643 (minimal_language_data): Remove
644 la_store_sym_names_in_linkage_form_p initializer.
645 (minimal_language::store_sym_names_in_linkage_form_p): New member
646 function.
647 * d-lang.c (d_language_data): Remove
648 la_store_sym_names_in_linkage_form_p initializer.
649 * dwarf2/read.c (dwarf2_physname): Update call to
650 store_sym_names_in_linkage_form_p.
651 * f-lang.c (f_language_data): Remove
652 la_store_sym_names_in_linkage_form_p initializer.
653 * go-lang.c (go_language_data): Remove
654 la_store_sym_names_in_linkage_form_p initializer.
655 * language.c (unknown_language_data): Remove
656 la_store_sym_names_in_linkage_form_p initializer.
657 (unknown_language::store_sym_names_in_linkage_form_p): New member
658 function.
659 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
660 initializer.
661 (auto_language::store_sym_names_in_linkage_form_p): New member
662 function.
663 * language.h (language_data): Remove
664 la_store_sym_names_in_linkage_form_p member variable.
665 (language_defn::store_sym_names_in_linkage_form_p): New member
666 function.
667 * m2-lang.c (m2_language_data): Remove
668 la_store_sym_names_in_linkage_form_p initializer.
669 * objc-lang.c (objc_language_data): Likewise.
670 * opencl-lang.c (opencl_language_data): Likewise.
671 * p-lang.c (pascal_language_data): Likewise.
672 * rust-lang.c (rust_language_data): Likewise.
673
674 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
675
676 * ada-lang.c (ada_language_data): Remove string_lower_bound
677 initializer.
678 * c-lang.c (c_language_data): Likewise.
679 (cplus_language_data): Likewise.
680 (asm_language_data): Likewise.
681 (minimal_language_data): Likewise.
682 * d-lang.c (d_language_data): Likewise.
683 * f-lang.c (f_language_data): Likewise.
684 * go-lang.c (go_language_data): Likewise.
685 * language.c (unknown_language_data): Likewise.
686 (auto_language_data): Likewise.
687 * language.h (language_data): Remove string_lower_bound field.
688 (language_defn::string_lower_bound): New member function.
689 * m2-lang.c (m2_language_data): Remove string_lower_bound
690 initializer.
691 (m2_language::string_lower_bound): New member function.
692 * objc-lang.c (objc_language_data): Remove string_lower_bound
693 initializer.
694 * opencl-lang.c (opencl_language_data): Likewise.
695 * p-lang.c (pascal_language_data): Likewise.
696 * rust-lang.c (rust_language_data): Likewise.
697 * valops.c (value_cstring): Update call to string_lower_bound.
698 (value_string): Likewise.
699 * value.c (allocate_repeated_value): Likewise.
700
701 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
702
703 * valops.c (value_repeat): Fix incorrect argument name in comment.
704
705 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
706
707 * ada-lang.c (ada_language_data): Remove c_style_arrays
708 initializer.
709 (ada_language::c_style_arrays_p): New member fuction.
710 * c-lang.c (c_language_data): Remove c_style_arrays
711 initializer.
712 (cplus_language_data): Likewise.
713 (asm_language_data): Likewise.
714 (minimal_language_data): Likewise.
715 * d-lang.c (d_language_data): Likewise.
716 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
717 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
718 (f_language::c_style_arrays_p): New member function.
719 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
720 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
721 * language.c (unknown_language_data): Remove c_style_arrays
722 initializer.
723 (auto_language_data): Likewise.
724 * language.h (language_data): Remove c_style_arrays field.
725 (language_defn::c_style_arrays_p): New member function.
726 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
727 (m2_language::c_style_arrays_p): New member function.
728 * objc-lang.c (objc_language_data): Remove c_style_arrays
729 initializer.
730 * opencl-lang.c (opencl_language_data): Likewise.
731 * p-lang.c (pascal_language_data): Likewise.
732 * rust-lang.c (rust_language_data): Likewise.
733 * valarith.c (value_subscript): Update call to c_style_arrays_p,
734 and update local variable to a bool.
735 * valops.c (value_cast): Update call to c_style_arrays_p.
736 (value_array): Likewise.
737 * value.c (coerce_array): Likewise.
738
739 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
740
741 * ada-lang.c (ada_language_data): Remove la_language initializer.
742 * c-lang.c (c_language_data): Likewise.
743 (cplus_language_data): Likewise.
744 (asm_language_data): Likewise.
745 (minimal_language_data): Likewise.
746 * d-lang.c (d_language_data): Likewise.
747 * f-lang.c (f_language_data): Likewise.
748 * go-lang.c (go_language_data): Likewise.
749 * language.c (unknown_language_data): Likewise.
750 (auto_language_data): Likewise.
751 * language.h (language_data): Remove la_language field.
752 (language_defn::language_defn): Initialise la_language field.
753 (language_defn::la_language): New member variable.
754 * m2-lang.c (m2_language_data): Remove la_language field.
755 * objc-lang.c (objc_language_data): Likewise.
756 * opencl-lang.c (opencl_language_data): Likewise.
757 * p-lang.c (pascal_language_data): Likewise.
758 * rust-lang.c (rust_language_data): Likewise.
759
760 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
761
762 * ada-lang.c (ada_extensions): Delete, moved into
763 ada_language::filename_extensions.
764 (ada_language_data): Remove la_filename_extensions initializer.
765 (ada_language::filename_extensions): New member function.
766 * c-lang.c (c_extensions): Delete, moved into
767 c_language::filename_extensions.
768 (c_language_data): Remove la_filename_extensions initializer.
769 (c_language::filename_extensions): New member function.
770 (cplus_extensions): Delete, moved into
771 cplus_language::filename_extensions.
772 (cplus_language_data): Remove la_filename_extensions initializer.
773 (cplus_language::filename_extensions): New member function.
774 (asm_extensions): Delete, moved into
775 asm_language::filename_extensions.
776 (asm_language_data): Remove la_filename_extensions initializer.
777 (asm_language::filename_extensions): New member function.
778 (minimal_language_data): Remove la_filename_extensions
779 initializer.
780 * d-lang.c (d_extensions): Delete, moved into
781 d_language::filename_extensions.
782 (d_language_data): Remove la_filename_extensions initializer.
783 (d_language::filename_extensions): New member function.
784 * f-lang.c (f_extensions): Delete, moved into
785 f_language::filename_extensions.
786 (f_language_data): Remove la_filename_extensions initializer.
787 (f_language::filename_extensions): New member function.
788 * go-lang.c (go_language_data): Remove la_filename_extensions
789 initializer.
790 * language.c (add_set_language_command): Update now that
791 filename_extensions returns a vector.
792 (unknown_language_data): Remove la_filename_extensions
793 initializer.
794 (auto_language_data): Likewise.
795 * language.h (language_data): Remove la_filename_extensions field.
796 (language_defn::filename_extensions): New member function.
797 * m2-lang.c (m2_language_data): Remove la_filename_extensions
798 initializer.
799 * objc-lang.c (objc_extensions): Delete, moved into
800 objc_language::filename_extensions.
801 (objc_language_data): Remove la_filename_extensions initializer.
802 (objc_language::filename_extensions): New member function.
803 * opencl-lang.c (opencl_language_data): Remove
804 la_filename_extensions initializer.
805 * p-lang.c (pascal_extensions): Delete, moved into
806 pascal_language::filename_extensions.
807 (pascal_language_data): Remove la_filename_extensions initializer.
808 (pascal_language::filename_extensions): New member function.
809 * rust-lang.c (rust_extensions): Delete, moved into
810 rust_language::filename_extensions.
811 (rust_language_data): Remove la_filename_extensions initializer.
812 (rust_language::filename_extensions): New member function.
813 * symfile.c (add_filename_language): Add new assert.
814
815 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
816
817 * ada-lang.c (ada_language_data): Remove la_name and
818 la_natural_name initializers.
819 (ada_language::name): New member function.
820 (ada_language::natural_name): New member function.
821 * c-lang.c (c_language_data): Remove la_name and
822 la_natural_name initializers.
823 (c_language::name): New member function.
824 (c_language::natural_name): New member function.
825 (cplus_language_data): Remove la_name and
826 la_natural_name initializers.
827 (cplus_language::name): New member function.
828 (cplus_language::natural_name): New member function.
829 (asm_language_data): Remove la_name and
830 la_natural_name initializers.
831 (asm_language::name): New member function.
832 (asm_language::natural_name): New member function.
833 (minimal_language_data): Remove la_name and
834 la_natural_name initializers.
835 (minimal_language::name): New member function.
836 (minimal_language::natural_name): New member function.
837 * compile/compile.c (compile_to_object): Update call to
838 lanugage_defn::name.
839 * d-lang.c (d_language_data): Remove la_name and
840 la_natural_name initializers.
841 (d_language::name): New member function.
842 (d_language::natural_name): New member function.
843 * expprint.c (print_subexp_standard): Update call to
844 language_defn::name.
845 (dump_raw_expression): Likewise
846 (dump_prefix_expression): Likewise.
847 * f-lang.c (f_language_data): Remove la_name and
848 la_natural_name initializers.
849 (f_language::name): New member function.
850 (f_language::natural_name): New member function.
851 * go-lang.c (go_language_data): Remove la_name and
852 la_natural_name initializers.
853 (go_language::name): New member function.
854 (go_language::natural_name): New member function.
855 * language.c (show_language_command): Update call to
856 language_defn::name.
857 (set_language_command): Likewise.
858 (language_enum): Likewise.
859 (language_str): Likewise.
860 (add_set_language_command): Likewise, use
861 language_defn::natural_name in the doc string.
862 (unknown_language_data): Remove la_name and
863 la_natural_name initializers.
864 (unknown_language::name): New member function.
865 (unknown_language::natural_name): New member function.
866 (auto_language_data): Remove la_name and
867 la_natural_name initializers.
868 (auto_language::name): New member function.
869 (auto_language::natural_name): New member function.
870 (language_lookup_primitive_type_as_symbol): Update call to
871 language_defn::name.
872 * language.h (language_data): Remove la_name and la_natural_name
873 member variables.
874 (language_defn::name): New member function.
875 (language_defn::natural_name): New member function.
876 * m2-lang.c (m2_language_data): Remove la_name and
877 la_natural_name initializers.
878 (m2_language::name): New member function.
879 (m2_language::natural_name): New member function.
880 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
881 language_defn::natural_name.
882 * objc-lang.c (objc_language_data): Remove la_name and
883 la_natural_name initializers.
884 (objc_language::name): New member function.
885 (objc_language::natural_name): New member function.
886 * opencl-lang.c (opencl_language_data): Remove la_name and
887 la_natural_name initializers.
888 (opencl_language::name): New member function.
889 (opencl_language::natural_name): New member function.
890 * p-lang.c (pascal_language_data): Remove la_name and
891 la_natural_name initializers.
892 (pascal_language::name): New member function.
893 (pascal_language::natural_name): New member function.
894 * rust-lang.c (rust_language_data): Remove la_name and
895 la_natural_name initializers.
896 (rust_language::name): New member function.
897 (rust_language::natural_name): New member function.
898 * symtab.c (lookup_language_this): Update call to
899 language_defn::name.
900
901 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
902
903 * ada-lang.c (ada_language_data): Remove la_name_of_this
904 initializer.
905 * ax-gdb.c (gen_expr): Update call to name_of_this.
906 * c-exp.y (classify_name): Likewise.
907 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
908 (cplus_language_data): Likewise.
909 (cplus_language::name_of_this): New member function.
910 (asm_language_data): Remove la_name_of_this initializer.
911 (minimal_language_data): Likewise.
912 * d-lang.c (d_language_data): Likewise.
913 (d_language::name_of_this): New member function.
914 * expprint.c (print_subexp_standard): Update call to name_of_this.
915 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
916 * go-lang.c (go_language_data): Likewise.
917 * language.c (unknown_language_data): Likewise.
918 (unknown_language::name_of_this): New member function.
919 (auto_language_data): Remove la_name_of_this initializer.
920 (auto_language::name_of_this): New member function.
921 * language.h (language_data): Delete la_name_of_this member
922 variable.
923 (language_defn::name_of_this): New member function.
924 * m2-lang.c (m2_language_data): Remove la_name_of_this
925 initializer.
926 * objc-lang.c (objc_language_data): Likewise.
927 (objc_language::name_of_this): New member function.
928 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
929 initializer.
930 * p-lang.c (pascal_language_data): Likewise.
931 (pascal_language::name_of_this): New member function.
932 * rust-lang.c (rust_language_data): Remove la_name_of_this
933 initializer.
934 * symtab.c (lookup_language_this): Update call to name_of_this.
935 (lookup_symbol_aux): Likewise.
936 * valops.c (value_of_this): Likewise.
937
938 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
939
940 * ada-lang.c (ada_language_data): Remove
941 la_struct_too_deep_ellipsis initializer.
942 (ada_language::struct_too_deep_ellipsis): New member function.
943 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
944 initializer.
945 (cplus_language_data): Likewise.
946 (asm_language_data): Likewise.
947 (minimal_language_data): Likewise.
948 * cp-valprint.c (cp_print_value): Update call to
949 struct_too_deep_ellipsis.
950 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
951 initializer.
952 * f-lang.c (f_language_data): Likewise.
953 (f_language::struct_too_deep_ellipsis): New member function.
954 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
955 initializer.
956 * language.c (unknown_language_data): Likewise.
957 (auto_language_data): Likewise.
958 * language.h (language_data): Delete la_struct_too_deep_ellipsis
959 member variable.
960 (language_defn::struct_too_deep_ellipsis): New member function.
961 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
962 initializer.Q
963 * objc-lang.c (objc_language_data): Likewise.
964 * opencl-lang.c (opencl_language_data): Likewise.
965 * p-lang.c (pascal_language_data): Likewise.
966 * rust-lang.c (rust_language_data): Likewise.
967 * valprint.c (val_print_check_max_depth): Update call to
968 struct_too_deep_ellipsis.
969
970 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
971
972 * MAINTAINERS (Write After Approval): Add myself.
973
974 2020-09-15 Tom Tromey <tom@tromey.com>
975
976 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
977 Remove.
978
979 2020-09-15 Tom Tromey <tom@tromey.com>
980
981 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
982 and TYPE_CODE_METHODPTR cases.
983 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
984 (c_value_print_inner): Update.
985 * valprint.c (generic_value_print_memberptr): New function, from
986 c_value_print_memberptr.
987 (generic_value_print): Use it. Call cplus_print_method_ptr.
988
989 2020-09-15 Tom Tromey <tromey@adacore.com>
990
991 * python/python-internal.h (PyInt_FromLong): Remove define.
992 * python/py-value.c (convert_value_from_python): Use
993 gdb_py_object_from_longest.
994 * python/py-type.c (typy_get_code): Use
995 gdb_py_object_from_longest.
996 * python/py-symtab.c (salpy_get_line): Use
997 gdb_py_object_from_longest.
998 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
999 gdb_py_object_from_longest.
1000 * python/py-record.c (recpy_gap_reason_code): Use
1001 gdb_py_object_from_longest.
1002 * python/py-record-btrace.c (recpy_bt_insn_size)
1003 (recpy_bt_func_level, btpy_list_count): Use
1004 gdb_py_object_from_longest.
1005 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1006 gdb_py_object_from_longest. Fix error handling.
1007 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1008 gdb_py_object_from_longest.
1009 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1010 gdb_py_object_from_longest.
1011 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1012 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1013 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1014
1015 2020-09-15 Tom Tromey <tromey@adacore.com>
1016
1017 * python/python.c (gdbpy_parameter_value): Use
1018 gdb_py_object_from_ulongest.
1019
1020 2020-09-15 Tom Tromey <tromey@adacore.com>
1021
1022 * python/py-infevents.c (create_register_changed_event_object):
1023 Use gdb_py_object_from_longest.
1024 * python/py-exitedevent.c (create_exited_event_object): Use
1025 gdb_py_object_from_longest.
1026
1027 2020-09-15 Tom Tromey <tromey@adacore.com>
1028
1029 * python/python.c (gdbpy_parameter_value): Use
1030 gdb_py_object_from_longest.
1031 * python/py-type.c (convert_field, typy_range): Use
1032 gdb_py_object_from_longest.
1033 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1034 gdb_py_object_from_longest.
1035 * python/py-lazy-string.c (stpy_get_length): Use
1036 gdb_py_object_from_longest.
1037 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1038 gdb_py_object_from_longest.
1039 * python/py-infevents.c (create_memory_changed_event_object): Use
1040 gdb_py_object_from_longest.
1041 * python/py-inferior.c (infpy_get_num): Use
1042 gdb_py_object_from_longest.
1043 (infpy_get_pid): Likewise.
1044
1045 2020-09-15 Tom Tromey <tromey@adacore.com>
1046
1047 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1048 defines.
1049 * python/py-value.c (valpy_long): Use
1050 gdb_py_object_from_ulongest.
1051 * python/py-symtab.c (salpy_get_pc): Use
1052 gdb_py_object_from_ulongest.
1053 (salpy_get_last): Likewise.
1054 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1055 gdb_py_object_from_ulongest.
1056 * python/py-lazy-string.c (stpy_get_address): Use
1057 gdb_py_object_from_ulongest.
1058 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1059 * python/py-arch.c (archpy_disassemble): Use
1060 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1061 error handling.
1062
1063 2020-09-15 Tom Tromey <tromey@adacore.com>
1064
1065 * python/python-internal.h (gdb_py_long_from_longest): Remove
1066 defines.
1067 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1068 * python/py-type.c (convert_field, typy_get_sizeof): Use
1069 gdb_py_object_from_longest.
1070 * python/py-record-btrace.c (btpy_list_index): Use
1071 gdb_py_object_from_longest.
1072
1073 2020-09-15 Tom Tromey <tromey@adacore.com>
1074
1075 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1076 * python/py-record.c (recpy_element_number): Use
1077 gdb_py_object_from_longest.
1078 (recpy_gap_number): Likewise.
1079
1080 2020-09-15 Tom Tromey <tromey@adacore.com>
1081
1082 * top.c (ui::ui): Update.
1083 (highest_ui_num): Remove.
1084 * top.h (struct ui) <num>: Remove.
1085
1086 2020-09-15 Tom Tromey <tromey@adacore.com>
1087
1088 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1089 * ui-style.c (ansi_regex_text): Now array.
1090 * rust-exp.y (number_regex_text): Now array.
1091 * linespec.c (linespec_quote_characters): Now array.
1092 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1093 Now arrays.
1094
1095 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1096
1097 * debuginfod-support.c (debuginfod_client_deleter): New.
1098 (debuginfod_client_up): New.
1099 (debuginfod_init): Return debuginfod_client_up.
1100 (debuginfod_source_query): Adjust.
1101 (debuginfod_debuginfo_query): Adjust.
1102
1103 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1104
1105 * debuginfod-support.c (debuginfod_source_query): Use
1106 make_unique_xstrdup.
1107
1108 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1109
1110 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1111 with `type::instance_flags`.
1112
1113 2020-09-14 Michael Mullin <masmullin@gmail.com>
1114
1115 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1116 Remove baton parameter.
1117
1118 2020-09-14 Pedro Alves <pedro@palves.net>
1119
1120 * Makefile.in (SELFTESTS_SRCS): Add
1121 unittests/enum-flags-selftests.c.
1122 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1123 btrace_function_flags instead of enum btrace_function_flag.
1124 * compile/compile-c-types.c (convert_qualified): Use
1125 enum_flags::raw.
1126 * compile/compile-cplus-symbols.c (convert_one_symbol)
1127 (convert_symbol_bmsym):
1128 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1129 (compile_cplus_convert_struct_or_union_methods)
1130 (compile_cplus_instance::convert_qualified_base):
1131 * go-exp.y (parse_string_or_char): Add cast to int.
1132 * unittests/enum-flags-selftests.c: New file.
1133 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1134 type to btrace_thread_flags from btrace_thread_flag.
1135 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1136 local's type to btrace_thread_flags from btrace_thread_flag. Add
1137 cast in DEBUG call.
1138
1139 2020-09-14 Pedro Alves <pedro@palves.net>
1140
1141 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1142 * gdbtypes.c (address_space_name_to_int): Rename to ...
1143 (address_space_name_to_type_instance_flags): ... this.
1144 (address_space_int_to_name): Rename to ...
1145 (address_space_type_instance_flags_to_name): ... this.
1146 * gdbtypes.h (address_space_name_to_int): Rename to ...
1147 (address_space_name_to_type_instance_flags): ... this.
1148 (address_space_int_to_name): Rename to ...
1149 (address_space_type_instance_flags_to_name): ... this.
1150 * type-stack.c (type_stack::insert): Adjust to rename.
1151 * type-stack.h (type_stack::insert): Likewise.
1152
1153 2020-09-14 Pedro Alves <pedro@palves.net>
1154 Andrew Burgess <andrew.burgess@embecosm.com>
1155
1156 * avr-tdep.c (avr_address_class_type_flags): Return
1157 type_instance_flags.
1158 (avr_address_class_type_flags_to_name): Take a
1159 type_instance_flags.
1160 (avr_address_class_name_to_type_flags): Return bool and take a
1161 type_instance_flags.
1162 * d-lang.c (build_d_types): Use type::set_instance_flags.
1163 * ft32-tdep.c (ft32_address_class_type_flags): Return
1164 type_instance_flags.
1165 (ft32_address_class_type_flags_to_name): Take a
1166 type_instance_flags.
1167 (ft32_address_class_name_to_type_flags): Return bool and take a
1168 type_instance_flags.
1169 (ft32_gdbarch_init): Use type::set_instance_flags.
1170 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1171 * gdbarch.h, gdbarch.c: Regenerate.
1172 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1173 (address_class_name_to_type_flags): Use type_instance_flags and
1174 bool.
1175 * gdbtypes.c (address_space_name_to_int)
1176 (address_space_int_to_name, make_qualified_type): Use
1177 type_instance_flags.
1178 (make_qualified_type): Use type_instance_flags and
1179 type::set_instance_flags.
1180 (make_type_with_address_space, make_cv_type, make_vector_type)
1181 (check_typedef): Use type_instance_flags.
1182 (recursive_dump_type): Cast type_instance_flags to unsigned for
1183 printing.
1184 (copy_type_recursive): Use type::set_instance_flags.
1185 (gdbtypes_post_init): Use type::set_instance_flags.
1186 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1187 <m_instance_flags>: ... this.
1188 <instance_flags, set_instance_flags>: New methods.
1189 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1190 (SET_TYPE_INSTANCE_FLAGS): New.
1191 (address_space_name_to_int, address_space_int_to_name)
1192 (make_type_with_address_space): Pass flags using
1193 type_instance_flags instead of int.
1194 * stabsread.c (cleanup_undefined_types_noname): Use
1195 type::set_instance_flags.
1196 * s390-tdep.c (s390_address_class_type_flags): Return
1197 type_instance_flags.
1198 (s390_address_class_type_flags_to_name): Take a
1199 type_instance_flags.
1200 (s390_address_class_name_to_type_flags): Return bool and take a
1201 type_instance_flags.
1202 * type-stack.c (type_stack::follow_types): Use
1203 type_instance_flags.
1204 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1205
1206 2020-09-14 Tom Tromey <tromey@adacore.com>
1207
1208 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1209 * x86-tdep.c (x86_is_thunk_register_name)
1210 (x86_in_indirect_branch_thunk): Update.
1211 * sparc64-tdep.c (sparc64_fpu_register_names)
1212 (sparc64_cp0_register_names, sparc64_register_names)
1213 (sparc64_pseudo_register_names): Now const.
1214 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1215 cp0_registers_num>: Now const.
1216 * sparc-tdep.c (sparc_core_register_names)
1217 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1218 (sparc32_pseudo_register_names): Now const.
1219 (validate_tdesc_registers): Update.
1220 * rust-lang.c (rust_extensions): Now const.
1221 * p-lang.c (p_extensions): Now const.
1222 * objc-lang.c (objc_extensions): Now const.
1223 * nto-tdep.c (nto_thread_state_str): Now const.
1224 * moxie-tdep.c (moxie_register_names): Now const.
1225 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1226 Now const.
1227 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1228 (mips_linux_reg_names): Now const.
1229 (mips_gdbarch_init): Update.
1230 * microblaze-tdep.c (microblaze_register_names): Now const.
1231 * m68k-tdep.c (m68k_register_names): Now const.
1232 * m32r-tdep.c (m32r_register_names): Now const.
1233 * ia64-tdep.c (ia64_register_names): Now const.
1234 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1235 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1236 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1237 ymm_avx512_register_names, pkeys_register_names>: Now const.
1238 * i386-tdep.c (i386_register_names, i386_zmm_names)
1239 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1240 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1241 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1242 * f-lang.c (f_extensions): Now const.
1243 * d-lang.c (d_extensions): Now const.
1244 * csky-tdep.c (csky_register_names): Now const.
1245 * charset.c (default_charset_names, charset_enum): Now const.
1246 (_initialize_charset): Update.
1247 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1248 const.
1249 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1250 (bsd_uthread_solib_loaded): Update.
1251 (bsd_uthread_state): Now const.
1252 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1253 (amd64_ymm_avx512_names, amd64_ymmh_names)
1254 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1255 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1256 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1257 (amd64_dword_names): Now const.
1258 * agent.c (can_use_agent_enum): Now const.
1259 * ada-tasks.c (task_states, long_task_states): Now const.
1260 * ada-lang.c (known_runtime_file_name_patterns)
1261 (known_auxiliary_function_name_patterns, attribute_names)
1262 (standard_exc, ada_extensions): Now const.
1263
1264 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1265
1266 * bcache.h (struct bcache) <bcache>: Remove constructor.
1267 <m_hash_function, m_compare_function>: Remove.
1268 <~bcache>: Make virtual.
1269 <compare>: Remove static method, introduce virtual method.
1270 <default_hash>: Remove.
1271 <hash>: New virtual method.
1272 * bcache.c (bcache::expand_hash_table): Update.
1273 (bcache::insert): Update.
1274 (bcache::hash): New.
1275 (bcache::compare): Update comment and parameter names.
1276 * gdbtypes.c (types_deeply_equal): Update.
1277 * psymtab.h (struct psymbol_bcache): New struct.
1278 (class psymtab_storage) <psymtab_storage>: Make default.
1279 <psymbol_cache>: Change type to psymbol_bcache.
1280 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1281 (psymbol_hash): Change to...
1282 (psymbol_bcache::hash): ... this.
1283 (psymbol_compare): Change to...
1284 (psymbol_bcache::compare): ... this.
1285
1286 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1287
1288 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1289 checking for initial lwp.
1290
1291 2020-09-14 Tom Tromey <tromey@adacore.com>
1292
1293 * m68k-tdep.c (m68k_extract_return_value): Use
1294 pointer_result_regnum.
1295 (m68k_store_return_value): Likewise.
1296 (m68k_reg_struct_return_p): Handle vectors and arrays.
1297 (m68k_return_value): Handle arrays.
1298 (m68k_svr4_return_value): Fix single-element aggregate handling.
1299 Handle long double. Adjust for embedded ABI.
1300 (m68k_svr4_init_abi): Set pointer_result_regnum.
1301 (m68k_embedded_init_abi): New function.
1302 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1303 (m68k_osabi_sniffer): New function.
1304 (_initialize_m68k_tdep): Register osabi sniffer.
1305 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1306 member.
1307
1308 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1309
1310 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1311 with gdb::unique_xmalloc_ptr<char>.
1312
1313 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1314
1315 * xml-support.h (xml_fetch_another): Change type to be a
1316 function_view.
1317 (xml_process_xincludes): Remove baton parameter.
1318 (xml_fetch_content_from_file): Change baton parameter to
1319 dirname.
1320 * xml-support.c (struct xinclude_parsing_data)
1321 <xinclude_parsing_data>: Remove baton parameter.
1322 <fetcher_baton>: Remove.
1323 (xinclude_start_include): Adjust.
1324 (xml_process_xincludes): Adjust.
1325 (xml_fetch_content_from_file): Replace baton parameter with
1326 dirname.
1327 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1328 (xml_init_syscalls_info): Use a lambda.
1329 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1330 (file_read_description_xml): Use a lambda.
1331 (fetch_available_features_from_target): Change baton parameter
1332 to target_ops.
1333 (target_read_description_xml): Use a lambda.
1334 (target_fetch_description_xml): Use a lambda.
1335 (string_read_description_xml): Update.
1336
1337 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1338
1339 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1340 uses with type::endianity_is_not_default.
1341
1342 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1343
1344 * gdbtypes.h (struct type) <endianity_is_not_default,
1345 set_endianity_is_not_default>: New methods.
1346 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1347 type::endianity_is_not_default, change all write call sites to
1348 use type::set_endianity_is_not_default.
1349
1350 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1351
1352 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1353 uses with type::is_fixed_instance.
1354
1355 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1356
1357 * gdbtypes.h (struct type) <is_fixed_instance,
1358 set_is_fixed_instance>: New methods.
1359 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1360 write call sites to use type::set_is_fixed_instance.
1361
1362 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1363
1364 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1365 uses with type::is_gnu_ifunc.
1366
1367 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1368
1369 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1370 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1371 use type::set_is_gnu_ifunc.
1372
1373 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1374
1375 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1376 uses with type::stub_is_supported.
1377
1378 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1379
1380 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1381 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1382 use type::set_stub_is_supported.
1383
1384 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1385
1386 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1387 uses with type::is_vector.
1388
1389 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1390
1391 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1392 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1393 use type::set_is_vector.
1394
1395 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1396
1397 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1398 uses with type::has_varargs.
1399
1400 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1401
1402 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1403 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1404 use type::set_has_varargs.
1405
1406 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1407
1408 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1409 uses with type::is_prototyped.
1410
1411 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1412
1413 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1414 New methods.
1415 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1416 call sites to use type::set_is_prototyped.
1417
1418 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1419
1420 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1421 uses with type::target_is_stub.
1422
1423 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1424
1425 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1426 New methods.
1427 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1428 sites to use type::set_target_is_stub.
1429
1430 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1431
1432 * gdbtypes.h (TYPE_STUB): Remove, replace all
1433 uses with type::is_stub.
1434
1435 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1436
1437 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1438 (TYPE_STUB): Use type::is_stub, change all write call sites to
1439 use type::set_is_stub.
1440
1441 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1442
1443 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1444 type::has_no_signedness.
1445
1446 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1447
1448 * gdbtypes.h (struct type) <has_no_signedness,
1449 set_has_no_signedness>: New methods.
1450 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1451 call sites to use type::set_has_no_signedness.
1452
1453 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1454
1455 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1456 type::is_unsigned.
1457
1458 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1459
1460 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1461 methods.
1462 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1463 sites to use type::set_is_unsigned.
1464
1465 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1466 Adam Renquinha <arenquinha@cimeq.qc.ca>
1467
1468 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1469 pointer and stack frame offset when unwinding.
1470
1471 2020-09-13 Pedro Alves <pedro@palves.net>
1472
1473 * NEWS: Document "-break-insert --qualified".
1474 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1475
1476 2020-09-13 Pedro Alves <pedro@palves.net>
1477
1478 * linespec.c (classify_mtype, compare_msyms): Delete.
1479 (search_minsyms_for_name): Remove classification logic. Instead
1480 filter out trampoline symbols if we also found an external
1481 function of the same name.
1482
1483 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1484
1485 * NEWS: Create a new section for the next release branch.
1486 Rename the section of the current branch, now that it has
1487 been cut.
1488
1489 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1490
1491 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1492 * version.in: Bump version to 11.0.50.DATE-git.
1493
1494 2020-09-12 Joel Brobecker <brobecker@adacore.com>
1495
1496 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1497
1498 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1499 Felix Willgerodt <Felix.Willgerodt@intel.com>
1500
1501 * gdbarch.sh: Added bfloat16 type.
1502 * gdbarch.c: Regenerated.
1503 * gdbarch.h: Regenerated.
1504 * gdbtypes.c (floatformats_bfloat16): New struct.
1505 (gdbtypes_post_init): Add builtin_bfloat16.
1506 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1507 (floatformats_bfloat16): New struct.
1508 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1509 (i386_ymm_type): Add field "v16_bfloat16"
1510 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1511 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1512 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1513 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1514 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1515 * features/i386/64bit-avx512.c: Regenerated.
1516 * features/i386/64bit-sse.xml: Add bfloat16 type.
1517 * features/i386/64bit-sse.c: Regenerated.
1518
1519 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1520
1521 * i386-tdep.c (i386_zmm_type): Fix field names.
1522 (i386_ymm_type): Fix field names.
1523
1524 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1525
1526 * breakpoint.c: Fix typo in the help message of the
1527 "set breakpoint condition-evaluation" command.
1528
1529 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1530
1531 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1532 * (nbsd_nat_target::pid_to_exec_file)
1533 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1534 (nbsd_nat_target::post_startup_inferior)
1535 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1536 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1537 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1538 * (nbsd_thread_lister): Remove.
1539
1540 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1541
1542 * fork-inferior.c (startup_inferior): Avoid double free.
1543
1544 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1545
1546 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1547 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1548
1549 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1550
1551 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1552 * netbsd-nat.c: Include <sys/ptrace.h>.
1553 * (netbsd_nat::enable_proc_events): Add.
1554
1555 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1556
1557 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1558 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1559 (netbsd_nat::for_each_thread): Add.
1560 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1561 "gdbsupport/common-debug.h".
1562 * (netbsd_nat::netbsd_thread_lister)
1563 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1564 (netbsd_nat::for_each_thread): Add.
1565
1566 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1567
1568 * netbsd-nat.h: Include <unistd.h>.
1569 * (netbsd_nat::pid_to_exec_file): Add.
1570 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1571 * (netbsd_nat::pid_to_exec_file) Add.
1572
1573 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1574
1575 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1576
1577 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1578
1579 * netbsd-nat.h: New file.
1580 * netbsd-nat.c: Likewise.
1581
1582 2020-09-09 Tom Tromey <tromey@adacore.com>
1583
1584 * ada-lang.c (remove_extra_symbols): Do not increment when
1585 removing an element
1586
1587 2020-09-08 Tom Tromey <tromey@adacore.com>
1588
1589 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1590
1591 2020-09-08 Tom Tromey <tromey@adacore.com>
1592
1593 PR win32/25302:
1594 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1595 (gdb_bfd_init_data): New function.
1596 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1597
1598 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1599
1600 * infrun.c (fetch_inferior_event): Use
1601 `switch_to_target_no_thread` to switch the target.
1602
1603 2020-09-06 Tom Tromey <tom@tromey.com>
1604
1605 * symfile.h (dwarf2_free_objfile): Don't declare.
1606
1607 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1608
1609 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1610 to match 16 byte real/complex type generated by Flang compiler.
1611
1612 2020-09-03 Tom de Vries <tdevries@suse.de>
1613
1614 PR breakpoint/26546
1615 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1616 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1617
1618 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1619
1620 * maint.c (index_digits): New function.
1621 (struct maint_print_section_data): Remove.
1622 (print_bfd_section_info): Remove print_data parameter, add arg
1623 and index_digits.
1624 (print_objfile_section_info): Likewise.
1625 (print_bfd_section_info_maybe_relocated): Likewise (plus
1626 objfile).
1627 (maintenance_info_sections): Adjust calls.
1628
1629 2020-09-02 Tom Tromey <tromey@adacore.com>
1630
1631 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1632 for null pointers.
1633 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1634
1635 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1636
1637 * bcache.h (struct bcache) <insert>: Change type of `added` to
1638 pointer to bool.
1639 * bcache.c (bcache::insert): Likewise.
1640 * gdbtypes.c (check_types_worklist): Adjust.
1641 * psymtab.c (add_psymbol_to_bcache): Adjust.
1642
1643 2020-08-31 Kevin Buettner <kevinb@redhat.com>
1644
1645 * corelow.c (unordered_set): Include.
1646 (class core_target): Add field 'm_core_unavailable_mappings'.
1647 (core_target::build_file_mappings): Print only one warning
1648 per inaccessible file. Add unavailable/broken mappings
1649 to m_core_unavailable_mappings.
1650 (core_target::xfer_partial): Call...
1651 (core_target::xfer_memory_via_mappings): New method.
1652
1653 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1654
1655 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1656 type to bool.
1657
1658 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1659
1660 * dwarf2/read.c (struct field_info): Fix indentation.
1661
1662 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1663
1664 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1665 ordering in comment.
1666 * frame.c (frame_id_eq): Fix indentation.
1667
1668 2020-08-31 Scott Linder <scott@scottlinder.com>
1669 Simon Marchi <simon.marchi@efficios.com>
1670
1671 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1672 inline frame ids in outer frame.
1673
1674 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1675
1676 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1677 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1678 (outer_frame_id): Use FID_STACK_OUTER instead of
1679 FID_STACK_INVALID.
1680 (frame_id_p): Don't check for outer_frame_id.
1681
1682 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1683
1684 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1685 regnum/frame in value. Call allocate_value_lazy.
1686 * frame.c (frame_unwind_register_value): Use
1687 val_print_not_saved.
1688
1689 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1690
1691 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1692
1693 2020-08-29 Pedro Alves <pedro@palves.net>
1694
1695 * progspace.c (print_program_space): Use all_inferiors. Switch to
1696 the inferior before calling target_pid_to_str.
1697
1698 2020-08-28 Tom Tromey <tom@tromey.com>
1699
1700 * xcoffread.c (xcoff_end_psymtab): Update comment.
1701 * dbxread.c (dbx_end_psymtab): Update comment.
1702
1703 2020-08-28 Tom de Vries <tdevries@suse.de>
1704
1705 PR breakpoint/26544
1706 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1707 event_location.
1708 (create_breakpoint): Same.
1709 (base_breakpoint_decode_location): Same.
1710 (bkpt_create_sals_from_location): Same.
1711 (bkpt_decode_location): Same.
1712 (bkpt_probe_create_sals_from_location): Same.
1713 (bkpt_probe_decode_location): Same.
1714 (tracepoint_create_sals_from_location): Same.
1715 (tracepoint_decode_location): Same.
1716 (tracepoint_probe_decode_location): Same.
1717 (strace_marker_create_sals_from_location): Same.
1718 (strace_marker_decode_location): Same.
1719 (create_sals_from_location_default): Same.
1720 (decode_location_default): Same.
1721 * breakpoint.h (struct breakpoint_ops): Same.
1722 (create_breakpoint): Same.
1723 * linespec.h (decode_line_full): Same.
1724 * linespec.c (decode_line_full): Same. Throw error if
1725 result.size () == 0.
1726
1727 2020-08-27 Pedro Alves <pedro@palves.net>
1728
1729 PR gdb/26524
1730 * breakpoint.c (until_break_fsm) <location_breakpoint,
1731 caller_breakpoint>: Delete fields.
1732 <breakpoints>: New field.
1733 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1734 two individual breakpoints.
1735 (until_break_fsm::should_stop): Loop over breakpoints in the
1736 breakpoint vector.
1737 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1738 vector.
1739 (until_break_command): Handle location expanding into multiple
1740 sals.
1741
1742 2020-08-27 Pedro Alves <pedro@palves.net>
1743
1744 PR gdb/26523
1745 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1746 bp_until breakpoints user-specified locations. Update intro
1747 comment.
1748
1749 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1750
1751 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1752 gdb_bfd_sections): New.
1753 * maint.c (print_bfd_section_info): Change param type to
1754 maint_print_section_data.
1755 (print_objfile_section_info): Likewise.
1756 (print_bfd_section_info_maybe_relocated): Likewise.
1757 (maintenance_info_sections): Use gdb_bfd_sections.
1758
1759 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1760
1761 * MAINTAINERS: Add ARC target and maintainer.
1762
1763 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1764
1765 * configure.tgt: ARC support for GNU/Linux.
1766 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1767 * arc-linux-tdep.c: New file.
1768 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1769 * arc-tdep.c (arc_write_pc): Use it.
1770
1771 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1772
1773 * arc-tdep.c (arc_check_for_hardware_loop): New.
1774 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1775
1776 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1777
1778 * arc-tdep.h: Include "gdbarch.h".
1779
1780 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1781
1782 * arch/arc.h
1783 (arc_gdbarch_features): New class to stir the selection of target XML.
1784 (arc_create_target_description): Use FEATURES to choose XML target.
1785 (arc_lookup_target_description): Use arc_create_target_description
1786 to create _new_ target descriptions or return the already created
1787 ones if the FEATURES is the same.
1788 * arch/arc.c: Implementation of prototypes described above.
1789 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1790 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1791 * arc-tdep.c (*_feature_name): Make feature names consistent.
1792 (arc_register_feature): A new struct to hold information about
1793 registers of a particular target/feature.
1794 (arc_check_tdesc_feature): Check if XML provides registers in
1795 compliance with ARC_REGISTER_FEATURE structs.
1796 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1797 (determine_*_reg_feature_set): Which feature name to look for.
1798 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1799 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1800 to expected ISA enums to be used in arc_gdbarch_features structs.
1801 * features/Makefile (FEATURE_XMLFILES): Add new files.
1802 * gdb/features/arc/v1-aux.c: New file.
1803 * gdb/features/arc/v1-aux.xml: Likewise.
1804 * gdb/features/arc/v1-core.c: Likewise.
1805 * gdb/features/arc/v1-core.xml: Likewise.
1806 * gdb/features/arc/v2-aux.c: Likewise.
1807 * gdb/features/arc/v2-aux.xml: Likewise.
1808 * gdb/features/arc/v2-core.c: Likewise.
1809 * gdb/features/arc/v2-core.xml: Likewise.
1810 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1811
1812 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1813 Andrew Burgess <andrew.burgess@embecosm.com>
1814
1815 PR m2/26372
1816 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
1817 an assert. Remove single element array indexing pattern as the
1818 MULTI_SUBSCRIPT support will handle this case too.
1819
1820 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1821
1822 * value.h (valprint_check_validity): Move declaration from
1823 here...
1824 * valprint.h (valprint_check_validity): ... to here.
1825
1826 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1827
1828 * debug.h: New file.
1829 * debug.c (debug_prefixed_vprintf): New function.
1830 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1831 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1832
1833 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1834
1835 * infrun.h (infrun_debug_printf_1): New function declaration.
1836 (infrun_debug_printf): New macro.
1837 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1838 throughout.
1839 (infrun_debug_printf): New function.
1840 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1841 (handle_jit_event): Likewise.
1842
1843 2020-08-21 Mark Wielaard <mark@klomp.org>
1844
1845 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1846
1847 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
1848
1849 * frame.c (enum class frame_id_status): New.
1850 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1851 (fprintf_frame): Update.
1852 (compute_frame_id): Set frame id status to "computing" on entry.
1853 Set it back to "not_computed" on failure and to "computed" on
1854 success.
1855 (get_frame_id): Assert the frame id is not being computed.
1856 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1857 (create_new_frame): Likewise.
1858 (frame_cleanup_after_sniffer): Update assert.
1859
1860 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1861
1862 * regcache.c (pid_ptid_regcache_map): New type.
1863 (target_ptid_regcache_map): Remove.
1864 (target_pid_ptid_regcache_map): New type.
1865 (regcaches): Change type to target_pid_ptid_regcache_map.
1866 (get_thread_arch_aspace_regcache): Update.
1867 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1868 case.
1869 (regcaches_size): Update.
1870 (regcache_count): Update.
1871 (registers_changed_ptid_target_pid_test): New.
1872 (_initialize_regcache): Register new test.
1873
1874 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1875
1876 * regcache.c (regcache_count): New.
1877 (struct regcache_test_data): New.
1878 (regcache_test_data_up): New.
1879 (populate_regcaches_for_test): New.
1880 (regcaches_test): Remove.
1881 (get_thread_arch_aspace_regcache_test): New.
1882 (registers_changed_ptid_all_test): New.
1883 (registers_changed_ptid_target_test): New.
1884 (registers_changed_ptid_target_ptid_test): New.
1885 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1886 (_initialize_regcache): Register new tests.
1887
1888 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1889
1890 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1891 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1892 gdbarch and aspace parameter. Use current inferior's aspace.
1893 Validate regcache's arch value.
1894 (regcaches_test): Update.
1895
1896 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1897
1898 * regcache.c (regcaches_test): Call registers_changed.
1899
1900 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1901
1902 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1903
1904 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1905
1906 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1907 to find the end of prologue for flang compiled binaries.
1908 * arm-tdep.c (arm_skip_prologue): Likewise.
1909 * i386-tdep.c (i386_skip_prologue): Likewise.
1910 * producer.c (producer_is_llvm): New function.
1911 (producer_parsing_tests): Added new tests for clang/flang.
1912 * producer.h (producer_is_llvm): New declaration.
1913
1914 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
1915
1916 * linux-nat.c (linux_nat_debug_printf): New function.
1917 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1918
1919 2020-08-18 Aaron Merey <amerey@redhat.com>
1920
1921 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1922 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1923 (CLIBS): Add DEBUGINFOD_LIBS.
1924
1925 2020-08-17 Sergei Trofimovich <siarheit@google.com>
1926
1927 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1928 'gdbarch_num_regs'.
1929
1930 2020-08-17 Tom Tromey <tromey@adacore.com>
1931
1932 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1933 ada_get_decoded_value returns NULL.
1934
1935 2020-08-17 Tom Tromey <tromey@adacore.com>
1936
1937 * python/py-inferior.c (infpy_search_memory): Use
1938 gdb_py_object_from_ulongest.
1939 * python/py-infevents.c (create_inferior_call_event_object)
1940 (create_memory_changed_event_object): Use
1941 gdb_py_object_from_ulongest.
1942 * python/py-linetable.c (ltpy_entry_get_pc): Use
1943 gdb_py_object_from_ulongest.
1944
1945 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1946
1947 * loc.c (class symbol_needs_eval_context): Fix indentation.
1948
1949 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1950
1951 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1952 bool.
1953
1954 2020-08-17 Tom de Vries <tdevries@suse.de>
1955
1956 PR gdb/26393
1957 * gdbtypes.c (dump_dynamic_prop): New function.
1958 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1959
1960 2020-08-15 Tom de Vries <tdevries@suse.de>
1961
1962 PR backtrace/26390
1963 * stack.c (print_frame_args): Temporarily set the selected
1964 frame to FRAME while printing the frame's arguments.
1965
1966 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1967
1968 PR breakpoints/26385
1969 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1970 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1971
1972 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1973
1974 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1975 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1976 and >= to check return value instead of == -1 and != -1.
1977
1978 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1979
1980 * utils.h (class gdb_argv) <as_array_view>: New method.
1981 * utils.c (gdb_argv_as_array_view_test): New.
1982 (_initialize_utils): Register selftest.
1983 * maint.c (maintenance_selftest): Use the new method.
1984
1985 2020-08-13 Kamil Rytarowski <n54@gmx.com>
1986
1987 * target.h (supports_dumpcore, dumpcore): New
1988 function declarations.
1989 * target.c (supports_dumpcore, dumpcore): New
1990 functions.
1991 * target-delegates.c: Rebuild.
1992 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1993 and target_dumpcore ().
1994
1995 2020-08-13 Aaron Merey <amerey@redhat.com>
1996
1997 * debuginfod-support.c: Replace global variables with user_data.
1998
1999 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2000
2001 * maint.c (maintenance_selftest): Split args and pass array_view
2002 to run_tests.
2003
2004 2020-08-12 Luis Machado <luis.machado@linaro.org>
2005
2006 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2007 type's length.
2008 Use %s and pulongest to print the length.
2009
2010 2020-08-12 Pedro Alves <palves@redhat.com>
2011
2012 * NEWS: Move "Multi-target debugging support" item to the
2013 "Changes since GDB 9" section.
2014
2015 2020-08-12 Pedro Alves <palves@redhat.com>
2016
2017 PR gdb/26336
2018 * progspace.c (program_space::remove_objfile): Invalidate the
2019 frame cache.
2020
2021 2020-08-11 Tom de Vries <tdevries@suse.de>
2022
2023 * MAINTAINERS: Mark ms1 as deleted.
2024
2025 2020-08-10 Luis Machado <luis.machado@linaro.org>
2026
2027 PR gdb/26310
2028
2029 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2030 act accordingly.
2031 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2032 movz/str/stur/stp skipping behavior.
2033
2034 2020-08-10 Luis Machado <luis.machado@linaro.org>
2035
2036 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2037 struct user_sve_header instead of struct sve_context.
2038
2039 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2040
2041 * read.h (dwarf2_fetch_die_loc_sect_off,
2042 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2043 `void *` parameter with function_view.
2044 * read.c (dwarf2_fetch_die_loc_sect_off,
2045 dwarf2_fetch_die_loc_cu_off): Likewise.
2046 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2047 (per_cu_dwarf_call): Adjust.
2048 (get_frame_address_in_block_wrapper): Remove.
2049 (indirect_synthetic_pointer): Adjust.
2050 (get_ax_pc): Remove.
2051 (dwarf2_compile_expr_to_ax): Adjust.
2052
2053 2020-08-08 Tom de Vries <tdevries@suse.de>
2054
2055 PR build/26344
2056 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2057 constructor.
2058 * regcache.c (get_thread_arch_aspace_regcache): Same.
2059
2060 2020-08-07 Tom Tromey <tromey@adacore.com>
2061
2062 * ravenscar-thread.c
2063 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2064 New method.
2065 (ravenscar_thread_target::wait): Check
2066 runtime_initialized.
2067 (ravenscar_thread_target::prepare_to_store)
2068 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2069 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2070 (ravenscar_thread_target::stopped_by_watchpoint)
2071 (ravenscar_thread_target::stopped_data_address)
2072 (ravenscar_thread_target::core_of_thread): Use
2073 scoped_restore_current_thread and
2074 set_base_thread_from_ravenscar_task.
2075
2076 2020-08-07 Tom Tromey <tromey@adacore.com>
2077
2078 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2079
2080 2020-08-07 Tom Tromey <tromey@adacore.com>
2081
2082 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2083 update_inferior_ptid before update_thread_list.
2084 (temporarily_change_regcache_ptid): New class.
2085 (ravenscar_thread_target::fetch_registers)
2086 (ravenscar_thread_target::store_registers)
2087 (ravenscar_thread_target::prepare_to_store): Use base thread when
2088 forwarding operation.
2089
2090 2020-08-07 Tom Tromey <tromey@adacore.com>
2091
2092 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2093 "is_pid" case.
2094
2095 2020-08-07 Tom Tromey <tromey@adacore.com>
2096
2097 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2098 New methods.
2099 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2100 first.
2101 (ravenscar_thread_target::add_thread): Rename from
2102 ravenscar_add_thread.
2103 (ravenscar_thread_target::update_thread_list): Use a lambda.
2104 (ravenscar_thread_target::xfer_partial): New method.
2105
2106 2020-08-07 Tom Tromey <tromey@adacore.com>
2107
2108 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2109 gdb::function_view.
2110 (iterate_over_live_ada_tasks): Change type of argument.
2111 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2112 of argument.
2113
2114 2020-08-07 Tom Tromey <tromey@adacore.com>
2115
2116 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2117 Remove.
2118 (ravenscar_thread_target::extra_thread_info): Remove.
2119 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2120 defer to target beneath for non-Ravenscar threads.
2121
2122 2020-08-07 Tom Tromey <tromey@adacore.com>
2123
2124 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2125 get_base_thread_from_ravenscar_task>: Now methods.
2126 <m_cpu_map>: New member.
2127 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2128 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2129 (ravenscar_thread_target::task_is_currently_active): Update.
2130 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2131 Now a method.
2132 (ravenscar_thread_target::add_active_thread): Put initial thread
2133 into the m_cpu_map.
2134
2135 2020-08-07 Tom Tromey <tromey@adacore.com>
2136
2137 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2138 event_ptid.
2139
2140 2020-08-07 Tom Tromey <tromey@adacore.com>
2141
2142 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2143 runtime_initialized.
2144
2145 2020-08-07 Tom Tromey <tromey@adacore.com>
2146
2147 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2148 add_active_thread.
2149 (ravenscar_thread_target::add_active_thread): Now public.
2150 (ravenscar_inferior_created): Call add_active_thread after pushing
2151 the target.
2152
2153 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2154
2155 * regcache.c (ptid_regcache_map): New type.
2156 (target_ptid_regcache_map): New type.
2157 (regcaches): Change type to target_ptid_regcache_map.
2158 (get_thread_arch_aspace_regcache): Update to regcaches' new
2159 type.
2160 (regcache_thread_ptid_changed): Likewise.
2161 (registers_changed_ptid): Likewise.
2162 (regcaches_size): Likewise.
2163 (regcaches_test): Update.
2164 (regcache_thread_ptid_changed): Update.
2165 * regcache.h (regcache_up): New type.
2166 * gdbsupport/ptid.h (hash_ptid): New struct.
2167
2168 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
2169
2170 * observable.h (thread_ptid_changed): Add parameter
2171 `process_stratum_target *`.
2172 * infrun.c (infrun_thread_ptid_changed): Add parameter
2173 `process_stratum_target *` and use it.
2174 (selftests): New namespace.
2175 (infrun_thread_ptid_changed): New function.
2176 (_initialize_infrun): Register selftest.
2177 * regcache.c (regcache_thread_ptid_changed): Add parameter
2178 `process_stratum_target *` and use it.
2179 (regcache_thread_ptid_changed): New function.
2180 (_initialize_regcache): Register selftest.
2181 * thread.c (thread_change_ptid): Pass target to
2182 thread_ptid_changed observable.
2183
2184 2020-08-06 Caroline Tice <cmtice@google.com>
2185
2186 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2187 (struct dwp_sections): Update field comments. Add loclists and
2188 rnglists fields.
2189 (struct virtual_v2_dwo_sections): Rename struct to
2190 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2191 size & offset fields for loclists and rnglists.
2192 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2193 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2194 skipping dummy type units.
2195 (create_dwp_hash_table): Update the large comment above the function to
2196 discuss Version 5 DWP files as well, with references. Update all the
2197 version checks in the function to check for version 5 as well. Add new
2198 section at the end to create dwp hash table for version 5.
2199 (create_dwp_v2_section): Rename function to
2200 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2201 Add V5 to error message text.
2202 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2203 into calls to create_dwp_v2_or_v5_section.
2204 (create_dwo_unit_in_dwp_v5): New function.
2205 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2206 check for version2; add else clause to handle version 5.
2207 (open_and_init_dwo_file): Add code to check dwarf version & only call
2208 create_debug_types_hash_table (with sections.types) if version is not 5;
2209 else call create_debug_type_hash_table, with sections.info.
2210 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2211 version 5.
2212 (dwarf2_locate_v5_dwp_sections): New function.
2213 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2214 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
2215
2216 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2217
2218 * regcache.h (class regcache): Remove friend
2219 registers_changed_ptid.
2220 <regcache_thread_ptid_changed>: Remove.
2221 <regcaches>: Remove.
2222 * regcache.c (regcache::regcaches): Rename to...
2223 (regcaches): ... this. Make static.
2224 (get_thread_arch_aspace_regcache): Update.
2225 (regcache::regcache_thread_ptid_changed): Rename to...
2226 (regcache_thread_ptid_changed): ... this. Update.
2227 (class regcache_access): Remove.
2228 (regcaches_test): Update.
2229 (_initialize_regcache): Update.
2230 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2231 <forward_list>.
2232
2233 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2234
2235 * regcache.h (class regcache) <current_regcache>: Rename to...
2236 <regcaches>: ... this. Move doc here.
2237 * regcache.c (regcache::current_regcache) Rename to...
2238 (regcache::regcaches): ... this. Move doc to header.
2239 (get_thread_arch_aspace_regcache): Update.
2240 (regcache::regcache_thread_ptid_changed): Update.
2241 (registers_changed_ptid): Update.
2242 (class regcache_access) <current_regcache_size>: Rename to...
2243 <regcaches_size>: ... this.
2244 (current_regcache_test): Rename to...
2245 (regcaches_test): ... this.
2246 (_initialize_regcache): Update.
2247
2248 2020-08-06 Victor Collod <vcollod@nvidia.com>
2249
2250 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2251
2252 2020-08-05 Kevin Buettner <kevinb@redhat.com>
2253
2254 * corelow.c (core_target::build_file_mappings): Don't output
2255 null pathname in warning.
2256
2257 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2258
2259 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2260 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2261 gdb.dwarf2/dw2-single-line-discriminators.exp,
2262 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2263
2264 2020-08-05 Tom Tromey <tromey@adacore.com>
2265
2266 PR rust/26197:
2267 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2268 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2269 Fix off-by-one and type size errors in ordinary case.
2270
2271 2020-08-05 Tom de Vries <tdevries@suse.de>
2272
2273 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2274 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2275
2276 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2277
2278 * frame.h (frame_id_p): Return bool.
2279 (frame_id_artificial_p): Return bool.
2280 (frame_id_eq): Return bool.
2281 (has_stack_frames): Return bool.
2282 (get_selected_frame): Fix typo in comment.
2283 (get_frame_pc_if_available): Return bool.
2284 (get_frame_address_in_block_if_available): Return bool.
2285 (get_frame_func_if_available): Return bool.
2286 (read_frame_register_unsigned): Return bool.
2287 (get_frame_register_bytes): Return bool.
2288 (safe_frame_unwind_memory): Return bool.
2289 (deprecated_frame_register_read): Return bool.
2290 (frame_unwinder_is): Return bool.
2291 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2292 bool.
2293 <this_id::p>: Likewise.
2294 <prev_p>: Likewise.
2295 (frame_stash_add): Return bool.
2296 (get_frame_id): Use bool.
2297 (frame_id_build_special) Use bool.
2298 (frame_id_build_unavailable_stack): Use bool.
2299 (frame_id_build): Use bool.
2300 (frame_id_p): Return bool, use true/false instead of 1/0.
2301 (frame_id_artificial_p): Likewise.
2302 (frame_id_eq): Likewise.
2303 (frame_id_inner): Likewise.
2304 (get_frame_func_if_available): Likewise.
2305 (read_frame_register_unsigned): Likewise.
2306 (deprecated_frame_register_read): Likewise.
2307 (get_frame_register_bytes): Likewise.
2308 (has_stack_frames): Likewise.
2309 (inside_main_func): Likewise.
2310 (inside_entry_func): Likewise.
2311 (get_frame_pc_if_available): Likewise.
2312 (get_frame_address_in_block_if_available): Likewise.
2313 (frame_unwinder_is): Likewise.
2314 (safe_frame_unwind_memory): Likewise.
2315 (frame_unwind_arch): Likewise.
2316
2317 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2318
2319 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2320 type to cached_copy_status.
2321 (fprintf_frame): Adjust.
2322 (get_frame_func_if_available): Adjust.
2323 (frame_cleanup_after_sniffer): Adjust.
2324
2325 2020-08-04 Mark Wielaard <mark@klomp.org>
2326
2327 * MAINTAINERS (Write After Approval): Update email address.
2328
2329 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2330
2331 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2332 dynamic_prop::const_val.
2333
2334 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2335
2336 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2337 dynamic_prop::kind.
2338
2339 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2340
2341 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2342
2343 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2344
2345 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2346
2347 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
2348 Jose E. Marchesi <jose.marchesi@oracle.com>
2349
2350 * configure.tgt: Add entry for bpf-*-*.
2351 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2352 (ALLDEPFILES): Add bpf-tdep.c.
2353 * bpf-tdep.c: New file.
2354 * MAINTAINERS: Add bpf target and maintainer.
2355 * NEWS: Mention the support for the new target.
2356
2357 2020-08-04 Tom de Vries <tdevries@suse.de>
2358
2359 PR symtab/23270
2360 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2361 Error.
2362
2363 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2364
2365 * syscalls/freebsd.xml: Regenerate.
2366
2367 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2368
2369 * syscalls/update-freebsd.sh: Fix usage and year range.
2370
2371 2020-08-03 Tom de Vries <tdevries@suse.de>
2372
2373 PR symtab/26333
2374 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2375 DW_LNE_lo_user/DW_LNE_hi_user range.
2376
2377 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2378
2379 PR ada/26318
2380 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2381 kind.
2382
2383 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2384
2385 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2386
2387 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2388
2389 * breakpoint.c (set_breakpoint_condition): Update the condition
2390 expressions after checking that the input condition string parses
2391 successfully and does not contain junk at the end.
2392
2393 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2394
2395 * breakpoint.c (set_breakpoint_condition): Update the
2396 condition string after parsing the new condition successfully.
2397
2398 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2399
2400 * proc-api.c (_STRUCTURED_PROC): Don't define.
2401 * proc-events.c: Likewise.
2402 * proc-flags.c: Likewise.
2403 * proc-why.c: Likewise.
2404 * procfs.c: Likewise.
2405
2406 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2407 * configure, config.in: Regenerate.
2408
2409 2020-07-30 Tom de Vries <tdevries@suse.de>
2410
2411 PR build/26320
2412 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2413 m_red/m_green/m_blue in a union.
2414
2415 2020-07-29 Tom de Vries <tdevries@suse.de>
2416
2417 PR tdep/26280
2418 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2419
2420 2020-07-28 Tom Tromey <tromey@adacore.com>
2421
2422 PR symtab/26270:
2423 * symtab.h (find_pc_partial_function_sym): Declare.
2424 * cli/cli-cmds.c (disassemble_command): Use
2425 find_pc_partial_function_sym. Check asm_demangle.
2426 * blockframe.c (cache_pc_function_sym): New global.
2427 (cache_pc_function_name): Remove.
2428 (clear_pc_function_cache): Update.
2429 (find_pc_partial_function_sym): New function, from
2430 find_pc_partial_function.
2431 (find_pc_partial_function): Rewrite using
2432 find_pc_partial_function_sym.
2433
2434 2020-07-28 Tom Tromey <tromey@adacore.com>
2435
2436 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2437 help. Add usage.
2438
2439 2020-07-28 Tom Tromey <tromey@adacore.com>
2440
2441 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2442 <DW_OP_GNU_variable_value>: Cast to address type.
2443
2444 2020-07-28 Kamil Rytarowski <n54@gmx.com>
2445
2446 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2447 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2448 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2449 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2450 (nbsd_get_siginfo_type): New.
2451 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2452 (_initialize_nbsd_tdep): New.
2453
2454 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2455
2456 PR binutils/26301
2457 * configure: Regenerated.
2458
2459 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2460
2461 PR binutils/26301
2462 * configure: Regenerated.
2463
2464 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2465
2466 * python/py-frame.c: Remove 'user-regs.h' include.
2467 (frapy_read_register): Rewrite to make use of
2468 gdbpy_parse_register_id.
2469 * python/py-registers.c (gdbpy_parse_register_id): New function,
2470 moved here from python/py-unwind.c. Updated the return type, and
2471 also accepts register descriptor objects.
2472 * python/py-unwind.c: Remove 'user-regs.h' include.
2473 (pyuw_parse_register_id): Moved to python/py-registers.c.
2474 (unwind_infopy_add_saved_register): Update to use
2475 gdbpy_parse_register_id.
2476 (pending_framepy_read_register): Likewise.
2477 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2478
2479 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2480
2481 * python/py-registers.c: Add 'user-regs.h' include.
2482 (register_descriptor_iter_find): New function.
2483 (register_descriptor_iterator_object_methods): New static global
2484 methods array.
2485 (register_descriptor_iterator_object_type): Add pointer to methods
2486 array.
2487
2488 2020-07-27 John Baldwin <jhb@FreeBSD.org>
2489
2490 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2491 for all architectures on FreeBSD 11.3 and later.
2492
2493 2020-07-27 Tom Tromey <tromey@adacore.com>
2494
2495 * gcore.h (load_corefile): Don't declare.
2496
2497 2020-07-27 Tom de Vries <tdevries@suse.de>
2498
2499 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2500 * config.in: Regenerate.
2501 * configure: Regenerate.
2502
2503 2020-07-26 Eli Zaretskii <eliz@gnu.org>
2504
2505 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2506 ws2tcpip.h. When checking whether socklen_t type is defined, use
2507 ws2tcpip.h if it is available and sys/socket.h isn't.
2508 * configure: Regenerate.
2509 * config.in: Regenerate.
2510
2511 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2512
2513 PR fortran/23051
2514 PR fortran/26139
2515 * valops.c (value_ind): Pass address to
2516 readjust_indirect_value_type.
2517 * value.c (readjust_indirect_value_type): Make parameter
2518 non-const, and add extra address parameter. Resolve original type
2519 before using it.
2520 * value.h (readjust_indirect_value_type): Update function
2521 signature and comment.
2522
2523 2020-07-25 Tom de Vries <tdevries@suse.de>
2524
2525 PR symtab/26243
2526 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2527 entries.
2528
2529 2020-07-24 Aaron Merey <amerey@redhat.com>
2530
2531 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2532 * configure: Rebuild.
2533
2534 2020-07-23 Kevin Buettner <kevinb@redhat.com>
2535
2536 PR corefiles/26294
2537 * corelow.c (_initialize_corelow): Add period to help text
2538 for "maintenance print core-file-backed-mappings".
2539
2540 2020-07-23 Pedro Alves <pedro@palves.net>
2541
2542 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2543 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2544 meanwhile.
2545 * frame.c (frame_cache_generation, get_frame_cache_generation):
2546 New.
2547 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2548 (get_prev_frame_if_no_cycle): On exception, don't touch
2549 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2550 * frame.h (get_frame_cache_generation): Declare.
2551
2552 2020-07-23 Tom de Vries <tdevries@suse.de>
2553
2554 PR tui/26282
2555 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2556 New default constructor.
2557
2558 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2559
2560 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2561 exclude non-statement entries.
2562
2563 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2564
2565 * NEWS (New commands): Mention new command
2566 "maintenance print core-file-backed-mappings".
2567
2568 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2569
2570 * corelow.c (gdbcmd.h): Include.
2571 (core_target::info_proc_mappings): New method.
2572 (get_current_core_target): New function.
2573 (maintenance_print_core_file_backed_mappings): New function.
2574 (_initialize_corelow): Add core-file-backed-mappings to
2575 "maint print" commands.
2576
2577 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2578
2579 * linux-tdep.c (dump_note_entry_p): New function.
2580 (linux_dump_mapping_p_ftype): New typedef.
2581 (linux_find_memory_regions_full): Add new parameter,
2582 should_dump_mapping_p.
2583 (linux_find_memory_regions): Adjust call to
2584 linux_find_memory_regions_full.
2585 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2586 call to linux_find_memory_regions_full.
2587
2588 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2589
2590 * corelow.c (solist.h, unordered_map): Include.
2591 (class core_target): Add field m_core_file_mappings and
2592 method build_file_mappings.
2593 (core_target::core_target): Call build_file_mappings.
2594 (core_target::~core_target): Free memory associated with
2595 m_core_file_mappings.
2596 (core_target::build_file_mappings): New method.
2597 (core_target::xfer_partial): Use m_core_file_mappings
2598 for memory transfers.
2599 * linux-tdep.c (linux_read_core_file_mappings): New
2600 function.
2601 (linux_core_info_proc_mappings): Rewrite to use
2602 linux_read_core_file_mappings.
2603 (linux_init_abi): Register linux_read_core_file_mappings.
2604
2605 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2606
2607 * arch-utils.c (default_read_core_file_mappings): New function.
2608 * arch-utils.c (default_read_core_file_mappings): Declare.
2609 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2610 * gdbarch.h, gdbarch.c: Regenerate.
2611
2612 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2613
2614 PR corefiles/25631
2615 * corelow.c (core_target:xfer_partial): Revise
2616 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2617 case after first checking the stratum beneath the core
2618 target.
2619 (has_all_memory): Return true.
2620 * target.c (raw_memory_xfer_partial): Revise comment
2621 regarding use of has_all_memory.
2622
2623 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2624
2625 * exec.h (section_table_xfer_memory): Revise declaration,
2626 replacing section name parameter with an optional callback
2627 predicate.
2628 * exec.c (section_table_xfer_memory): Likewise.
2629 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2630 of section_table_xfer_memory.
2631
2632 2020-07-22 Tom Tromey <tromey@adacore.com>
2633
2634 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2635 lookup_symbol_search_name.
2636
2637 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2638
2639 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2640 redundant local variable.
2641 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2642 reference, not pointer, update code accordingly.
2643
2644 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2645 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2646
2647 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2648 * jit.c (jit_breakpoint_re_set_internal): Use the
2649 `skip_jit_symbol_lookup` field.
2650
2651 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2652 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2653
2654 * jit.c (jit_read_descriptor): Define the descriptor address once,
2655 use twice.
2656 (jit_breakpoint_deleted): Move the declaration of the loop variable
2657 `iter` into the loop header.
2658 (jit_breakpoint_re_set_internal): Move the declaration of the local
2659 variable `objf_data` to the first point of definition.
2660 (jit_event_handler): Move the declaration of local variables
2661 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2662 Rename `objf` to `jited`.
2663
2664 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2665
2666 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2667 Remove.
2668 * jit.c (get_jiter_objfile_data): Update.
2669
2670 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2671 Simon Marchi <simon.marchi@polymtl.ca>
2672
2673 * jit.c (struct jit_program_space_data): Remove.
2674 (jit_program_space_key): Remove.
2675 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2676 stuff.
2677 (get_jit_program_space_data): Remove.
2678 (jit_breakpoint_deleted): Iterate on all of the program space's
2679 objfiles.
2680 (jit_inferior_init): Likewise.
2681 (jit_breakpoint_re_set_internal): Likewise. Also change return
2682 type to void.
2683 (jit_breakpoint_re_set): Pass current_program_space to
2684 jit_breakpoint_re_set_internal.
2685
2686 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2687
2688 * jit.h (struct jiter_objfile_data) <cached_code_address,
2689 jit_breakpoint>: Move to here from ...
2690 * jit.c (jit_program_space_data): ... here.
2691 (jiter_objfile_data::~jiter_objfile_data): Update.
2692 (jit_breakpoint_deleted): Update.
2693 (jit_breakpoint_re_set_internal): Update.
2694
2695 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2696
2697 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2698 checks.
2699 (jit_read_descriptor): Remove NULL check.
2700 (jit_event_handler): Add an assertion.
2701
2702 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2703
2704 * jit.h (struct jit_objfile_data): Split into...
2705 (struct jiter_objfile_data): ... this ...
2706 (struct jited_objfile_data): ... and this.
2707 * objfiles.h (struct objfile) <jit_data>: Remove.
2708 <jiter_data, jited_data>: New fields.
2709 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2710 (jiter_objfile_data::~jiter_objfile_data): ... this.
2711 (get_jit_objfile_data): Rename to ...
2712 (get_jiter_objfile_data): ... this.
2713 (add_objfile_entry): Update.
2714 (jit_read_descriptor): Use get_jiter_objfile_data.
2715 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2716 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2717 (jit_inferior_exit_hook): Use objfile's jited_data field.
2718
2719 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2720
2721 * jit.h: Forward-declare `struct minimal_symbol`.
2722 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2723 constructor, destructor, and an objfile* field.
2724 * jit.c (jit_objfile_data): Remove.
2725 (struct jit_objfile_data): Migrate from here to jit.h.
2726 (jit_objfile_data::~jit_objfile_data): New destructor
2727 implementation with code moved from free_objfile_data.
2728 (free_objfile_data): Delete.
2729 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2730 (jit_find_objf_with_entry_addr): Ditto.
2731 (jit_inferior_exit_hook): Ditto.
2732 (_initialize_jit): Remove the call to
2733 register_objfile_data_with_cleanup.
2734 * objfiles.h (struct objfile) <jit_data>: New field.
2735
2736 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2737
2738 * jit.h: Forward-declare `struct objfile`.
2739 (jit_event_handler): Add a second parameter, the JITer objfile.
2740 * jit.c (jit_read_descriptor): Change the signature to take the
2741 JITer objfile as an argument instead of the jit_program_space_data.
2742 (jit_inferior_init): Update the call to jit_read_descriptor.
2743 (jit_event_handler): Use the new JITer objfile argument when calling
2744 jit_read_descriptor.
2745 * breakpoint.c (handle_jit_event): Update the call to
2746 jit_event_handler to pass the JITer objfile.
2747
2748 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2749
2750 * gdbarch.c: Regenerate.
2751 * gdbarch.h: Regenerate.
2752 * gdbarch.sh (handle_segmentation_fault): Remove method.
2753 * infrun.c (handle_segmentation_fault): Remove.
2754 (print_signal_received_reason): Remove call to
2755 handle_segmentation_fault.
2756
2757 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2758
2759 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2760 Rename to sparc64_linux_report_signal_info and add siggnal
2761 argument.
2762 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2763 instead of sparc64_linux_handle_segmentation_fault.
2764
2765 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2766
2767 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2768 i386_linux_report_signal_info instead of
2769 i386_linux_handle_segmentation_fault.
2770 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2771 to i386_linux_report_signal_info and add siggnal argument.
2772 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2773 of i386_linux_handle_segmentation_fault.
2774 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2775 to i386_linux_report_signal_info and add siggnal argument.
2776
2777 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2778
2779 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2780 hook if present.
2781
2782 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2783
2784 * gdbarch.c: Regenerate.
2785 * gdbarch.h: Regenerate.
2786 * gdbarch.sh (report_signal_info): New method.
2787 * infrun.c (print_signal_received_reason): Invoke gdbarch
2788 report_signal_info hook if present.
2789
2790 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2791
2792 * python/py-registers.c : Add 'unordered_map' include.
2793 (gdbpy_new_reggroup): Renamed to...
2794 (gdbpy_get_reggroup): ...this. Update to only create register
2795 group descriptors when needed.
2796 (gdbpy_reggroup_iter_next): Update.
2797
2798 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2799
2800 * python/py-registers.c (gdbpy_register_object_data): New static
2801 global.
2802 (gdbpy_register_object_data_init): New function.
2803 (gdbpy_new_register_descriptor): Renamed to...
2804 (gdbpy_get_register_descriptor): ...this, and update to reuse
2805 existing register descriptors where possible.
2806 (gdbpy_register_descriptor_iter_next): Update.
2807 (gdbpy_initialize_registers): Register new gdbarch data.
2808
2809 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
2810
2811 * linux-nat.c (stopped_pids): Make static.
2812
2813 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2814
2815 PR ada/26235
2816 * gdbtypes.c (ada_discrete_type_low_bound,
2817 ada_discrete_type_high_bound): Handle undefined bounds.
2818
2819 2020-07-21 Kamil Rytarowski <n54@gmx.com>
2820
2821 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2822 declaration.
2823 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2824 function.
2825
2826 2020-07-20 John Baldwin <jhb@FreeBSD.org>
2827
2828 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2829 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2830 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2831 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2832 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2833 method.
2834
2835 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2836
2837 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2838 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2839 which are deprecated in Guile 3.0.
2840 * configure.ac (try_guile_versions): Add "guile-3.0".
2841 * configure (try_guile_versions): Regenerate.
2842 * NEWS: Update entry.
2843
2844 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2845 Doug Evans <dje@google.com>
2846
2847 PR gdb/21104
2848 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2849 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2850 USING_GUILE_BEFORE_2_2.
2851 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2852 Change type to 'scm_t_port_type *'.
2853 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2854 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2855 parameter and honor it. Update callers.
2856 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2857 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2858 functions.
2859 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2860 USING_GUILE_BEFORE_2_2.
2861 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2862 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2863 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2864 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2865 and 'SCM_PORT_TYPE'.
2866 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2867 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2868 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2869 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2870 [!USING_GUILE_BEFORE_2_2]: New functions.
2871 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2872 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2873 'gdbscm_memory_port_read'.
2874 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2875 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2876 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2877 function.
2878 (ioscm_init_memory_port): Remove.
2879 (ioscm_init_memory_port_stream): New function
2880 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2881 function.
2882 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2883 Return scm_from_uint (0).
2884 (gdbscm_set_memory_port_read_buffer_size_x)
2885 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2886 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2887 Return scm_from_uint (0).
2888 (gdbscm_set_memory_port_write_buffer_size_x)
2889 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2890 * configure.ac (try_guile_versions): Add "guile-2.2".
2891 * configure: Regenerate.
2892 * NEWS: Add entry.
2893
2894 2020-07-18 Tom Tromey <tom@tromey.com>
2895
2896 * linux-nat.c (linux_multi_process): Remove.
2897 (linux_nat_target::supports_multi_process): Return true.
2898
2899 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2900
2901 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2902 (riscv_lookup_target_description): Return pointer out of
2903 unique_ptr.
2904 * target-descriptions.c (allocate_target_description): Add
2905 comment.
2906 (target_desc_deleter::operator()): Likewise.
2907 * target-descriptions.h (struct target_desc_deleter): Moved to
2908 gdbsupport/tdesc.h.
2909 (target_desc_up): Likewise.
2910
2911 2020-07-17 Tom Tromey <tromey@adacore.com>
2912
2913 * linux-nat.c (linux_nat_target::supports_non_stop)
2914 (linux_nat_target::always_non_stop_p): Use "true".
2915 (linux_nat_target::supports_disable_randomization): Use "true" and
2916 "false".
2917
2918 2020-07-16 Caroline Tice <cmtice@google.com>
2919
2920 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2921 (RNGLIST_HEADER_SIZE64): New constant definition.
2922 (struct dwop_section_names): Add rnglists_dwo.
2923 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2924 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2925 (struct dwo_sections): Add rnglists field.
2926 (read_attribut_reprocess): Add tag parameter.
2927 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2928 (cu_debug_rnglists_section): New function (decl & definition).
2929 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2930 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2931 die whose range is being checked; get rnglist section from
2932 cu_debug_rnglists_section, to get from either objfile or dwo file as
2933 appropriate. Add cases for DW_RLE_base_addressx,
2934 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2935 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2936 test inside if-condition and updating complaint message.
2937 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2938 dwarf2_rnglists_process.
2939 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2940 dwarf2_ranges_process.
2941 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2942 need_ranges_base and update comment appropriately. Also pass die tag
2943 to dwarf2_ranges_read.
2944 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2945 need_ranges_base and update comment appropriately. Also pass die tag
2946 to dwarf2_ranges_process.
2947 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2948 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2949 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2950 need_ranges_base and update comment appropriately. Also pass die tag
2951 to read_attribute_reprocess and dwarf2_ranges_read.
2952 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2953 and update function comment appropriately.
2954 (read_loclist_index): Call read_loclists_rnglists_header instead of
2955 read_loclist_header.
2956 (read_rnglist_index): New function.
2957 (read_attribute_reprocess): Add tag parameter. Add code for
2958 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2959 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2960
2961 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2962
2963 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2964 being resolved.
2965
2966 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2967
2968 * arch-utils.c (show_architecture): Update formatting of messages.
2969
2970 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2971
2972 * gdbtypes.h (struct type) <bounds>: Handle array and string
2973 types.
2974 * ada-lang.c (assign_aggregate): Use type::bounds on
2975 array/string type.
2976 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2977 * c-varobj.c (c_number_of_children): Likewise.
2978 (c_describe_child): Likewise.
2979 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2980 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2981 (f_type_print_base): Likewise.
2982 * f-valprint.c (f77_array_offset_tbl): Likewise.
2983 (f77_get_upperbound): Likewise.
2984 (f77_print_array_1): Likewise.
2985 * guile/scm-type.c (gdbscm_type_range): Likewise.
2986 * m2-typeprint.c (m2_array): Likewise.
2987 (m2_is_long_set_of_type): Likewise.
2988 * m2-valprint.c (get_long_set_bounds): Likewise.
2989 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2990 * python/py-type.c (typy_range): Likewise.
2991 * rust-lang.c (rust_internal_print_type): Likewise.
2992 * type-stack.c (type_stack::follow_types): Likewise.
2993 * valarith.c (value_subscripted_rvalue): Likewise.
2994 * valops.c (value_cast): Likewise.
2995
2996 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2997
2998 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2999 callers to use the equivalent accessor methods.
3000
3001 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3002
3003 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3004 (struct type) <bit_stride>: New method.
3005 (TYPE_BIT_STRIDE): Remove.
3006 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3007
3008 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3009
3010 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3011 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3012 callers to use the equivalent accessor methods instead.
3013
3014 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3015
3016 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3017 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3018 callers to use the equivalent accessor methods instead.
3019
3020 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3021
3022 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3023 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3024 to use dynamic_prop::kind.
3025
3026 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3027
3028 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3029 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3030 to get the bound property's kind and check against
3031 PROP_UNDEFINED.
3032
3033 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3034
3035 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3036 all callers to use type::range_bounds followed by
3037 dynamic_prop::{low,high}.
3038
3039 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3040
3041 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3042 const_val, set_const_val, baton, set_locexpr, set_loclist,
3043 set_addr_offset, variant_parts, set_variant_parts,
3044 original_type, set_original_type>: New methods.
3045 <kind>: Rename to...
3046 <m_kind>: ... this. Update all users to use the new methods
3047 instead.
3048 <data>: Rename to...
3049 <m_data>: ... this. Update all users to use the new methods
3050 instead.
3051
3052 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3053
3054 * gdbtypes.c (get_discrete_bounds): Return failure if
3055 the range type's bounds are not both defined and constant
3056 values.
3057 (get_array_bounds): Update comment. Remove undefined bound check.
3058
3059 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3060
3061 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3062 the type::bounds method directly.
3063
3064 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3065
3066 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3067 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3068 are used to set the range type's bounds to use set_bounds.
3069
3070 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3071
3072 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3073
3074 2020-07-10 Pedro Alves <pedro@palves.net>
3075
3076 * gdbthread.h (inferior_ref): Define.
3077 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3078 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3079 * thread.c
3080 (scoped_restore_current_thread::restore):
3081 Adjust to gdb::ref_ptr.
3082 (scoped_restore_current_thread::~scoped_restore_current_thread):
3083 Remove manual decref handling.
3084 (scoped_restore_current_thread::scoped_restore_current_thread):
3085 Adjust to use
3086 inferior_ref::new_reference/thread_info_ref::new_reference.
3087 Incref the thread before calling get_frame_id instead of after.
3088 Let TARGET_CLOSE_ERROR propagate.
3089
3090 2020-07-10 Pedro Alves <pedro@palves.net>
3091
3092 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3093 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3094 NOT_AVAILABLE_ERROR.
3095 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3096 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3097
3098 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3099 Pedro Alves <pedro@palves.net>
3100
3101 PR gdb/26199
3102 * infrun.c (threads_are_resumed_pending_p): Delete.
3103 (do_target_wait): Remove threads_are_executing and
3104 threads_are_resumed_pending_p checks from the inferior_matches
3105 lambda. Update comments.
3106
3107 2020-07-10 Pedro Alves <pedro@palves.net>
3108
3109 PR gdb/26199
3110 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3111 executing threads.
3112
3113 2020-07-10 Pedro Alves <pedro@palves.net>
3114
3115 PR gdb/26199
3116 * infrun.c (handle_no_resumed): Handle multiple targets.
3117
3118 2020-07-10 Pedro Alves <pedro@palves.net>
3119
3120 PR gdb/26199
3121 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3122 target_is_async_p.
3123
3124 2020-07-10 Pedro Alves <pedro@palves.net>
3125
3126 PR gdb/26199
3127 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3128 threads, not all threads.
3129
3130 2020-07-10 Pedro Alves <pedro@palves.net>
3131
3132 PR gdb/26199
3133 * remote.c (remote_target::open_1): Pass remote target pointer as
3134 data to create_async_event_handler.
3135 (remote_async_inferior_event_handler): Mark async event handler
3136 before returning if the remote target still has either pending
3137 events or unacknowledged notifications.
3138
3139 2020-07-10 John Baldwin <jhb@FreeBSD.org>
3140
3141 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3142 declaration.
3143 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3144 function.
3145
3146 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3147
3148 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3149 inferior_ptid.
3150
3151 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3152
3153 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3154 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3155 AT_FREEBSD_PS_STRINGS.
3156
3157 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
3158
3159 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3160 of debugfile path on Windows.
3161
3162 2020-07-08 John Baldwin <jhb@FreeBSD.org>
3163
3164 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3165 argument to 'data'.
3166
3167 2020-07-08 Tom Tromey <tromey@adacore.com>
3168
3169 * ada-lang.c (ada_exception_message_1): Use read_memory.
3170
3171 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3172
3173 PR python/22748
3174 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3175 special handling for inline frames.
3176 * findvar.c (value_of_register_lazy): Skip inline frames when
3177 creating lazy register values.
3178 * frame.c (frame_id_computed_p): Delete definition.
3179 * frame.h (frame_id_computed_p): Delete declaration.
3180
3181 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3182
3183 * NEWS: Mention additions to Python API.
3184 * python/py-arch.c (archpy_register_groups): New function.
3185 (arch_object_methods): Add 'register_groups' method.
3186 * python/py-registers.c (reggroup_iterator_object): New struct.
3187 (reggroup_object): New struct.
3188 (gdbpy_new_reggroup): New function.
3189 (gdbpy_reggroup_to_string): New function.
3190 (gdbpy_reggroup_name): New function.
3191 (gdbpy_reggroup_iter): New function.
3192 (gdbpy_reggroup_iter_next): New function.
3193 (gdbpy_new_reggroup_iterator): New function
3194 (gdbpy_initialize_registers): Register new types.
3195 (reggroup_iterator_object_type): Define new Python type.
3196 (gdbpy_reggroup_getset): New static global.
3197 (reggroup_object_type): Define new Python type.
3198 * python/python-internal.h
3199
3200 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3201
3202 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3203 * python/py-arch.c (archpy_registers): New function.
3204 (arch_object_methods): Add 'registers' method.
3205 * python/py-registers.c: New file.
3206 * python/python-internal.h
3207 (gdbpy_new_register_descriptor_iterator): Declare.
3208 (gdbpy_initialize_registers): Declare.
3209 * python/python.c (do_start_initialization): Call
3210 gdbpy_initialize_registers.
3211 * NEWS: Mention additions to the Python API.
3212
3213 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3214
3215 * NEWS: Mention new Python API method.
3216 * python/py-unwind.c (pending_framepy_architecture): New function.
3217 (pending_frame_object_methods): Add architecture method.
3218
3219 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3220
3221 * gdbarch.c: Regenerate.
3222 * gdbarch.h: Regenerate.
3223 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3224 (gdbarch_data): Use internal_error for the case where
3225 deprecated_set_gdbarch_data was originally needed.
3226 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3227 and use passed in obstack.
3228 (libunwind_frame_set_descr): Should no longer get back NULL from
3229 gdbarch_data.
3230 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3231 type.
3232 * user-regs.c (user_regs_init): Update parameters, and use passed
3233 in obstack.
3234 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3235 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3236
3237 2020-07-06 Tom de Vries <tdevries@suse.de>
3238
3239 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3240 End-Of-Sequence in lte_is_less_than.
3241 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3242 "gdb: Don't reorder line table entries too much when sorting".
3243
3244 2020-07-06 Tom de Vries <tdevries@suse.de>
3245
3246 PR tui/26205
3247 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3248
3249 2020-07-05 Tom de Vries <tdevries@suse.de>
3250
3251 PR build/26187
3252 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3253 std::uncaught_exceptions instead of deprecated
3254 std::uncaught_exception.
3255
3256 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3257
3258 * macroexp.h (macro_stringify): Return
3259 gdb::unique_xmalloc_ptr<char>.
3260 * macroexp.c (macro_stringify): Likewise.
3261 * macrotab.c (fixup_definition): Update.
3262
3263 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3264
3265 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3266 (lex_one_token): Update.
3267 * macroexp.c (struct macro_buffer) <release>: Return
3268 gdb::unique_xmalloc_ptr<char>.
3269 (macro_stringify): Update.
3270 (macro_expand): Update.
3271 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3272 * macroexp.h (macro_expand_next): Likewise.
3273
3274 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
3275
3276 * macroexp.h (macro_lookup_ftype): Remove.
3277 (macro_expand, macro_expand_once, macro_expand_next): Remove
3278 lookup function parameters, add scope parameter.
3279 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3280 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3281 * macroscope.h (standard_macro_lookup): Change parameter type
3282 to macro_scope.
3283 * macroscope.c (standard_macro_lookup): Likewise.
3284 * c-exp.y (lex_one_token): Update.
3285 * macrocmd.c (macro_expand_command): Likewise.
3286 (macro_expand_once_command): Likewise.
3287
3288 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3289
3290 * inf-loop.c (inferior_event_handler): Remove client_data param.
3291 * inf-loop.h (inferior_event_handler): Likewise.
3292 * infcmd.c (step_1): Adjust.
3293 * infrun.c (proceed): Adjust.
3294 (fetch_inferior_event): Remove client_data param.
3295 (infrun_async_inferior_event_handler): Adjust.
3296 * infrun.h (fetch_inferior_event): Remove `void *` param.
3297 * linux-nat.c (handle_target_event): Adjust.
3298 * record-btrace.c (record_btrace_handle_async_inferior_event):
3299 Adjust.
3300 * record-full.c (record_full_async_inferior_event_handler):
3301 Adjust.
3302 * remote.c (remote_async_inferior_event_handler): Adjust.
3303
3304 2020-07-01 Tom Tromey <tom@tromey.com>
3305
3306 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3307 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3308
3309 2020-07-01 Tom Tromey <tom@tromey.com>
3310
3311 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3312 tui_gen_win_info.
3313 (tui_win_info::make_window): Merge with
3314 tui_gen_win_info::make_window.
3315 (tui_win_info::make_visible): Move from tui_gen_win_info.
3316 * tui/tui-win.c (tui_win_info::max_width): Move from
3317 tui_gen_win_info.
3318 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3319 type.
3320 <window_factory>: Likewise.
3321 * tui/tui-layout.c (tui_win_info::resize): Move from
3322 tui_gen_win_info.
3323 (make_standard_window): Change return type.
3324 (get_locator_window, tui_get_window_by_name): Likewise.
3325 (tui_layout_window::apply): Remove a cast.
3326 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3327 (struct tui_win_info): Merge with tui_gen_win_info.
3328 (struct tui_gen_win_info): Remove.
3329
3330 2020-07-01 Tom Tromey <tom@tromey.com>
3331
3332 * tui/tui-stack.h (struct tui_locator_window): Derive from
3333 tui_win_info.
3334 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3335 <can_box>: New method.
3336
3337 2020-07-01 Tom Tromey <tom@tromey.com>
3338
3339 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3340
3341 2020-07-01 Tom Tromey <tom@tromey.com>
3342
3343 * tui/tui-regs.c (tui_data_window::display_registers_from)
3344 (tui_data_window::display_registers_from)
3345 (tui_data_window::first_data_item_displayed)
3346 (tui_data_window::delete_data_content_windows): Update.
3347 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3348 Remove.
3349 (tui_data_window::check_register_values): Update.
3350 (tui_data_item_window::rerender): Add parameters. Update.
3351 (tui_data_item_window::refresh_window): Remove.
3352 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3353 virtual.
3354 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3355 tui_gen_win_info.
3356 <refresh_window, max_height, min_height>: Remove.
3357 <rerender>: Add parameters.
3358 <x, y, visible>: New members.
3359 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3360 <m_item_width>: New member.
3361
3362 2020-07-01 Tom Tromey <tom@tromey.com>
3363
3364 * tui/tui-regs.c (tui_data_window::show_register_group)
3365 (tui_data_window::check_register_values): Update.
3366 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3367 from item_no.
3368
3369 2020-07-01 Tom Tromey <tom@tromey.com>
3370
3371 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3372 useless "if".
3373
3374 2020-07-01 Tom Tromey <tom@tromey.com>
3375
3376 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3377 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3378
3379 2020-07-01 Tom Tromey <tom@tromey.com>
3380
3381 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3382 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3383 (struct tui_line_or_address): Move from tui-data.h.
3384 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3385 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3386 (tui_cmd_window, tui_source_window_base, tui_source_window)
3387 (tui_disasm_window): Don't declare.
3388 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3389 to tui-winsource.h.
3390 (SINGLE_KEY): Move to tui-stack.c.
3391
3392 2020-07-01 Tom Tromey <tom@tromey.com>
3393
3394 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3395 std::string.
3396 * tui/tui-regs.c (class tab_expansion_file): New.
3397 (tab_expansion_file::write): New method.
3398 (tui_register_format): Change return type. Use
3399 tab_expansion_file.
3400 (tui_get_register, tui_data_window::display_registers_from)
3401 (tui_data_item_window::rerender): Update.
3402 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3403 * tui/tui-io.c (tui_expand_tabs): Remove.
3404
3405 2020-07-01 Tom Tromey <tom@tromey.com>
3406
3407 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3408
3409 2020-07-01 Fangrui Song <maskray@google.com>
3410
3411 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3412
3413 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3414
3415 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3416 forms for DW_AT_associated and DW_AT_allocated attributes,
3417 which is already checked in function attr_to_dynamic_prop.
3418
3419 2020-06-30 Tom Tromey <tromey@adacore.com>
3420
3421 * dwarf2/read.c (quirk_rust_enum): Correctly call
3422 alloc_rust_variant for default-less enum.
3423
3424 2020-06-30 Tom Tromey <tromey@adacore.com>
3425
3426 PR build/26183:
3427 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3428 gdb::to_string.
3429
3430 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
3431
3432 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3433 * gdbarch.h: Re-generate.
3434
3435 2020-06-28 Tom Tromey <tom@tromey.com>
3436
3437 * command.h (cmd_types): Remove.
3438 (cmd_type): Don't declare.
3439 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3440 typedef.
3441 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3442 * cli/cli-decode.c (cmd_type): Remove.
3443
3444 2020-06-27 Pedro Alves <palves@redhat.com>
3445
3446 * fork-child.c (prefork_hook): Adjust.
3447 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3448 Delete.
3449 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3450 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3451 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3452 Remove declarations.
3453 (struct inferior) <set_tty, tty>: New methods.
3454 (struct inferior) <terminal>: Rename to ...
3455 (struct inferior) <m_terminal>: ... this and make private.
3456 * main.c (captured_main_1): Adjust.
3457 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3458 (mi_cmd_inferior_tty_show): Adjust.
3459 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3460 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3461
3462 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
3463
3464 * configure.ac: Add --enable-libctf: handle --disable-static
3465 properly.
3466 * acinclude.m4: sinclude ../config/enable.m4.
3467 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3468 (LIBCTF): Substitute in.
3469 (CTF_DEPS): New, likewise.
3470 (CLIBS): libctf needs symbols from libbfd: move earlier.
3471 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3472 flags.
3473 * ctfread.c: Surround in ENABLE_LIBCTF.
3474 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3475 * configure: Regenerate.
3476 * config.in: Likewise.
3477
3478 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3479
3480 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3481
3482 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3483
3484 * inferior.h (struct inferior) <terminal>: Change type to
3485 gdb::unique_xmalloc_ptr<char>.
3486 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3487 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3488 field, adjust to unique pointer.
3489 (get_inferior_io_terminal): Adjust to unique pointer.
3490
3491 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3492
3493 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3494 registers, not just the known core set of registers.
3495
3496 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3497
3498 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3499 fflags, frm, and fcsr registers.
3500 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3501 restore groups.
3502 (riscv_tdesc_unknown_reg): New function.
3503 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3504 tdesc_use_registers.
3505 * riscv-tdep.h (struct gdbarch_tdep): Add
3506 unknown_csrs_first_regnum, unknown_csrs_count,
3507 duplicate_fflags_regnum, duplicate_frm_regnum, and
3508 duplicate_fcsr_regnum fields.
3509
3510 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3511
3512 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3513 callback, use the callback (when not null) to help number unknown
3514 registers.
3515 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3516 (tdesc_use_registers): Add extra parameter to declaration.
3517
3518 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3519
3520 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3521 in the file.
3522 (class riscv_pending_register_alias): Likewise.
3523 (riscv_register_feature::register_info): Change 'required_p' field
3524 to 'required', and change its type. Add 'check' member function.
3525 (riscv_register_feature::register_info::check): Define new member
3526 function.
3527 (riscv_xreg_feature): Change initialisation of 'required' field.
3528 (riscv_freg_feature): Likewise.
3529 (riscv_virtual_feature): Likewise.
3530 (riscv_csr_feature): Likewise.
3531 (riscv_check_tdesc_feature): Take extra parameter, the csr
3532 tdesc_feature, rewrite the function to use the new
3533 riscv_register_feature::register_info::check function.
3534 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3535
3536 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3537
3538 * features/Makefile: Remove all references to the deleted files
3539 below.
3540 * features/riscv/32bit-csr.c: Deleted.
3541 * features/riscv/32bit-csr.xml: Deleted.
3542 * features/riscv/64bit-csr.c: Deleted.
3543 * features/riscv/64bit-csr.xml: Deleted.
3544 * features/riscv/rebuild-csr-xml.sh: Deleted.
3545
3546 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3547
3548 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3549 whitespace error for declaration of names member variable.
3550 (struct riscv_register_feature): Add new prefer_first_name member
3551 variable, and fix whitespace error in declaration of registers.
3552 (riscv_xreg_feature): Initialize prefer_first_name field.
3553 (riscv_freg_feature): Likewise.
3554 (riscv_virtual_feature): Likewise.
3555 (riscv_csr_feature): Likewise.
3556 (riscv_register_name): Expand on comments. Remove register name
3557 modifications for CSR and virtual registers.
3558
3559 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3560
3561 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3562 errors.
3563
3564 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3565
3566 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3567 riscv-opc.h.
3568 (class riscv_pending_register_alias): New class.
3569 (riscv_check_tdesc_feature): Take vector of pending aliases and
3570 populate it as appropriate.
3571 (riscv_setup_register_aliases): Delete.
3572 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3573 to riscv_check_tdesc_feature in all cases. Use the vector to
3574 create the register aliases.
3575
3576 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3577
3578 * sol2-tdep.c (sol2_static_transform_name): Remove.
3579 (sol2_init_abi): Don't register it.
3580 * gdbarch.sh (static_transform_name): Remove.
3581 * gdbarch.c, gdbarch.h: Regenerate.
3582
3583 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3584 gdbarch_static_transform_name.
3585 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3586 * stabsread.c (define_symbol) <'X'>: Remove.
3587 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3588 handling.
3589 <'V'>: Likewise.
3590 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3591 <'S'>: Remove call to gdbarch_static_transform_name.
3592
3593 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3594
3595 * procfs.c (procfs_pre_trace): New function.
3596 (procfs_target::create_inferior): Pass it to fork_inferior.
3597
3598 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3599
3600 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3601 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3602 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3603 sol2-tdep.o, sparc-sol2-tdep.o.
3604 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3605 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3606 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3607 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3608
3609 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3610
3611 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3612 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3613 Call sol2_init_abi.
3614 Remove calls to set_gdbarch_skip_solib_resolver,
3615 set_gdbarch_core_pid_to_str.
3616 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3617 (i386_sol2_static_transform_name): Remove.
3618 (i386_sol2_init_abi): Call sol2_init_abi.
3619 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3620 set_gdbarch_static_transform_name,
3621 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3622 Use sol2_sigtramp_p.
3623 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3624 (sol2_sigtramp_p): New function.
3625 (sol2_static_transform_name): New function.
3626 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3627 (sol2_init_abi): New function.
3628 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3629 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3630 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3631 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3632 (sparc_sol2_static_transform_name): Remove.
3633 (sparc32_sol2_init_abi): Call sol2_init_abi.
3634 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3635 set_gdbarch_static_transform_name,
3636 set_gdbarch_skip_solib_resolver,
3637 set_gdbarch_core_pid_to_str.
3638 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3639 (sparc_sol2_static_transform_name): Remove
3640 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3641 call sol2_sigtramp_p.
3642 (sparc64_sol2_init_abi): Call sol2_init_abi.
3643 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3644 set_gdbarch_static_transform_name,
3645 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3646
3647 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3648
3649 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3650 * exec.c (validate_exec_file): If from_tty, set both
3651 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3652 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3653 and from_tty, unconditionally ask a confirmation.
3654
3655 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3656
3657 * target-descriptions.c (tdesc_architecture_name): Protect against
3658 NULL pointer dereference.
3659 (maint_print_xml_tdesc_cmd): New function.
3660 (_initialize_target_descriptions): Register new 'maint print
3661 xml-tdesc' command and give it the filename completer.
3662 * NEWS: Mention new 'maint print xml-tdesc' command.
3663
3664 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3665
3666 * target-descriptions.c (class tdesc_compatible_info): New class.
3667 (struct target_desc): Change type of compatible vector.
3668 (tdesc_compatible_p): Update for change in type of
3669 target_desc::compatible.
3670 (tdesc_compatible_info_list): New function.
3671 (tdesc_compatible_info_arch_name): New function.
3672 (tdesc_add_compatible): Update for change in type of
3673 target_desc::compatible.
3674 (print_c_tdesc::visit_pre): Likewise.
3675
3676 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3677
3678 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3679 whitespace to underscore.
3680 (maint_print_c_tdesc_cmd): Use fake filename for target
3681 descriptions that came from the target.
3682 (_initialize_target_descriptions): Add filename command completion
3683 for 'maint print c-tdesc'.
3684
3685 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3686
3687 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3688 lines.
3689
3690 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3691
3692 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3693 lines.
3694 (dwarf2_find_location_expression): Likewise.
3695 (call_site_parameter_matches): Likewise.
3696 (dwarf2_compile_expr_to_ax): Likewise.
3697 (disassemble_dwarf_expression): Likewise.
3698 (loclist_describe_location): Likewise.
3699
3700 2020-06-23 Pedro Alves <palves@redhat.com>
3701
3702 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3703 progspace-and-thread.h. Include scoped-mock-context.h instead.
3704 (register_to_value_test): Use scoped_mock_context.
3705 * regcache.c: Include "scoped-mock-context.h".
3706 (cooked_read_test): Don't error out if a target is already pushed.
3707 Use scoped_mock_context. Adjust.
3708 * scoped-mock-context.h: New file.
3709
3710 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3711
3712 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3713 initializer.
3714 (ada_language::is_string_type_p): New member function.
3715 * c-lang.c (c_language_data): Delete la_is_string_type_p
3716 initializer.
3717 (cplus_language_data): Likewise.
3718 (asm_language_data): Likewise.
3719 (minimal_language_data): Likewise.
3720 * d-lang.c (d_language_data): Likewise.
3721 * f-lang.c (f_is_string_type_p): Delete function, implementation
3722 moved to f_language::is_string_type_p.
3723 (f_language_data): Delete la_is_string_type_p initializer.
3724 (f_language::is_string_type_p): New member function,
3725 implementation from f_is_string_type_p.
3726 * go-lang.c (go_is_string_type_p): Delete function, implementation
3727 moved to go_language::is_string_type_p.
3728 (go_language_data): Delete la_is_string_type_p initializer.
3729 (go_language::is_string_type_p): New member function,
3730 implementation from go_is_string_type_p.
3731 * language.c (language_defn::is_string_type_p): Define new member
3732 function.
3733 (default_is_string_type_p): Make static, add comment copied from
3734 header file.
3735 (unknown_language_data): Delete la_is_string_type_p initializer.
3736 (unknown_language::is_string_type_p): New member function.
3737 (auto_language_data): Delete la_is_string_type_p initializer.
3738 (auto_language::is_string_type_p): New member function.
3739 * language.h (language_data): Delete la_is_string_type_p field.
3740 (language_defn::is_string_type_p): Declare new function.
3741 (default_is_string_type_p): Delete desclaration, move comment to
3742 definition.
3743 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3744 moved to m2_language::is_string_type_p.
3745 (m2_language_data): Delete la_is_string_type_p initializer.
3746 (m2_language::is_string_type_p): New member function,
3747 implementation from m2_is_string_type_p.
3748 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3749 initializer.
3750 * opencl-lang.c (opencl_language_data): Likewise.
3751 * p-lang.c (pascal_is_string_type_p): Delete function,
3752 implementation moved to pascal_language::is_string_type_p.
3753 (pascal_language_data): Delete la_is_string_type_p initializer.
3754 (pascal_language::is_string_type_p): New member function,
3755 implementation from pascal_is_string_type_p.
3756 * rust-lang.c (rust_is_string_type_p): Delete function,
3757 implementation moved to rust_language::is_string_type_p.
3758 (rust_language_data): Delete la_is_string_type_p initializer.
3759 (rust_language::is_string_type_p): New member function,
3760 implementation from rust_is_string_type_p.
3761 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3762 is_string_type_p.
3763
3764 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3765
3766 * ada-lang.c (ada_language_data): Delete la_print_typedef
3767 initializer.
3768 (ada_language::print_typedef): New member function.
3769 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3770 (cplus_language_data): Likewise.
3771 (asm_language_data): Likewise.
3772 (minimal_language_data): Likewise.
3773 * d-lang.c (d_language_data): Likewise.
3774 * f-lang.c (f_language_data): Likewise.
3775 (f_language::print_typedef): New member function.
3776 * go-lang.c (go_language_data): Delete la_print_typedef
3777 initializer.
3778 * language.c (language_defn::print_typedef): Define member
3779 function.
3780 (unknown_language_data): Delete la_print_typedef initializer.
3781 (unknown_language::print_typedef): New member function.
3782 (auto_language_data): Delete la_print_typedef initializer.
3783 (auto_language::print_typedef): New member function.
3784 * language.h (language_data): Delete la_print_typedef field.
3785 (language_defn::print_typedef): Declare new member function.
3786 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3787 (default_print_typedef): Delete declaration.
3788 * m2-lang.c (m2_language_data): Delete la_print_typedef
3789 initializer.
3790 (m2_language::print_typedef): New member function.
3791 * objc-lang.c (objc_language_data): Delete la_print_typedef
3792 initializer.
3793 * opencl-lang.c (opencl_language_data): Likewise.
3794 * p-lang.c (pascal_language_data): Likewise.
3795 (pascal_language::print_typedef): New member function.
3796 * rust-lang.c (rust_print_typedef): Delete function,
3797 implementation moved to rust_language::print_typedef.
3798 (rust_language): Delete la_print_typedef initializer.
3799 (rust_language::print_typedef): New member function,
3800 implementation from rust_print_typedef.
3801 * typeprint.c (default_print_typedef): Delete.
3802
3803 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3804
3805 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3806 (ada_language::printstr): New member function.
3807 * c-lang.c (c_language_data): Delete la_printstr initializer.
3808 (cplus_language_data): Likewise.
3809 (asm_language_data): Likewise.
3810 (minimal_language_data): Likewise.
3811 * d-lang.c (d_language_data): Likewise.
3812 * f-lang.c (f_printstr): Rename to f_language::printstr.
3813 (f_language_data): Delete la_printstr initializer.
3814 (f_language::printstr): New member function, implementation from
3815 f_printstr.
3816 * go-lang.c (go_language_data): Delete la_printstr initializer.
3817 * language.c (language_defn::printstr): Define new member
3818 function.
3819 (unk_lang_printstr): Delete.
3820 (unknown_language_data): Delete la_printstr initializer.
3821 (unknown_language::printstr): New member function.
3822 (auto_language_data): Delete la_printstr initializer.
3823 (auto_language::printstr): New member function.
3824 * language.h (language_data): Delete la_printstr field.
3825 (language_defn::printstr): Declare new member function.
3826 (LA_PRINT_STRING): Update call to printstr.
3827 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3828 (m2_language_data): Delete la_printstr initializer.
3829 (m2_language::printstr): New member function, implementation from
3830 m2_printstr.
3831 * objc-lang.c (objc_language_data): Delete la_printstr
3832 initializer.
3833 * opencl-lang.c (opencl_language_data): Likewise.
3834 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3835 (pascal_language_data): Delete la_printstr initializer.
3836 (pascal_language::printstr): New member function, implementation
3837 from pascal_printstr.
3838 * p-lang.h (pascal_printstr): Delete declaration.
3839 * rust-lang.c (rust_printstr): Update header comment.
3840 (rust_language_data): Delete la_printstr initializer.
3841 (rust_language::printstr): New member function.
3842
3843 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3844
3845 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3846 (ada_language::printchar): New member function.
3847 * c-lang.c (c_language_data): Delete la_printchar initializer.
3848 (cplus_language_data): Likewise.
3849 (asm_language_data): Likewise.
3850 (minimal_language_data): Likewise.
3851 * d-lang.c (d_language_data): Likewise.
3852 * f-lang.c (f_printchar): Rename to f_language::printchar.
3853 (f_language_data): Delete la_printchar initializer.
3854 (f_language::printchar): New member function, implementation from
3855 f_printchar.
3856 * go-lang.c (go_language_data): Delete la_printchar initializer.
3857 * language.c (unk_lang_printchar): Delete.
3858 (language_defn::printchar): Define new member function.
3859 (unknown_language_data): Delete la_printchar initializer.
3860 (unknown_language::printchar): New member function.
3861 (auto_language_data): Delete la_printchar initializer.
3862 (auto_language::printchar): New member function.
3863 * language.h (language_data): Delete la_printchar field.
3864 (language_defn::printchar): Declare new member function.
3865 (LA_PRINT_CHAR): Update call to printchar.
3866 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3867 (m2_language::printchar): New member function.
3868 * objc-lang.c (objc_language_data): Delete la_printchar
3869 initializer.
3870 * opencl-lang.c (opencl_language_data): Likewise.
3871 * p-lang.c (pascal_language_data): Delete la_printchar
3872 initializer.
3873 (pascal_language::printchar): New member function.
3874 * rust-lang.c (rust_printchar): Rename to
3875 rust_language::printchar.
3876 (rust_language_data): Delete la_printchar initializer.
3877 (rust_language::printchar): New member function, implementation
3878 from rust_printchar.
3879
3880 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3881
3882 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3883 (ada_language_data): Delete la_emitchar initializer.
3884 (ada_language::emitchar): New member function, implementation from
3885 emit_char.
3886 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3887 (cplus_language_data): Likewise.
3888 (asm_language_data): Likewise.
3889 (minimal_language_data): Likewise.
3890 * d-lang.c (d_language_data): Likewise.
3891 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3892 (f_language_data): Delete la_emitchar initializer.
3893 (f_language::emitchar): New member function, implementation from
3894 f_emit_char.
3895 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3896 * language.c (unk_lang_emit_char): Delete.
3897 (language_defn::emitchar): New member function definition.
3898 (unknown_language_data): Delete la_emitchar initializer.
3899 (unknown_language::emitchar): New member function.
3900 (auto_language_data): Delete la_emitchar initializer.
3901 (auto_language::emitchar): New member function.
3902 * language.h (language_data): Delete la_emitchar field.
3903 (language_defn::emitchar): New member field declaration.
3904 (LA_EMIT_CHAR): Update call to emitchar.
3905 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3906 (m2_language_data): Delete la_emitchar initializer.
3907 (m2_language::emitchar): New member function, implementation from
3908 m2_emit_char.
3909 * objc-lang.c (objc_language_data): Delete la_emitchar
3910 initializer.
3911 * opencl-lang.c (opencl_language_data): Likewise.
3912 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3913 (pascal_language_data): Delete la_emitchar initializer.
3914 (pascal_language::emitchar): New member function, implementation
3915 from pascal_emit_char.
3916 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3917 (rust_language_data): Delete la_emitchar initializer.
3918 (rust_language::emitchar): New member function, implementation
3919 from rust_emitchar.
3920
3921 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3922
3923 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3924 (ada_language_data): Delete la_post_parser initializer.
3925 (ada_language::post_parser): New member function.
3926 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3927 (cplus_language_data): Likewise.
3928 (asm_language_data): Likewise.
3929 (minimal_language_data): Likewise.
3930 * d-lang.c (d_language_data): Likewise.
3931 * f-lang.c (f_language_data): Likewise.
3932 * go-lang.c (go_language_data): Likewise.
3933 * language.c (unknown_language_data): Likewise.
3934 (auto_language_data): Likewise.
3935 * language.h (language_data): Delete la_post_parser field.
3936 (language_defn::post_parser): New member function.
3937 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3938 * objc-lang.c (objc_language_data): Likewise.
3939 * opencl-lang.c (opencl_language_data): Likewise.
3940 * p-lang.c (pascal_language_data): Likewise.
3941 * parse.c (parse_exp_in_context): Update call to post_parser.
3942 (null_post_parser): Delete definition.
3943 * parser-defs.h (null_post_parser): Delete declaration.
3944 * rust-lang.c (rust_language_data): Delete la_post_parser
3945 initializer.
3946
3947 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3948
3949 * ada-lang.c (parse): Rename to ada_language::parser.
3950 (ada_language_data): Delete la_parser initializer.
3951 (ada_language::parser): New member function, implementation from
3952 parse.
3953 * c-lang.c (c_language_data): Delete la_parser initializer.
3954 (cplus_language_data): Likewise.
3955 (asm_language_data): Likewise.
3956 (minimal_language_data): Likewise.
3957 * d-lang.c (d_language_data): Likewise.
3958 (d_language::parser): New member function.
3959 * f-lang.c (f_language_data): Delete la_parser initializer.
3960 (f_language::parser): New member function.
3961 * go-lang.c (go_language_data): Delete la_parser initializer.
3962 (go_language::parser): New member function.
3963 * language.c (unk_lang_parser): Delete.
3964 (language_defn::parser): Define new member function.
3965 (unknown_language_data): Delete la_parser initializer.
3966 (unknown_language::parser): New member function.
3967 (auto_language_data): Delete la_parser initializer.
3968 (auto_language::parser): New member function.
3969 * language.h (language_data): Delete la_parser field.
3970 (language_defn::parser): Declare new member function.
3971 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3972 (m2_language::parser): New member function.
3973 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3974 * opencl-lang.c (opencl_language_data): Likewise.
3975 * p-lang.c (pascal_language_data): Likewise.
3976 (pascal_language::parser): New member function.
3977 * parse.c (parse_exp_in_context): Update call to parser.
3978 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3979 (rust_language::parser): New member function.
3980
3981 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3982
3983 * top.c (print_gdb_configuration): Print --with-python-libdir
3984 configuration value.
3985
3986 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3987
3988 * NEWS: Mention change to the alias command.
3989
3990 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3991
3992 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3993 (alias_command_completer)
3994 (make_alias_options_def_group): New functions.
3995 (alias_opts, alias_option_defs): New struct and array.
3996 (alias_usage_error): Update usage.
3997 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3998 Use option framework.
3999 (_initialize_cli_cmds): Update alias command help.
4000 Update aliases command help.
4001 (show_user):
4002 Add NULL for new default_args lookup_cmd argument.
4003 (valid_command_p): Rename to validate_aliased_command.
4004 Add NULL for new default_args lookup_cmd argument. Verify that the
4005 aliased_command has no default args.
4006 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4007 (lookup_cmd_1, lookup_cmd): New argument default_args.
4008 (add_alias_cmd):
4009 Add NULL for new default_args lookup_cmd argument.
4010 (print_help_for_command): Show default args under the layout
4011 alias some_alias = some_aliased_cmd some_alias_default_arg.
4012 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4013 xfree default_args in destructor.
4014 * cli/cli-script.c (process_next_line, do_define_command):
4015 Add NULL for new default_args lookup_cmd argument.
4016 * command.h: Declare new default_args argument in lookup_cmd
4017 and lookup_cmd_1.
4018 * completer.c (complete_line_internal_1):
4019 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4020 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4021 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4022 Likewise.
4023 * infcmd.c (_initialize_infcmd): Likewise.
4024 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4025 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4026 * python/py-param.c (add_setshow_generic): Likewise.
4027 * remote.c (_initialize_remote): Likewise.
4028 * top.c (execute_command): Prepend default_args if command has some.
4029 (set_verbose):
4030 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4031 * tracepoint.c (validate_actionline, encode_actions_1):
4032 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4033
4034 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4035
4036 * jit.c (jit_read_descriptor): Use bool as the return type.
4037 (jit_breakpoint_re_set_internal): Use bool as the return type.
4038 Invert the return value logic; return true if the jit breakpoint
4039 has been successfully initialized.
4040 (jit_inferior_init): Update the call to
4041 jit_breakpoint_re_set_internal.
4042
4043 2020-06-22 Pedro Alves <palves@redhat.com>
4044
4045 PR gdb/25939
4046 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4047 Use the current inferior instead. Don't return
4048 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4049 wait again.
4050 * sol-thread.c (sol_thread_target::wait): Don't reference
4051 inferior_ptid.
4052 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4053 (sol_update_thread_list_callback): Use the current inferior's pid
4054 instead of inferior_ptid.
4055
4056 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4057
4058 * procfs.c: Cleanup many comments.
4059
4060 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4061 (AFTER_WATCHFLAG): Replace by value.
4062
4063 (MAIN_PROC_NAME_FORMAT): Inline ...
4064 (create_procinfo): ... here.
4065
4066 (procfs_debug_inferior): Remove SYS_exec handling.
4067 (syscall_is_exec): Likewise.
4068 (procfs_set_exec_trap): Likewise.
4069
4070 (syscall_is_lwp_exit): Inline in callers.
4071 (syscall_is_exit): Likewise.
4072 (syscall_is_exec): Likewise.
4073 (syscall_is_lwp_create): Likewise.
4074
4075 (invalidate_cache): Remove #if 0 code.
4076
4077 (make_signal_thread_runnable): Remove.
4078 (procfs_target::resume): Remove #if 0 code.
4079
4080 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4081
4082 PR gdb/25939
4083 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4084 call ...
4085 (procfs_target::create_inferior): ... here.
4086
4087 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4088
4089 * exec.c (validate_exec_file): Ensure the build-id is up to
4090 date by calling reopen_exec_file (that checks file timestamp
4091 to decide to re-read the file).
4092
4093 2020-06-18 Pedro Alves <palves@redhat.com>
4094
4095 PR gdb/25412
4096 * gdbthread.h (delete_thread, delete_thread_silent)
4097 (find_thread_ptid): Update comments.
4098 * thread.c (current_thread_): New global.
4099 (is_current_thread): Move higher, and reimplement.
4100 (inferior_thread): Reimplement.
4101 (set_thread_exited): Use bool. Add assertions.
4102 (add_thread_silent): Simplify thread-reuse handling by always
4103 calling delete_thread.
4104 (delete_thread): Remove intro comment.
4105 (find_thread_ptid): Skip exited threads.
4106 (switch_to_thread_no_regs): Write to current_thread_.
4107 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4108 INFERIOR_PTID. Clear current_thread_.
4109
4110 2020-06-18 Pedro Alves <palves@redhat.com>
4111
4112 * aix-thread.c (pd_update): Use switch_to_thread.
4113
4114 2020-06-18 Pedro Alves <palves@redhat.com>
4115
4116 * ravenscar-thread.c (ravenscar_thread_target): Update.
4117 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4118 (ravenscar_thread_target::add_active_thread): ... this. Don't
4119 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4120 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4121
4122 2020-06-18 Pedro Alves <palves@redhat.com>
4123
4124 * nat/windows-nat.c (current_windows_thread): Remove.
4125 * nat/windows-nat.h (current_windows_thread): Remove.
4126 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4127 Adjust.
4128 (display_selectors): Adjust to fetch the current
4129 windows_thread_info based on inferior_ptid.
4130 (fake_create_process): No longer write to current_windows_thread.
4131 (windows_nat_target::get_windows_debug_event):
4132 Don't set inferior_ptid or current_windows_thread.
4133 (windows_nat_target::wait): Adjust to not rely on
4134 current_windows_thread.
4135 (do_initial_windows_stuff): Now a method of windows_nat_target.
4136 Switch to the last_ptid thread.
4137 (windows_nat_target::attach): Adjust.
4138 (windows_nat_target::detach): Use switch_to_no_thread instead of
4139 writing to inferior_ptid directly.
4140 (windows_nat_target::create_inferior): Adjust.
4141
4142 2020-06-18 Pedro Alves <palves@redhat.com>
4143
4144 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4145
4146 2020-06-18 Pedro Alves <palves@redhat.com>
4147
4148 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4149 after creating it, instead of writing to inferior_ptid. Don't
4150 write to inferior_ptid.
4151
4152 2020-06-18 Pedro Alves <palves@redhat.com>
4153
4154 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4155
4156 2020-06-18 Pedro Alves <palves@redhat.com>
4157
4158 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4159 it, instead of writing to inferior_ptid.
4160
4161 2020-06-18 Pedro Alves <palves@redhat.com>
4162
4163 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4164 to inferior_ptid.
4165
4166 2020-06-18 Pedro Alves <palves@redhat.com>
4167
4168 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4169 instead of writing to inferior_ptid directly.
4170
4171 2020-06-18 Pedro Alves <palves@redhat.com>
4172
4173 * corelow.c (core_target::close): Use switch_to_no_thread instead
4174 of writing to inferior_ptid directly.
4175 (add_to_thread_list, core_target_open): Use switch_to_thread
4176 instead of writing to inferior_ptid directly.
4177
4178 2020-06-18 Pedro Alves <palves@redhat.com>
4179
4180 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4181 inferior_ptid.
4182 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4183 inferior_ptid.
4184 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4185 inferior_ptid directly.
4186 (darwin_nat_target::init_thread_list): Switch to thread, instead
4187 of writing to inferior_ptid.
4188 (darwin_nat_target::attach): Don't write to inferior_ptid.
4189 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4190
4191 2020-06-18 Pedro Alves <palves@redhat.com>
4192
4193 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4194 thread.
4195 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4196 Instead use switch_to_thread.
4197 (gnu_nat_target::detach): Use switch_to_no_thread
4198 instead of writing to inferior_ptid directly. Used passed-in
4199 inferior instead of looking up the inferior by pid.
4200
4201 2020-06-18 Pedro Alves <palves@redhat.com>
4202
4203 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4204 inferior_ptid.
4205
4206 2020-06-18 Pedro Alves <palves@redhat.com>
4207
4208 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4209 inferior_ptid.
4210 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4211 thread.
4212 (nto_procfs_target::detach): Avoid referencing
4213 inferior_ptid. Use switch_to_no_thread instead of writing to
4214 inferior_ptid directly.
4215 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4216 instead of writing to inferior_ptid directly.
4217 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4218 to thread.
4219
4220 2020-06-18 Pedro Alves <palves@redhat.com>
4221
4222 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4223 after creating it, instead of writing to inferior_ptid.
4224 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4225 to inferior_ptid directly.
4226 (gdbsim_target::wait): Don't write to inferior_ptid.
4227
4228 2020-06-18 Pedro Alves <palves@redhat.com>
4229
4230 * remote.c (remote_target::remote_notice_new_inferior): Use
4231 switch_to_thread instead of writing to inferior_ptid directly.
4232 (remote_target::add_current_inferior_and_thread): Use
4233 switch_to_no_thread instead of writing to inferior_ptid directly.
4234 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4235 and switch_to_thread instead of using set_current_inferior or
4236 writing to inferior_ptid directly.
4237
4238 2020-06-18 Pedro Alves <palves@redhat.com>
4239
4240 * tracectf.c (ctf_target_open): Switch to added thread instead of
4241 writing to inferior_ptid directly.
4242 (ctf_target::close): Use switch_to_no_thread instead of writing to
4243 inferior_ptid directly.
4244
4245 2020-06-18 Pedro Alves <palves@redhat.com>
4246
4247 * tracefile-tfile.c (tfile_target_open): Don't write to
4248 inferior_ptid directly, instead switch to added thread.
4249 (tfile_target::close): Use switch_to_no_thread instead of writing
4250 to inferior_ptid directly.
4251
4252 2020-06-18 Pedro Alves <palves@redhat.com>
4253
4254 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4255 (procfs_target::detach): Use switch_to_no_thread
4256 instead of writing to inferior_ptid directly.
4257 (do_attach): Change return type to void. Switch to the added
4258 thread.
4259 (procfs_target::create_inferior): Switch to the added thread.
4260 (procfs_do_thread_registers): Don't write to inferior_ptid.
4261
4262 2020-06-18 Pedro Alves <palves@redhat.com>
4263
4264 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4265 of writing to inferior_ptid.
4266 (scoped_restore_exited_inferior): Delete.
4267 (handle_vfork_child_exec_or_exit): Simplify using
4268 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4269 instead of writing to inferior_ptid.
4270 (THREAD_STOPPED_BY): Delete.
4271 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4272 (thread_stopped_by_hw_breakpoint): Delete.
4273 (save_waitstatus): Use
4274 scoped_restore_current_thread+switch_to_thread, and call
4275 target_stopped_by_watchpoint instead of
4276 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4277 instead of thread_stopped_by_sw_breakpoint, and
4278 target_stopped_by_hw_breakpoint instead of
4279 thread_stopped_by_hw_breakpoint.
4280 (handle_inferior_event)
4281 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4282 inferior_ptid directly, nor
4283 set_current_inferior/set_current_program_space. Use
4284 switch_to_thread / switch_to_inferior_no_thread instead.
4285
4286 2020-06-18 Pedro Alves <palves@redhat.com>
4287
4288 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4289 instead of writing to inferior_ptid.
4290
4291 2020-06-18 Pedro Alves <palves@redhat.com>
4292
4293 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4294 added thread.
4295 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4296 to the added thread.
4297 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4298 instead of writing to inferior_ptid.
4299
4300 2020-06-18 Pedro Alves <palves@redhat.com>
4301
4302 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4303 (register_to_value_test): Mock a program_space too. Heap-allocate
4304 the address space. Don't write to inferior_ptid. Use
4305 switch_to_thread instead.
4306
4307 2020-06-18 Pedro Alves <palves@redhat.com>
4308
4309 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4310 Delete.
4311 (find_signalled_thread()): New, factored out from
4312 linux_make_corefile_notes and adjusted to handle exited threads.
4313 (linux_make_corefile_notes): Adjust to use the new
4314 find_signalled_thread.
4315
4316 2020-06-18 Pedro Alves <palves@redhat.com>
4317
4318 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4319 of saving/restoring inferior_ptid.
4320
4321 2020-06-17 Tom Tromey <tom@tromey.com>
4322
4323 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4324 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4325 declare.
4326 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4327
4328 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
4329
4330 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4331 of partial symtabs.
4332
4333 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4334
4335 * regformats/reg-arm.dat: Remove.
4336 * regformats/reg-bfin.dat: Remove.
4337 * regformats/reg-cris.dat: Remove.
4338 * regformats/reg-crisv32.dat: Remove.
4339 * regformats/reg-m32r.dat: Remove.
4340 * regformats/reg-tilegx.dat: Remove.
4341 * regformats/reg-tilegx32.dat: Remove.
4342
4343 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4344
4345 * features/Makefile (WHICH): Remove arm files.
4346 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4347 * regformats/arm/arm-with-neon.dat: Remove.
4348 * regformats/arm/arm-with-vfpv2.dat: Remove.
4349 * regformats/arm/arm-with-vfpv3.dat: Remove.
4350
4351 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4352
4353 * features/Makefile (XMLTOC): Remove rx.xml.
4354
4355 2020-06-17 Pedro Alves <palves@redhat.com>
4356
4357 * gdbthread.h (thread_control_state) <trap_expected> Update
4358 comments.
4359
4360 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4361
4362 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4363 ada_language::lookup_symbol_nonlocal.
4364 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4365 (ada_language::lookup_symbol_nonlocal): New member function,
4366 implementation from ada_lookup_symbol_nonlocal.
4367 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4368 initializer.
4369 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4370 initializer.
4371 (cplus_language::lookup_symbol_nonlocal): New member function.
4372 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4373 (minimal_language_data) Likewise.
4374 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4375 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4376 initializer.
4377 (d_language::lookup_symbol_nonlocal): New member function.
4378 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4379 initializer.
4380 (f_language::lookup_symbol_nonlocal): New member function.
4381 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4382 initializer.
4383 * language.c (unknown_language_data): Likewise.
4384 (auto_language_data): Likewise.
4385 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4386 field.
4387 (language_defn::lookup_symbol_nonlocal): New member function.
4388 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4389 initializer.
4390 * objc-lang.c (objc_language_data): Likewise.
4391 * opencl-lang.c (opencl_language_data): Likewise.
4392 * p-lang.c (pascal_language_data): Likewise.
4393 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4394 rust_language::lookup_symbol_nonlocal.
4395 (rust_language_data): Delete la_lookup_symbol_nonlocal
4396 initializer.
4397 (rust_language::lookup_symbol_nonlocal): New member function,
4398 implementation from rust_lookup_symbol_nonlocal.
4399 * symtab.c (lookup_symbol_aux): Update call to
4400 lookup_symbol_nonlocal.
4401 (basic_lookup_symbol_nonlocal): Rename to...
4402 (language_defn::lookup_symbol_nonlocal): ...this, and update
4403 header comment. Remove language_defn parameter, and replace with
4404 uses of `this'.
4405 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4406
4407 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4408
4409 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4410 initializer.
4411 (ada_language::value_print_inner): New member function.
4412 * c-lang.c (c_language_data): Delete la_value_print_inner
4413 initializer.
4414 (cplus_language_data): Likewise.
4415 (asm_language_data): Likewise.
4416 (minimal_language_data): Likewise.
4417 * d-lang.c (d_language_data): Likewise.
4418 (d_language::value_print_inner): New member function.
4419 * f-lang.c (f_language_data): Delete la_value_print_inner
4420 initializer.
4421 (f_language::value_print_inner): New member function.
4422 * f-lang.h (f_value_print_innner): Rename to...
4423 (f_value_print_inner): ...this (note spelling of 'inner').
4424 * f-valprint.c (f_value_print_innner): Rename to...
4425 (f_value_print_inner): ...this (note spelling of 'inner').
4426 * go-lang.c (go_language_data): Delete la_value_print_inner
4427 initializer.
4428 (go_language::value_print_inner): New member function.
4429 * language.c (language_defn::value_print_inner): Define new member
4430 function.
4431 (unk_lang_value_print_inner): Delete.
4432 (unknown_language_data): Delete la_value_print_inner initializer.
4433 (unknown_language::value_print_inner): New member function.
4434 (auto_language_data): Delete la_value_print_inner initializer.
4435 (auto_language::value_print_inner): New member function.
4436 * language.h (language_data): Delete la_value_print_inner field.
4437 (language_defn::value_print_inner): Delcare new member function.
4438 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4439 initializer.
4440 (m2_language::value_print_inner): New member function.
4441 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4442 initializer.
4443 * opencl-lang.c (opencl_language_data): Likewise.
4444 * p-lang.c (pascal_language_data): Likewise.
4445 (pascal_language::value_print_inner): New member function.
4446 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4447 initializer.
4448 (rust_language::value_print_inner): New member function.
4449 * valprint.c (do_val_print): Update call to value_print_inner.
4450
4451 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4452
4453 * ada-lang.c (ada_language_data): Delete la_value_print
4454 initializer.
4455 (ada_language::value_print): New member function.
4456 * c-lang.c (c_language_data): Delete la_value_print initializer.
4457 (cplus_language_data): Likewise.
4458 (asm_language_data): Likewise.
4459 (minimal_language_data): Likewise.
4460 * d-lang.c (d_language_data): Likewise.
4461 * f-lang.c (f_language_data): Likewise.
4462 * go-lang.c (go_language_data): Likewise.
4463 * language.c (unk_lang_value_print): Delete.
4464 (language_defn::value_print): Define new member function.
4465 (unknown_language_data): Delete la_value_print initializer.
4466 (unknown_language::value_print): New member function.
4467 (auto_language_data): Delete la_value_print initializer.
4468 (auto_language::value_print): New member function.
4469 * language.h (language_data): Delete la_value_print field.
4470 (language_defn::value_print): Declare new member function.
4471 (LA_VALUE_PRINT): Update call to value_print.
4472 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4473 * objc-lang.c (objc_language_data): Likewise.
4474 * opencl-lang.c (opencl_language_data): Likewise.
4475 * p-lang.c (pascal_language_data): Likewise.
4476 (pascal_language::value_print): New member function.
4477 * rust-lang.c (rust_language_data): Delete la_value_print
4478 initializer.
4479
4480 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4481
4482 * ada-lang.c (ada_watch_location_expression): Rename to
4483 ada_language::watch_location_expression.
4484 (ada_language_data): Delete la_watch_location_expression
4485 initializer.
4486 (ada_language::watch_location_expression): New member function,
4487 implementation from ada_watch_location_expression.
4488 * breakpoint.c (watch_command_1): Update call to
4489 watch_location_expression.
4490 * c-lang.c (c_watch_location_expression): Rename to
4491 language_defn::watch_location_expression.
4492 (c_language_data): Delete la_watch_location_expression
4493 initializer.
4494 (cplus_language_data): Likewise.
4495 (asm_language_data): Likewise.
4496 (minimal_language_data): Likewise.
4497 * c-lang.h (c_watch_location_expression): Delete declaration.
4498 * d-lang.c (d_language_data): Delete la_watch_location_expression
4499 initializer.
4500 * f-lang.c (f_language_data): Likewise.
4501 * go-lang.c (go_language_data): Likewise.
4502 * language.c (language_defn::watch_location_expression): Member
4503 function implementation from c_watch_location_expression.
4504 (unknown_language_data): Delete la_watch_location_expression
4505 initializer.
4506 (auto_language_data): Likewise.
4507 * language.h (language_data): Delete la_watch_location_expression
4508 field.
4509 (language_defn::watch_location_expression): Declare new member
4510 function.
4511 * m2-lang.c (m2_language_data): Delete
4512 la_watch_location_expression initializer.
4513 * objc-lang.c (objc_language_data): Likewise.
4514 * opencl-lang.c (opencl_language_data): Likewise.
4515 * p-lang.c (pascal_language_data): Likewise.
4516 * rust-lang.c (rust_watch_location_expression): Rename to
4517 rust_language::watch_location_expression.
4518 (rust_language_data): Delete la_watch_location_expression
4519 initializer.
4520 (rust_language::watch_location_expression): New member function,
4521 implementation from rust_watch_location_expression.
4522
4523 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4524
4525 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4526 ada_language::collect_symbol_completion_matches.
4527 (ada_language_data): Delete la_collect_symbol_completion_matches
4528 initializer.
4529 (ada_language::collect_symbol_completion_matches): New member
4530 function, implementation from
4531 ada_collect_symbol_completion_matches.
4532 * c-lang.c (c_language_data): Delete
4533 la_collect_symbol_completion_matches initializer.
4534 (cplus_language_data): Likewise.
4535 (asm_language_data): Likewise.
4536 (minimal_language_data): Likewise.
4537 * d-lang.c (d_language_data): Likewise.
4538 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4539 f_language::collect_symbol_completion_matches.
4540 (f_language_data): Delete la_collect_symbol_completion_matches
4541 initializer.
4542 (f_language::collect_symbol_completion_matches) New member
4543 function, implementation from f_collect_symbol_completion_matches.
4544 * go-lang.c (go_language_data): Delete
4545 la_collect_symbol_completion_matches initializer.
4546 * language.c (unknown_language_data): Likewise.
4547 (auto_language_data): Likewise.
4548 * language.h (language_data): Delete
4549 la_collect_symbol_completion_matches field.
4550 (language_defn::collect_symbol_completion_matches): New member
4551 function.
4552 * m2-lang.c (m2_language_data): Delete
4553 la_collect_symbol_completion_matches initializer.
4554 * objc-lang.c (objc_language_data): Likewise.
4555 * opencl-lang.c (opencl_language_data): Likewise.
4556 * p-lang.c (pascal_language_data): Likewise.
4557 * rust-lang.c (rust_language_data): Likewise.
4558 * symtab.c (default_collect_symbol_completion_matches): Delete.
4559 (collect_symbol_completion_matches): Update call to
4560 collect_symbol_completion_matches.
4561 (collect_symbol_completion_matches_type): Likewise.
4562 * symtab.h (default_collect_symbol_completion_matches): Delete
4563 declaration.
4564
4565 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4566
4567 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4568 (ada_language_data): Delete la_word_break_characters initializer.
4569 (ada_language::word_break_characters): New member function.
4570 * c-lang.c (c_language_data): Delete la_word_break_characters
4571 initializer.
4572 (cplus_language_data): Likewise.
4573 (asm_language_data): Likewise.
4574 (minimal_language_data): Likewise.
4575 * completer.c: Update global comment.
4576 (advance_to_expression_complete_word_point): Update call to
4577 word_break_characters.
4578 (complete_files_symbols): Likewise.
4579 (complete_line_internal_1): Likewise.
4580 (default_completer_handle_brkchars): Likewise.
4581 (skip_quoted_chars): Likewise.
4582 * d-lang.c (d_language_data): Delete la_word_break_characters
4583 initializer.
4584 * f-lang.c (f_word_break_characters): Delete.
4585 (f_language_data): Delete la_word_break_characters initializer.
4586 (f_language::word_break_characters): New member function.
4587 * go-lang.c (go_language_data): Delete la_word_break_characters
4588 initializer.
4589 * language.c (unknown_language_data): Likewise.
4590 (auto_language_data): Likewise.
4591 * language.h (default_word_break_characters): Move declaration to
4592 earlier in the file.
4593 (language_data): Delete la_word_break_characters field.
4594 (language_defn::word_break_characters): New member function.
4595 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4596 initializer.
4597 * objc-lang.c (objc_language_data): Likewise.
4598 * opencl-lang.c (opencl_language_data): Likewise.
4599 * p-lang.c (pascal_language_data): Likewise.
4600 * rust-lang.c (rust_language_data): Likewise.
4601
4602 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4603
4604 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4605 (ada_language_data): Delete la_get_symbol_name_matcher
4606 initializer.
4607 (language_defn::get_symbol_name_matcher_inner): New member
4608 function.
4609 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4610 initializer.
4611 (cplus_language_data): Likewise.
4612 (cplus_language::get_symbol_name_matcher_inner): New member
4613 function.
4614 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4615 (minimal_language_data): Likewise.
4616 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4617 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4618 initializer.
4619 * dictionary.c (iter_match_first_hashed): Update call to
4620 get_symbol_name_matcher.
4621 (iter_match_next_hashed): Likewise.
4622 (iter_match_next_linear): Likewise.
4623 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4624 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4625 initializer.
4626 (f_language::get_symbol_name_matcher_inner): New member function.
4627 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4628 initializer.
4629 * language.c (default_symbol_name_matcher): Update header comment,
4630 make static.
4631 (language_defn::get_symbol_name_matcher): New definition.
4632 (language_defn::get_symbol_name_matcher_inner): Likewise.
4633 (get_symbol_name_matcher): Delete.
4634 (unknown_language_data): Delete la_get_symbol_name_matcher
4635 initializer.
4636 (auto_language_data): Likewise.
4637 * language.h (language_data): Delete la_get_symbol_name_matcher
4638 field.
4639 (language_defn::get_symbol_name_matcher): New member function.
4640 (language_defn::get_symbol_name_matcher_inner): Likewise.
4641 (default_symbol_name_matcher): Delete declaration.
4642 * linespec.c (find_methods): Update call to
4643 get_symbol_name_matcher.
4644 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4645 initializer.
4646 * minsyms.c (lookup_minimal_symbol): Update call to
4647 get_symbol_name_matcher.
4648 (iterate_over_minimal_symbols): Likewise.
4649 * objc-lang.c (objc_language_data): Delete
4650 la_get_symbol_name_matcher initializer.
4651 * opencl-lang.c (opencl_language_data): Likewise.
4652 * p-lang.c (pascal_language_data): Likewise.
4653 * psymtab.c (psymbol_name_matches): Update call to
4654 get_symbol_name_matcher.
4655 * rust-lang.c (rust_language_data): Delete
4656 la_get_symbol_name_matcher initializer.
4657 * symtab.c (symbol_matches_search_name): Update call to
4658 get_symbol_name_matcher.
4659 (compare_symbol_name): Likewise.
4660
4661 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4662
4663 * ada-lang.c (ada_language_data): Delete la_compute_program
4664 initializer.
4665 * c-lang.c (c_language_data): Likewise.
4666 (c_language::compute_program): New member function.
4667 (cplus_language_data): Delete la_compute_program initializer.
4668 (cplus_language::compute_program): New member function.
4669 (asm_language_data): Delete la_compute_program initializer.
4670 (minimal_language_data): Likewise.
4671 * c-lang.h (c_compute_program): Update comment.
4672 (cplus_compute_program): Likewise.
4673 * compile/compile-c-support.c (c_compute_program): Likewise.
4674 (cplus_compute_program): Likewise.
4675 * compile/compile.c (compile_to_object): Update call to
4676 la_compute_program.
4677 * d-lang.c (d_language_data): Delete la_compute_program
4678 initializer.
4679 * f-lang.c (f_language_data): Likewise.
4680 * go-lang.c (go_language_data): Likewise.
4681 * language.c (unknown_language_data): Likewise.
4682 (auto_language_data): Likewise.
4683 * language.h (language_data): Delete la_compute_program field.
4684 (language_defn::compute_program): New member function.
4685 * m2-lang.c (m2_language_data): Delete la_compute_program
4686 initializer.
4687 * objc-lang.c (objc_language_data): Likewise.
4688 * opencl-lang.c (opencl_language_data): Likewise.
4689 * p-lang.c (pascal_language_data): Likewise.
4690 * rust-lang.c (rust_language_data): Likewise.
4691
4692 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4693
4694 * ada-lang.c (ada_language_data) Delete
4695 la_class_name_from_physname initializer.
4696 * c-lang.c (c_language_data): Likewise.
4697 (cplus_language_data): Likewise.
4698 (cplus_language::class_name_from_physname): New member function.
4699 (asm_language_data): Delete la_class_name_from_physname
4700 initializer.
4701 (minimal_language_data): Likewise.
4702 * d-lang.c (d_language_data): Likewise.
4703 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4704 method on language_defn class.
4705 (guess_full_die_structure_name): Likewise.
4706 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4707 initializer.
4708 * go-lang.c (go_language_data): Likewise.
4709 * language.c (language_class_name_from_physname): Delete.
4710 (unk_lang_class_name): Delete.
4711 (unknown_language_data): Delete la_class_name_from_physname
4712 initializer.
4713 (auto_language_data): Likewise.
4714 * language.h (language_data): Delete la_class_name_from_physname
4715 field.
4716 (language_defn::class_name_from_physname): New function.
4717 (language_class_name_from_physname): Delete declaration.
4718 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4719 initializer.
4720 * objc-lang.c (objc_language_data): Likewise.
4721 * opencl-lang.c (opencl_language_data): Likewise.
4722 * p-lang.c (pascal_language_data): Likewise.
4723 * rust-lang.c (rust_language_data): Likewise.
4724
4725 2020-06-16 Tom Tromey <tom@tromey.com>
4726
4727 * tui/tui-data.h (STATUS_NAME): New macro.
4728 * tui/tui-layout.c (tui_remove_some_windows)
4729 (initialize_known_windows, tui_register_window)
4730 (tui_layout_split::remove_windows, initialize_layouts)
4731 (tui_new_layout_command): Don't use hard-coded window names.
4732
4733 2020-06-16 Tom Tromey <tom@tromey.com>
4734
4735 PR tui/25348:
4736 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4737 tui_initialize_readline. Only run once. Call rl_initialize.
4738 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4739 tui_initialize_readline.
4740 * tui/tui-io.c (tui_setup_io): Call
4741 tui_ensure_readline_initialized.
4742 * tui/tui-interp.c (tui_interp::init): Update.
4743
4744 2020-06-16 Tom Tromey <tom@tromey.com>
4745
4746 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4747 Also preserve the status window.
4748
4749 2020-06-16 Tom Tromey <tom@tromey.com>
4750
4751 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4752 where m_window==nullptr.
4753
4754 2020-06-15 Tom Tromey <tromey@adacore.com>
4755
4756 * windows-nat.c (windows_nat::handle_output_debug_string):
4757 Update.
4758 (windows_nat::handle_ms_vc_exception): Update.
4759 * target.h (target_read_string): Change API.
4760 * target.c (target_read_string): Change API.
4761 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4762 Update.
4763 * solib-frv.c (frv_current_sos): Update.
4764 * solib-dsbt.c (dsbt_current_sos): Update.
4765 * solib-darwin.c (darwin_current_sos): Update.
4766 * linux-thread-db.c (inferior_has_bug): Update.
4767 * expprint.c (print_subexp_standard): Update.
4768 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4769 (ada_exception_message_1): Update.
4770
4771 2020-06-15 Tom Tromey <tromey@adacore.com>
4772
4773 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4774
4775 2020-06-15 Tom Tromey <tromey@adacore.com>
4776
4777 * valprint.c (read_string): Update comment.
4778 * target.c (MIN): Remove.
4779 (target_read_string): Rewrite.
4780
4781 2020-06-15 Tom Tromey <tromey@adacore.com>
4782
4783 * corefile.c (read_memory_string): Remove.
4784 * ada-valprint.c (ada_value_print_ptr): Update.
4785 * ada-lang.h (ada_tag_name): Change return type.
4786 * ada-lang.c (type_from_tag): Update.
4787 (ada_tag_name_from_tsd): Change return type. Use
4788 target_read_string.
4789 (ada_tag_name): Likewise.
4790 * gdbcore.h (read_memory_string): Don't declare.
4791
4792 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
4793
4794 * symtab.c (rbreak_command): Ignore Windows drive colon.
4795
4796 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
4797
4798 * NEWS: Mention removed GDBserver host support.
4799
4800 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
4801
4802 * features/riscv/rebuild-csr-xml.sh: Updated.
4803
4804 2020-06-11 Tom Tromey <tom@tromey.com>
4805
4806 PR gdb/18318:
4807 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4808
4809 2020-06-09 Jonny Grant <jg@jguk.org>
4810 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4811
4812 * main.c (captured_main_1): Don't print new line after help.
4813 (print_gdb_help): add mailing list and IRC channel information
4814 to --help. Add new lines between items in the footer. Remove
4815 quotes around bug url.
4816
4817 2020-06-11 Keith Seitz <keiths@redhat.com>
4818
4819 PR gdb/21356
4820 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4821 Resolve typedefs for type length calculations.
4822
4823 2020-06-10 Tom de Vries <tdevries@suse.de>
4824
4825 PR ada/24713
4826 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4827 (write_psymbols): Enable .gdb_index for ada.
4828 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4829 ada.
4830
4831 2020-06-10 Tom de Vries <tdevries@suse.de>
4832
4833 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4834 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4835 namei" instead of "const char *name" argument.
4836 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4837 dw2_symtab_iter_init.
4838
4839 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4840
4841 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4842 to use type::field and field::type instead.
4843
4844 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4845
4846 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4847 to use field::type instead.
4848
4849 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4850
4851 * gdbtypes.h (struct field) <type, set_type>: New methods.
4852 Rename `type` field to...
4853 <m_type>: ... this. Change references throughout to use type or
4854 set_type methods.
4855 (FIELD_TYPE): Use field::type. Change call sites that modify
4856 the field's type to use field::set_type instead.
4857
4858 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4859
4860 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4861 to use type::index_type instead.
4862
4863 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4864
4865 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4866 methods.
4867 (TYPE_INDEX_TYPE): Use type::index_type.
4868 * gdbtypes.c (create_array_type_with_stride): Likewise.
4869
4870 2020-06-07 Tom Tromey <tom@tromey.com>
4871
4872 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4873 parameter.
4874 (generic_value_print): Update.
4875
4876 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4877
4878 Revert commit 982a38f60b0.
4879 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4880
4881 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4882
4883 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4884 avoid use after free.
4885
4886 2020-06-05 Tom de Vries <tdevries@suse.de>
4887
4888 * NEWS: Fix typos.
4889
4890 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
4891
4892 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4893 the per_bfd object.
4894 (dwarf2_read_debug_names): Likewise.
4895 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4896 object when re-using a per_bfd object with an index.
4897
4898 2020-06-03 Tom de Vries <tdevries@suse.de>
4899
4900 PR symtab/26046
4901 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4902 children for C++.
4903 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4904 DW_TAG_subprogram.
4905
4906 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4907
4908 * ada-lang.c (ada_language_data): Delete skip_trampoline
4909 initializer.
4910 * c-lang.c (c_language_data): Likewise.
4911 (cplus_language_data): Likewise.
4912 (cplus_language::skip_trampoline): New member function.
4913 (asm_language_data): Delete skip_trampoline initializer.
4914 (minimal_language_data): Likewise.
4915 * d-lang.c (d_language_data): Likewise.
4916 * f-lang.c (f_language_data): Likewise.
4917 * go-lang.c (go_language_data): Likewise.
4918 * language.c (unk_lang_trampoline): Delete function.
4919 (skip_language_trampoline): Update.
4920 (unknown_language_data): Delete skip_trampoline initializer.
4921 (auto_language_data): Likewise.
4922 * language.h (language_data): Delete skip_trampoline field.
4923 (language_defn::skip_trampoline): New function.
4924 * m2-lang.c (m2_language_data): Delete skip_trampoline
4925 initializer.
4926 * objc-lang.c (objc_skip_trampoline): Delete function, move
4927 implementation to objc_language::skip_trampoline.
4928 (objc_language_data): Delete skip_trampoline initializer.
4929 (objc_language::skip_trampoline): New member function with
4930 implementation from objc_skip_trampoline.
4931 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4932 initializer.
4933 * p-lang.c (pascal_language_data): Likewise.
4934 * rust-lang.c (rust_language_data): Likewise.
4935
4936 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4937
4938 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4939 (ada_language::demangle): New member function.
4940 * c-lang.c (c_language_data): Delete la_demangle initializer.
4941 (cplus_language_data): Delete la_demangle initializer.
4942 (cplus_language::demangle): New member function.
4943 (asm_language_data): Delete la_demangle initializer.
4944 (minimal_language_data): Delete la_demangle initializer.
4945 * d-lang.c (d_language_data): Delete la_demangle initializer.
4946 (d_language::demangle): New member function.
4947 * f-lang.c (f_language_data): Delete la_demangle initializer.
4948 (f_language::demangle): New member function.
4949 * go-lang.c (go_language_data): Delete la_demangle initializer.
4950 (go_language::demangle): New member function.
4951 * language.c (language_demangle): Update.
4952 (unk_lang_demangle): Delete.
4953 (unknown_language_data): Delete la_demangle initializer.
4954 (unknown_language::demangle): New member function.
4955 (auto_language_data): Delete la_demangle initializer.
4956 (auto_language::demangle): New member function.
4957 * language.h (language_data): Delete la_demangle field.
4958 (language_defn::demangle): New function.
4959 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4960 * objc-lang.c (objc_language_data): Delete la_demangle
4961 initializer.
4962 (objc_language::demangle): New member function.
4963 * opencl-lang.c (opencl_language_data): Delete la_demangle
4964 initializer.
4965 * p-lang.c (pascal_language_data): Likewise.
4966 * rust-lang.c (rust_language_data): Likewise.
4967 (rust_language::demangle): New member function.
4968
4969 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4970
4971 * ada-lang.c (ada_language_data): Delete la_print_type
4972 initializer.
4973 (ada_language::print_type): New member function.
4974 * c-lang.c (c_language_data): Delete la_print_type initializer.
4975 (c_language::print_type): New member function.
4976 (cplus_language_data): Delete la_print_type initializer.
4977 (cplus_language::print_type): New member function.
4978 (asm_language_data): Delete la_print_type initializer.
4979 (asm_language::print_type): New member function.
4980 (minimal_language_data): Delete la_print_type initializer.
4981 (minimal_language::print_type): New member function.
4982 * d-lang.c (d_language_data): Delete la_print_type initializer.
4983 (d_language::print_type): New member function.
4984 * f-lang.c (f_language_data): Delete la_print_type initializer.
4985 (f_language::print_type): New member function.
4986 * go-lang.c (go_language_data): Delete la_print_type initializer.
4987 (go_language::print_type): New member function.
4988 * language.c (unk_lang_print_type): Delete.
4989 (unknown_language_data): Delete la_print_type initializer.
4990 (unknown_language::print_type): New member function.
4991 (auto_language_data): Delete la_print_type initializer.
4992 (auto_language::print_type): New member function.
4993 * language.h (language_data): Delete la_print_type field.
4994 (language_defn::print_type): New function.
4995 (LA_PRINT_TYPE): Update.
4996 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4997 (m2_language::print_type): New member function.
4998 * objc-lang.c (objc_language_data): Delete la_print_type
4999 initializer.
5000 (objc_language::print_type): New member function.
5001 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5002 to opencl_language::print_type.
5003 (opencl_language_data): Delete la_print_type initializer.
5004 (opencl_language::print_type): New member function, implementation
5005 from opencl_print_type.
5006 * p-lang.c (pascal_language_data): Delete la_print_type
5007 initializer.
5008 (pascal_language::print_type): New member function.
5009 * rust-lang.c (rust_print_type): Delete, implementation moved to
5010 rust_language::print_type.
5011 (rust_language_data): Delete la_print_type initializer.
5012 (rust_language::print_type): New member function, implementation
5013 from rust_print_type.
5014
5015 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5016
5017 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5018 implementation moves to...
5019 (ada_language::sniff_from_mangled_name): ...here. Update return
5020 type.
5021 (ada_language_data): Delete la_sniff_from_mangled_name
5022 initializer.
5023 * c-lang.c (c_language_data): Likewise.
5024 (cplus_language_data): Likewise.
5025 (cplus_language::sniff_from_mangled_name): New member function,
5026 implementation taken from gdb_sniff_from_mangled_name.
5027 (asm_language_data): Delete la_sniff_from_mangled_name
5028 initializer.
5029 (minimal_language_data): Likewise.
5030 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5031 implementation moves to cplus_language::sniff_from_mangled_name.
5032 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5033 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5034 moves to...
5035 (d_language::sniff_from_mangled_name): ...here.
5036 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5037 * f-lang.c (f_language_data): Likewise.
5038 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5039 moves to...
5040 (go_language::sniff_from_mangled_name): ...here.
5041 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5042 * language.c (language_sniff_from_mangled_name): Delete.
5043 (unknown_language_data): Delete la_sniff_from_mangled_name
5044 initializer.
5045 (auto_language_data): Likewise.
5046 * language.h (language_data): Delete la_sniff_from_mangled_name
5047 field.
5048 (language_defn::sniff_from_mangled_name): New function.
5049 (language_sniff_from_mangled_name): Delete declaration.
5050 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5051 field.
5052 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5053 implementation moves to...
5054 (objc_language::sniff_from_mangled_name): ...here.
5055 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5056 * opencl-lang.c (opencl_language_data): Likewise.
5057 * p-lang.c (pascal_language_data): Likewise.
5058 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5059 implementation moves to...
5060 (rust_language::sniff_from_mangled_name): ...here.
5061 (rust_language_data): Delete la_sniff_from_mangled_name
5062 initializer.
5063 * symtab.c (symbol_find_demangled_name): Call
5064 sniff_from_mangled_name member function.
5065
5066 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5067
5068 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5069 initializer.
5070 * c-lang.c (c_language_data): Likewise.
5071 (cplus_language_data): Likewise.
5072 (cplus_language::search_name_hash): New member function.
5073 (asm_language_data): Delete la_search_name_hash initializer.
5074 (minimal_language_data): Likewise.
5075 * d-lang.c (d_language_data): Likewise.
5076 * dictionary.c (default_search_name_hash): Rename to...
5077 (language_defn::search_name_hash): ...this.
5078 * f-lang.c (f_language_data): Likewise.
5079 (f_language::search_name_hash): New member function.
5080 * go-lang.c (go_language_data): Delete la_search_name_hash
5081 initializer.
5082 * language.c (unknown_language_data): Likewise.
5083 (auto_language_data): Likewise.
5084 * language.h (struct language_data): Delete la_search_name_hash
5085 field.
5086 (language_defn::search_name_hash): Declare new member function.
5087 (default_search_name_hash): Delete declaration.
5088 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5089 initializer.
5090 * objc-lang.c (objc_language_data): Likewise.
5091 * opencl-lang.c (opencl_language_data): Likewise.
5092 * p-lang.c (pascal_language_data): Likewise.
5093 * rust-lang.c (rust_language_data): Likewise.
5094 * symtab.c (search_name_hash): Update call.
5095
5096 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5097
5098 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5099 initializer.
5100 * c-lang.c (class compile_instance): Declare.
5101 (c_language_data): Delete la_get_compile_instance initializer.
5102 (c_language::get_compile_instance): New member function.
5103 (cplus_language_data): Delete la_get_compile_instance initializer.
5104 (cplus_language::get_compile_instance): New member function.
5105 (asm_language_data): Delete la_get_compile_instance initializer.
5106 (minimal_language_data): Likewise.
5107 * c-lang.h (c_get_compile_context): Update comment.
5108 (cplus_get_compile_context): Update comment.
5109 * compile/compile.c (compile_to_object): Update calls, don't rely
5110 on function pointer being NULL.
5111 * d-lang.c (d_language_data): Delete la_get_compile_instance
5112 initializer.
5113 * f-lang.c (f_language_data): Likewise.
5114 * go-lang.c (go_language_data): Likewise.
5115 * language.c (unknown_language_data): Likewise.
5116 (auto_language_data): Likewise.
5117 * language.h (language_data): Delete la_get_compile_instance field.
5118 (language_defn::get_compile_instance): New member function.
5119 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5120 initializer.
5121 * objc-lang.c (objc_language_data): Likewise.
5122 * opencl-lang.c (opencl_language_data): Likewise.
5123 * p-lang.c (pascal_language_data): Likewise.
5124 * rust-lang.c (rust_language_data): Likewise.
5125
5126 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5127
5128 * ada-lang.c (ada_add_all_symbols): Update comment.
5129 (ada_iterate_over_symbols): Delete, move implementation to...
5130 (ada_language::iterate_over_symbols): ...here, a new member
5131 function, rewrite to use range based for loop.
5132 (ada_language_data): Delete la_iterate_over_symbols initializer.
5133 * c-lang.c (c_language_data): Likewise.
5134 (cplus_language_data): Likewise.
5135 (asm_language_data): Likewise.
5136 (minimal_language_data): Likewise.
5137 * d-lang.c (d_language_data): Likewise.
5138 * f-lang.c (f_language_data): Likewise.
5139 * go-lang.c (go_language_data): Likewise.
5140 * language.c (unknown_language_data): Likewise.
5141 (auto_language_data): Likewise.
5142 * language.h (language_data): Delete la_iterate_over_symbols field.
5143 (language_defn::iterate_over_symbols): New member function.
5144 (LA_ITERATE_OVER_SYMBOLS): Update.
5145 * linespec.c (iterate_over_all_matching_symtabs): Update.
5146 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5147 initializer.
5148 * objc-lang.c (objc_language_data): Likewise.
5149 * opencl-lang.c (opencl_language_data): Likewise.
5150 * p-lang.c (pascal_language_data): Likewise.
5151 * rust-lang.c (rust_language_data): Likewise.
5152
5153 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5154
5155 * ada-lang.c (ada_language_data): Delete
5156 la_lookup_transparent_type initializer.
5157 * c-lang.c (c_language_data): Likewise.
5158 (cplus_language_data): Likewise.
5159 (cplus_language::lookup_transparent_type): New member function.
5160 (asm_language_data): Delete la_lookup_transparent_type
5161 initializer.
5162 (minimal_language_data): Likewise.
5163 * d-lang.c (d_language_data): Likewise.
5164 * f-lang.c (f_language_data): Likewise.
5165 * go-lang.c (go_language_data): Likewise.
5166 * language.c (unknown_language_data): Likewise.
5167 (auto_language_data): Likewise.
5168 * language.h (struct language_data): Delete
5169 la_lookup_transparent_type field.
5170 (language_defn::lookup_transparent_type): New member function.
5171 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5172 initializer.
5173 * objc-lang.c (objc_language_data): Likewise.
5174 * opencl-lang.c (opencl_language_data): Likewise.
5175 * p-lang.c (pascal_language_data): Likewise.
5176 * rust-lang.c (rust_language_data): Likewise.
5177 * symtab.c (symbol_matches_domain): Update call.
5178
5179 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5180
5181 * ada-lang.c (ada_language_arch_info): Delete function, move
5182 implementation to...
5183 (ada_language::language_arch_info): ...here, a new member
5184 function.
5185 (ada_language_data): Delete la_language_arch_info.
5186 * c-lang.c (c_language_data): Likewise.
5187 (c_language::language_arch_info): New member function.
5188 (cplus_language_arch_info): Delete function, move
5189 implementation to...
5190 (cplus_language::language_arch_info): ...here, a new member
5191 function.
5192 (cplus_language_data): Delete la_language_arch_info.
5193 (asm_language_data): Likewise.
5194 (asm_language::language_arch_info): New member function.
5195 (minimal_language_data): Delete la_language_arch_info.
5196 (minimal_language::language_arch_info): New member function.
5197 * d-lang.c (d_language_arch_info): Delete function, move
5198 implementation to...
5199 (d_language::language_arch_info): ...here, a new member
5200 function.
5201 (d_language_data): Delete la_language_arch_info.
5202 * f-lang.c (f_language_arch_info): Delete function, move
5203 implementation to...
5204 (f_language::language_arch_info): ...here, a new member
5205 function.
5206 (f_language_data): Delete la_language_arch_info.
5207 * go-lang.c (go_language_arch_info): Delete function, move
5208 implementation to...
5209 (go_language::language_arch_info): ...here, a new member
5210 function.
5211 (go_language_data): Delete la_language_arch_info.
5212 * language.c (unknown_language_data): Likewise.
5213 (unknown_language::language_arch_info): New member function.
5214 (auto_language_data): Delete la_language_arch_info.
5215 (auto_language::language_arch_info): New member function.
5216 (language_gdbarch_post_init): Update call to
5217 la_language_arch_info.
5218 * language.h (language_data): Delete la_language_arch_info
5219 function pointer.
5220 (language_defn::language_arch_info): New function.
5221 * m2-lang.c (m2_language_arch_info): Delete function, move
5222 implementation to...
5223 (m2_language::language_arch_info): ...here, a new member
5224 function.
5225 (m2_language_data): Delete la_language_arch_info.
5226 * objc-lang.c (objc_language_arch_info): Delete function, move
5227 implementation to...
5228 (objc_language::language_arch_info): ...here, a new member
5229 function.
5230 (objc_language_data): Delete la_language_arch_info.
5231 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5232 implementation to...
5233 (opencl_language::language_arch_info): ...here, a new member
5234 function.
5235 (opencl_language_data): Delete la_language_arch_info.
5236 * p-lang.c (pascal_language_arch_info): Delete function, move
5237 implementation to...
5238 (pascal_language::language_arch_info): ...here, a new member
5239 function.
5240 (pascal_language_data): Delete la_language_arch_info.
5241 * rust-lang.c (rust_language_arch_info): Delete function, move
5242 implementation to...
5243 (rust_language::language_arch_info): ...here, a new member
5244 function.
5245 (rust_language_data): Delete la_language_arch_info.
5246
5247 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5248
5249 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5250 initializer.
5251 * c-lang.c (c_language_data): Likewise.
5252 (cplus_language_data): Likewise.
5253 (cplus_language::pass_by_reference_info): New method.
5254 (asm_language_data): Delete la_pass_by_reference initializer.
5255 (minimal_language_data): Likewise.
5256 * cp-abi.c (cp_pass_by_reference): Remove use of
5257 default_pass_by_reference.
5258 * d-lang.c (d_language_data): Likewise.
5259 * f-lang.c (f_language_data): Likewise.
5260 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5261 default_pass_by_reference.
5262 * go-lang.c (go_language_data): Likewise.
5263 * language.c (language_pass_by_reference): Update.
5264 (default_pass_by_reference): Delete.
5265 (unknown_language_data): Delete la_pass_by_reference
5266 initializer.
5267 (auto_language_data): Likewise.
5268 * language.h (struct language_data): Delete la_pass_by_reference
5269 field.
5270 (language_defn::pass_by_reference_info): New member function.
5271 (default_pass_by_reference): Delete declaration.
5272 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5273 initializer.
5274 * objc-lang.c (objc_language_data): Likewise.
5275 * opencl-lang.c (opencl_language_data): Likewise.
5276 * p-lang.c (pascal_language_data): Likewise.
5277 * rust-lang.c (rust_language_data): Likewise.
5278
5279 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5280
5281 * ada-lang.c (ada_read_var_value): Delete function, move
5282 implementation to...
5283 (ada_language::read_var_value): ...here.
5284 (ada_language_data): Delete la_read_var_value initializer.
5285 * c-lang.c (c_language_data): Likewise.
5286 (cplus_language_data): Likewise.
5287 (minimal_language_data): Likewise.
5288 * d-lang.c (d_language_data): Likewise.
5289 * f-lang.c (f_language_data): Likewise.
5290 * findvar.c (default_read_var_value): Rename to...
5291 (language_defn::read_var_value): ...this.
5292 * findvar.c (read_var_value): Update header comment, and change to
5293 call member function instead of function pointer.
5294 * go-lang.c (go_language_data): Likewise.
5295 * language.c (unknown_language_data): Delete la_read_var_value
5296 initializer.
5297 (auto_language_data): Likewise.
5298 * language.h (struct language_data): Delete la_read_var_value
5299 field.
5300 (language_defn::read_var_value): New member function.
5301 (default_read_var_value): Delete declaration.
5302 * m2-lang.c (m2_language_data): Delete la_read_var_value
5303 initializer.
5304 * objc-lang.c (objc_language_data): Likewise.
5305 * opencl-lang.c (opencl_language_data): Likewise.
5306 * p-lang.c (pascal_language_data): Likewise.
5307 * rust-lang.c (rust_language_data): Likewise.
5308 * value.h (default_read_var_value): Delete declaration.
5309
5310 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5311
5312 * ada-lang.c (ada_print_array_index): Delete function, move
5313 implementation to...
5314 (ada_language::print_array_index): ...here.
5315 (ada_language_data): Delete la_print_array_index initializer.
5316 * c-lang.c (c_language_data): Likewise.
5317 (cplus_language_data): Likewise.
5318 (minimal_language_data): Likewise.
5319 * d-lang.c (d_language_data): Likewise.
5320 * f-lang.c (f_language_data): Likewise.
5321 * go-lang.c (go_language_data): Likewise.
5322 * language.c (default_print_array_index): Delete function, move
5323 implementation to...
5324 (language_defn::print_array_index): ...here.
5325 (unknown_language_data): Delete la_print_array_index initializer.
5326 (auto_language_data): Likewise.
5327 * language.h (struct language_data): Delete la_print_array_index
5328 field.
5329 (language_defn::print_array_index): New member function.
5330 (LA_PRINT_ARRAY_INDEX): Update.
5331 (default_print_array_index): Delete declaration.
5332 * m2-lang.c (m2_language_data): Delete la_print_array_index
5333 initializer.
5334 * objc-lang.c (objc_language_data): Likewise.
5335 * opencl-lang.c (opencl_language_data): Likewise.
5336 * p-lang.c (pascal_language_data): Likewise.
5337 * rust-lang.c (rust_language_data): Likewise.
5338
5339 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5340
5341 * gdb/ada-lang.c (ada_language_defn): Convert to...
5342 (ada_language_data): ...this.
5343 (class ada_language): New class.
5344 (ada_language_defn): New static global.
5345 * gdb/c-lang.c (c_language_defn): Convert to...
5346 (c_language_data): ...this.
5347 (class c_language): New class.
5348 (c_language_defn): New static global.
5349 (cplus_language_defn): Convert to...
5350 (cplus_language_data): ...this.
5351 (class cplus_language): New class.
5352 (cplus_language_defn): New static global.
5353 (asm_language_defn): Convert to...
5354 (asm_language_data): ...this.
5355 (class asm_language): New class.
5356 (asm_language_defn): New static global.
5357 (minimal_language_defn): Convert to...
5358 (minimal_language_data): ...this.
5359 (class minimal_language): New class.
5360 (minimal_language_defn): New static global.
5361 * gdb/d-lang.c (d_language_defn): Convert to...
5362 (d_language_data): ...this.
5363 (class d_language): New class.
5364 (d_language_defn): New static global.
5365 * gdb/f-lang.c (f_language_defn): Convert to...
5366 (f_language_data): ...this.
5367 (class f_language): New class.
5368 (f_language_defn): New static global.
5369 * gdb/go-lang.c (go_language_defn): Convert to...
5370 (go_language_data): ...this.
5371 (class go_language): New class.
5372 (go_language_defn): New static global.
5373 * gdb/language.c (unknown_language_defn): Remove declaration.
5374 (current_language): Initialize to nullptr, real initialization is
5375 moved to _initialize_language.
5376 (languages): Delete global.
5377 (language_defn::languages): Define.
5378 (set_language_command): Use language_defn::languages.
5379 (set_language): Likewise.
5380 (range_error): Likewise.
5381 (language_enum): Likewise.
5382 (language_def): Likewise.
5383 (add_set_language_command): Use language_def::languages for the
5384 language list, and language_def to lookup language pointers.
5385 (skip_language_trampoline): Use language_defn::languages.
5386 (unknown_language_defn): Convert to...
5387 (unknown_language_data): ...this.
5388 (class unknown_language): New class.
5389 (unknown_language_defn): New static global.
5390 (auto_language_defn): Convert to...
5391 (auto_language_data): ...this.
5392 (class auto_language): New class.
5393 (auto_language_defn): New static global.
5394 (language_gdbarch_post_init): Use language_defn::languages.
5395 (_initialize_language): Initialize current_language.
5396 * gdb/language.h (struct language_defn): Rename to...
5397 (struct language_data): ...this.
5398 (struct language_defn): New.
5399 (auto_language_defn): Delete.
5400 (unknown_language_defn): Delete.
5401 (minimal_language_defn): Delete.
5402 (ada_language_defn): Delete.
5403 (asm_language_defn): Delete.
5404 (c_language_defn): Delete.
5405 (cplus_language_defn): Delete.
5406 (d_language_defn): Delete.
5407 (f_language_defn): Delete.
5408 (go_language_defn): Delete.
5409 (m2_language_defn): Delete.
5410 (objc_language_defn): Delete.
5411 (opencl_language_defn): Delete.
5412 (pascal_language_defn): Delete.
5413 (rust_language_defn): Delete.
5414 * gdb/m2-lang.c (m2_language_defn): Convert to...
5415 (m2_language_data): ...this.
5416 (class m2_language): New class.
5417 (m2_language_defn): New static global.
5418 * gdb/objc-lang.c (objc_language_defn): Convert to...
5419 (objc_language_data): ...this.
5420 (class objc_language): New class.
5421 (objc_language_defn): New static global.
5422 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5423 (opencl_language_data): ...this.
5424 (class opencl_language): New class.
5425 (opencl_language_defn): New static global.
5426 * gdb/p-lang.c (pascal_language_defn): Convert to...
5427 (pascal_language_data): ...this.
5428 (class pascal_language): New class.
5429 (pascal_language_defn): New static global.
5430 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5431 language pointer, update comment format.
5432 * gdb/rust-lang.c (rust_language_defn): Convert to...
5433 (rust_language_data): ...this.
5434 (class rust_language): New class.
5435 (rust_language_defn): New static global.
5436
5437 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5438
5439 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5440 member variable.
5441 <m_stmt_at_address>: New member variable.
5442 (lnp_state_machine::record_line): Don't record some lines, update
5443 tracking of is_stmt at the same address.
5444 (lnp_state_machine::lnp_state_machine): Initialise new member
5445 variables.
5446
5447 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5448
5449 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5450 "-include gnu-nat-mig.h".
5451 * gnu-nat-mig.h: New file.
5452 * gnu-nat.c: Include "gnu-nat-mig.h".
5453 (exc_server, msg_reply_server, notify_server,
5454 process_reply_server): Remove declarations.
5455
5456 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5457
5458 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5459 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5460 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5461 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5462 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5463 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5464 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5465 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5466 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5467 to gnu_nat_target class.
5468 * gnu-nat.c: Likewise.
5469 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5470 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5471 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5472 object.
5473 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5474 instead of `gnu_target'.
5475
5476 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5477
5478 * i386-gnu-tdep.c: Include "gdbcore.h"
5479 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5480 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5481 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5482 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5483 i386_gnu_sigcontext_addr): New functions
5484 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5485 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5486 tdep.
5487
5488 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5489
5490 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5491 before fork_inferior call. Avoid calling it if target_is_pushed returns
5492 true.
5493
5494 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5495
5496 * gnu-nat.h (gnu_target): New variable declaration.
5497 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5498 gnu_target.
5499 * gnu-nat.c (gnu_target): New variable.
5500 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5501 add_thread_silent, and add_thread calls.
5502 (gnu_nat_target::create_inferior): Pass gnu_target to
5503 add_thread_silent, thread_change_ptid call.
5504 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5505 call.
5506
5507 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5508
5509 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5510 (gnu_nat_target::find_memory_regions): Remove unused
5511 `old_address' variable.
5512
5513 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5514
5515 * gnu-nat.c: Include "gdbarch.h".
5516
5517 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5518
5519 * reply_mig_hack.awk (Error return): Cast function through
5520 void *, to bypass compiler function call check.
5521
5522 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5523
5524 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5525 $(srcdir)/reply_mig_hack.awk.
5526
5527 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5528
5529 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5530
5531 2020-05-30 Jonny Grant <jg@jguk.org>
5532
5533 * configure.ac (ACX_BUGURL): change bug URL to https.
5534
5535 2020-05-30 Pedro Alves <palves@redhat.com>
5536
5537 * cp-support.c (replace_typedefs_template): New.
5538 (replace_typedefs_qualified_name): Handle
5539 DEMANGLE_COMPONENT_TEMPLATE.
5540
5541 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
5542
5543 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5544 dwarf2/index-cache.h, dwarf2/index-write.c,
5545 dwarf2/index-write.h, dwarf2/line-header.c,
5546 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5547 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5548 variables and fields from `dwarf2_per_objfile` to just
5549 `per_objfile` throughout.
5550
5551 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5552
5553 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5554 <push_dwarf_reg_entry_value>: Add comment.
5555
5556 2020-05-28 Kevin Buettner <kevinb@redhat.com>
5557 Keith Seitz <keiths@redhat.com>
5558
5559 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5560 instead of PyEval_ReleaseLock.
5561 (class gdbpy_gil): Move to earlier in file.
5562 (finalize_python): Set gdb_python_initialized.
5563 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5564 when not initialized.
5565
5566 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
5567
5568 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5569 <push_dwarf_reg_entry_value>: Remove assert. Override
5570 per_objfile with caller_per_objfile.
5571
5572 2020-05-28 Tom de Vries <tdevries@suse.de>
5573
5574 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5575 PR gold/15646 workaround to symbol kind "type".
5576
5577 2020-05-27 Tom Tromey <tromey@adacore.com>
5578
5579 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5580
5581 2020-05-27 Tom Tromey <tromey@adacore.com>
5582
5583 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5584 Use htab_find_with_hash.
5585 <add_abbrev>: Remove "abbrev_number" parameter.
5586 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5587 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5588 (hash_abbrev): Add comment.
5589 (abbrev_table::lookup_abbrev): Move to header file.
5590 (abbrev_table::read): Update.
5591
5592 2020-05-27 Tom Tromey <tromey@adacore.com>
5593
5594 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5595 method.
5596 <canonical_name>: New member.
5597 <raw_name>: Rename from "name".
5598 (partial_die_info): Initialize canonical_name.
5599 (scan_partial_symbols): Check raw_name.
5600 (partial_die_parent_scope, partial_die_full_name)
5601 (add_partial_symbol, add_partial_subprogram)
5602 (add_partial_enumeration, load_partial_dies): Use "name" method.
5603 (partial_die_info::name): New method.
5604 (partial_die_info::read, guess_partial_die_structure_name)
5605 (partial_die_info::fixup): Update.
5606
5607 2020-05-27 Tom Tromey <tromey@adacore.com>
5608
5609 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5610 <get_ref_die_offset>: Inline.
5611 <get_ref_die_offset_complaint>: New method.
5612 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5613 (attribute::get_ref_die_offset_complaint): Rename from
5614 get_ref_die_offset. Just issue complaint.
5615
5616 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5617
5618 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5619
5620 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5621
5622 * exec.c (exec_file_attach): Use errno value of first openp failure.
5623
5624 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5625
5626 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5627 Don't close thread handle.
5628
5629 2020-05-27 Tom Tromey <tom@tromey.com>
5630 Simon Marchi <simon.marchi@efficios.com>
5631
5632 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5633 shared_ptr.
5634 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5635 member.
5636 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5637 dwarf2_per_bfd_objfile_data_key>: New globals.
5638 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5639 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5640 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5641 shared.
5642 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5643 short-circuit when sharing.
5644 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5645 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5646
5647 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5648
5649 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5650 to...
5651 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5652 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5653
5654 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5655
5656 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5657 build_name_components, find_name_components_bounds>:
5658 Add per_objfile parameter.
5659 (struct mapped_index) <symbol_name_at>: Likewise.
5660 (struct mapped_debug_names): Remove constructor.
5661 <dwarf2_per_objfile>: Remove field.
5662 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5663 (mapped_index_base::find_name_components_bounds,
5664 mapped_index_base::build_name_components,
5665 dw2_expand_symtabs_matching_symbol): Likewise.
5666 (class mock_mapped_index) <symbol_name_at>: Likewise.
5667 (check_match): Likewise.
5668 (check_find_bounds_finds): Likewise.
5669 (test_mapped_index_find_name_component_bounds): Update.
5670 (CHECK_MATCH): Update.
5671 (dw2_expand_symtabs_matching): Update.
5672 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5673 per_objfile parameter.
5674 <find_vec_in_debug_names>: Likewise.
5675 <m_per_objfile>: New field.
5676 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5677 parameter.
5678 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5679 (dw2_debug_names_iterator::next): Update.
5680 (dw2_debug_names_lookup_symbol): Update.
5681 (dw2_debug_names_expand_symtabs_for_function): Update.
5682 (dw2_debug_names_map_matching_symbols): Update.
5683 (dw2_debug_names_expand_symtabs_matching): Update.
5684 (dwarf2_read_debug_names): Update.
5685
5686 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5687
5688 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5689 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5690 move to dwarf2_per_objfile.
5691 <read_in_chain>: Remove.
5692 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5693 remove_all_cus, age_comp_units>: New methods.
5694 <m_dwarf2_cus>: New member.
5695 (struct dwarf2_per_cu_data) <cu>: Remove.
5696 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5697 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5698 moved to methods of dwarf2_per_objfile.
5699 (dwarf2_clear_marks): Remove.
5700 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5701 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5702 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5703 (dwarf2_per_objfile::remove_all_cus): New.
5704 (class free_cached_comp_units) <~free_cached_comp_units>:
5705 Update.
5706 (load_cu): Update.
5707 (dw2_do_instantiate_symtab): Adjust.
5708 (fill_in_sig_entry_from_dwo_entry): Adjust.
5709 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5710 (cutu_reader::cutu_reader): Likewise.
5711 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5712 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5713 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5714 and dwarf2_per_objfile::age_comp_units.
5715 (load_partial_comp_unit): Update.
5716 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5717 (process_queue): Likewise.
5718 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5719 backlink.
5720 (dwarf2_read_addr_index): Likewise.
5721 (follow_die_offset): Likewise.
5722 (dwarf2_fetch_die_loc_sect_off): Likewise.
5723 (dwarf2_fetch_constant_bytes): Likewise.
5724 (dwarf2_fetch_die_type_sect_off): Likewise.
5725 (follow_die_sig_1): Likewise.
5726 (load_full_type_unit): Likewise.
5727 (read_signatured_type): Likewise.
5728 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5729 (dwarf2_cu::~dwarf2_cu): Remove.
5730 (dwarf2_per_objfile::get_cu): New.
5731 (dwarf2_per_objfile::set_cu): New.
5732 (age_cached_comp_units): Rename to...
5733 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5734 to std::unordered_map.
5735 (free_one_cached_comp_unit): Rename to...
5736 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5737 to std::unordered_map.
5738 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5739 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5740 a dwarf2_per_objfile in data.
5741 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5742 (dwarf2_clear_marks): Remove.
5743
5744 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5745
5746 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5747 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5748 (init_tu_and_read_dwo_dies): Likewise.
5749 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5750 (cutu_reader::cutu_reader): Likewise.
5751 (load_partial_comp_unit): Likewise.
5752 (process_psymtab_comp_unit): Update.
5753 (build_type_psymtabs_1): Update.
5754 (process_skeletonless_type_unit): Update.
5755 (load_full_comp_unit): Update.
5756 (find_partial_die): Update.
5757 (dwarf2_read_addr_index): Update.
5758 (read_signatured_type): Update.
5759
5760 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5761
5762 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5763 m_header_read_in>: New fields.
5764 <get_header>: New method.
5765 * dwarf2/read.c (per_cu_header_read_in): Remove.
5766 (dwarf2_per_cu_data::get_header): New.
5767 (dwarf2_per_cu_data::addr_size): Update.
5768 (dwarf2_per_cu_data::offset_size): Update.
5769 (dwarf2_per_cu_data::ref_addr_size): Update.
5770
5771 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5772
5773 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5774 (dw2_do_instantiate_symtab): Update.
5775 (queue_and_load_all_dwo_tus): Change parameter from
5776 dwarf2_per_cu_data to dwarf2_cu.
5777 (dwarf2_fetch_die_loc_sect_off): Update.
5778 (dwarf2_fetch_constant_bytes): Update.
5779 (dwarf2_fetch_die_type_sect_off): Update.
5780
5781 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5782
5783 * dwarf2/read.c (process_full_comp_unit,
5784 process_full_type_unit): Remove per_cu, per_objfile paramters.
5785 Add dwarf2_cu parameter.
5786 (process_queue): Update.
5787
5788 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5789
5790 * dwarf2/read.c (create_cu_from_index_list): Replace
5791 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5792 (create_cus_from_index_list): Likewise.
5793 (create_cus_from_index): Likewise.
5794 (create_signatured_type_table_from_index): Likewise.
5795 (create_cus_from_debug_names_list): Likewise.
5796 (create_cus_from_debug_names): Likewise.
5797 (dwarf2_read_gdb_index): Update.
5798 (dwarf2_read_debug_names): Update.
5799
5800 2020-05-27 Tom Tromey <tom@tromey.com>
5801 Simon Marchi <simon.marchi@efficios.com>
5802
5803 * dwarf2/read.h (struct dwarf2_per_objfile)
5804 <get_type_for_signatured_type, set_type_for_signatured_type>:
5805 New methods.
5806 <m_type_map>: New member.
5807 (struct signatured_type) <type>: Remove.
5808 * dwarf2/read.c
5809 (dwarf2_per_objfile::get_type_for_signatured_type,
5810 dwarf2_per_objfile::set_type_for_signatured_type): New.
5811 (get_signatured_type): Use new methods.
5812
5813 2020-05-27 Tom Tromey <tom@tromey.com>
5814 Simon Marchi <simon.marchi@efficios.com>
5815
5816 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5817 (struct dwarf2_per_objfile) <type_units>: New member.
5818 <get_type_unit_group_unshareable>: New method.
5819 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5820 num_symtabs, symtabs>: Remove; move to
5821 type_unit_group_unshareable.
5822 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5823 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5824 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5825
5826 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5827
5828 * dwarf2/read.h (struct dwarf2_per_cu_data):
5829 <dwarf2_per_objfile>: Remove.
5830 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5831 dwarf2_per_objfile.
5832 (create_signatured_type_table_from_index): Likewise.
5833 (create_signatured_type_table_from_debug_names): Likewise.
5834 (create_debug_type_hash_table): Likewise.
5835 (fill_in_sig_entry_from_dwo_entry): Likewise.
5836 (create_type_unit_group): Likewise.
5837 (read_comp_units_from_section): Likewise.
5838 (create_cus_hash_table): Likewise.
5839
5840 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5841
5842 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5843 dwarf2_per_cu_data::dwarf2_per_objfile.
5844 (compute_compunit_symtab_includes): Likewise.
5845 (dwarf2_cu::start_symtab): Likewise.
5846
5847 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5848
5849 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5850 parameter.
5851 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5852 (read_namespace_alias): Update.
5853 (lookup_die_type): Update.
5854 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5855 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5856 Update.
5857 (disassemble_dwarf_expression): Update.
5858
5859 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5860
5861 * dwarf2/read.h (struct dwarf2_queue_item): Add
5862 dwarf2_per_objfile parameter, assign new parameter.
5863 <per_objfile>: New field.
5864 * dwarf2/read.c (free_one_cached_comp_unit): Add
5865 dwarf2_per_objfile parameter.
5866 (queue_comp_unit): Likewise.
5867 (dw2_do_instantiate_symtab): Update.
5868 (process_psymtab_comp_unit): Update.
5869 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5870 (process_imported_unit_die): Update.
5871 (queue_and_load_dwo_tu): Update.
5872 (follow_die_offset): Update.
5873 (follow_die_sig_1): Update.
5874
5875 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5876
5877 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5878 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5879 (read_call_site_scope): Assign per_objfile.
5880 (dwarf2_per_cu_data::objfile): Remove.
5881 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5882 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5883 dwarf2_per_objfile parameter.
5884 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5885 dwarf2_per_objfile parameter.
5886 (dwarf_expr_reg_to_entry_parameter): Add output
5887 dwarf2_per_objfile parameter.
5888 (locexpr_get_frame_base): Update.
5889 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5890 <push_dwarf_reg_entry_value>: Update.
5891 <call_site_to_target_addr>: Update.
5892 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5893 parameter.
5894 (value_of_dwarf_reg_entry): Update.
5895 (rw_pieced_value): Update.
5896 (indirect_synthetic_pointer): Update.
5897 (dwarf2_evaluate_property): Update.
5898 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5899 parameter.
5900 (locexpr_read_variable): Update.
5901 (locexpr_get_symbol_read_needs): Update.
5902 (loclist_read_variable): Update.
5903
5904 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5905
5906 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5907 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5908 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5909 parameter.
5910 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5911 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5912 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5913 parameter.
5914 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5915 sect_variable_value): Add dwarf2_per_objfile parameter.
5916 (class dwarf_evaluate_loc_desc) <dwarf_call,
5917 dwarf_variable_value>: Update.
5918 (fetch_const_value_from_synthetic_pointer): Add
5919 dwarf2_per_objfile parameter.
5920 (fetch_const_value_from_synthetic_pointer): Update.
5921 (coerced_pieced_ref): Update.
5922 (class symbol_needs_eval_context) <dwarf_call,
5923 dwarf_variable_value>: Update.
5924 (dwarf2_compile_expr_to_ax): Update.
5925
5926 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5927
5928 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5929 parameter.
5930 (dwarf2_evaluate_loc_desc_full): Update.
5931
5932 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5933
5934 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5935 parameter.
5936 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5937 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5938 dwarf2_per_objfile parameter.
5939 (decode_debug_loc_dwo_addresses): Likewise.
5940 (dwarf2_find_location_expression): Update.
5941 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5942 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5943 parameter.
5944 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5945 parameter.
5946 (locexpr_describe_location_1): Likewise.
5947 (locexpr_describe_location): Update.
5948
5949 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5950
5951 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5952 Remove.
5953 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5954 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5955 (dwarf2_compile_property_to_c): Update.
5956 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5957 use text offset from objfile.
5958 (locexpr_tracepoint_var_ref): Update.
5959 (locexpr_generate_c_location): Update.
5960 (loclist_describe_location): Update.
5961 (loclist_tracepoint_var_ref): Update.
5962 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5963 dwarf2_per_objfile parameter.
5964 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5965 use text offset from objfile.
5966 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5967
5968 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5969
5970 * dwarf2/expr.h (struct dwarf_expr_context)
5971 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5972 <offset>: Remove.
5973 <per_objfile>: New member.
5974 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5975 dwarf2_per_objfile parameter. Don't set offset, set
5976 per_objfile.
5977 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5978 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5979 a dwarf2_per_objfile object instead of an offset.
5980 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5981 constructor.
5982 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5983 to dwarf2_expr_executor constructor. Don't set offset.
5984 (dwarf2_fetch_cfa_info): Update.
5985 (struct dwarf2_frame_cache) <text_offset>: Remove.
5986 <per_objfile>: New field.
5987 (dwarf2_frame_cache): Update.
5988 (dwarf2_frame_prev_register): Update.
5989 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5990 <dwarf_evaluate_loc_desc>: Add constructor.
5991 (dwarf2_evaluate_loc_desc_full): Update.
5992 (dwarf2_locexpr_baton_eval): Update.
5993 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5994 Add constructor.
5995 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5996
5997 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5998
5999 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6000 addr_sized_int_type>: Move to dwarf2_cu.
6001 <int_type>: Move to dwarf2_per_objfile.
6002 (struct dwarf2_per_objfile) <int_type>: Move here.
6003 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6004 addr_sized_int_type>: Move here.
6005 (read_func_scope): Update.
6006 (read_array_type): Update.
6007 (read_tag_string_type): Update.
6008 (attr_to_dynamic_prop): Update.
6009 (dwarf2_per_cu_data::int_type): Rename to...
6010 (dwarf2_per_objfile::int_type): ... this.
6011 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6012 (dwarf2_cu::addr_sized_int_type): ... this.
6013 (read_subrange_type): Update.
6014 (dwarf2_per_cu_data::addr_type): Rename to...
6015 (dwarf2_cu::addr_type): ... this.
6016 (set_die_type): Update.
6017
6018 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6019
6020 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6021 data through per_cu->cu.
6022
6023 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6024
6025 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6026 dwarf2_per_cu_data parameter fo dwarf2_cu.
6027 (lookup_dwo_type_unit): Likewise.
6028 (read_cutu_die_from_dwo): Likewise.
6029 (lookup_dwo_unit): Likewise.
6030 (open_and_init_dwo_file): Likewise.
6031 (lookup_dwo_cutu): Likewise.
6032 (lookup_dwo_comp_unit): Likewise.
6033 (lookup_dwo_type_unit): Likewise.
6034 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6035 (cutu_reader::cutu_reader): Update.
6036
6037 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6038
6039 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6040 parameter.
6041 (process_full_type_unit): Likewise.
6042 (process_queue): Update.
6043
6044 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6045
6046 * dwarf2/read.c (recursively_compute_inclusions): Add
6047 dwarf2_per_objfile parameter.
6048 (compute_compunit_symtab_includes): Likewise.
6049 (process_cu_includes): Update.
6050
6051 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6052
6053 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6054 parameter.
6055 (create_type_unit_group): Update.
6056 (process_psymtab_comp_unit_reader): Update.
6057 (build_type_psymtabs_reader): Update.
6058
6059 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6060
6061 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6062 object through m_this_cu->cu.
6063
6064 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6065
6066 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6067 the info parameter.
6068 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6069
6070 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6071
6072 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6073 per_objfile parameter.
6074 (load_full_type_unit): Add per_objfile parameter.
6075 (read_signatured_type): Likewise.
6076 (load_full_comp_unit): Likewise.
6077 (load_cu): Likewise.
6078 (dw2_do_instantiate_symtab): Likewise.
6079 (dw2_get_file_names): Likewise.
6080 (dw2_map_symtabs_matching_filename): Update.
6081 (dw_expand_symtabs_matching_file_matcher): Update.
6082 (dw2_map_symbol_filenames): Update.
6083 (process_psymtab_comp_unit): Add per_objfile parameter.
6084 (build_type_psymtabs_1): Update.
6085 (process_skeletonless_type_unit): Update.
6086 (dwarf2_build_psymtabs_hard): Update.
6087 (load_partial_comp_unit): Add per_objfile parameter.
6088 (scan_partial_symbols): Update.
6089 (load_full_comp_unit): Add per_objfile parameter.
6090 (process_imported_unit_die): Update.
6091 (create_cus_hash_table): Update.
6092 (find_partial_die): Update.
6093 (dwarf2_read_addr_index): Update.
6094 (follow_die_offset): Update.
6095 (dwarf2_fetch_die_loc_sect_off): Update.
6096 (dwarf2_fetch_constant_bytes): Update.
6097 (dwarf2_fetch_die_type_sect_off): Update.
6098 (follow_die_sig_1): Update.
6099 (load_full_type_unit): Add per_objfile parameter.
6100 (read_signatured_type): Likewise.
6101
6102 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6103
6104 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6105 of objfile_name.
6106
6107 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6108
6109 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6110 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6111 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6112 field.
6113 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6114 (create_cus_from_index): Update.
6115 (dwarf2_read_gdb_index): Update.
6116 (create_cus_from_debug_names): Update.
6117 (dwarf2_read_debug_names): Update.
6118 (get_abbrev_section_for_cu): Update.
6119 (create_all_comp_units): Update.
6120 (read_attribute_value): Update.
6121 (get_debug_line_section): Update.
6122 * dwarf2/index-cache.c (index_cache::store): Update.
6123 * dwarf2/index-write.c (save_gdb_index_command): Update.
6124 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6125
6126 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6127
6128 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6129 member.
6130 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6131 dwarf2_per_cu_data::per_bfd.
6132 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6133 (create_type_unit_group): Likewise.
6134 (queue_comp_unit): Remove reference to
6135 per_cu->dwarf2_per_objfile.
6136 (maybe_queue_comp_unit): Likewise.
6137 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6138 (create_cus_hash_table): Assign new field.
6139
6140 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6141
6142 * dwarf2/read.c: Replace
6143 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6144 dwarf2_cu->per_objfile throughout.
6145
6146 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6147
6148 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6149 parameter, don't use per_cu->dwarf2_per_objfile.
6150 (dw2_instantiate_symtab): Likewise.
6151 (dw2_find_last_source_symtab): Update.
6152 (dw2_map_expand_apply): Update.
6153 (dw2_lookup_symbol): Update.
6154 (dw2_expand_symtabs_for_function): Update.
6155 (dw2_expand_all_symtabs): Update.
6156 (dw2_expand_symtabs_with_fullname): Update.
6157 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6158 don't use per_cu->dwarf2_per_objfile.
6159 (dw2_expand_marked_cus): Update.
6160 (dw2_find_pc_sect_compunit_symtab): Update.
6161 (dw2_debug_names_lookup_symbol): Update.
6162 (dw2_debug_names_expand_symtabs_for_function): Update.
6163 (dw2_debug_names_map_matching_symbols): Update.
6164 (dwarf2_psymtab::expand_psymtab): Update.
6165
6166 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6167
6168 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6169 <per_objfile>: New member.
6170 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6171 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6172 call to dwarf2_cu.
6173 (cutu_reader::cutu_reader): Update.
6174 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6175
6176 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6177
6178 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6179 struct dwarf2_per_objfile.
6180 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6181 dwarf2_per_bfd.
6182 * dwarf2/read.c (set_die_type): Update.
6183 (get_die_type_at_offset): Update.
6184
6185 2020-05-27 Tom Tromey <tom@tromey.com>
6186 Simon Marchi <simon.marchi@efficios.com>
6187
6188 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6189 method.
6190 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6191 get_symtab, set_symtab>: New methods.
6192 <m_symtabs>: New field.
6193 (struct dwarf2_psymtab): Derive from partial_symtab.
6194 <readin_p, get_compunit_symtab>: Declare methods.
6195 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6196 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6197 New methods.
6198 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6199 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6200 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6201 (dw2_symtab_iter_next, dw2_print_stats)
6202 (dw2_expand_symtabs_with_fullname)
6203 (dw2_expand_symtabs_matching_one)
6204 (dw_expand_symtabs_matching_file_matcher)
6205 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6206 (dw2_debug_names_iterator::next)
6207 (dw2_debug_names_map_matching_symbols)
6208 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6209 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6210 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6211 New methods.
6212 (get_compunit_symtab, process_full_comp_unit)
6213 (process_full_type_unit): Update.
6214 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6215
6216 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6217
6218 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6219 then introduce a new dwarf2_per_objfile type.
6220 <read_line_string>: Move to the new dwarf2_per_objfile type.
6221 <objfile>: Likewise.
6222 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6223 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6224 dwarf2_per_objfile->per_bfd.
6225 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6226 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6227 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6228 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6229 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6230 (dwarf2_per_objfile::locate_sections): Rename to...
6231 (dwarf2_per_bfd::locate_sections): ... this.
6232 (dwarf2_per_objfile::get_cutu): Rename to...
6233 (dwarf2_per_bfd::get_cutu): ... this.
6234 (dwarf2_per_objfile::get_cu): Rename to...
6235 (dwarf2_per_bfd::get_cu): ... this.
6236 (dwarf2_per_objfile::get_tu): Rename to...
6237 (dwarf2_per_bfd::get_tu): ... this.
6238 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6239 (dwarf2_per_bfd::allocate_per_cu): ... this.
6240 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6241 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6242 (get_gdb_index_contents_ftype): Change parameter from
6243 dwarf2_per_objfile to dwarf2_per_bfd.
6244 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6245 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6246
6247 2020-05-27 Tom Tromey <tom@tromey.com>
6248 Simon Marchi <simon.marchi@efficios.com>
6249
6250 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6251 (allocate_piece_closure): Set "per_objfile" member.
6252 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6253 (locexpr_describe_location, loclist_describe_location): Use new
6254 member.
6255 * dwarf2/read.c (read_call_site_scope)
6256 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6257 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6258 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6259 handle_data_member_location): Set per_objfile member.
6260 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6261 member.
6262 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6263
6264 2020-05-27 Tom Tromey <tom@tromey.com>
6265
6266 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6267 allocate_signatured_type>: Declare new methods.
6268 <m_num_psymtabs>: New member.
6269 (struct dwarf2_per_cu_data) <index>: New member.
6270 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6271 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6272 (create_cu_from_index_list): Use allocate_per_cu.
6273 (create_signatured_type_table_from_index)
6274 (create_signatured_type_table_from_debug_names)
6275 (create_debug_type_hash_table, add_type_unit)
6276 (read_comp_units_from_section): Use allocate_signatured_type.
6277
6278 2020-05-27 Tom Tromey <tom@tromey.com>
6279
6280 * psymtab.c (partial_map_expand_apply)
6281 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6282 (psym_lookup_global_symbol_language)
6283 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6284 (psym_print_stats, psym_expand_symtabs_for_function)
6285 (psym_map_symbol_filenames, psym_map_matching_symbols)
6286 (psym_expand_symtabs_matching)
6287 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6288 (maintenance_check_psymtabs): Update.
6289 * psympriv.h (struct partial_symtab) <readin_p,
6290 get_compunit_symtab>: Add objfile parameter.
6291 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6292 Likewise.
6293 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6294 get_compunit_symtab>: Likewise.
6295 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6296
6297 2020-05-27 Tom Tromey <tom@tromey.com>
6298
6299 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6300 member.
6301 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6302 (create_cu_from_index_list)
6303 (create_signatured_type_table_from_index)
6304 (create_signatured_type_table_from_debug_names)
6305 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6306 (dwarf2_create_include_psymtab)
6307 (create_debug_type_hash_table, add_type_unit)
6308 (create_type_unit_group, read_comp_units_from_section)
6309 (dwarf2_compute_name, create_cus_hash_table)
6310 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6311 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6312 obstack.
6313 (dw2_get_real_path): Likewise. Change argument to
6314 dwarf2_per_objfile.
6315
6316 2020-05-27 Luis Machado <luis.machado@linaro.org>
6317
6318 PR tdep/26000
6319 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6320 for ldrd (immediate).
6321
6322 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6323
6324 * command.h: Add comment giving the name of class_tui.
6325 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6326 create the fake command for the help for class_tui.
6327
6328 2020-05-26 Tom Tromey <tromey@adacore.com>
6329
6330 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6331 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6332 (val_atr): New function.
6333 (value_val_atr): Use it.
6334 * ada-valprint.c (print_optional_low_bound): Change low bound
6335 handling for enums.
6336 (val_print_packed_array_elements): Don't call discrete_position.
6337 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6338 discrete_position for enum types.
6339 * language.c (default_print_array_index): Change type.
6340 * language.h (struct language_defn) <la_print_array_index>: Add
6341 index_type parameter, change type of index_value.
6342 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6343 (default_print_array_index): Update.
6344 * valprint.c (maybe_print_array_index): Don't call
6345 value_from_longest. Update.
6346 (value_print_array_elements): Don't call discrete_position.
6347
6348 2020-05-26 Tom Tromey <tromey@adacore.com>
6349
6350 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6351 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6352
6353 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6354
6355 PR gdb/13519
6356 * avr-tdep.c (avr_integer_to_address): Return data or code
6357 address accordingly to the second 'type' argument of the
6358 function.
6359
6360 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6361
6362 * infcmd.c, inferior.h: (construct_inferior_arguments):
6363 Moved function from here to gdbsupport/common-inferior.{h,cc}
6364
6365 2020-05-23 Tom Tromey <tom@tromey.com>
6366
6367 Revert commit eca1f90c:
6368 * NEWS: Remove entry for completion styling.
6369 * completer.c (_rl_completion_prefix_display_length): Move
6370 declaration later.
6371 (gdb_fnprint): Revert.
6372 (gdb_display_match_list_1): Likewise.
6373 * cli/cli-style.c (completion_prefix_style)
6374 (completion_difference_style, completion_suffix_style): Remove.
6375 (_initialize_cli_style): Revert.
6376 * cli/cli-style.h (completion_prefix_style)
6377 (completion_difference_style, completion_suffix_style): Don't
6378 declare.
6379
6380 2020-05-24 Pedro Alves <palves@redhat.com>
6381
6382 * symtab.c (completion_list_add_name): Return boolean indication
6383 of whether the symbol matched.
6384 (completion_list_add_symbol): Don't try to remove C++ aliases if
6385 the symbol didn't match in the first place.
6386 * symtab.h (completion_list_add_name): Return bool.
6387
6388 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6389
6390 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6391 type::field.
6392
6393 2020-05-23 Joel Brobecker <brobecker@adacore.com>
6394
6395 GDB 9.2 released.
6396
6397 2020-05-23 Tom Tromey <tom@tromey.com>
6398
6399 * NEWS: Add entry for completion styling.
6400 * completer.c (_rl_completion_prefix_display_length): Move
6401 declaration earlier.
6402 (gdb_fnprint): Use completion_style.
6403 (gdb_display_match_list_1): Likewise.
6404 * cli/cli-style.c (completion_prefix_style)
6405 (completion_difference_style, completion_suffix_style): New
6406 globals.
6407 (_initialize_cli_style): Register new globals.
6408 * cli/cli-style.h (completion_prefix_style)
6409 (completion_difference_style, completion_suffix_style): Declare.
6410
6411 2020-05-23 Pedro Alves <palves@redhat.com>
6412
6413 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6414 (parse_escape): Use ISDIGIT instead of isdigit.
6415 (puts_debug): Use gdb_isprint instead of isprint.
6416 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6417 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6418 ISSPACE instead of isspace.
6419 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6420 instead of isspace.
6421 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6422 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6423 instead of isxdigit and ISDIGIT instead of isdigit.
6424
6425 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6426
6427 * gdbtypes.h (struct type) <field>: New method.
6428 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6429 or type::field.
6430
6431 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6432
6433 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6434 (TYPE_FIELDS): Use type::fields. Change all call sites that
6435 modify the propery to use type::set_fields instead.
6436
6437 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6438
6439 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6440 type::num_fields instead.
6441
6442 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6443
6444 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6445 methods.
6446 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6447 that modify the number of fields to use type::set_num_fields
6448 instead.
6449
6450 2020-05-22 Tom Tromey <tromey@adacore.com>
6451
6452 * compile/compile-object-load.h (munmap_list_free): Don't
6453 declare.
6454
6455 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6456
6457 * annotate.c (annotate_source_line): Update return type, add call
6458 to update current symtab and line.
6459 * annotate.h (annotate_source_line): Update return type, and
6460 extend header comment.
6461 * source.c (info_line_command): Check annotation_level before
6462 calling annotate_source_line.
6463 * stack.c (print_frame_info): If calling annotate_source_line
6464 returns true, then don't print any other source line information.
6465
6466 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6467
6468 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6469
6470 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6471
6472 * coffread.c (patch_type): Remove NULL check before xfree.
6473 * corefile.c (set_gnutarget): Likewise.
6474 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6475 * exec.c (build_section_table): Likewise.
6476 * remote.c (remote_target::pass_signals): Likewise.
6477 * utils.c (n_spaces): Likewise.
6478 * cli/cli-script.c (document_command): Likewise.
6479 * i386-windows-tdep.c (core_process_module_section): Likewise.
6480 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6481
6482 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
6483
6484 * symfile.c (reread_symbols): Clear objfile's section_offsets
6485 vector and section indices, re-compute them by calling
6486 sym_offsets.
6487
6488 2020-05-20 Tom Tromey <tromey@adacore.com>
6489
6490 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
6491 (desc_one_bound, desc_index_type): Compute field name.
6492
6493 2020-05-20 Tom de Vries <tdevries@suse.de>
6494
6495 PR symtab/25833
6496 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6497
6498 2020-05-20 Alan Modra <amodra@gmail.com>
6499
6500 PR 25993
6501 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6502 bfd_set_filename.
6503 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6504 passed to bfd_set_filename.
6505 * symfile-mem.c (add_vsyscall_page): Likewise for string
6506 passed to symbol_file_add_from_memory.
6507 (symbol_file_add_from_memory): Make name param a const char* and
6508 don't strdup.
6509
6510 2020-05-20 Alan Modra <amodra@gmail.com>
6511
6512 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6513 rather than accessing bfd->filename directly.
6514 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6515 and use bfd_section_name.
6516 * dwarf2/frame.c (decode_frame_entry): Likewise.
6517 * exec.c (exec_set_section_address): Likewise.
6518 * solib-aix.c (solib_aix_bfd_open): Likewise.
6519 * stap-probe.c (get_stap_base_address): Likewise.
6520 * symfile.c (reread_symbols): Likewise.
6521
6522 2020-05-19 Tom Tromey <tromey@adacore.com>
6523
6524 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6525
6526 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6527
6528 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6529
6530 2020-05-19 Pedro Alves <palves@redhat.com>
6531
6532 * NEWS (set exec-file-mismatch): Adjust entry.
6533 * exec.c: Include "build-id.h".
6534 (validate_exec_file): Try to match build IDs instead of filenames.
6535 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6536 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6537 and pass down 'warn_if_slow'.
6538 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6539 gdb_bfd_open_closure to pass it down.
6540 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6541
6542 2020-05-19 Pedro Alves <palves@redhat.com>
6543
6544 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6545 * target.c (target_fileio_open_1): Rename to target_fileio_open
6546 and make extern. Use bool.
6547 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6548 (target_fileio_read_alloc_1): Adjust.
6549 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6550 (target_fileio_open_warn_if_slow): Delete declaration.
6551
6552 2020-05-19 Pedro Alves <palves@redhat.com>
6553
6554 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6555 Adjust all callers.
6556
6557 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6558
6559 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6560 whether disp is negative.
6561
6562 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6563
6564 * symfile.h (struct symfile_segment_data)
6565 <~symfile_segment_data>: Remove.
6566 <segment_info>: Change to std::vector.
6567 * symfile.c (default_symfile_segments): Update.
6568 * elfread.c (elf_symfile_segments): Update.
6569
6570 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6571
6572 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6573 <segments>: New.
6574 <segment_bases, segment_sizes>: Remove.
6575 * symfile.c (default_symfile_segments): Update.
6576 * elfread.c (elf_symfile_segments): Update.
6577 * remote.c (remote_target::get_offsets): Update.
6578 * solib-target.c (solib_target_relocate_section_addresses):
6579 Update.
6580
6581 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6582
6583 * symfile.h (struct symfile_segment_data): Initialize fields.
6584 <~symfile_segment_data>: Add.
6585 (symfile_segment_data_up): New.
6586 (struct sym_fns) <sym_segments>: Return a
6587 symfile_segment_data_up.
6588 (default_symfile_segments): Return a symfile_segment_data_up.
6589 (free_symfile_segment_data): Remove.
6590 (get_symfile_segment_data): Return a symfile_segment_data_up.
6591 * symfile.c (default_symfile_segments): Likewise.
6592 (get_symfile_segment_data): Likewise.
6593 (free_symfile_segment_data): Remove.
6594 (symfile_find_segment_sections): Update.
6595 * elfread.c (elf_symfile_segments): Return a
6596 symfile_segment_data_up.
6597 * remote.c (remote_target::get_offsets): Update.
6598 * solib-target.c (solib_target_relocate_section_addresses):
6599 Update.
6600 * symfile-debug.c (debug_sym_segments): Return a
6601 symfile_segment_data_up.
6602
6603 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6604
6605 PR build/25981
6606 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6607 Hardcode register numbers.
6608
6609 PR build/25981
6610 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6611 procfs_find_LDT_entry): Remove.
6612 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6613 procfs_find_LDT_entry): Remove.
6614 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6615 Remove.
6616
6617 2020-05-17 Pedro Alves <palves@redhat.com>
6618 Andrew Burgess <andrew.burgess@embecosm.com>
6619 Keno Fischer <keno@juliacomputing.com>
6620
6621 PR gdb/25741
6622 * breakpoint.c (build_target_condition_list): Update comments.
6623 (build_target_command_list): Update comments and skip matching
6624 locations.
6625 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6626 a separate function. Simplify "set breakpoint auto-hw off"
6627 handling.
6628 (insert_breakpoints): Update comment.
6629 (tracepoint_locations_match): New parameter. For breakpoints,
6630 compare location types too, if the caller wants to.
6631 (handle_automatic_hardware_breakpoints): New functions.
6632 (bp_location_is_less_than): Also sort by location type and
6633 hardware breakpoint length.
6634 (update_global_location_list): Handle "set breakpoint auto-hw on"
6635 here.
6636 (update_breakpoint_locations): Ask breakpoint_locations_match to
6637 ignore location types.
6638
6639 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6640
6641 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6642 type::name instead.
6643
6644 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6645
6646 * gdbtypes.h (struct type) <name, set_name>: New methods.
6647 (TYPE_CODE): Use type::name. Change all call sites used to set
6648 the name to use type::set_name instead.
6649
6650 2020-05-16 Tom Tromey <tom@tromey.com>
6651
6652 * top.c (quit_force): Update.
6653 * infrun.c (handle_no_resumed): Update.
6654 * top.h (all_uis): New function.
6655 (ALL_UIS): Remove.
6656
6657 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6658
6659 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6660
6661 2020-05-16 Pedro Alves <palves@redhat.com>
6662
6663 * ia64-linux-nat.c
6664 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6665 Declare method.
6666 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6667
6668 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
6669
6670 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6671 (sparc64_adi_info): Likewise.
6672
6673 2020-05-15 Tom Tromey <tom@tromey.com>
6674
6675 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6676 block_objfile.
6677 (lookup_objfile_from_block): Remove.
6678 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6679 (lookup_global_symbol): Use block_objfile.
6680 * symtab.h (lookup_objfile_from_block): Don't declare.
6681 * printcmd.c (clear_dangling_display_expressions): Use
6682 block_objfile.
6683 * parse.c (operator_check_standard): Use block_objfile.
6684
6685 2020-05-15 Tom Tromey <tom@tromey.com>
6686
6687 * language.c (language_alloc_type_symbol): Set
6688 SYMBOL_SECTION.
6689 * symtab.c (initialize_objfile_symbol): Remove.
6690 (allocate_symbol): Remove.
6691 (allocate_template_symbol): Remove.
6692 * dwarf2/read.c (fixup_go_packaging): Use "new".
6693 (new_symbol): Use "new".
6694 (read_variable): Don't call initialize_objfile_symbol. Use
6695 "new".
6696 (read_func_scope): Use "new".
6697 * xcoffread.c (process_xcoff_symbol): Don't call
6698 initialize_objfile_symbol.
6699 (SYMBOL_DUP): Remove.
6700 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6701 "new".
6702 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6703 (allocate_template_symbol): Don't declare.
6704 (struct symbol): Add copy constructor. Change defaults.
6705 * jit.c (finalize_symtab): Use "new".
6706 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6707 Use "new".
6708 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6709 (common_block_end): Use "new".
6710 * mdebugread.c (parse_symbol): Use "new".
6711 (new_symbol): Likewise.
6712
6713 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6714
6715 * NEWS: Mention changes to help and apropos.
6716
6717 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6718
6719 * command.h (enum command_class): Improve comments, document
6720 that class_alias is for user-defined aliases, give the class
6721 name for each class, remove unused class_xdb.
6722 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6723 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6724 by a precise class.
6725 * infcmd.c (_initialize_infcmd): Likewise.
6726 * reverse.c (_initialize_reverse): Likewise.
6727 * stack.c (_initialize_stack): Likewise.
6728 * symfile.c (_initialize_symfile): Likewise.
6729 * tracepoint.c (_initialize_tracepoint): Likewise.
6730
6731 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6732
6733 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6734 when their aliased command is traversed.
6735 (help_cmd): Add fput_command_names_styled call to
6736 output command name and aliases when command has an alias.
6737
6738 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6739
6740 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6741 * cli/cli-decode.c (help_cmd_list): Declare as static,
6742 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6743 a command together with the command.
6744 (fput_command_name_styled, fput_command_names_styled): New functions.
6745 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6746 fput_command_name_styled.
6747 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6748 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6749
6750 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6751
6752 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6753 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6754 * command.h (cmd_show_list): Likewise.
6755 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6756 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6757
6758 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6759
6760 * unittests/command-def-selftests.c (traverse_command_structure):
6761 Verify all commands of a list have the same prefix command and
6762 that only the top cmdlist commands have a null prefix.
6763
6764 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6765
6766 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6767 as prefix, not one of its aliases.
6768 (set_cmd_prefix): Remove.
6769 (do_add_cmd): Centralize the setting of the prefix of a command, when
6770 command is defined after its full chain of prefix commands.
6771 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6772 (add_setshow_cmd_full): Likewise.
6773 (update_prefix_field_of_prefixed_commands): New function.
6774 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6775 update_prefix_field_of_prefixed_commands.
6776 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6777 addresses of remote_set_cmdlist and remote_show_cmdlist given
6778 as argument, not the address of an argument.
6779 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6780 * gdb/remote.c (_initialize_remote): Likewise.
6781
6782 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6783
6784 * cli/cli-cmds.c (alias_command): Check for an existing alias
6785 using lookup_cmd_composition, as valid_command_p is too strict
6786 and forbids aliases that are the prefix of an existing alias
6787 or command.
6788 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6789 command is properly recognised as a valid command.
6790
6791 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6792
6793 * unittests/help-doc-selftests.c: Rename to
6794 unittests/command-def-selftests.c
6795 * unittests/command-def-selftests.c (help_doc_tests): Update some
6796 comments.
6797 (command_structure_tests, traverse_command_structure): New namespace
6798 and function.
6799 (command_structure_invariants_tests): New function.
6800 (_initialize_command_def_selftests) Renamed from
6801 _initialize_help_doc_selftests, register command_structure_invariants
6802 selftest.
6803
6804 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6805
6806 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6807 an alias of 'show'.
6808
6809 2020-05-15 Joel Brobecker <brobecker@adacore.com>
6810
6811 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6812 ada_is_fixed_point_type. Update all callers.
6813 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6814 all callers.
6815 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6816 Update all callers.
6817 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6818 print_fixed_point_type. Update all callers.
6819 * ada-valprint.c (ada_value_print_num): Replace call to
6820 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6821
6822 2020-05-14 Kevin Buettner <kevinb@redhat.com>
6823
6824 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6825 processors.
6826 (cpu_supports_bts): Add CV_AMD case.
6827
6828 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6829 Simon Marchi <simon.marchi@efficios.com>
6830
6831 * infrun.c (stop_all_threads): Collect multiple wait events at
6832 each pass.
6833
6834 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6835
6836 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6837 type::code instead.
6838
6839 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6840
6841 * gdbtypes.h (struct type) <code, set_code>: New methods.
6842 (TYPE_CODE): Use type::code. Change all call sites used to set
6843 the code to use type::set_code instead.
6844
6845 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6846 Tom de Vries <tdevries@suse.de>
6847 Pedro Alves <palves@redhat.com>
6848
6849 PR threads/25478
6850 * infrun.c (stop_all_threads): Do NOT ignore
6851 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6852 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6853 received.
6854 (handle_no_resumed): Remove code handling a live inferior with no
6855 threads.
6856 * remote.c (has_single_non_exited_thread): New.
6857 (remote_target::update_thread_list): Do not delete a thread if is
6858 the last thread of the process.
6859 * thread.c (thread_select): Call delete_exited_threads instead of
6860 prune_threads.
6861
6862 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6863
6864 * infrun.c (stop_all_threads): Enable/disable thread events of all
6865 targets. Move a debug message denoting the end of the function
6866 into the SCOPED_EXIT block.
6867
6868 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6869
6870 * process-stratum-target.h: Include <set>.
6871 (all_non_exited_process_targets, switch_to_target_no_thread): New
6872 function declarations.
6873 * process-stratum-target.c (all_non_exited_process_targets)
6874 (switch_to_target_no_thread): New function implementations.
6875
6876 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6877
6878 * infrun.c (handle_inferior_event): Extract out a piece of code
6879 into...
6880 (mark_non_executing_threads): ...this new function.
6881
6882 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6883
6884 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6885 use.
6886
6887 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6888
6889 * regcache.c (regcache_read_pc_protected): New function
6890 implementation that returns 0 if the PC cannot read via
6891 'regcache_read_pc'.
6892 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6893 instead of 'regcache_read_pc'.
6894 (keep_going_pass_signal): Ditto.
6895
6896 2020-05-13 Tom Tromey <tromey@adacore.com>
6897
6898 * ada-lang.c (align_value): Remove.
6899 (ada_template_to_fixed_record_type_1): Use align_up.
6900
6901 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6902
6903 * async-event.c: Update the copyright year.
6904 * async-event.h: Update the copyright year.
6905
6906 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
6907
6908 * objfiles.h (is_addr_in_objfile,
6909 shared_objfile_contains_address_p): Return bool.
6910 * objfile.c (is_addr_in_objfile,
6911 shared_objfile_contains_address_p): Return bool.
6912
6913 2020-05-11 Tom Tromey <tromey@adacore.com>
6914
6915 * cli/cli-cmds.c (info_command): Restore.
6916 (_initialize_cli_cmds): Use add_prefix_command for "info".
6917 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6918
6919 2020-05-11 Tom Tromey <tromey@adacore.com>
6920
6921 * ada-lang.c (ada_value_primitive_field): Now public.
6922 * ada-lang.h (ada_value_primitive_field): Declare.
6923 * ada-valprint.c (print_field_values): Use
6924 ada_value_primitive_field for wrapper fields.
6925
6926 2020-05-11 Tom de Vries <tdevries@suse.de>
6927
6928 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6929 MODULE_DOMAIN.
6930
6931 2020-05-11 Tom de Vries <tdevries@suse.de>
6932
6933 PR symtab/25941
6934 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6935 with length 0, if not gdb-produced.
6936 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6937
6938 2020-05-09 Tom de Vries <tdevries@suse.de>
6939
6940 PR gdb/25955
6941 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6942 calculation.
6943
6944 2020-05-09 Tom Tromey <tom@tromey.com>
6945
6946 * top.c (server_command): Now bool.
6947 * top.h (server_command): Now bool.
6948
6949 2020-05-08 Tom Tromey <tromey@adacore.com>
6950
6951 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6952 already being processed.
6953
6954 2020-05-08 Tom Tromey <tom@tromey.com>
6955
6956 * printcmd.c (struct display) <next>: Remove.
6957 <display>: New constructor.
6958 <exp_string>: Now a std::string.
6959 <enabled_p>: Now a bool.
6960 (display_number): Move definition earlier.
6961 (displays): Rename from display_chain. Now a std::vector.
6962 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6963 (display_command): Update.
6964 (do_one_display, disable_display)
6965 (enable_disable_display_command, do_enable_disable_display):
6966 Update.
6967 (free_display): Remove.
6968 (clear_displays): Rewrite.
6969 (delete_display): Update.
6970 (map_display_numbers): Use function_view. Remove "data"
6971 parameter. Update.
6972 (do_delete_display): Remove.
6973 (undisplay_command): Update.
6974 (do_one_display, do_displays, disable_display)
6975 (info_display_command): Update.
6976 (do_enable_disable_display): Remove.
6977 (enable_disable_display_command)
6978 (clear_dangling_display_expressions): Update.
6979
6980 2020-05-08 Tom Tromey <tom@tromey.com>
6981
6982 * symtab.c (set_symbol_cache_size)
6983 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6984 (maintenance_print_symbol_cache_statistics): Update.
6985 * symmisc.c (print_symbol_bcache_statistics)
6986 (print_objfile_statistics, maintenance_print_objfiles)
6987 (maintenance_info_symtabs, maintenance_check_symtabs)
6988 (maintenance_expand_symtabs, maintenance_info_line_tables):
6989 Update.
6990 * symfile-debug.c (set_debug_symfile): Update.
6991 * source.c (forget_cached_source_info): Update.
6992 * python/python.c (gdbpy_progspaces): Update.
6993 * psymtab.c (maintenance_info_psymtabs): Update.
6994 * probe.c (parse_probes): Update.
6995 * linespec.c (iterate_over_all_matching_symtabs)
6996 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6997 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6998 * exec.c (exec_target::close): Update.
6999 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7000 * breakpoint.c (print_one_breakpoint_location)
7001 (create_longjmp_master_breakpoint)
7002 (create_std_terminate_master_breakpoint): Update.
7003 * progspace.c (program_spaces): Now a std::vector.
7004 (maybe_new_address_space): Update.
7005 (add_program_space): Remove.
7006 (program_space::program_space): Update.
7007 (remove_program_space): Update.
7008 (number_of_program_spaces): Remove.
7009 (print_program_space, update_address_spaces): Update.
7010 * progspace.h (program_spaces): Change type.
7011 (ALL_PSPACES): Remove.
7012 (number_of_program_spaces): Don't declare.
7013 (struct program_space) <next>: Remove.
7014
7015 2020-05-08 Tom Tromey <tom@tromey.com>
7016
7017 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7018 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7019 (enable_break): Update.
7020 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7021 (frv_fdpic_find_canonical_descriptor): Update.
7022 (frv_fetch_objfile_link_map): Update.
7023 * progspace.c (program_space::free_all_objfiles): Update.
7024 (program_space::solibs): New method.
7025 * progspace.h (struct program_space) <solibs>: New method.
7026 * solist.h (master_so_list): Don't declare.
7027 (ALL_SO_LIBS): Remove.
7028 * solib.h (so_list_head): Remove.
7029 (update_solib_list): Update comment.
7030 * solib.c (master_so_list): Remove.
7031 (solib_used, update_solib_list, solib_add)
7032 (info_sharedlibrary_command, clear_solib)
7033 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7034
7035 2020-05-08 Tom Tromey <tom@tromey.com>
7036
7037 * extension.c (extension_languages): Now a std::array.
7038 (ALL_EXTENSION_LANGUAGES): Remove.
7039 (get_ext_lang_defn, get_ext_lang_of_file)
7040 (eval_ext_lang_from_control_command): Update.
7041 (finish_ext_lang_initialization)
7042 (auto_load_ext_lang_scripts_for_objfile)
7043 (ext_lang_type_printers::ext_lang_type_printers)
7044 (apply_ext_lang_type_printers)
7045 (ext_lang_type_printers::~ext_lang_type_printers)
7046 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7047 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7048 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7049 (get_matching_xmethod_workers, ext_lang_colorize)
7050 (ext_lang_before_prompt): Update.
7051 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7052
7053 2020-05-08 Tom Tromey <tom@tromey.com>
7054
7055 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7056 overload.
7057 <swap_string, m_string>: Remove.
7058 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7059 Update.
7060 * stabsread.c (define_symbol, read_type): Update.
7061 * linespec.c (find_linespec_symbols): Update.
7062 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7063 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7064 * dbxread.c (read_dbx_symtab): Update.
7065 * cp-support.h (cp_canonicalize_string_full)
7066 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7067 Return unique_xmalloc_ptr.
7068 * cp-support.c (inspect_type): Update.
7069 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7070 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7071 Likewise.
7072 * c-typeprint.c (print_name_maybe_canonical): Update.
7073 * break-catch-throw.c (check_status_exception_catchpoint):
7074 Update.
7075
7076 2020-05-08 Tom de Vries <tdevries@suse.de>
7077
7078 * infrun.c (follow_fork): Copy current_line and current_symtab to
7079 child thread.
7080
7081 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7082
7083 * async-event.c (struct async_signal_handler, struct
7084 async_event_handler): Reformat, remove typedef.
7085
7086 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7087
7088 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7089 access thistype->main_type->dyn_prop_list directly.
7090
7091 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7092
7093 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7094 (remove_dyn_prop): Remove. Update all users to use
7095 type::remove_dyn_prop.
7096 * gdbtypes.c (remove_dyn_prop): Rename to...
7097 (type::remove_dyn_prop): ... this.
7098
7099 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7100
7101 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7102 (add_dyn_prop): Remove. Update all users to use
7103 type::add_dyn_prop.
7104 * gdbtypes.c (add_dyn_prop): Rename to...
7105 (type::add_dyn_prop): ... this.
7106
7107 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7108
7109 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7110 (get_dyn_prop): Remove. Update all users to use
7111 type::dyn_prop.
7112 * gdbtypes.c (get_dyn_prop): Rename to...
7113 (type::dyn_prop): ... this.
7114
7115 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7116
7117 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7118
7119 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7120
7121 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7122 instruction, skip it if it's there.
7123
7124 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
7125
7126 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7127
7128 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
7129
7130 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7131 * gdbtypes.c (recursive_dump_type): Remove use of
7132 TYPE_INCOMPLETE.
7133
7134 2020-05-03 Tom Tromey <tom@tromey.com>
7135
7136 * breakpoint.c (catch_command, tcatch_command): Remove.
7137 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7138 add_show_prefix_cmd.
7139 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7140 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7141 Remove.
7142 (add_internal_problem_command): Use add_basic_prefix_cmd,
7143 add_show_prefix_cmd.
7144 * mips-tdep.c (set_mipsfpu_command): Remove.
7145 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7146 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7147 (_initialize_index_cache): Use add_basic_prefix_cmd.
7148 * memattr.c (dummy_cmd): Remove.
7149 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7150 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7151 (_initialize_tui_win): Use add_basic_prefix_cmd,
7152 add_show_prefix_cmd.
7153 * cli/cli-logging.c (set_logging_command): Remove.
7154 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7155 add_show_prefix_cmd.
7156 (show_logging_command): Remove.
7157 * target.c (target_command): Remove.
7158 (add_target): Use add_basic_prefix_cmd.
7159
7160 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
7161
7162 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7163
7164 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7165
7166 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7167 info_command.
7168
7169 2020-04-30 Kamil Rytarowski <n54@gmx.com>
7170
7171 * nbsd-nat.c (nbsd_enable_proc_events)
7172 (nbsd_nat_target::post_startup_inferior): Add.
7173 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7174 (nbsd_nat_target::update_thread_list): Rewrite.
7175 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7176 "PTRACE_LWP_CREATE".
7177 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7178
7179 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7180
7181 * stack.c (_initialize_stack): Remove duplicated creation
7182 of "frame" command and "f" alias.
7183
7184 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7185
7186 PR gdb/18706
7187 * gdbtypes.c (check_typedef): Calculate size of array of
7188 stubbed type.
7189
7190 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7191
7192 PR gdb/15559
7193 * i386-tdep.c (i386_push_dummy_call): Call
7194 i386_thiscall_push_dummy_call.
7195 (i386_thiscall_push_dummy_call): New function.
7196 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7197 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7198 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7199
7200 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7201
7202 * gdbarch.sh (do_read): Add shellcheck disable directive for
7203 warning SC2162.
7204
7205 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7206
7207 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7208 "referenced but not assigned" warning.
7209
7210 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7211
7212 * gdbarch.sh: Remove code that sets fallbackdefault.
7213
7214 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7215
7216 * gdbarch.sh: Use shell operators && and || instead of
7217 -a and -o.
7218
7219 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7220
7221 * gdbarch.sh: Use $(...) instead of `...`.
7222
7223 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7224
7225 * gdbarch.sh: Use double quotes around variables.
7226
7227 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7228
7229 * gdbarch.sh: Use %s with printf, instead of variables in the
7230 format string.
7231
7232 2020-04-29 Tom Tromey <tromey@adacore.com>
7233
7234 PR ada/25875:
7235 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7236 type fields here.
7237 (read_enumeration_type): Call
7238 update_enumeration_type_from_children later. Update comments.
7239 (process_enumeration_scope): Don't create type fields.
7240
7241 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7242
7243 * nbsd-tdep.c: Include "xml-syscall.h".
7244 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7245
7246 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7247
7248 * nbsd-nat.c: Include "sys/wait.h".
7249 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7250 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7251 (nbsd_nat_target::remove_exec_catchpoint)
7252 (nbsd_nat_target::set_syscall_catchpoint): Add.
7253 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7254 (nbsd_nat_target::insert_exec_catchpoint)
7255 (nbsd_nat_target::remove_exec_catchpoint)
7256 (nbsd_nat_target::set_syscall_catchpoint): Add.
7257 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7258 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7259 `nbsd_get_syscall_number'.
7260
7261 2020-04-29 Tom Tromey <tom@tromey.com>
7262
7263 * stack.c (print_block_frame_labels): Remove.
7264
7265 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
7266
7267 PR gdb/17320
7268 * ada-valprint.c (val_print_packed_array_elements): Move array
7269 end bracket to new line.
7270 (ada_val_print_string): Remove extra spaces before first array
7271 element.
7272 * c-valprint.c (c_value_print_array): Likewise.
7273 * m2-valprint.c (m2_print_array_contents): Likewise.
7274 (m2_value_print_inner): Likewise.
7275 * p-valprint.c (pascal_value_print_inner): Likewise.
7276 * valprint.c (generic_val_print_array): Likewise.
7277 (value_print_array_elements): Move first array element and array
7278 end bracket to new line.
7279
7280 2020-04-29 Tom de Vries <tdevries@suse.de>
7281
7282 PR symtab/25889
7283 * linespec.c (find_method): Fix ix calculation.
7284
7285 2020-04-28 Kamil Rytarowski <n54@gmx.com>
7286
7287 * syscalls/update-netbsd.sh: New file.
7288 * syscalls/netbsd.xml: Regenerate.
7289 * data-directory/Makefile.in: Register `netbsd.xml' in
7290 `SYSCALLS_FILES'.
7291
7292 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7293
7294 * syscalls/update-freebsd.sh: Add double quotes.
7295
7296 2020-04-28 Tom Tromey <tom@tromey.com>
7297
7298 * NEWS: Update.
7299 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7300 (cmdpy_init): Allow class_tui.
7301
7302 2020-04-28 Mark Williams <mark@myosotissp.com>
7303
7304 PR gdb/24480
7305 * dwarf2read.c: Add missing assingments to list_in_scope when
7306 start_symtab was already called.
7307
7308 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7309
7310 PR gdb/25881
7311 * dwarf2/read.c (offset_map_type): Use
7312 gdb:hash_enum<sect_offset> as hash function.
7313
7314 2020-04-28 Tom de Vries <tdevries@suse.de>
7315
7316 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7317 with DW_AT_signature.
7318
7319 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
7320
7321 * configure.ac: Remove check for fs_base/gs_base in
7322 user_regs_struct.
7323 * configure: Re-generate.
7324 * config.in: Re-generate.
7325 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7326 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7327 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7328
7329 2020-04-27 Luis Machado <luis.machado@linaro.org>
7330
7331 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7332 problematic inline frame unwinding situation.
7333 * frame.c (frame_id_computed_p): New function.
7334 * frame.h (frame_id_computed_p): New prototype.
7335
7336 2020-04-26 Tom Tromey <tom@tromey.com>
7337
7338 * command.h (enum command_class) <class_pseudo>: Remove.
7339
7340 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7341
7342 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7343 and whitespace.
7344
7345 2020-04-25 Kamil Rytarowski <n54@gmx.com>
7346
7347 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7348 `PT_GET_PROCESS_STATE' block.
7349
7350 2020-04-24 Tom Tromey <tom@tromey.com>
7351
7352 * symtab.h (symbol_get_demangled_name): Don't declare.
7353 * symtab.c (symbol_get_demangled_name): Remove.
7354 (general_symbol_info::natural_name)
7355 (general_symbol_info::demangled_name): Update.
7356
7357 2020-04-24 Tom Tromey <tom@tromey.com>
7358
7359 PR rust/25025:
7360 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7361
7362 2020-04-24 Tom Tromey <tom@tromey.com>
7363
7364 PR symtab/12707:
7365 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7366 exists.
7367 (new_symbol): Likewise.
7368 * compile/compile-object-load.c (get_out_value_type): Use
7369 symbol_matches_search_name.
7370
7371 2020-04-24 Tom Tromey <tom@tromey.com>
7372
7373 * dwarf2/read.c (add_partial_symbol): Do not call
7374 compute_and_set_names.
7375
7376 2020-04-24 Tom Tromey <tom@tromey.com>
7377
7378 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7379 overload.
7380
7381 2020-04-24 Tom Tromey <tom@tromey.com>
7382
7383 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7384 (add_psymbol_to_list): New overload. Make old overload call new
7385 one.
7386 * psympriv.h (add_psymbol_to_list): New overload.
7387
7388 2020-04-24 Tom Tromey <tom@tromey.com>
7389
7390 * dwarf2/read.c (partial_die_info::read) <case
7391 DW_AT_linkage_name>: Use value_as_string.
7392 (dwarf2_string_attr): Use value_as_string.
7393 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7394 method.
7395 * dwarf2/attribute.c (attribute::value_as_string): New method.
7396
7397 2020-04-24 Tom Tromey <tom@tromey.com>
7398
7399 * symtab.c (general_symbol_info::natural_name)
7400 (general_symbol_info::demangled_name): Check for language_rust.
7401
7402 2020-04-24 Tom Tromey <tom@tromey.com>
7403
7404 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7405 (dwarf2_physname): ... from here.
7406 (partial_die_info::read): Add Rust "{" hack.
7407
7408 2020-04-24 Tom Tromey <tom@tromey.com>
7409
7410 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7411 method.
7412 (symbol_set_demangled_name): Don't declare.
7413 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7414 symbol_set_demangled_name.
7415 (general_symbol_info::set_language)
7416 (general_symbol_info::compute_and_set_names): Update.
7417 * minsyms.c (minimal_symbol_reader::install): Update.
7418 * dwarf2/read.c (new_symbol): Update.
7419
7420 2020-04-24 Tom Tromey <tromey@adacore.com>
7421
7422 PR python/23662:
7423 * python/py-type.c (convert_field): Handle
7424 FIELD_LOC_KIND_DWARF_BLOCK.
7425 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7426 (typy_get_dynamic): Nw function.
7427 (type_object_getset): Add "dynamic".
7428 * NEWS: Add entry.
7429
7430 2020-04-24 Tom Tromey <tromey@adacore.com>
7431
7432 * ada-typeprint.c (print_choices, print_variant_part)
7433 (print_record_field_types_dynamic): New functions.
7434 (print_record_field_types): Use print_record_field_types_dynamic.
7435
7436 2020-04-24 Tom Tromey <tromey@adacore.com>
7437
7438 * dwarf2/read.c (handle_data_member_location): New overload.
7439 (dwarf2_add_field): Use it.
7440 (decode_locdesc): Add "computed" parameter. Update comment.
7441 * gdbtypes.c (is_dynamic_type_internal): Also look for
7442 FIELD_LOC_KIND_DWARF_BLOCK.
7443 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7444 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7445 virtual base classes.
7446 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7447 FIELD_LOC_KIND_DWARF_BLOCK.
7448
7449 2020-04-24 Tom Tromey <tromey@adacore.com>
7450
7451 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7452 * gdbtypes.c (is_dynamic_type_internal): Check
7453 TYPE_HAS_DYNAMIC_LENGTH.
7454 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7455 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7456 New macros.
7457 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7458 constant.
7459
7460 2020-04-24 Tom Tromey <tromey@adacore.com>
7461
7462 * dwarf2/read.c (struct variant_field): Rewrite.
7463 (struct variant_part_builder): New.
7464 (struct nextfield): Remove "variant" field. Add "offset".
7465 (struct field_info): Add "current_variant_part" and
7466 "variant_parts".
7467 (alloc_discriminant_info): Remove.
7468 (alloc_rust_variant): New function.
7469 (quirk_rust_enum): Update.
7470 (dwarf2_add_field): Set "offset" member. Don't handle
7471 DW_TAG_variant_part.
7472 (offset_map_type): New typedef.
7473 (convert_variant_range, create_one_variant)
7474 (create_one_variant_part, create_variant_parts)
7475 (add_variant_property): New functions.
7476 (dwarf2_attach_fields_to_type): Call add_variant_property.
7477 (read_structure_type): Don't handle DW_TAG_variant_part.
7478 (handle_variant_part, handle_variant): New functions.
7479 (handle_struct_member_die): Use them.
7480 (process_structure_scope): Don't handle variant parts.
7481 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7482 (struct discriminant_info): Remove.
7483 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7484 (struct main_type) <flag_discriminated_union>: Remove.
7485 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7486 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7487 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7488 Update.
7489 * valops.c (value_union_variant): Remove.
7490 * value.h (value_union_variant): Don't declare.
7491
7492 2020-04-24 Tom Tromey <tromey@adacore.com>
7493
7494 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7495 (ada_value_primitive_packed_val): Update.
7496 * ada-valprint.c (ada_value_print_1): Update.
7497 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7498 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7499 just an address. Use evaluate_for_locexpr_baton.
7500 (dwarf2_evaluate_property): Update.
7501 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7502 array_view.
7503 * findvar.c (default_read_var_value): Update.
7504 * gdbtypes.c (compute_variant_fields_inner)
7505 (resolve_dynamic_type_internal): Update.
7506 (resolve_dynamic_type): Change type of valaddr parameter.
7507 * gdbtypes.h (resolve_dynamic_type): Update.
7508 * valarith.c (value_subscripted_rvalue): Update.
7509 * value.c (value_from_contents_and_address): Update.
7510
7511 2020-04-24 Tom Tromey <tromey@adacore.com>
7512
7513 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7514 "push_initial_value" parameter.
7515 (dwarf2_evaluate_property): Likewise.
7516 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7517
7518 2020-04-24 Tom Tromey <tromey@adacore.com>
7519
7520 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7521 (variant::matches, compute_variant_fields_recurse)
7522 (compute_variant_fields_inner, compute_variant_fields): New
7523 functions.
7524 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7525 Use resolved_type after type is made.
7526 (operator==): Add new cases.
7527 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7528 (struct discriminant_range, struct variant, struct variant_part):
7529 New.
7530 (union dynamic_prop_data) <variant_parts, original_type>: New
7531 members.
7532 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7533 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7534 constants.
7535 * value.c (unpack_bits_as_long): Now public.
7536 * value.h (unpack_bits_as_long): Declare.
7537
7538 2020-04-24 Tom Tromey <tromey@adacore.com>
7539
7540 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7541 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7542
7543 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
7544
7545 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7546
7547 2020-04-24 Kamil Rytarowski <n54@gmx.com>
7548
7549 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7550 (remove_fork_catchpoint, post_startup_inferior)
7551 (post_attach): Move...
7552 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7553 (remove_fork_catchpoint, post_startup_inferior)
7554 (post_attach): ...here.
7555 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7556 (remove_fork_catchpoint, post_startup_inferior)
7557 (post_attach): Move...
7558 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7559 (remove_fork_catchpoint, post_startup_inferior)
7560 (post_attach): ...here.
7561
7562 2020-04-24 Tom Tromey <tromey@adacore.com>
7563
7564 * nat/windows-nat.h (struct windows_thread_info)
7565 <pc_adjusted>: New member.
7566 * windows-nat.c (windows_fetch_one_register): Check
7567 pc_adjusted.
7568 (windows_nat_target::get_windows_debug_event)
7569 (windows_nat_target::wait): Set pc_adjusted.
7570
7571 2020-04-24 Tom de Vries <tdevries@suse.de>
7572
7573 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7574 Run gdb-add-index inside temp dir.
7575
7576 2020-04-23 Tom Tromey <tromey@adacore.com>
7577
7578 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7579 in loop.
7580
7581 2020-04-23 Luis Machado <luis.machado@linaro.org>
7582
7583 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7584 get_frame_register instead of gdbarch_unwind_pc.
7585
7586 2020-04-23 Tom de Vries <tdevries@suse.de>
7587
7588 * symtab.c (lookup_global_symbol): Prefer def over decl.
7589
7590 2020-04-23 Tom de Vries <tdevries@suse.de>
7591
7592 PR symtab/25807
7593 * block.c (best_symbol, better_symbol): Promote to external.
7594 * block.h (best_symbol, better_symbol): Declare.
7595 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7596 decl.
7597
7598 2020-04-23 Tom Tromey <tromey@adacore.com>
7599
7600 PR ada/25837:
7601 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7602 "const char *", not a "const std::string &".
7603 <name_and_matcher::operator==>: Update.
7604 * unittests/lookup_name_info-selftests.c: Change type of
7605 "result".
7606
7607 2020-04-23 Tom Tromey <tom@tromey.com>
7608
7609 * inferior.h (iterate_over_inferiors): Don't declare.
7610 * inferior.c (iterate_over_inferiors): Remove.
7611 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7612 Remove.
7613 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7614 use iterate_over_inferiors.
7615 (darwin_resume_inferior_it)
7616 (struct resume_inferior_threads_param)
7617 (darwin_resume_inferior_threads_it): Remove.
7618 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7619
7620 2020-04-23 Tom de Vries <tdevries@suse.de>
7621
7622 * blockframe.c (find_pc_partial_function): Use
7623 find_pc_sect_compunit_symtab rather than
7624 objfile->sf->qf->find_pc_sect_compunit_symtab.
7625
7626 2020-04-22 Tom de Vries <tdevries@suse.de>
7627
7628 PR symtab/25764
7629 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7630 in psymtabs.
7631
7632 2020-04-22 Tom de Vries <tdevries@suse.de>
7633
7634 PR symtab/25801
7635 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7636 symtabs.
7637
7638 2020-04-22 Tom de Vries <tdevries@suse.de>
7639
7640 PR symtab/25700
7641 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7642 CU if already created.
7643
7644 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7645
7646 * infrun.c (displaced_step_fixup): Switch to the event_thread
7647 before calling displaced_step_restore, not after.
7648
7649 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7650
7651 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7652 its inferior is not recorded by us.
7653 (record_btrace_target_open): Replace call to
7654 all_non_exited_threads () with call to current_inferior
7655 ()->non_exited_threads ().
7656 (record_btrace_target::stop_recording): Likewise.
7657 (record_btrace_target::close): Likewise.
7658 (record_btrace_target::wait): Likewise.
7659 (record_btrace_target::record_stop_replaying): Likewise.
7660
7661 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7662
7663 * btrace.c (btrace_enable): Throw an error on double enables and
7664 when enabling recording fails.
7665 (btrace_disable): Throw an error if the thread is not recorded.
7666
7667 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7668
7669 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7670 request if we do not have a thread_info.
7671
7672 2020-04-21 Tom de Vries <tdevries@suse.de>
7673
7674 PR gdb/25471
7675 * thread.c
7676 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7677 exception in get_frame_id.
7678
7679 2020-04-20 Tom Tromey <tromey@adacore.com>
7680
7681 * python/python.c (struct gdbpy_event): Mark move constructor as
7682 noexcept.
7683 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7684 constructor as noexcept.
7685 * completer.h (struct completion_result): Mark move constructor as
7686 noexcept.
7687 * completer.c (completion_result::completion_result): Use
7688 initialization style. Don't call reset_match_list.
7689
7690 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7691
7692 * MAINTAINERS (Write After Approval): Add myself.
7693
7694 2020-04-18 Tom Tromey <tom@tromey.com>
7695
7696 * windows-tdep.c (init_w32_command_list)
7697 (w32_prefix_command_valid): Restore.
7698 (_initialize_windows_tdep): Call init_w32_command_list.
7699
7700 2020-04-18 Tom Tromey <tom@tromey.com>
7701
7702 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7703 * value.c (value_fn_field): Update.
7704 * valops.c (find_function_in_inferior)
7705 (value_allocate_space_in_inferior): Update.
7706 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7707 Update.
7708 * tui/tui-source.c (tui_source_window::set_contents): Update.
7709 * symtab.c (lookup_global_or_static_symbol)
7710 (find_function_start_sal_1, skip_prologue_sal)
7711 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7712 * symmisc.c (dump_msymbols, dump_symtab_1)
7713 (maintenance_print_one_line_table): Update.
7714 * symfile.c (init_entry_point_info, section_is_mapped)
7715 (list_overlays_command, simple_read_overlay_table)
7716 (simple_overlay_update_1): Update.
7717 * stap-probe.c (handle_stap_probe): Update.
7718 * stabsread.c (dbx_init_float_type, define_symbol)
7719 (read_one_struct_field, read_enum_type, read_range_type): Update.
7720 * source.c (info_line_command): Update.
7721 * python/python.c (gdbpy_source_objfile_script)
7722 (gdbpy_execute_objfile_script): Update.
7723 * python/py-type.c (save_objfile_types): Update.
7724 * python/py-objfile.c (py_free_objfile): Update.
7725 * python/py-inferior.c (python_new_objfile): Update.
7726 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7727 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7728 (maintenance_check_psymtabs): Update.
7729 * printcmd.c (info_address_command): Update.
7730 * objfiles.h (struct objfile) <arch>: New method, from
7731 get_objfile_arch.
7732 (get_objfile_arch): Don't declare.
7733 * objfiles.c (get_objfile_arch): Remove.
7734 (filter_overlapping_sections): Update.
7735 * minsyms.c (msymbol_is_function): Update.
7736 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7737 (output_nondebug_symbol): Update.
7738 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7739 (mdebug_expand_psymtab): Update.
7740 * machoread.c (macho_add_oso_symfile): Update.
7741 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7742 Update.
7743 * linux-fork.c (checkpoint_command): Update.
7744 * linespec.c (convert_linespec_to_sals): Update.
7745 * jit.c (finalize_symtab): Update.
7746 * infrun.c (insert_exception_resume_from_probe): Update.
7747 * ia64-tdep.c (ia64_find_unwind_table): Update.
7748 * hppa-tdep.c (internalize_unwinds): Update.
7749 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7750 Update.
7751 * gcore.c (call_target_sbrk): Update.
7752 * elfread.c (record_minimal_symbol, elf_symtab_read)
7753 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7754 (elf_gnu_ifunc_resolve_by_got): Update.
7755 * dwarf2/read.c (create_addrmap_from_index)
7756 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7757 (read_debug_names_from_section)
7758 (process_psymtab_comp_unit_reader, add_partial_symbol)
7759 (add_partial_subprogram, process_full_comp_unit)
7760 (read_file_scope, read_func_scope, read_lexical_block_scope)
7761 (read_call_site_scope, dwarf2_ranges_read)
7762 (dwarf2_record_block_ranges, dwarf2_add_field)
7763 (mark_common_block_symbol_computed, read_tag_pointer_type)
7764 (read_tag_string_type, dwarf2_init_float_type)
7765 (dwarf2_init_complex_target_type, read_base_type)
7766 (partial_die_info::read, partial_die_info::read)
7767 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7768 (dwarf2_fetch_die_loc_sect_off): Update.
7769 * dwarf2/loc.c (dwarf2_find_location_expression)
7770 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7771 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7772 (dwarf2_loc_desc_get_symbol_read_needs)
7773 (locexpr_describe_location_piece, locexpr_describe_location_1)
7774 (loclist_describe_location): Update.
7775 * dwarf2/index-write.c (write_debug_names): Update.
7776 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7777 * dtrace-probe.c (dtrace_process_dof): Update.
7778 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7779 (process_one_symbol): Update.
7780 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7781 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7782 (coff_read_enum_type): Update.
7783 * cli/cli-cmds.c (edit_command, list_command): Update.
7784 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7785 * breakpoint.c (create_overlay_event_breakpoint)
7786 (create_longjmp_master_breakpoint)
7787 (create_std_terminate_master_breakpoint)
7788 (create_exception_master_breakpoint, get_sal_arch): Update.
7789 * block.c (block_gdbarch): Update.
7790 * annotate.c (annotate_source_line): Update.
7791
7792 2020-04-17 Tom Tromey <tromey@adacore.com>
7793
7794 * auto-load.c (show_auto_load_cmd): Remove.
7795 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7796 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7797 (maintenance_print_arc_command): Remove.
7798 * tui/tui-win.c (tui_command): Remove.
7799 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7800 * tui/tui-layout.c (tui_layout_command): Remove.
7801 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7802 * python/python.c (user_set_python, user_show_python): Remove.
7803 (_initialize_python): Use add_basic_prefix_cmd,
7804 add_show_prefix_cmd.
7805 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7806 (install_gdb_commands): Use add_basic_prefix_cmd,
7807 add_show_prefix_cmd.
7808 (info_guile_command): Remove.
7809 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7810 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7811 add_show_prefix_cmd.
7812 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7813 Remove do_set and do_show parameters.
7814 * cli/cli-style.c (set_style, show_style): Remove.
7815 (_initialize_cli_style): Use add_basic_prefix_cmd,
7816 add_show_prefix_cmd.
7817 (cli_style_option::add_setshow_commands): Remove do_set and
7818 do_show parameters.
7819 (cli_style_option::add_setshow_commands): Use
7820 add_basic_prefix_cmd, add_show_prefix_cmd.
7821 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7822 (set_style_name): Remove.
7823 * cli/cli-dump.c (dump_command, append_command): Remove.
7824 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7825 (tekhex_dump_command, binary_dump_command)
7826 (binary_append_command): Remove.
7827 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7828 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7829 (init_w32_command_list): Remove; move into ...
7830 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7831 * valprint.c (set_print, show_print, set_print_raw)
7832 (show_print_raw): Remove.
7833 (_initialize_valprint): Use add_basic_prefix_cmd,
7834 add_show_prefix_cmd.
7835 * typeprint.c (set_print_type, show_print_type): Remove.
7836 (_initialize_typeprint): Use add_basic_prefix_cmd,
7837 add_show_prefix_cmd.
7838 * record.c (set_record_command, show_record_command): Remove.
7839 (_initialize_record): Use add_basic_prefix_cmd,
7840 add_show_prefix_cmd.
7841 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7842 add_show_prefix_cmd.
7843 (info_command, show_command, set_debug, show_debug): Remove.
7844 * top.h (set_history, show_history): Don't declare.
7845 * top.c (set_history, show_history): Remove.
7846 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7847 (unset_tdesc_cmd): Remove.
7848 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7849 add_show_prefix_cmd.
7850 * symtab.c (info_module_command): Remove.
7851 (_initialize_symtab): Use add_basic_prefix_cmd.
7852 * symfile.c (overlay_command): Remove.
7853 (_initialize_symfile): Use add_basic_prefix_cmd.
7854 * sparc64-tdep.c (info_adi_command): Remove.
7855 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7856 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7857 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7858 add_show_prefix_cmd.
7859 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7860 (_initialize_serial): Use add_basic_prefix_cmd,
7861 add_show_prefix_cmd.
7862 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7863 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7864 add_show_prefix_cmd.
7865 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7866 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7867 add_show_prefix_cmd.
7868 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7869 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7870 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7871 add_show_prefix_cmd.
7872 * remote.c (remote_command, set_remote_cmd): Remove.
7873 (_initialize_remote): Use add_basic_prefix_cmd.
7874 * record-full.c (set_record_full_command)
7875 (show_record_full_command): Remove.
7876 (_initialize_record_full): Use add_basic_prefix_cmd,
7877 add_show_prefix_cmd.
7878 * record-btrace.c (cmd_set_record_btrace)
7879 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7880 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7881 (cmd_show_record_btrace_pt): Remove.
7882 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7883 add_show_prefix_cmd.
7884 * ravenscar-thread.c (set_ravenscar_command)
7885 (show_ravenscar_command): Remove.
7886 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7887 add_show_prefix_cmd.
7888 * mips-tdep.c (show_mips_command, set_mips_command)
7889 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7890 add_show_prefix_cmd.
7891 * maint.c (maintenance_command, maintenance_info_command)
7892 (maintenance_check_command, maintenance_print_command)
7893 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7894 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7895 add_show_prefix_cmd.
7896 (show_per_command_cmd): Remove.
7897 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7898 Remove.
7899 (maintenance_show_test_settings_cmd): Remove.
7900 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7901 add_show_prefix_cmd.
7902 * maint-test-options.c (maintenance_test_options_command):
7903 Remove.
7904 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7905 * macrocmd.c (macro_command): Remove
7906 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7907 * language.c (set_check, show_check): Remove.
7908 (_initialize_language): Use add_basic_prefix_cmd,
7909 add_show_prefix_cmd.
7910 * infcmd.c (unset_command): Remove.
7911 (_initialize_infcmd): Use add_basic_prefix_cmd.
7912 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7913 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7914 add_show_prefix_cmd.
7915 * go32-nat.c (go32_info_dos_command): Remove.
7916 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7917 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7918 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7919 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7920 (_initialize_frame): Use add_basic_prefix_cmd,
7921 add_show_prefix_cmd.
7922 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7923 (_initialize_dcache): Use add_basic_prefix_cmd,
7924 add_show_prefix_cmd.
7925 * cp-support.c (maint_cplus_command): Remove.
7926 (_initialize_cp_support): Use add_basic_prefix_cmd.
7927 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7928 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7929 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7930 add_basic_prefix_cmd, add_show_prefix_cmd.
7931 * breakpoint.c (save_command): Remove.
7932 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7933 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7934 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7935 add_show_prefix_cmd.
7936 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7937 (set_ada_command, show_ada_command): Remove.
7938 (_initialize_ada_language): Use add_basic_prefix_cmd,
7939 add_show_prefix_cmd.
7940 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7941
7942 2020-04-16 Kamil Rytarowski <n54@gmx.com>
7943
7944 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7945 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7946
7947 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7948
7949 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7950 warning messages.
7951
7952 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7953
7954 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7955 import table is not at beginning of .idata section.
7956
7957 2020-04-16 Pedro Alves <palves@redhat.com>
7958
7959 * inferior.c (delete_inferior): Use delete operator directly
7960 instead of delete_program_space.
7961 * progspace.c (add_program_space): New, factored out from
7962 program_space::program_space.
7963 (remove_program_space): New, factored out from
7964 delete_program_space.
7965 (program_space::program_space): Remove intro comment. Rewrite.
7966 (program_space::~program_space): Remove intro comment. Call
7967 remove_program_space.
7968 (delete_program_space): Delete.
7969 * progspace.h (program_space::program_space): Make explicit. Move
7970 intro comment here, adjusted.
7971 (program_space::~program_space): Move intro comment here,
7972 adjusted.
7973 (delete_program_space): Remove.
7974
7975 2020-04-16 Tom Tromey <tromey@adacore.com>
7976
7977 * windows-nat.c (windows_nat::handle_access_violation): New
7978 function.
7979 * nat/windows-nat.h (handle_access_violation): Declare.
7980 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7981 windows-nat.c. Call handle_access_violation.
7982
7983 2020-04-16 Tom de Vries <tdevries@suse.de>
7984
7985 PR symtab/25791
7986 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7987 CUs without psymtab.
7988
7989 2020-04-16 Kevin Buettner <kevinb@redhat.com>
7990
7991 * python/python.c (do_start_initialization): Don't call
7992 PyEval_InitThreads for Python 3.9 and beyond.
7993
7994 2020-04-15 Kamil Rytarowski <n54@gmx.com>
7995
7996 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7997 thread functions.
7998 (obsd_nat_target::wait): Likewise.
7999
8000 2020-04-15 Tom Tromey <tromey@adacore.com>
8001
8002 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8003 (DEBUG_EXCEPT): Use debug_printf.
8004
8005 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8006
8007 * completer.c (class completion_tracker::completion_hash_entry)
8008 <hash_name>: New member function.
8009 (completion_tracker::discard_completions): New callback to hash a
8010 completion_hash_entry, pass this to htab_create_alloc.
8011
8012 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8013
8014 * windows-nat.c (windows_make_so): Warn rather than stopping with
8015 an error if realpath() fails.
8016
8017 2020-04-14 Kamil Rytarowski <n54@gmx.com>
8018
8019 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8020 (nbsd_nat_target::info_proc): Add do_status.
8021
8022 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8023 Tom de Vries <tdevries@suse.de>
8024
8025 PR symtab/25718
8026 * psympriv.h (struct partial_symtab::read_symtab)
8027 (struct partial_symtab::expand_psymtab)
8028 (struct partial_symtab::read_dependencies): Update comments.
8029 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8030 read_symtab for includer.
8031 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8032 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8033 (struct dwarf2_include_psymtab::m_readin): Remove.
8034 (struct dwarf2_include_psymtab::includer): New member function.
8035 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8036
8037 2020-04-14 Tom de Vries <tdevries@suse.de>
8038
8039 PR symtab/25720
8040 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8041 with NULL symbol_matcher and lookup_name.
8042 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8043 and lookup_name.
8044 * dwarf2/read.c (dw2_expand_symtabs_matching)
8045 (dw2_debug_names_expand_symtabs_matching): Same.
8046 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8047 Make lookup_name a pointer. Update comment.
8048 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8049 lookup_name being a pointer.
8050 * symfile.c (expand_symtabs_matching): Same.
8051 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8052 * linespec.c (iterate_over_all_matching_symtabs): Same.
8053
8054 2020-04-13 Tom Tromey <tom@tromey.com>
8055
8056 * run-on-main-thread.c: Update include.
8057 * unittests/main-thread-selftests.c: Update include.
8058 * tui/tui-win.c: Update include.
8059 * tui/tui-io.c: Update include.
8060 * tui/tui-interp.c: Update include.
8061 * tui/tui-hooks.c: Update include.
8062 * top.h: Update include.
8063 * top.c: Update include.
8064 * ser-base.c: Update include.
8065 * remote.c: Update include.
8066 * remote-notif.c: Update include.
8067 * remote-fileio.c: Update include.
8068 * record-full.c: Update include.
8069 * record-btrace.c: Update include.
8070 * python/python.c: Update include.
8071 * posix-hdep.c: Update include.
8072 * mingw-hdep.c: Update include.
8073 * mi/mi-main.c: Update include.
8074 * mi/mi-interp.c: Update include.
8075 * main.c: Update include.
8076 * linux-nat.c: Update include.
8077 * interps.c: Update include.
8078 * infrun.c: Update include.
8079 * inf-loop.c: Update include.
8080 * event-top.c: Update include.
8081 * event-loop.c: Move to ../gdbsupport/.
8082 * event-loop.h: Move to ../gdbsupport/.
8083 * async-event.h: Update include.
8084 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8085
8086 2020-04-13 Tom Tromey <tom@tromey.com>
8087
8088 * tui/tui-win.c: Include async-event.h.
8089 * remote.c: Include async-event.h.
8090 * remote-notif.c: Include async-event.h.
8091 * record-full.c: Include async-event.h.
8092 * record-btrace.c: Include async-event.h.
8093 * infrun.c: Include async-event.h.
8094 * event-top.c: Include async-event.h.
8095 * event-loop.h: Move some declarations to async-event.h.
8096 * event-loop.c: Don't include ser-event.h or top.h. Move some
8097 code to async-event.c.
8098 * async-event.h: New file.
8099 * async-event.c: New file.
8100 * Makefile.in (COMMON_SFILES): Add async-event.c.
8101 (HFILES_NO_SRCDIR): Add async-event.h.
8102
8103 2020-04-13 Tom Tromey <tom@tromey.com>
8104
8105 * utils.c (flush_streams): New function.
8106 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8107
8108 2020-04-13 Tom Tromey <tom@tromey.com>
8109
8110 * event-loop.c (handle_file_event): Use warning, not
8111 printf_unfiltered.
8112
8113 2020-04-13 Tom Tromey <tom@tromey.com>
8114
8115 * event-loop.c: Include <chrono>.
8116
8117 2020-04-13 Tom Tromey <tom@tromey.com>
8118
8119 * gdb_select.h: Move to ../gdbsupport/.
8120 * event-loop.c: Update include path.
8121 * top.c: Update include path.
8122 * ser-base.c: Update include path.
8123 * ui-file.c: Update include path.
8124 * ser-tcp.c: Update include path.
8125 * guile/scm-ports.c: Update include path.
8126 * posix-hdep.c: Update include path.
8127 * ser-unix.c: Update include path.
8128 * gdb_usleep.c: Update include path.
8129 * mingw-hdep.c: Update include path.
8130 * inflow.c: Update include path.
8131 * infrun.c: Update include path.
8132 * event-top.c: Update include path.
8133
8134 2020-04-13 Tom Tromey <tom@tromey.com>
8135
8136 * configure: Rebuild.
8137 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8138
8139 2020-04-13 Tom Tromey <tom@tromey.com>
8140
8141 * event-loop.h (start_event_loop): Don't declare.
8142 * event-loop.c (start_event_loop): Move...
8143 * main.c (start_event_loop): ...here. Now static.
8144
8145 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8146
8147 * MAINTAINERS: Update my email address.
8148
8149 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8150
8151 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8152 IP_ALL.
8153
8154 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8155
8156 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
8157 (nbsd_nat_target::info_proc): Add do_cmdline.
8158
8159 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8160
8161 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
8162 (nbsd_nat_target::info_proc): Add do_cwd.
8163
8164 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8165
8166 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8167
8168 2020-04-11 Kamil Rytarowski <n54@gmx.com>
8169
8170 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8171 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8172 (nbsd_nat_target::info_proc): New functions.
8173 * nbsd-nat.c (kinfo_get_vmmap): New function.
8174 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8175 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8176 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8177 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8178 functions.
8179 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8180 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8181 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8182 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8183 (KINFO_VME_FLAG_GROWS_DOWN): New.
8184
8185 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8186
8187 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8188 bit shift.
8189
8190 2020-04-10 Tom Tromey <tromey@adacore.com>
8191
8192 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8193
8194 2020-04-10 Tom Tromey <tromey@adacore.com>
8195
8196 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8197 separate debug files.
8198
8199 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
8200
8201 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8202 Move to...
8203 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8204 ... here.
8205 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8206 Check for STATUS_WX86_BREAKPOINT.
8207 (windows_nat_target::wait): Same.
8208
8209 2020-04-10 Tom de Vries <tdevries@suse.de>
8210
8211 PR cli/25808
8212 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8213
8214 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8215
8216 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8217 (Write After Approval): Remove Tom de Vries.
8218
8219 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8220
8221 revert partially:
8222 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8223
8224 * buildsym.c (record_line): Fix undefined behavior and preserve
8225 lines at eof.
8226
8227 2020-04-09 Kamil Rytarowski <n54@gmx.com>
8228
8229 * auxv.h (svr4_auxv_parse): New.
8230 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8231 and generic_auxv_parse.
8232 (svr4_auxv_parse): Add.
8233 * obsd-tdep.c: Include "auxv.h".
8234 (obsd_auxv_parse): Remove.
8235 (obsd_init_abi): Remove comment.
8236 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8237 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8238 * nbsd-tdep.c: Include "auxv.h".
8239 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8240
8241 2020-04-08 Tom Tromey <tromey@adacore.com>
8242
8243 * nat/windows-nat.h (last_wait_event): Don't declare.
8244 (wait_for_debug_event): Update comment.
8245 * nat/windows-nat.c (last_wait_event): Now static.
8246
8247 2020-04-08 Tom Tromey <tromey@adacore.com>
8248
8249 * windows-nat.c (wait_for_debug_event): Move to
8250 nat/windows-nat.c.
8251 * nat/windows-nat.h (wait_for_debug_event): Declare.
8252 * nat/windows-nat.c (wait_for_debug_event): Move from
8253 windows-nat.c. No longer static.
8254
8255 2020-04-08 Tom Tromey <tromey@adacore.com>
8256
8257 * windows-nat.c (get_windows_debug_event): Use
8258 fetch_pending_stop.
8259 * nat/windows-nat.h (fetch_pending_stop): Declare.
8260 * nat/windows-nat.c (fetch_pending_stop): New function.
8261
8262 2020-04-08 Tom Tromey <tromey@adacore.com>
8263
8264 * windows-nat.c (windows_continue): Use matching_pending_stop and
8265 continue_last_debug_event.
8266 * nat/windows-nat.h (matching_pending_stop)
8267 (continue_last_debug_event): Declare.
8268 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8269 (matching_pending_stop, continue_last_debug_event): New
8270 functions.
8271
8272 2020-04-08 Tom Tromey <tromey@adacore.com>
8273
8274 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8275 (handle_exception_result): Move to nat/windows-nat.h.
8276 (DEBUG_EXCEPTION_SIMPLE): Remove.
8277 (windows_nat::handle_ms_vc_exception): New function.
8278 (handle_exception): Move to nat/windows-nat.c.
8279 (get_windows_debug_event): Update.
8280 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8281 nat/windows-nat.c.
8282 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8283 (handle_exception_result): Move from windows-nat.c.
8284 (handle_exception): Declare.
8285 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8286 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8287 windows-nat.c.
8288
8289 2020-04-08 Tom Tromey <tromey@adacore.com>
8290
8291 * windows-nat.c (exception_count, event_count): Remove.
8292 (handle_exception, get_windows_debug_event)
8293 (do_initial_windows_stuff): Update.
8294
8295 2020-04-08 Tom Tromey <tromey@adacore.com>
8296
8297 * windows-nat.c (windows_nat::handle_load_dll)
8298 (windows_nat::handle_unload_dll): Rename. No longer static.
8299 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8300 Declare.
8301
8302 2020-04-08 Tom Tromey <tromey@adacore.com>
8303
8304 * complaints.h (stop_whining): Declare at top-level.
8305 (complaint): Don't declare stop_whining.
8306
8307 2020-04-08 Tom Tromey <tromey@adacore.com>
8308
8309 * windows-nat.c (windows_nat::handle_output_debug_string):
8310 Rename. No longer static.
8311 * nat/windows-nat.h (handle_output_debug_string): Declare.
8312
8313 2020-04-08 Tom Tromey <tromey@adacore.com>
8314
8315 * windows-nat.c (current_process_handle, current_process_id)
8316 (main_thread_id, last_sig, current_event, last_wait_event)
8317 (current_windows_thread, desired_stop_thread_id, pending_stops)
8318 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8319 (display_selectors, fake_create_process)
8320 (get_windows_debug_event): Update.
8321 * nat/windows-nat.h (current_process_handle, current_process_id)
8322 (main_thread_id, last_sig, current_event, last_wait_event)
8323 (current_windows_thread, desired_stop_thread_id, pending_stops)
8324 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8325 * nat/windows-nat.c (current_process_handle, current_process_id)
8326 (main_thread_id, last_sig, current_event, last_wait_event)
8327 (current_windows_thread, desired_stop_thread_id, pending_stops)
8328 (siginfo_er): New globals. Move from windows-nat.c.
8329
8330 2020-04-08 Tom Tromey <tromey@adacore.com>
8331
8332 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8333 (handle_load_dll): Update.
8334 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8335
8336 2020-04-08 Tom Tromey <tromey@adacore.com>
8337
8338 * windows-nat.c (enum thread_disposition_type): Move to
8339 nat/windows-nat.h.
8340 (windows_nat::thread_rec): Rename from thread_rec. No longer
8341 static.
8342 (windows_add_thread, windows_nat_target::fetch_registers)
8343 (windows_nat_target::store_registers, handle_exception)
8344 (windows_nat_target::resume, get_windows_debug_event)
8345 (windows_nat_target::get_tib_address)
8346 (windows_nat_target::thread_name)
8347 (windows_nat_target::thread_alive): Update.
8348 * nat/windows-nat.h (enum thread_disposition_type): Move from
8349 windows-nat.c.
8350 (thread_rec): Declare.
8351
8352 2020-04-08 Tom Tromey <tromey@adacore.com>
8353
8354 * windows-nat.c: Add "using namespace".
8355 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8356 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8357
8358 2020-04-08 Tom Tromey <tromey@adacore.com>
8359
8360 * nat/windows-nat.h (struct windows_thread_info): Declare
8361 destructor.
8362 * nat/windows-nat.c (~windows_thread_info): New.
8363
8364 2020-04-08 Tom Tromey <tromey@adacore.com>
8365
8366 PR gdb/22992
8367 * windows-nat.c (current_event): Update comment.
8368 (last_wait_event, desired_stop_thread_id): New globals.
8369 (struct pending_stop): New.
8370 (pending_stops): New global.
8371 (windows_nat_target) <stopped_by_sw_breakpoint>
8372 <supports_stopped_by_sw_breakpoint>: New methods.
8373 (windows_fetch_one_register): Add assertions. Adjust PC.
8374 (windows_continue): Handle pending stops. Suspend other threads
8375 when stepping. Use last_wait_event
8376 (wait_for_debug_event): New function.
8377 (get_windows_debug_event): Use wait_for_debug_event. Handle
8378 pending stops. Queue spurious stops.
8379 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8380 (windows_nat_target::kill): Use wait_for_debug_event.
8381 * nat/windows-nat.h (struct windows_thread_info)
8382 <stopped_at_software_breakpoint>: New field.
8383 * nat/windows-nat.c (windows_thread_info::resume): Clear
8384 stopped_at_software_breakpoint.
8385
8386 2020-04-08 Tom Tromey <tromey@adacore.com>
8387
8388 * windows-nat.c (enum thread_disposition_type): New.
8389 (thread_rec): Replace "get_context" parameter with "disposition";
8390 change type.
8391 (windows_add_thread, windows_nat_target::fetch_registers)
8392 (windows_nat_target::store_registers, handle_exception)
8393 (windows_nat_target::resume, get_windows_debug_event)
8394 (windows_nat_target::get_tib_address)
8395 (windows_nat_target::thread_name)
8396 (windows_nat_target::thread_alive): Update.
8397
8398 2020-04-08 Tom Tromey <tromey@adacore.com>
8399
8400 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8401 (windows_continue): Use windows_continue::resume.
8402 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8403 resume>: Declare new methods.
8404 * nat/windows-nat.c: New file.
8405 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8406
8407 2020-04-08 Tom Tromey <tromey@adacore.com>
8408
8409 * windows-nat.c (windows_add_thread, windows_delete_thread)
8410 (windows_nat_target::fetch_registers)
8411 (windows_nat_target::store_registers, fake_create_process)
8412 (windows_nat_target::resume, windows_nat_target::resume)
8413 (get_windows_debug_event, windows_nat_target::wait)
8414 (windows_nat_target::pid_to_str)
8415 (windows_nat_target::get_tib_address)
8416 (windows_nat_target::get_ada_task_ptid)
8417 (windows_nat_target::thread_name)
8418 (windows_nat_target::thread_alive): Use lwp, not tid.
8419
8420 2020-04-08 Tom Tromey <tromey@adacore.com>
8421
8422 * windows-nat.c (handle_exception)
8423 (windows_nat_target::thread_name): Update.
8424 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8425 <name>: Now unique_xmalloc_ptr.
8426
8427 2020-04-08 Tom Tromey <tromey@adacore.com>
8428
8429 * windows-nat.c (thread_rec)
8430 (windows_nat_target::fetch_registers): Update.
8431 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8432 Update comment.
8433 <debug_registers_changed, reload_context>: Now bool.
8434
8435 2020-04-08 Tom Tromey <tromey@adacore.com>
8436
8437 * windows-nat.c (windows_add_thread): Use new.
8438 (windows_init_thread_list, windows_delete_thread): Use delete.
8439 (get_windows_debug_event): Update.
8440 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8441 destructor, and initializers.
8442
8443 2020-04-08 Tom Tromey <tromey@adacore.com>
8444
8445 * windows-nat.c (struct windows_thread_info): Remove.
8446 * nat/windows-nat.h: New file.
8447
8448 2020-04-08 Tom Tromey <tromey@adacore.com>
8449
8450 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8451 (thread_rec, windows_add_thread, windows_delete_thread)
8452 (windows_continue): Update.
8453
8454 2020-04-08 Tom Tromey <tromey@adacore.com>
8455
8456 * windows-nat.c (struct windows_thread_info): Remove typedef.
8457 (thread_head): Remove.
8458 (thread_list): New global.
8459 (thread_rec, windows_add_thread, windows_init_thread_list)
8460 (windows_delete_thread, windows_continue): Update.
8461
8462 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8463
8464 * windows-tdep.h (windows_init_abi): Add comment.
8465 (cygwin_init_abi): New declaration.
8466 * windows-tdep.c: Split signal enumeration in two, one for
8467 Windows and one for Cygwin.
8468 (windows_gdb_signal_to_target): Only deal with signal of the
8469 Windows OS ABI.
8470 (cygwin_gdb_signal_to_target): New function.
8471 (windows_init_abi): Rename to windows_init_abi_common, don't set
8472 gdb_signal_to_target gdbarch method. Add new new function with
8473 this name.
8474 (cygwin_init_abi): New function.
8475 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8476 comment. Don't call windows_init_abi.
8477 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8478 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8479 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8480 i386_windows_init_abi_common, don't call windows_init_abi. Add
8481 a new function of this name.
8482 (i386_cygwin_init_abi): New function.
8483 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8484 OS ABI Cygwin.
8485
8486 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8487
8488 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8489 parameter.c.
8490 (dwarf2_read_gdb_index): Update.
8491
8492 2020-04-07 Kamil Rytarowski <n54@gmx.com>
8493
8494 * nbsd-tdep.c: Include "objfiles.h".
8495 (nbsd_skip_solib_resolver): New.
8496 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8497
8498 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8499
8500 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8501 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8502 with DW_LLE_base_addressx are being emitted in DWARFv5.
8503 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8504 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8505 unsigned integer.
8506
8507 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8508
8509 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8510 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8511 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8512 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8513 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8514 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8515 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8516
8517
8518 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8519
8520 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8521 (read_loclist_index): New function definition.
8522 (lookup_loclist_base): New function definition.
8523 (read_loclist_header): New function definition.
8524 (dwarf2_cu): Add loclist_base and loclist_header field.
8525 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8526 (read_full_die_1): Read the value of DW_AT_loclists_base.
8527 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8528 (read_attribute_value): Handle DW_FORM_loclistx.
8529 (skip_one_die): Handle DW_FORM_loclistx.
8530 (loclist_header): New structure declaration.
8531 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8532
8533 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8534
8535 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8536 constructor. Remove `addr` parameter from other constructor and
8537 add `per_cu` parameter.
8538 * dwarf2/read.c (create_partial_symtab): Update.
8539
8540 2020-04-07 Tom de Vries <tdevries@suse.de>
8541
8542 PR symtab/25796
8543 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8544 (partial_die_info::fixup): Inherit has_const_value.
8545
8546 2020-04-07 Tom de Vries <tdevries@suse.de>
8547
8548 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8549 symbols without address.
8550
8551 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8552
8553 * nbsd-nat.h (struct thread_info): Add forward declaration.
8554 (nbsd_nat_target::thread_alive): Add.
8555 (nbsd_nat_target::thread_name): Likewise.
8556 (nbsd_nat_target::update_thread_list): Likewise.
8557 (update_thread_list::post_attach): Likewise.
8558 (post_attach::pid_to_str): Likewise.
8559 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8560 (nbsd_thread_lister): Add.
8561 (nbsd_nat_target::thread_alive): Likewise.
8562 (nbsd_nat_target::thread_name): Likewise.
8563 (nbsd_add_threads): Likewise.
8564 (update_thread_list::post_attach): Likewise.
8565 (nbsd_nat_target::update_thread_list): Likewise.
8566 (post_attach::pid_to_str): Likewise.
8567
8568 2020-04-06 Tom Tromey <tromey@adacore.com>
8569
8570 * ada-valprint.c (print_variant_part): Extract the variant field.
8571 (print_field_values): Use the field as the outer value when
8572 recursing.
8573
8574 2020-04-06 Tom Tromey <tromey@adacore.com>
8575
8576 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8577 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8578 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8579 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8580 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8581
8582 2020-04-06 Tom Tromey <tromey@adacore.com>
8583
8584 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8585 TYPE_CODE_ERROR.
8586
8587 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8588
8589 * nbsd-tdep.c: Include "gdbarch.h".
8590 Define enum with NetBSD signal numbers.
8591 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8592 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8593 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8594 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8595 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8596 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8597 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8598 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8599 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8600 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8601 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8602 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8603
8604 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
8605
8606 PR gdb/25325
8607 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8608
8609 2020-04-03 Tom Tromey <tromey@adacore.com>
8610
8611 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8612 Read constant block.
8613
8614 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8615
8616 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8617 (gdb_bfd_get_full_section_contents): New declaration.
8618 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8619 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8620 gdb_bfd_get_full_section_contents.
8621
8622 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8623
8624 * exec.c (build_section_table): Replace internal_error with
8625 gdb_assert.
8626 (section_table_xfer_memory_partial): Likewise.
8627 * mdebugread.c (parse_partial_symbols): Likewise.
8628 * psymtab.c (lookup_partial_symbol): Likewise.
8629 * utils.c (wrap_here): Likewise.
8630
8631 2020-04-02 Tom Tromey <tromey@adacore.com>
8632
8633 * f-lang.c (build_fortran_types): Use arch_type to initialize
8634 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8635
8636 2020-04-02 Tom Tromey <tromey@adacore.com>
8637
8638 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8639 of attributes.
8640
8641 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8642 Bernd Edlinger <bernd.edlinger@hotmail.de>
8643 Tom Tromey <tromey@adacore.com>
8644
8645 * buildsym.c (buildsym_compunit::record_line): Remove
8646 deduplication code.
8647
8648 2020-04-02 Tom de Vries <tdevries@suse.de>
8649
8650 PR ada/24671
8651 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8652
8653 2020-04-02 Tom de Vries <tdevries@suse.de>
8654
8655 * dwarf2/read.c (dwarf2_gdb_index_functions,
8656 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8657 NULL.
8658 * psymtab.c (psym_lookup_global_symbol_language): New function.
8659 (psym_functions): Init psym_lookup_global_symbol_language with
8660 psym_lookup_global_symbol_language.
8661 * symfile-debug.c (debug_sym_quick_functions): Init
8662 lookup_global_symbol_language with NULL.
8663 * symfile.c (set_initial_language): Remove fixme comment.
8664 * symfile.h (struct quick_symbol_functions): Add
8665 lookup_global_symbol_language.
8666 * symtab.c (find_quick_global_symbol_language): New function.
8667 (find_main_name): Use find_quick_global_symbol_language.
8668
8669 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8670
8671 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8672
8673 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8674
8675 * buildsym.c (record_line): Fix undefined behavior and preserve
8676 lines at eof.
8677
8678 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8679
8680 * buildsym.c (record_line): Fix the resizing condition.
8681
8682 2020-04-01 Tom Tromey <tom@tromey.com>
8683
8684 * value.h (value_literal_complex): Add comment.
8685 * valops.c (value_literal_complex): Refer to value.h.
8686
8687 2020-04-01 Tom Tromey <tom@tromey.com>
8688
8689 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8690 (scalar_type): New rule, from typebase.
8691 (typebase): Use scalar_type. Recognize complex types.
8692 (field_name): Handle FLOAT_KEYWORD.
8693 (ident_tokens): Add _Complex and __complex__.
8694
8695 2020-04-01 Tom Tromey <tom@tromey.com>
8696
8697 PR exp/25299:
8698 * valarith.c (promotion_type, complex_binop): New functions.
8699 (scalar_binop): Handle complex numbers. Use promotion_type.
8700 (value_pos, value_neg, value_complement): Handle complex numbers.
8701
8702 2020-04-01 Tom Tromey <tom@tromey.com>
8703
8704 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8705 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8706 (parse_number): Handle complex numbers.
8707
8708 2020-04-01 Tom Tromey <tom@tromey.com>
8709
8710 * c-valprint.c (c_decorations): Change complex suffix to "i".
8711
8712 2020-04-01 Tom Tromey <tom@tromey.com>
8713
8714 * valprint.c (generic_value_print_complex): Use accessors.
8715 * value.h (value_real_part, value_imaginary_part): Declare.
8716 * valops.c (value_real_part, value_imaginary_part): New
8717 functions.
8718 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8719
8720 2020-04-01 Tom Tromey <tom@tromey.com>
8721
8722 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8723 (read_range_type): Update.
8724 * mdebugread.c (basic_type): Update.
8725 * go-lang.c (build_go_types): Use init_complex_type.
8726 * gdbtypes.h (struct main_type) <complex_type>: New member.
8727 (init_complex_type): Update.
8728 (arch_complex_type): Don't declare.
8729 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8730 Make name if none given. Use alloc_type_copy. Look for cached
8731 complex type.
8732 (arch_complex_type): Remove.
8733 (gdbtypes_post_init): Use init_complex_type.
8734 * f-lang.c (build_fortran_types): Use init_complex_type.
8735 * dwarf2/read.c (read_base_type): Update.
8736 * d-lang.c (build_d_types): Use init_complex_type.
8737 * ctfread.c (read_base_type): Update.
8738
8739 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8740
8741 * infrun.c (stop_all_threads): Update assertion, plus when
8742 stopping threads, take into account that we might be trying
8743 to stop an all-stop target.
8744 (stop_waiting): Call 'stop_all_threads' if there exists a
8745 non-stop target.
8746
8747 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8748
8749 * target.h (exists_non_stop_target): New function declaration.
8750 * target.c (exists_non_stop_target): New function.
8751
8752 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
8753
8754 PR gdb/24789
8755 * eval.c (is_integral_or_integral_reference): New function.
8756 (evaluate_subexp_standard): Allow integer references in
8757 pointer arithmetic.
8758
8759 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8760
8761 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8762 check for no ptid in the stop reply when the target is non-stop.
8763
8764 2020-04-01 Tom Tromey <tromey@adacore.com>
8765
8766 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8767 "name" parameter to rvalue reference. Initialize m_name_holder.
8768 <lookup_name_info>: New overloads.
8769 <name>: Return gdb::string_view.
8770 <c_str>: New method.
8771 <make_ignore_params>: Update.
8772 <search_name_hash>: Update.
8773 <language_lookup_name>: Return const char *.
8774 <m_name>: Change type.
8775 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8776 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8777 (lookup_name_info::match_any): Update.
8778 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8779 Update.
8780 * minsyms.c (linkage_name_str): Update.
8781 * language.c (default_symbol_name_matcher): Update.
8782 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8783 Update.
8784 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8785 (ada_lookup_name_info::ada_lookup_name_info): Update.
8786 (literal_symbol_name_matcher): Update.
8787
8788 2020-04-01 Tom Tromey <tromey@adacore.com>
8789
8790 * psymtab.c (psymtab_search_name): Remove function.
8791 (psym_lookup_symbol): Create search name and lookup name here.
8792 (lookup_partial_symbol): Remove "name" parameter; add
8793 lookup_name.
8794 (psym_expand_symtabs_for_function): Update.
8795
8796 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
8797
8798 PR tui/25597:
8799 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8800
8801 2020-03-31 Tom Tromey <tromey@adacore.com>
8802
8803 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8804 memcpy.
8805
8806 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
8807
8808 * features/riscv/32bit-csr.xml: Regenerated.
8809 * features/riscv/64bit-csr.xml: Regenerated.
8810
8811 2020-03-30 Tom Tromey <tromey@adacore.com>
8812
8813 * ada-valprint.c (print_variant_part): Update.
8814 * ada-lang.h (ada_which_variant_applies): Update.
8815 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8816 outer_valaddr parameters; replace with "outer" value parameter.
8817 (to_fixed_variant_branch_type): Update.
8818
8819 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8820
8821 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8822 <list>. Remove inclusion of observable.h.
8823 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8824 (struct arch_lwp_info): New struct.
8825 (class ppc_linux_dreg_interface): New class.
8826 (struct ppc_linux_process_info): New struct.
8827 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8828 <low_new_clone, low_forget_process, low_prepare_to_resume>
8829 <copy_thread_dreg_state, mark_thread_stale>
8830 <mark_debug_registers_changed, register_hw_breakpoint>
8831 <clear_hw_breakpoint, register_wp, clear_wp>
8832 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8833 <num_memory_accesses, get_trigger_type>
8834 <create_watchpoint_request, hwdebug_point_cmp>
8835 <init_arch_lwp_info, get_arch_lwp_info>
8836 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8837 methods.
8838 <struct ptid_hash>: New inner struct.
8839 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8840 members.
8841 (saved_dabr_value, hwdebug_info, max_slots_number)
8842 (struct hw_break_tuple, struct thread_points, ppc_threads)
8843 (have_ptrace_hwdebug_interface)
8844 (hwdebug_find_thread_points_by_tid)
8845 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8846 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8847 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8848 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8849 use m_dreg_interface.
8850 (hwdebug_point_cmp): Change to...
8851 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8852 reference arguments instead of pointers.
8853 (ppc_linux_nat_target::ranged_break_num_registers): Use
8854 m_dreg_interface.
8855 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8856 m_dreg_interface. Call register_hw_breakpoint.
8857 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8858 m_dreg_interface. Call clear_hw_breakpoint.
8859 (get_trigger_type): Change to...
8860 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8861 comment.
8862 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8863 use m_dreg_interface. Call register_hw_breakpoint.
8864 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8865 use m_dreg_interface. Call clear_hw_breakpoint.
8866 (can_use_watchpoint_cond_accel): Change to...
8867 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8868 method. Update comment, use m_dreg_interface and
8869 m_process_info.
8870 (calculate_dvc): Change to...
8871 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8872 m_dreg_interface.
8873 (num_memory_accesses): Change to...
8874 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8875 (check_condition): Change to...
8876 (ppc_linux_nat_target::check_condition): ...this method.
8877 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8878 comment, use m_dreg_interface.
8879 (create_watchpoint_request): Change to...
8880 (ppc_linux_nat_target::create_watchpoint_request): ...this
8881 method. Use m_dreg_interface.
8882 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8883 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8884 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8885 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8886 (ppc_linux_nat_target::low_forget_process)
8887 (ppc_linux_nat_target::low_new_fork)
8888 (ppc_linux_nat_target::low_new_clone)
8889 (ppc_linux_nat_target::low_delete_thread)
8890 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8891 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8892 only call mark_thread_stale.
8893 (ppc_linux_thread_exit): Remove.
8894 (ppc_linux_nat_target::stopped_data_address): Change to...
8895 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8896 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8897 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8898 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8899 comment. Call low_stopped_data_address.
8900 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8901 m_dreg_interface.
8902 (ppc_linux_nat_target::masked_watch_num_registers): Use
8903 m_dreg_interface.
8904 (ppc_linux_nat_target::copy_thread_dreg_state)
8905 (ppc_linux_nat_target::mark_thread_stale)
8906 (ppc_linux_nat_target::mark_debug_registers_changed)
8907 (ppc_linux_nat_target::register_hw_breakpoint)
8908 (ppc_linux_nat_target::clear_hw_breakpoint)
8909 (ppc_linux_nat_target::register_wp)
8910 (ppc_linux_nat_target::clear_wp)
8911 (ppc_linux_nat_target::init_arch_lwp_info)
8912 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8913 (_initialize_ppc_linux_nat): Remove observer callback.
8914
8915 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8916
8917 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8918 (ppc_linux_nat_target::auxv_parse)
8919 (ppc_linux_nat_target::read_description)
8920 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8921 Move up.
8922
8923 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8924
8925 * linux-nat.h (low_new_clone): New method.
8926 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8927
8928 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8929
8930 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8931 (dbx_expand_psymtab): ... this.
8932 (start_psymtab): Update.
8933 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8934 (mdebug_expand_psymtab): ... this.
8935 (parse_partial_symbols): Update.
8936 (new_psymtab): Update.
8937 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8938 (xcoff_expand_psymtab): ... this.
8939 (xcoff_start_psymtab): Update.
8940
8941 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8942
8943 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8944 <expand_dependencies>: ... this.
8945 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8946 (partial_symtab::expand_dependencies): ... this.
8947 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8948 Update.
8949 (dwarf2_psymtab::expand_psymtab): Update.
8950 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8951 * mdebugread.c (psymtab_to_symtab_1): Update.
8952 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8953
8954 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8955
8956 * psympriv.h (discard_psymtab): Remove.
8957 * dbxread.c (dbx_end_psymtab): Update.
8958 * xcoffread.c (xcoff_end_psymtab): Update.
8959
8960 2020-03-28 Tom Tromey <tom@tromey.com>
8961
8962 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8963 comment.
8964
8965 2020-03-28 Tom Tromey <tom@tromey.com>
8966
8967 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8968
8969 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
8970
8971 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8972
8973 2020-03-26 John Baldwin <jhb@FreeBSD.org>
8974
8975 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8976
8977 2020-03-26 Tom Tromey <tom@tromey.com>
8978
8979 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8980 (mark_common_block_symbol_computed, read_tag_string_type)
8981 (attr_to_dynamic_prop, read_subrange_type): Update.
8982 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8983 to be methods on struct attribute.
8984 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8985 (read_call_site_scope, partial_die_info::read)
8986 (partial_die_info::read, lookup_die_type, follow_die_ref):
8987 Update.
8988 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8989 from dwarf2_get_ref_die_offset.
8990 (attribute::constant_value): New method, from
8991 dwarf2_get_attr_constant_value.
8992 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8993 Declare method.
8994 <constant_value>: New method.
8995
8996 2020-03-26 Tom Tromey <tom@tromey.com>
8997
8998 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8999 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9000 (dwarf_type_encoding_name): Move to stringify.c.
9001 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9002 * dwarf2/stringify.c: New file.
9003 * dwarf2/stringify.h: New file.
9004
9005 2020-03-26 Tom Tromey <tom@tromey.com>
9006
9007 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9008 Rewrite.
9009
9010 2020-03-26 Tom Tromey <tom@tromey.com>
9011
9012 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9013 methods.
9014 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9015 (lookup_ranges_base): Likewise.
9016 (read_cutu_die_from_dwo, read_full_die_1): Update.
9017
9018 2020-03-26 Tom Tromey <tom@tromey.com>
9019
9020 * dwarf2/read.c (read_import_statement, read_file_scope)
9021 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9022 (read_lexical_block_scope, read_call_site_scope)
9023 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9024 (handle_struct_member_die, process_structure_scope)
9025 (update_enumeration_type_from_children)
9026 (process_enumeration_scope, read_array_type, read_common_block)
9027 (read_namespace, read_module, read_subroutine_type): Update.
9028 (sibling_die): Remove.
9029
9030 2020-03-26 Tom Tromey <tom@tromey.com>
9031
9032 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9033 (build_type_psymtabs_reader, read_structure_type)
9034 (read_enumeration_type, read_full_die_1): Update.
9035 (dwarf2_attr_no_follow): Move to die.h.
9036 * dwarf2/die.h (struct die_info) <attr>: New method.
9037
9038 2020-03-26 Tom Tromey <tom@tromey.com>
9039
9040 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9041 <base_address>: Now an optional.
9042 (dwarf2_find_base_address, dwarf2_rnglists_process)
9043 (dwarf2_ranges_process, fill_in_loclist_baton)
9044 (dwarf2_symbol_mark_computed): Update.
9045
9046 2020-03-26 Tom Tromey <tom@tromey.com>
9047
9048 * dwarf2/read.c (struct die_info): Move to die.h.
9049 * dwarf2/die.h: New file.
9050
9051 2020-03-26 Tom Tromey <tom@tromey.com>
9052
9053 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9054 * dwarf2/read.c
9055 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9056 Move to line-header.c.
9057 (read_checked_initial_length_and_offset, read_formatted_entries):
9058 Likewise.
9059 (dwarf_decode_line_header): Split into two.
9060 * dwarf2/line-header.c
9061 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9062 Move from read.c.
9063 (read_checked_initial_length_and_offset, read_formatted_entries):
9064 Likewise.
9065 (dwarf_decode_line_header): New function, split from read.c.
9066
9067 2020-03-26 Tom Tromey <tom@tromey.com>
9068
9069 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9070 Declare method.
9071 * dwarf2/read.c (read_attribute_value): Update.
9072 (dwarf2_per_objfile::read_line_string): Rename from
9073 read_indirect_line_string.
9074 (read_formatted_entries): Update.
9075
9076 2020-03-26 Tom Tromey <tom@tromey.com>
9077
9078 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9079 variable.
9080
9081 2020-03-26 Tom Tromey <tom@tromey.com>
9082
9083 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9084 const.
9085 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9086 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9087 parameter const.
9088
9089 2020-03-26 Tom Tromey <tom@tromey.com>
9090
9091 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9092 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9093 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9094 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9095
9096 2020-03-26 Tom Tromey <tom@tromey.com>
9097
9098 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9099 file_names_size, file_full_name, file_file_name>: Use const.
9100 <file_name_at, file_names>: Add const overload.
9101 * dwarf2/line-header.c (line_header::file_file_name)
9102 (line_header::file_full_name): Update.
9103
9104 2020-03-26 Tom Tromey <tom@tromey.com>
9105
9106 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9107 (macro_start_file, consume_improper_spaces)
9108 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9109 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9110 (dwarf_decode_macros): Move to macro.c.
9111 * dwarf2/macro.c: New file.
9112 * dwarf2/macro.h: New file.
9113 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9114
9115 2020-03-26 Tom Tromey <tom@tromey.com>
9116
9117 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9118 method.
9119 * dwarf2/section.c: New method. From
9120 read_indirect_string_at_offset_from.
9121 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9122 (read_indirect_string_at_offset_from): Move to section.c.
9123 (read_indirect_string_at_offset): Rewrite.
9124 (read_indirect_line_string_at_offset): Remove.
9125 (read_indirect_string, read_indirect_line_string)
9126 (dwarf_decode_macro_bytes): Update.
9127
9128 2020-03-26 Tom Tromey <tom@tromey.com>
9129
9130 * dwarf2/section.h (struct dwarf2_section_info)
9131 <overload_complaint>: Declare.
9132 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9133 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9134 Rename from dwarf2_section_buffer_overflow_complaint.
9135 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9136 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9137
9138 2020-03-26 Tom Tromey <tom@tromey.com>
9139
9140 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9141 Declare.
9142 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9143 Move from read.c.
9144 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9145 to section.c.
9146
9147 2020-03-26 Tom Tromey <tom@tromey.com>
9148
9149 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9150
9151 2020-03-26 Tom Tromey <tom@tromey.com>
9152
9153 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9154 "builder".
9155 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9156 parameter.
9157 (dwarf_decode_macros): Update.
9158
9159 2020-03-26 Tom Tromey <tom@tromey.com>
9160
9161 * dwarf2/read.c (read_attribute_value): Update.
9162 (read_indirect_string_from_dwz): Move to dwz.c; change into
9163 method.
9164 (dwarf_decode_macro_bytes): Update.
9165 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9166 * dwarf2/dwz.c: New file.
9167 * Makefile.in (COMMON_SFILES): Add dwz.c.
9168
9169 2020-03-26 Tom Tromey <tom@tromey.com>
9170
9171 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9172 * dwarf2/read.c: Add include.
9173 * dwarf2/index-write.c: Add include.
9174 * dwarf2/index-cache.c: Add include.
9175 * dwarf2/dwz.h: New file.
9176
9177 2020-03-25 Tom Tromey <tom@tromey.com>
9178
9179 * compile/compile-object-load.c (get_out_value_type): Mention
9180 correct symbol name in error message.
9181
9182 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
9183
9184 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9185
9186 2020-03-25 Tom de Vries <tdevries@suse.de>
9187
9188 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9189 * symmisc.c (dump_symtab_1): Print user and includes fields.
9190 (maintenance_info_symtabs): Same.
9191
9192 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9193
9194 PR gdb/25534
9195 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9196 (riscv_regcache_cooked_write): New function.
9197 (riscv_push_dummy_call): Use new function.
9198 (riscv_return_value): Likewise.
9199
9200 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9201
9202 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9203 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9204 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9205 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9206 * infrun.c (follow_fork): Likewise.
9207 (follow_fork_inferior): Likewise.
9208 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9209 * linux-nat.h (class linux_nat_target): Likewise.
9210 * remote.c (class remote_target) <follow_fork>: Likewise.
9211 (remote_target::follow_fork): Likewise.
9212 * target-delegates.c: Re-generate.
9213 * target.c (default_follow_fork): Likewise.
9214 (target_follow_fork): Likewise.
9215 * target.h (struct target_ops) <follow_fork>: Likewise.
9216 (target_follow_fork): Likewise.
9217
9218 2020-03-24 Tom de Vries <tdevries@suse.de>
9219
9220 * psymtab.c (maintenance_info_psymtabs): Print user field.
9221
9222 2020-03-20 Tom Tromey <tromey@adacore.com>
9223
9224 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9225 const.
9226 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9227 const.
9228
9229 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
9230
9231 * ptrace.m4: Don't check for ptrace declaration.
9232 * config.in: Re-generate.
9233 * configure: Re-generate.
9234 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9235 not defined.
9236
9237 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9238
9239 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9240 `PTRACE_TYPE_RET'.
9241 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9242 * sparc-nat.c (gdb_ptrace): Likewise.
9243 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9244
9245 2020-03-20 Tom Tromey <tromey@adacore.com>
9246
9247 * c-exp.y (lex_one_token): Fix assert.
9248
9249 2020-03-20 Tom Tromey <tromey@adacore.com>
9250
9251 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9252 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9253 strncpy call.
9254
9255 2020-03-20 Tom Tromey <tromey@adacore.com>
9256
9257 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9258
9259 2020-03-20 Tom Tromey <tromey@adacore.com>
9260
9261 * ada-valprint.c (print_variant_part): Remove parameters; switch
9262 to value-based API.
9263 (print_field_values): Likewise.
9264 (ada_val_print_struct_union): Likewise.
9265 (ada_value_print_1): Update.
9266
9267 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9268
9269 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9270 nbsd_nat_target instead of inf_ptrace_target.
9271 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9272 nbsd_nat_target.
9273
9274 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9275
9276 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9277 it to the ptrace call.
9278 * (store_registers): Likewise.
9279
9280 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9281
9282 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9283 it to the ptrace call.
9284 * (store_registers): Likewise.
9285
9286 2020-03-19 Luis Machado <luis.machado@linaro.org>
9287
9288 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9289 valid, fetch vg value from ptrace.
9290
9291 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9292 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9293 * inf-ptrace.c: Likewise.
9294 * (gdb_ptrace): Add.
9295 * (inf_ptrace_target::resume): Update.
9296 * (inf_ptrace_target::xfer_partial): Likewise.
9297 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9298 * (inf_ptrace_peek_poke): Update.
9299
9300 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9301
9302 * x86-bsd-nat.c (gdb_ptrace): New.
9303 * (x86bsd_dr_set): Add new argument `ptid'.
9304 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9305 x86bsd_dr_set_addr): Update.
9306
9307 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9308
9309 * remote.c (remote_target::process_stop_reply): Handle events for
9310 all threads differently.
9311
9312 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9313
9314 * completer.c (completion_tracker::remove_completion): Define new
9315 function.
9316 * completer.h (completion_tracker::remove_completion): Declare new
9317 function.
9318 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9319 when adding a C++ function symbol.
9320
9321 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9322
9323 * completer.c (completion_tracker::completion_hash_entry): Define
9324 new class.
9325 (advance_to_filename_complete_word_point): Call
9326 recompute_lowest_common_denominator.
9327 (completion_tracker::completion_tracker): Call discard_completions
9328 to setup the hash table.
9329 (completion_tracker::discard_completions): Allow for being called
9330 from the constructor, pass new equal function, and element deleter
9331 when constructing the hash table. Initialise new class member
9332 variables.
9333 (completion_tracker::maybe_add_completion): Remove use of
9334 m_entries_vec, and store more information into m_entries_hash.
9335 (completion_tracker::recompute_lcd_visitor): New function, most
9336 content taken from...
9337 (completion_tracker::recompute_lowest_common_denominator):
9338 ...here, this now just visits each item in the hash calling the
9339 above visitor.
9340 (completion_tracker::build_completion_result): Remove use of
9341 m_entries_vec, call recompute_lowest_common_denominator.
9342 * completer.h (completion_tracker::have_completions): Remove use
9343 of m_entries_vec.
9344 (completion_tracker::completion_hash_entry): Declare new class.
9345 (completion_tracker::recompute_lowest_common_denominator): Change
9346 function signature.
9347 (completion_tracker::recompute_lcd_visitor): Declare new function.
9348 (completion_tracker::m_entries_vec): Delete.
9349 (completion_tracker::m_entries_hash): Initialize to NULL.
9350 (completion_tracker::m_lowest_common_denominator_valid): New
9351 member variable.
9352 (completion_tracker::m_lowest_common_denominator_max_length): New
9353 member variable.
9354
9355 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9356
9357 * regformats/regdef.h: Put reg in gdb namespace.
9358
9359 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9360
9361 * i386-bsd-nat.c (gdb_ptrace): New.
9362 * (i386bsd_fetch_inferior_registers,
9363 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9364 * (i386bsd_fetch_inferior_registers,
9365 i386bsd_store_inferior_registers) Use gdb_ptrace.
9366
9367 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9368
9369 * amd64-bsd-nat.c (gdb_ptrace): New.
9370 * (amd64bsd_fetch_inferior_registers,
9371 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9372 * (amd64bsd_fetch_inferior_registers,
9373 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9374
9375 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9376
9377 * user-regs.c (user_reg::read): Rename to...
9378 (user_reg::xread): ...this.
9379 * (append_user_reg): Rename argument `read' to `xread'.
9380 * (user_reg_add_builtin): Likewise.
9381 * (user_reg_add): Likewise.
9382 * (value_of_user_reg): Likewise.
9383
9384 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9385
9386 * sparc-nat.c (gdb_ptrace): New.
9387 * sparc-nat.c (sparc_fetch_inferior_registers)
9388 (sparc_store_inferior_registers) Remove obsolete comment.
9389 * sparc-nat.c (sparc_fetch_inferior_registers)
9390 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9391 * sparc-nat.c (sparc_fetch_inferior_registers)
9392 (sparc_store_inferior_registers) Use gdb_ptrace.
9393
9394 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9395
9396 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9397 it to the ptrace call.
9398 * sh-nbsd-nat.c (store_registers): Likewise.
9399
9400 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9401
9402 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9403 nbsd_nat_target instead of inf_ptrace_target.
9404 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9405 nbsd_nat_target.
9406
9407 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9408
9409 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9410
9411 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9412
9413 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9414 <sys/sysctl.h>.
9415 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9416
9417 2020-03-17 Tom de Vries <tdevries@suse.de>
9418
9419 PR gdb/23710
9420 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9421 fields.
9422 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9423 fields.
9424 (process_imported_unit_die): Skip import of c++ CUs.
9425
9426 2020-03-16 Tom Tromey <tom@tromey.com>
9427
9428 * p-valprint.c (pascal_object_print_value): Initialize
9429 base_value.
9430
9431 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9432 Shahab Vahedi <shahab@synopsys.com>
9433
9434 * Makefile.in: Add arch/arc.o
9435 * configure.tgt: Likewise.
9436 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9437 (_initialize_arc_tdep): Don't initialize old target descriptions.
9438 (arc_read_description): New function to cache target descriptions.
9439 * arc-tdep.h (arc_read_description): Add proto type.
9440 * arch/arc.c: New file.
9441 * arch/arc.h: Likewise.
9442 * features/Makefile: Replace old target descriptions with new.
9443 * features/arc-arcompact.c: Remove.
9444 * features/arc-arcompact.xml: Likewise.
9445 * features/arc-v2.c: Likewise
9446 * features/arc-v2.xml: Likewise
9447 * features/arc/aux-arcompact.xml: New file.
9448 * features/arc/aux-v2.xml: Likewise.
9449 * features/arc/core-arcompact.xml: Likewise.
9450 * features/arc/core-v2.xml: Likewise.
9451 * features/arc/aux-arcompact.c: Generate.
9452 * features/arc/aux-v2.c: Likewise.
9453 * features/arc/core-arcompact.c: Likewise.
9454 * features/arc/core-v2.c: Likewise.
9455 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9456
9457 2020-03-16 Tom Tromey <tromey@adacore.com>
9458
9459 PR gdb/25663:
9460 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9461 putting value into bcache.
9462
9463 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9464
9465 PR gdb/21500
9466 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9467 to...
9468 (amd64_windows_init_abi_common): ... this. Don't set size of
9469 long type.
9470 (amd64_windows_init_abi): New function.
9471 (amd64_cygwin_init_abi): New function.
9472 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9473 the Cygwin OS ABI.
9474 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9475 comment.
9476
9477 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9478
9479 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9480 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9481 (pe_import_directory_entry): New struct type.
9482 (is_linked_with_cygwin_dll): New function.
9483 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9484 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9485 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9486
9487 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9488
9489 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9490 i386_cygwin_core_osabi_sniffer.
9491
9492 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9493
9494 * i386-cygwin-tdep.c: Rename to...
9495 * i386-windows-tdep.c: ... this.
9496 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9497 i386-windows-tdep.c.
9498 * configure.tgt: Likewise.
9499
9500 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9501
9502 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9503 * osabi.c (gdb_osabi_names): Add "Windows".
9504 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9505 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9506 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9507 i386_cygwin_osabi_sniffer.
9508 (_initialize_i386_cygwin_tdep): Register OS ABI
9509 GDB_OSABI_WINDOWS for i386.
9510 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9511 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9512 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9513 for x86-64.
9514 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9515 when the target matches '*-*-mingw*'.
9516
9517 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9518
9519 * defs.h (enum gdb_osabi): Move to...
9520 * osabi.h (enum gdb_osabi): ... here.
9521 * gdbarch.sh: Include osabi.h in gdbarch.h.
9522 * gdbarch.h: Re-generate.
9523
9524 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9525
9526 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9527 function.
9528 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9529
9530 2020-03-14 Tom Tromey <tom@tromey.com>
9531
9532 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9533 for C++.
9534 (c_type_print_modifier): Likewise. Add "language" parameter.
9535 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9536 (c_type_print_base_1): Update.
9537 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9538 constants.
9539 * type-stack.c (type_stack::insert): Handle tp_atomic and
9540 tp_restrict.
9541 (type_stack::follow_type_instance_flags): Likewise.
9542 (type_stack::follow_types): Likewise. Merge type-following code.
9543 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9544 (space_identifier, cv_with_space_id)
9545 (const_or_volatile_or_space_identifier_noopt)
9546 (const_or_volatile_or_space_identifier): Remove.
9547 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9548 rules.
9549 (ptr_operator, typebase): Update.
9550 (enum token_flag) <FLAG_C>: New constant.
9551 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9552 "_Atomic".
9553 (lex_one_token): Handle FLAG_C.
9554
9555 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9556
9557 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9558 it to the ptrace call.
9559 * m68k-bsd-nat.c (store_registers): Likewise.
9560
9561 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9562
9563 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9564 gdb_byte *.
9565 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9566 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9567 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9568
9569 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9570
9571 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9572 nbsd_nat_target instead of inf_ptrace_target.
9573 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9574 nbsd_nat_target.
9575
9576 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9577
9578 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9579 register_t.
9580
9581 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9582
9583 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9584 it to the ptrace call.
9585 * alpha-bsd-nat.c (store_registers): Likewise.
9586
9587 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9588
9589 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9590 includes.
9591 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9592 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9593 fill_fpregset): Likewise.
9594
9595 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9596
9597 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9598 nbsd_nat_target instead of inf_ptrace_target.
9599 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9600 nbsd_nat_target.
9601
9602 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9603
9604 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9605 register_t.
9606
9607 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9608
9609 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9610 it to the ptrace call.
9611 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9612 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9613 * arm-nbsd-nat.c (store_register): Likewise.
9614 * arm-nbsd-nat.c (store_regs): Likewise.
9615 * arm-nbsd-nat.c (store_fp_register): Likewise.
9616 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9617
9618 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9619
9620 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9621 nbsd_nat_target instead of inf_ptrace_target.
9622 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9623 nbsd_nat_target.
9624
9625 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9626
9627 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9628 it to the ptrace call.
9629 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9630
9631 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9632
9633 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9634 it to the ptrace call.
9635 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9636
9637 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9638
9639 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9640 gdb_byte *.
9641 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9642
9643 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9644
9645 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9646 instead of inf_ptrace_target.
9647 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9648 nbsd_nat_target.
9649
9650 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9651
9652 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9653 register_t.
9654
9655 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9656
9657 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9658 register_t.
9659
9660 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9661
9662 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9663 register_t.
9664
9665 2020-03-13 Tom Tromey <tom@tromey.com>
9666
9667 * value.h (val_print): Don't declare.
9668 * valprint.h (val_print_array_elements)
9669 (val_print_scalar_formatted, generic_val_print): Don't declare.
9670 * valprint.c (generic_val_print_array): Take a struct value.
9671 (generic_val_print_ptr, generic_val_print_memberptr)
9672 (generic_val_print_bool, generic_val_print_int)
9673 (generic_val_print_char, generic_val_print_complex)
9674 (generic_val_print): Remove.
9675 (generic_value_print): Update.
9676 (do_val_print): Remove unused parameters. Don't call
9677 la_val_print.
9678 (val_print): Remove.
9679 (common_val_print): Update. Don't call value_check_printable.
9680 (val_print_scalar_formatted, val_print_array_elements): Remove.
9681 * rust-lang.c (rust_val_print): Remove.
9682 (rust_language_defn): Update.
9683 * p-valprint.c (pascal_val_print): Remove.
9684 (pascal_value_print_inner): Update.
9685 (pascal_object_print_val_fields, pascal_object_print_val):
9686 Remove.
9687 (pascal_object_print_static_field): Update.
9688 * p-lang.h (pascal_val_print): Don't declare.
9689 * p-lang.c (pascal_language_defn): Update.
9690 * opencl-lang.c (opencl_language_defn): Update.
9691 * objc-lang.c (objc_language_defn): Update.
9692 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9693 * m2-lang.h (m2_val_print): Don't declare.
9694 * m2-lang.c (m2_language_defn): Update.
9695 * language.h (struct language_defn) <la_val_print>: Remove.
9696 * language.c (unk_lang_value_print_inner): Rename. Change
9697 argument types.
9698 (unknown_language_defn, auto_language_defn): Update.
9699 * go-valprint.c (go_val_print): Remove.
9700 * go-lang.h (go_val_print): Don't declare.
9701 * go-lang.c (go_language_defn): Update.
9702 * f-valprint.c (f_val_print): Remove.
9703 * f-lang.h (f_value_print): Don't declare.
9704 * f-lang.c (f_language_defn): Update.
9705 * d-valprint.c (d_val_print): Remove.
9706 * d-lang.h (d_value_print): Don't declare.
9707 * d-lang.c (d_language_defn): Update.
9708 * cp-valprint.c (cp_print_value_fields)
9709 (cp_print_value_fields_rtti, cp_print_value): Remove.
9710 (cp_print_static_field): Update.
9711 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9712 (c_val_print_struct, c_val_print_union, c_val_print_int)
9713 (c_val_print_memberptr, c_val_print): Remove.
9714 * c-lang.h (c_val_print_array, cp_print_value_fields)
9715 (cp_print_value_fields_rtti): Don't declare.
9716 * c-lang.c (c_language_defn, cplus_language_defn)
9717 (asm_language_defn, minimal_language_defn): Update.
9718 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9719 (ada_val_print_enum): Take a struct value.
9720 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9721 (ada_val_print): Remove.
9722 (ada_value_print_1): Update.
9723 (printable_val_type): Remove.
9724 * ada-lang.h (ada_val_print): Don't declare.
9725 * ada-lang.c (ada_language_defn): Update.
9726
9727 2020-03-13 Tom Tromey <tom@tromey.com>
9728
9729 * valprint.c (do_val_print): Update.
9730 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9731 a struct value.
9732 (value_to_value_object_no_release): Declare.
9733 * python/py-value.c (value_to_value_object_no_release): New
9734 function.
9735 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9736 struct value.
9737 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9738 function.
9739 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9740 a struct value.
9741 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9742 Declare.
9743 (gdbscm_apply_val_pretty_printer): Take a struct value.
9744 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9745 value.
9746 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9747 value.
9748 * extension-priv.h (struct extension_language_ops)
9749 <apply_val_pretty_printer>: Take a struct value.
9750 * cp-valprint.c (cp_print_value): Create a struct value.
9751 (cp_print_value): Update.
9752
9753 2020-03-13 Tom Tromey <tom@tromey.com>
9754
9755 * ada-valprint.c (print_field_values): Call common_val_print.
9756
9757 2020-03-13 Tom Tromey <tom@tromey.com>
9758
9759 * ada-valprint.c (val_print_packed_array_elements): Remove
9760 bitoffset and val parameters. Call common_val_print.
9761 (ada_val_print_string): Remove offset, address, and original_value
9762 parameters.
9763 (ada_val_print_array): Update.
9764 (ada_value_print_array): New function.
9765 (ada_value_print_1): Call it.
9766
9767 2020-03-13 Tom Tromey <tom@tromey.com>
9768
9769 * ada-valprint.c (ada_value_print): Use common_val_print.
9770
9771 2020-03-13 Tom Tromey <tom@tromey.com>
9772
9773 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9774
9775 2020-03-13 Tom Tromey <tom@tromey.com>
9776
9777 * ada-valprint.c (ada_value_print_num): New function.
9778 (ada_value_print_1): Use it.
9779
9780 2020-03-13 Tom Tromey <tom@tromey.com>
9781
9782 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9783
9784 2020-03-13 Tom Tromey <tom@tromey.com>
9785
9786 * ada-valprint.c (ada_value_print_ptr): New function.
9787 (ada_value_print_1): Use it.
9788
9789 2020-03-13 Tom Tromey <tom@tromey.com>
9790
9791 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9792 call common_val_print.
9793 (ada_val_print_1): Update.
9794 (ada_value_print_1): New function.
9795 (ada_value_print_inner): Rewrite.
9796
9797 2020-03-13 Tom Tromey <tom@tromey.com>
9798
9799 * cp-valprint.c (cp_print_value_fields): Update.
9800 (cp_print_value): New function.
9801
9802 2020-03-13 Tom Tromey <tom@tromey.com>
9803
9804 * m2-valprint.c (m2_value_print_inner): Use
9805 cp_print_value_fields.
9806 * cp-valprint.c (cp_print_value_fields): New function.
9807 * c-valprint.c (c_value_print_struct): New function.
9808 (c_value_print_inner): Use c_value_print_struct.
9809 * c-lang.h (cp_print_value_fields): Declare.
9810
9811 2020-03-13 Tom Tromey <tom@tromey.com>
9812
9813 * c-valprint.c (c_value_print_array): New function.
9814 (c_value_print_inner): Use it.
9815
9816 2020-03-13 Tom Tromey <tom@tromey.com>
9817
9818 * c-valprint.c (c_value_print_memberptr): New function.
9819 (c_value_print_inner): Use it.
9820
9821 2020-03-13 Tom Tromey <tom@tromey.com>
9822
9823 * c-valprint.c (c_value_print_int): New function.
9824 (c_value_print_inner): Use it.
9825
9826 2020-03-13 Tom Tromey <tom@tromey.com>
9827
9828 * c-valprint.c (c_value_print_ptr): New function.
9829 (c_value_print_inner): Use it.
9830
9831 2020-03-13 Tom Tromey <tom@tromey.com>
9832
9833 * c-valprint.c (c_value_print_inner): Rewrite.
9834
9835 2020-03-13 Tom Tromey <tom@tromey.com>
9836
9837 * valprint.c (generic_value_print_complex): New function.
9838 (generic_value_print): Use it.
9839
9840 2020-03-13 Tom Tromey <tom@tromey.com>
9841
9842 * valprint.c (generic_val_print_float): Don't call
9843 val_print_scalar_formatted.
9844 (generic_val_print, generic_value_print): Update.
9845
9846 2020-03-13 Tom Tromey <tom@tromey.com>
9847
9848 * valprint.c (generic_value_print_char): New function
9849 (generic_value_print): Use it.
9850
9851 2020-03-13 Tom Tromey <tom@tromey.com>
9852
9853 * valprint.c (generic_value_print_int): New function.
9854 (generic_value_print): Use it.
9855
9856 2020-03-13 Tom Tromey <tom@tromey.com>
9857
9858 * valprint.c (generic_value_print_bool): New function.
9859 (generic_value_print): Use it.
9860
9861 2020-03-13 Tom Tromey <tom@tromey.com>
9862
9863 * valprint.c (generic_val_print_func): Simplify.
9864 (generic_val_print, generic_value_print): Update.
9865
9866 2020-03-13 Tom Tromey <tom@tromey.com>
9867
9868 * valprint.c (generic_val_print_flags): Remove.
9869 (generic_val_print, generic_value_print): Update.
9870 (val_print_type_code_flags): Add original_value parameter.
9871
9872 2020-03-13 Tom Tromey <tom@tromey.com>
9873
9874 * valprint.c (generic_val_print): Update.
9875 (generic_value_print): Update.
9876 * valprint.c (generic_val_print_enum): Don't call
9877 val_print_scalar_formatted.
9878
9879 2020-03-13 Tom Tromey <tom@tromey.com>
9880
9881 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9882 * valprint.c (generic_value_print_ptr): New function.
9883
9884 2020-03-13 Tom Tromey <tom@tromey.com>
9885
9886 * valprint.c (generic_value_print): Rewrite.
9887
9888 2020-03-13 Tom Tromey <tom@tromey.com>
9889
9890 * p-valprint.c (pascal_object_print_value_fields)
9891 (pascal_object_print_value): New functions.
9892
9893 2020-03-13 Tom Tromey <tom@tromey.com>
9894
9895 * p-valprint.c (pascal_value_print_inner): Rewrite.
9896
9897 2020-03-13 Tom Tromey <tom@tromey.com>
9898
9899 * f-valprint.c (f_value_print_innner): Rewrite.
9900
9901 2020-03-13 Tom Tromey <tom@tromey.com>
9902
9903 * m2-valprint.c (m2_print_unbounded_array): New overload.
9904 (m2_print_unbounded_array): Update.
9905 (m2_print_array_contents): Take a struct value.
9906 (m2_value_print_inner): Rewrite.
9907
9908 2020-03-13 Tom Tromey <tom@tromey.com>
9909
9910 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9911 (d_value_print_inner): New function.
9912 * d-lang.h (d_value_print_inner): Declare.
9913 * d-lang.c (d_language_defn): Use d_value_print_inner.
9914
9915 2020-03-13 Tom Tromey <tom@tromey.com>
9916
9917 * go-valprint.c (go_value_print_inner): New function.
9918 * go-lang.h (go_value_print_inner): Declare.
9919 * go-lang.c (go_language_defn): Use go_value_print_inner.
9920
9921 2020-03-13 Tom Tromey <tom@tromey.com>
9922
9923 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9924 API.
9925 (rust_val_print): Rewrite.
9926 (rust_value_print_inner): New function, from rust_val_print.
9927 (rust_language_defn): Use rust_value_print_inner.
9928
9929 2020-03-13 Tom Tromey <tom@tromey.com>
9930
9931 * ada-valprint.c (ada_value_print_inner): New function.
9932 * ada-lang.h (ada_value_print_inner): Declare.
9933 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9934
9935 2020-03-13 Tom Tromey <tom@tromey.com>
9936
9937 * f-valprint.c (f_value_print_innner): New function.
9938 * f-lang.h (f_value_print_innner): Declare.
9939 * f-lang.c (f_language_defn): Use f_value_print_innner.
9940
9941 2020-03-13 Tom Tromey <tom@tromey.com>
9942
9943 * p-valprint.c (pascal_value_print_inner): New function.
9944 * p-lang.h (pascal_value_print_inner): Declare.
9945 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9946
9947 2020-03-13 Tom Tromey <tom@tromey.com>
9948
9949 * m2-valprint.c (m2_value_print_inner): New function.
9950 * m2-lang.h (m2_value_print_inner): Declare.
9951 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9952
9953 2020-03-13 Tom Tromey <tom@tromey.com>
9954
9955 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9956 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9957 * c-valprint.c (c_value_print_inner): New function.
9958 * c-lang.h (c_value_print_inner): Declare.
9959 * c-lang.c (c_language_defn, cplus_language_defn)
9960 (asm_language_defn, minimal_language_defn): Use
9961 c_value_print_inner.
9962
9963 2020-03-13 Tom Tromey <tom@tromey.com>
9964
9965 * p-valprint.c (pascal_object_print_value_fields): Now static.
9966 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9967
9968 2020-03-13 Tom Tromey <tom@tromey.com>
9969
9970 * c-valprint.c (c_val_print_array): Simplify.
9971
9972 2020-03-13 Tom Tromey <tom@tromey.com>
9973
9974 * valprint.c (value_print_array_elements): New function.
9975 * valprint.h (value_print_array_elements): Declare.
9976
9977 2020-03-13 Tom Tromey <tom@tromey.com>
9978
9979 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9980 * mips-tdep.c (mips_print_register): Use
9981 value_print_scalar_formatted.
9982
9983 2020-03-13 Tom Tromey <tom@tromey.com>
9984
9985 * valprint.h (value_print_scalar_formatted): Declare.
9986 * valprint.c (value_print_scalar_formatted): New function.
9987
9988 2020-03-13 Tom Tromey <tom@tromey.com>
9989
9990 * valprint.h (generic_value_print): Declare.
9991 * valprint.c (generic_value_print): New function.
9992
9993 2020-03-13 Tom Tromey <tom@tromey.com>
9994
9995 * valprint.c (do_val_print): Call la_value_print_inner, if
9996 available.
9997 * rust-lang.c (rust_language_defn): Update.
9998 * p-lang.c (pascal_language_defn): Update.
9999 * opencl-lang.c (opencl_language_defn): Update.
10000 * objc-lang.c (objc_language_defn): Update.
10001 * m2-lang.c (m2_language_defn): Update.
10002 * language.h (struct language_defn) <la_value_print_inner>: New
10003 member.
10004 * language.c (unknown_language_defn, auto_language_defn): Update.
10005 * go-lang.c (go_language_defn): Update.
10006 * f-lang.c (f_language_defn): Update.
10007 * d-lang.c (d_language_defn): Update.
10008 * c-lang.c (c_language_defn, cplus_language_defn)
10009 (asm_language_defn, minimal_language_defn): Update.
10010 * ada-lang.c (ada_language_defn): Update.
10011
10012 2020-03-13 Tom Tromey <tom@tromey.com>
10013
10014 * c-valprint.c (c_value_print): Use common_val_print.
10015
10016 2020-03-13 Tom Tromey <tom@tromey.com>
10017
10018 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10019
10020 2020-03-13 Tom Tromey <tom@tromey.com>
10021
10022 * f-valprint.c (f77_print_array_1, f_val_print): Use
10023 common_val_print.
10024
10025 2020-03-13 Tom Tromey <tom@tromey.com>
10026
10027 * riscv-tdep.c (riscv_print_one_register_info): Use
10028 common_val_print.
10029
10030 2020-03-13 Tom Tromey <tom@tromey.com>
10031
10032 * mi/mi-main.c (output_register): Use common_val_print.
10033
10034 2020-03-13 Tom Tromey <tom@tromey.com>
10035
10036 * infcmd.c (default_print_one_register_info): Use
10037 common_val_print.
10038
10039 2020-03-13 Tom Tromey <tom@tromey.com>
10040
10041 * valprint.h (common_val_print_checked): Declare.
10042 * valprint.c (common_val_print_checked): New function.
10043 * stack.c (print_frame_arg): Use common_val_print_checked.
10044
10045 2020-03-13 Tom Tromey <tom@tromey.com>
10046
10047 * valprint.c (do_val_print): New function, from val_print.
10048 (val_print): Use do_val_print.
10049 (common_val_print): Use do_val_print.
10050
10051 2020-03-13 Tom Tromey <tom@tromey.com>
10052
10053 * valprint.c (value_print): Use scoped_value_mark.
10054
10055 2020-03-13 Tom de Vries <tdevries@suse.de>
10056
10057 PR symtab/25646
10058 * psymtab.c (partial_symtab::partial_symtab): Don't set
10059 globals_offset and statics_offset. Push element onto
10060 current_global_psymbols and current_static_psymbols stacks.
10061 (concat): New function.
10062 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10063 element from current_global_psymbols and current_static_psymbols
10064 stacks. Concat popped elements to global_psymbols and
10065 static_symbols.
10066 (add_psymbol_to_list): Use current_global_psymbols and
10067 current_static_psymbols stacks.
10068 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10069 current_static_psymbols fields.
10070
10071 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10072
10073 * corelow.c (sniff_core_bfd): Remove.
10074 (class core_target) <m_core_vec>: Remove.
10075 (core_target::core_target): Update.
10076 (core_file_fns): Remove.
10077 (deprecated_add_core_fns): Remove.
10078 (default_core_sniffer): Remove.
10079 (sniff_core_bfd): Remove.
10080 (default_check_format): Remove.
10081 (gdb_check_format): Remove.
10082 (core_target_open): Update.
10083 (core_target::get_core_register_section): Update.
10084 (get_core_registers_cb): Update.
10085 (core_target::fetch_registers): Update.
10086 * gdbcore.h (struct core_fns): Remove.
10087 (deprecated_add_core_fns): Remove.
10088 (default_core_sniffer): Remove.
10089 (default_check_format): Remove.
10090
10091 2020-03-12 Tom Tromey <tom@tromey.com>
10092
10093 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10094 CORE_ADDR.
10095 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10096
10097 2020-03-12 Tom Tromey <tom@tromey.com>
10098
10099 * remote.c (remote_target::download_tracepoint)
10100 (remote_target::enable_tracepoint)
10101 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10102 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10103 sprintf_vma.
10104
10105 2020-03-12 Tom Tromey <tom@tromey.com>
10106
10107 * symfile-mem.c: Update CORE_ADDR size assert.
10108
10109 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10110
10111 * selftest.m4: Move to gdbsupport/.
10112 * acinclude.m4: Update path to selftest.m4.
10113
10114 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10115
10116 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10117 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10118 gdbarch-selfselftests.c and selftest-arch.c.
10119 (SUBDIR_UNITTESTS_OBS): Rename to...
10120 (SELFTESTS_OBS): ... this.
10121 (COMMON_SFILES): Remove disasm-selftests.c and
10122 gdbarch-selftests.c.
10123 * configure.ac: Don't add selftest-arch.{c,o} to
10124 CONFIG_{SRCS,OBS}.
10125 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10126 preprocessor conditions.
10127
10128 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10129
10130 * configure.ac: Don't source bfd/development.sh.
10131 * selftest.m4: Modify comment.
10132 * configure: Re-generate.
10133
10134 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10135
10136 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10137 not "true" or "false".
10138 * configure: Re-generate.
10139
10140 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10141
10142 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10143 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10144 renamed to arm_nbsd_supply_gregset.
10145 (fetch_register): Update to call arm_nbsd_supply_gregset.
10146 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10147 (arm_netbsd_nat_target::fetch_registers): Update.
10148 (fetch_elfcore_registers): Removed.
10149 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10150 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10151 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10152 not require NetBSD system headers.
10153 (arm_nbsd_regset): New struct.
10154 (arm_nbsd_iterate_over_regset_sections): New function.
10155 (arm_netbsd_init_abi_common): Updated to call
10156 set_gdbarch_iterate_over_regset_sections.
10157 * arm-nbsd-tdep.h: New file.
10158
10159 2020-03-11 Kevin Buettner <kevinb@redhat.com>
10160
10161 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10162 recursion.
10163
10164 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
10165
10166 * configure: Re-generate.
10167
10168 2020-03-11 Tom Tromey <tromey@adacore.com>
10169
10170 * ada-typeprint.c (print_choices): Fix comment.
10171
10172 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10173
10174 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10175 previous item in the list, when the list has no items.
10176
10177 2020-03-11 Tom de Vries <tdevries@suse.de>
10178
10179 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10180 PROP_LOCLIST handling code.
10181
10182 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10183
10184 * buildsym-legacy.c (record_line): Pass extra parameter to
10185 record_line.
10186 * buildsym.c (buildsym_compunit::record_line): Take an extra
10187 parameter, reduce duplication in the line table, and record the
10188 is_stmt flag in the line table.
10189 * buildsym.h (buildsym_compunit::record_line): Add extra
10190 parameter.
10191 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10192 non-statement lines.
10193 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10194 this to the symtab builder.
10195 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10196 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10197 through to dwarf_record_line_1.
10198 * infrun.c (process_event_stop_test): When stepping, don't stop at
10199 a non-statement instruction, and only refresh the step info when
10200 we land in the middle of a line's range. Also add an extra
10201 comment.
10202 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10203 field.
10204 * record-btrace.c (btrace_find_line_range): Only record lines
10205 marked as is-statement.
10206 * stack.c (frame_show_address): Show the frame address if we are
10207 in a non-statement sal.
10208 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10209 (maintenance_print_one_line_table): Print a header for the is_stmt
10210 column, and include is_stmt information in the output.
10211 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10212 preference to non-statements.
10213 (find_pcs_for_symtab_line): Prefer is-statement entries.
10214 (find_line_common): Likewise.
10215 * symtab.h (struct linetable_entry): Add is_stmt field.
10216 (struct symtab_and_line): Likewise.
10217 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10218 arranging the line table.
10219
10220 2020-03-07 Tom de Vries <tdevries@suse.de>
10221
10222 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10223 DIE.
10224
10225 2020-03-07 Tom Tromey <tom@tromey.com>
10226
10227 * valops.c (value_literal_complex): Remove obsolete comment.
10228 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10229 comment.
10230
10231 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10232
10233 * infrun.h: Forward-declare thread_info.
10234 (set_step_info): Add thread_info parameter, add doc.
10235 * infrun.c (set_step_info): Add thread_info parameter, move doc
10236 to header.
10237 * infrun.c (process_event_stop_test): Pass thread to
10238 set_step_info call.
10239 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10240 set_step_info.
10241 (prepare_one_step): Add thread_info parameter, pass it to
10242 set_step_frame and prepare_one_step (recursive) call.
10243 (step_1): Pass thread to prepare_one_step call.
10244 (step_command_fsm::should_stop): Pass thread to
10245 prepare_one_step.
10246 (until_next_fsm): Pass thread to set_step_frame call.
10247 (finish_command): Pass thread to set_step_info call.
10248
10249 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
10250
10251 * windows-tdep.c (windows_solib_create_inferior_hook):
10252 Check if inferior is running.
10253
10254 2020-03-06 Tom de Vries <tdevries@suse.de>
10255
10256 * NEWS: Fix "the the".
10257 * ctfread.c: Same.
10258
10259 2020-03-06 Tom de Vries <tdevries@suse.de>
10260
10261 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10262
10263 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10264
10265 * .dir-locals.el: Add a comment referencing the other copies of
10266 this file.
10267
10268 2020-03-05 John Baldwin <jhb@FreeBSD.org>
10269
10270 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10271 psargs.
10272
10273 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10274
10275 * .gitattributes: New file.
10276
10277 2020-03-04 Tom Tromey <tom@tromey.com>
10278
10279 * symmisc.c (print_symbol_bcache_statistics)
10280 (print_objfile_statistics): Update.
10281 * symfile.c (allocate_symtab): Use intern.
10282 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10283 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10284 macro_cache>: Remove.
10285 <string_cache>: New member.
10286 (struct objfile) <intern>: New methods.
10287 * elfread.c (elf_symtab_read): Use intern.
10288 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10289 (dwarf2_compute_name, dwarf2_physname)
10290 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10291 names.
10292 (guess_partial_die_structure_name): Update.
10293 (partial_die_info::fixup): Intern name.
10294 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10295 name.
10296 (dwarf2_name): Intern name. Update.
10297 * buildsym.c (buildsym_compunit::get_macro_table): Use
10298 string_cache.
10299
10300 2020-03-04 Tom Tromey <tom@tromey.com>
10301
10302 * jit.c (bfd_open_from_target_memory): Make "target" const.
10303 * corefile.c (gnutarget): Now const.
10304 * gdbcore.h (gnutarget): Now const.
10305
10306 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
10307
10308 * NEWS: Mention support for WOW64 processes.
10309 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10310 (amd64_windows_segment_register_p): Remove static.
10311 (_initialize_amd64_windows_nat): Update.
10312 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10313 * i386-windows-nat.c (context_offset): Update.
10314 (i386_mappings): Rename and remove static.
10315 (i386_windows_segment_register_p): Remove static.
10316 (_initialize_i386_windows_nat): Update.
10317 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10318 (STATUS_WX86_SINGLE_STEP): New macro.
10319 (EnumProcessModulesEx): New macro.
10320 (Wow64SuspendThread): New macro.
10321 (Wow64GetThreadContext): New macro.
10322 (Wow64SetThreadContext): New macro.
10323 (Wow64GetThreadSelectorEntry): New macro.
10324 (windows_set_context_register_offsets): Add static.
10325 (windows_set_segment_register_p): Likewise.
10326 (windows_add_thread): Adapt for WOW64 processes.
10327 (windows_fetch_one_register): Likewise.
10328 (windows_nat_target::fetch_registers): Likewise.
10329 (windows_store_one_register): Likewise.
10330 (display_selector): Likewise.
10331 (display_selectors): Likewise.
10332 (handle_exception): Likewise.
10333 (windows_continue): Likewise.
10334 (windows_nat_target::resume): Likewise.
10335 (windows_add_all_dlls): Likewise.
10336 (do_initial_windows_stuff): Likewise.
10337 (windows_nat_target::attach): Likewise.
10338 (windows_get_exec_module_filename): Likewise.
10339 (windows_nat_target::create_inferior): Likewise.
10340 (windows_xfer_siginfo): Likewise.
10341 (_initialize_loadable): Initialize Wow64SuspendThread,
10342 Wow64GetThreadContext, Wow64SetThreadContext,
10343 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10344 * windows-nat.h (windows_set_context_register_offsets):
10345 Remove declaration.
10346 (windows_set_segment_register_p): Likewise.
10347 (i386_windows_segment_register_p): Add declaration.
10348 (amd64_windows_segment_register_p): Likewise.
10349
10350 2020-03-04 Luis Machado <luis.machado@linaro.org>
10351
10352 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10353 in "info registers" for AArch64/ARM.
10354
10355 The change caused "info registers" to not print GPR's.
10356
10357 gdb/ChangeLog:
10358
10359 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10360
10361 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10362 when reg->group is empty and reggroup is not.
10363
10364 2020-03-03 Tom Tromey <tromey@adacore.com>
10365
10366 * dwarf2/frame.c (struct dwarf2_frame_cache)
10367 <checked_tailcall_bottom, entry_cfa_sp_offset,
10368 entry_cfa_sp_offset_p>: Remove members.
10369 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10370 (dwarf2_frame_prev_register): Don't call
10371 dwarf2_tailcall_sniffer_first.
10372 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10373 * frame-unwind.c (add_unwinder): New fuction.
10374 (frame_unwind_init): Use it. Add tailcall unwinder.
10375
10376 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10377 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10378
10379 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10380 value should be printed as true.
10381
10382 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
10383
10384 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10385 (windows_init_abi): Set and use windows_so_ops.
10386
10387 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10388
10389 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10390 when verifying if dealing with a convenience variable.
10391
10392 2020-03-03 Luis Machado <luis.machado@linaro.org>
10393
10394 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10395
10396 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10397
10398 * infrun.c (gdbarch_supports_displaced_stepping): New.
10399 (use_displaced_stepping): Break up conditions in smaller pieces.
10400 Use gdbarch_supports_displaced_stepping.
10401 (displaced_step_prepare_throw): Use
10402 gdbarch_supports_displaced_stepping.
10403
10404 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10405
10406 * NEWS: Mention new behaviour of the history filename.
10407 * top.c (write_history_p): Add comment.
10408 (show_write_history_p): Add header comment, give a different
10409 message when history writing is on, but the history filename is
10410 empty.
10411 (history_filename): Add comment.
10412 (history_filename_empty): New function.
10413 (show_history_filename): Add header comment, give a different
10414 message when the filename is empty.
10415 (init_history): Compare history_filename against nullptr, and only
10416 read history if the filename is not empty.
10417 (set_history_filename): Add header comment, and only make
10418 non-empty filenames absolute.
10419 (init_main): Make the filename argument to 'set history filename'
10420 optional.
10421
10422 2020-03-02 Christian Biesinger <cbiesinger@google.com>
10423
10424 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10425 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10426 (fetch_fp_register): Update.
10427 (fetch_fp_regs): Update.
10428 (store_fp_register): Update.
10429 (store_fp_regs): Update.
10430 (arm_netbsd_nat_target::read_description): New function.
10431 (fetch_elfcore_registers): Update.
10432
10433 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10434
10435 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10436 general_thread if the stop reply is missing a thread-id.
10437 (remote_target::process_stop_reply): Use the first non-exited
10438 thread if the target didn't pass a thread-id.
10439 * infrun.c (do_target_wait): Move call to
10440 switch_to_inferior_no_thread to ....
10441 (do_target_wait_1): ... here.
10442
10443 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10444
10445 * debuginfod-support.c: Include defs.h first.
10446
10447 2020-02-28 Tom de Vries <tdevries@suse.de>
10448
10449 * symfile.c (set_initial_language): Use default language for lookup.
10450
10451 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
10452
10453 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10454 reader variable, pass `this` to read_cutu_die_from_dwo.
10455
10456 2020-02-27 Aaron Merey <amerey@redhat.com>
10457
10458 * source.c (open_source_file): Check for nullptr when computing
10459 srcpath.
10460
10461 2020-02-27 Tom Tromey <tromey@adacore.com>
10462
10463 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10464 member.
10465 (dwarf2_add_field): Don't update nfields.
10466 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10467
10468 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10469
10470 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10471 abs.
10472
10473 2020-02-26 Tom Tromey <tom@tromey.com>
10474
10475 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10476 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10477 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10478 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10479 per_cu_data.
10480
10481 2020-02-26 Tom Tromey <tom@tromey.com>
10482
10483 * dwarf2/index-write.c (psym_index_map): Change type.
10484 (add_address_entry_worker, write_one_signatured_type)
10485 (recursively_count_psymbols, recursively_write_psymbols)
10486 (class debug_names, psyms_seen_size, write_gdbindex)
10487 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10488
10489 2020-02-26 Aaron Merey <amerey@redhat.com>
10490
10491 * Makefile.in: Handle optional debuginfod support.
10492 * NEWS: Update.
10493 * README: Add --with-debuginfod summary.
10494 * config.in: Regenerate.
10495 * configure: Regenerate.
10496 * configure.ac: Handle optional debuginfod support.
10497 * debuginfod-support.c: debuginfod helper functions.
10498 * debuginfod-support.h: Ditto.
10499 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10500 summary.
10501 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10502 when a dwz file cannot be found.
10503 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10504 debuginfo file cannot be found.
10505 * source.c (open_source_file): Query debuginfod servers when a
10506 source file cannot be found.
10507 * top.c (print_gdb_configuration): Include
10508 --{with,without}-debuginfod in the output.
10509
10510 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10511
10512 * thread.c (thr_try_catch_cmd): Print thread name.
10513
10514 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
10515
10516 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10517 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10518 dwarf2_fetch_die_type_sect_off): Move to...
10519 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10520 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10521 dwarf2_fetch_die_type_sect_off): ... here.
10522 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10523 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10524 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10525
10526 2020-02-26 Tom de Vries <tdevries@suse.de>
10527
10528 PR gdb/25603
10529 * symfile.c (set_initial_language): Exit-early if
10530 language_mode == language_mode_manual.
10531
10532 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10533
10534 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10535 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10536 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10537
10538 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10539
10540 * gdbtypes.c (create_array_type_with_stride): Handle negative
10541 array strides.
10542 * valarith.c (value_subscripted_rvalue): Likewise.
10543
10544 2020-02-25 Luis Machado <luis.machado@linaro.org>
10545
10546 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10547
10548 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10549
10550 * loc.h (dwarf2_get_die_type): Move to...
10551 * read.h (dwarf2_get_die_type): ... here.
10552 * read.c (dwarf2_get_die_type): Move doc to header.
10553
10554 2020-02-25 Joel Brobecker <brobecker@adacore.com>
10555
10556 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10557 'gnulib/Makefile.in' to the list.
10558
10559 2020-02-24 Tom Tromey <tom@tromey.com>
10560
10561 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10562 Remove.
10563 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10564 XOBNEWVEC.
10565
10566 2020-02-24 Tom Tromey <tom@tromey.com>
10567
10568 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10569 New method.
10570 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10571 (dw2_do_instantiate_symtab, dw2_get_file_names)
10572 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10573
10574 2020-02-24 Tom Tromey <tom@tromey.com>
10575
10576 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10577 make_scoped_restore.
10578 (dwarf2_psymtab::read_symtab): Don't clear
10579 reading_partial_symbols.
10580
10581 2020-02-24 Tom de Vries <tdevries@suse.de>
10582
10583 PR gdb/25592
10584 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10585
10586 2020-02-24 Tom de Vries <tdevries@suse.de>
10587
10588 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10589 commands layout next/prev/regs.
10590
10591 2020-02-22 Tom Tromey <tom@tromey.com>
10592
10593 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10594 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10595
10596 2020-02-22 Tom Tromey <tom@tromey.com>
10597
10598 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10599
10600 2020-02-22 Tom Tromey <tom@tromey.com>
10601
10602 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10603 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10604 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10605 * tui/tui.c (_initialize_tui): Add usage text.
10606
10607 2020-02-22 Tom Tromey <tom@tromey.com>
10608
10609 * tui/tui-win.c (tui_set_focus_command)
10610 (tui_set_win_height_command): Use error_no_arg.
10611 (_initialize_tui_win): Update help text.
10612 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10613
10614 2020-02-22 Tom Tromey <tom@tromey.com>
10615
10616 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10617 * tui/tui-disasm.h (struct tui_disasm_window)
10618 <display_start_addr>: Declare.
10619 * tui/tui-source.h (struct tui_source_window)
10620 <display_start_addr>: Declare.
10621 * tui/tui-winsource.h (struct tui_source_window_base)
10622 <show_source_line, display_start_addr>: New methods.
10623 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10624 Rename and move to protected section.
10625 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10626 (tui_source_window_base::do_erase_source_content): Update.
10627 (tui_source_window_base::show_source_line): Now a method.
10628 (tui_source_window_base::show_source_content)
10629 (tui_source_window_base::tui_source_window_base)
10630 (tui_source_window_base::rerender)
10631 (tui_source_window_base::refill)
10632 (tui_source_window_base::do_scroll_horizontal)
10633 (tui_source_window_base::set_is_exec_point_at)
10634 (tui_source_window_base::update_breakpoint_info)
10635 (tui_source_window_base::update_exec_info): Update.
10636 * tui/tui-source.c (tui_source_window::set_contents)
10637 (tui_source_window::showing_source_p)
10638 (tui_source_window::do_scroll_vertical)
10639 (tui_source_window::location_matches_p)
10640 (tui_source_window::line_is_displayed): Update.
10641 (tui_source_window::display_start_addr): New method.
10642 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10643 (tui_disasm_window::do_scroll_vertical)
10644 (tui_disasm_window::location_matches_p): Update.
10645 (tui_disasm_window::display_start_addr): New method.
10646
10647 2020-02-22 Tom Tromey <tom@tromey.com>
10648
10649 * NEWS: Add entry for gdb.register_window_type.
10650 * tui/tui-layout.h (window_factory): New typedef.
10651 (tui_register_window): Declare.
10652 * tui/tui-layout.c (saved_tui_windows): New global.
10653 (tui_apply_current_layout): Use it.
10654 (tui_register_window): New function.
10655 * python/python.c (do_start_initialization): Call
10656 gdbpy_initialize_tui.
10657 (python_GdbMethods): Add "register_window_type" function.
10658 * python/python-internal.h (gdbpy_register_tui_window)
10659 (gdbpy_initialize_tui): Declare.
10660 * python/py-tui.c: New file.
10661 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10662
10663 2020-02-22 Tom Tromey <tom@tromey.com>
10664
10665 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10666
10667 2020-02-22 Tom Tromey <tom@tromey.com>
10668
10669 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10670 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10671 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10672 (tui_set_win_focus_to): Move from tui-win.c.
10673
10674 2020-02-22 Tom Tromey <tom@tromey.com>
10675
10676 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10677 functions.
10678 (known_window_types): New global.
10679 (tui_get_window_by_name): Reimplement.
10680 (initialize_known_windows): New function.
10681 (validate_window_name): Rewrite.
10682 (_initialize_tui_layout): Call initialize_known_windows.
10683
10684 2020-02-22 Tom Tromey <tom@tromey.com>
10685
10686 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10687 Remove constants.
10688 * tui/tui-winsource.h (struct tui_source_window_base)
10689 <tui_source_window_base>: Remove parameter.
10690 * tui/tui-winsource.c
10691 (tui_source_window_base::tui_source_window_base): Remove
10692 parameter.
10693 (tui_source_window_base::refill): Update.
10694 * tui/tui-stack.h (struct tui_locator_window)
10695 <tui_locator_window>: Update.
10696 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10697 Default the constructor.
10698 * tui/tui-regs.h (struct tui_data_item_window)
10699 <tui_data_item_window>: Default the constructor.
10700 (struct tui_data_window) <tui_data_window>: Likewise.
10701 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10702 Default the constructor.
10703 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10704 Default the constructor.
10705 <type>: Remove.
10706 (struct tui_win_info) <tui_win_info>: Default the constructor.
10707 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10708 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10709 Default the constructor.
10710
10711 2020-02-22 Tom Tromey <tom@tromey.com>
10712
10713 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10714 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10715 * tui/tui-win.c (tui_resize_all): Don't call
10716 tui_delete_invisible_windows.
10717 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10718 done.
10719 (tui_set_layout): Update.
10720 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10721 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10722 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10723
10724 2020-02-22 Tom Tromey <tom@tromey.com>
10725
10726 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10727 correctly.
10728
10729 2020-02-22 Tom Tromey <tom@tromey.com>
10730
10731 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10732
10733 2020-02-22 Tom Tromey <tom@tromey.com>
10734
10735 * tui/tui-winsource.h (struct tui_source_window_iterator)
10736 <inner_iterator>: New etytypedef.
10737 <tui_source_window_iterator>: Take "end" parameter.
10738 <tui_source_window_iterator>: Take iterator.
10739 <operator*, advance>: Update.
10740 <m_iter>: Change type.
10741 <m_end>: New field.
10742 (struct tui_source_windows) <begin, end>: Update.
10743 * tui/tui-layout.c (tui_windows): New global.
10744 (tui_apply_current_layout): Clear tui_windows.
10745 (tui_layout_window::apply): Update tui_windows.
10746 * tui/tui-data.h (tui_windows): Declare.
10747 (all_tui_windows): Now inline function.
10748 (class tui_window_iterator, struct all_tui_windows): Remove.
10749
10750 2020-02-22 Tom Tromey <tom@tromey.com>
10751
10752 PR tui/17850:
10753 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10754 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10755 "height" argument.
10756 (class tui_layout_window) <get_sizes>: Likewise.
10757 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10758 argument.
10759 <get_sizes>: Add "height" argument.
10760 <m_vertical>: New field.
10761 * tui/tui-layout.c (tui_layout_split::clone): Update.
10762 (tui_layout_split::get_sizes): Add "height" argument.
10763 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10764 (tui_new_layout_command): Parse "-horizontal".
10765 (_initialize_tui_layout): Update help string.
10766 (tui_layout_split::specification): Add "-horizontal" when needed.
10767 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10768 argument.
10769 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10770 New methods.
10771
10772 2020-02-22 Tom Tromey <tom@tromey.com>
10773
10774 * tui/tui-layout.h (enum tui_adjust_result): New.
10775 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10776 (class tui_layout_window) <adjust_size>: Return
10777 tui_adjust_result. Rewrite.
10778 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10779 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10780
10781 2020-02-22 Tom Tromey <tom@tromey.com>
10782
10783 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10784 parameter and return types.
10785 (class tui_layout_base) <specification>: Add "depth".
10786 (class tui_layout_window) <specification>: Add "depth".
10787 (class tui_layout_split) <specification>: Add "depth".
10788 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10789 and return types.
10790 (tui_new_layout_command): Parse sub-layouts.
10791 (_initialize_tui_layout): Update help string.
10792 (tui_layout_window::specification): Add "depth".
10793 (add_layout_command): Update.
10794
10795 2020-02-22 Tom Tromey <tom@tromey.com>
10796
10797 * NEWS: Add "tui new-layout" item.
10798 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10799 Add new-layout command to help text.
10800 (validate_window_name): New function.
10801 (tui_new_layout_command): New function.
10802 (_initialize_tui_layout): Register "new-layout".
10803 (tui_layout_window::specification): New method.
10804 (tui_layout_window::specification): New method.
10805 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10806 method.
10807 (class tui_layout_window) <specification>: New method.
10808 (class tui_layout_split) <specification>: New method.
10809
10810 2020-02-22 Tom Tromey <tom@tromey.com>
10811
10812 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10813 * tui/tui-win.c (window_name_completer): Update comment.
10814 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10815 Declare method.
10816 (class tui_layout_window) <replace_window>: Likewise.
10817 (class tui_layout_split) <replace_window>: Likewise.
10818 (tui_set_layout): Don't declare.
10819 (tui_set_initial_layout): Declare function.
10820 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10821 (asm_regs_layout): New globals.
10822 (tui_current_layout, show_layout): Remove.
10823 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10824 (find_layout, tui_apply_layout): New function.
10825 (layout_completer): Remove.
10826 (tui_next_layout): Reimplement.
10827 (tui_next_layout_command): New function.
10828 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10829 (tui_regs_layout): Reimplement.
10830 (tui_regs_layout_command): New function.
10831 (extract_display_start_addr): Rewrite.
10832 (next_layout, prev_layout): Remove.
10833 (tui_layout_window::replace_window): New method.
10834 (tui_layout_split::replace_window): New method.
10835 (destroy_layout): New function.
10836 (layout_list): New global.
10837 (add_layout_command): New function.
10838 (initialize_layouts): Update.
10839 (tui_layout_command): New function.
10840 (_initialize_tui_layout): Install "layout" commands.
10841 * tui/tui-data.h (enum tui_layout_type): Remove.
10842 (tui_current_layout): Don't declare.
10843
10844 2020-02-22 Tom Tromey <tom@tromey.com>
10845
10846 * tui/tui-regs.c (tui_reg_layout): Remove.
10847 (tui_reg_command): Use tui_regs_layout.
10848 * tui/tui-layout.h (tui_reg_command): Declare.
10849 * tui/tui-layout.c (tui_reg_command): New function.
10850
10851 2020-02-22 Tom Tromey <tom@tromey.com>
10852
10853 * tui/tui.c (tui_rl_delete_other_windows): Call
10854 tui_remove_some_windows.
10855 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10856 Declare method.
10857 (class tui_layout_window) <remove_windows>: New method.
10858 (class tui_layout_split) <remove_windows>: Declare.
10859 (tui_remove_some_windows): Declare.
10860 * tui/tui-layout.c (tui_remove_some_windows): New function.
10861 (tui_layout_split::remove_windows): New method.
10862
10863 2020-02-22 Tom Tromey <tom@tromey.com>
10864
10865 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10866 * tui/tui-layout.h (tui_next_layout): Declare.
10867 * tui/tui-layout.c (tui_next_layout): New function.
10868
10869 2020-02-22 Tom Tromey <tom@tromey.com>
10870
10871 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10872 correct coordinates.
10873
10874 2020-02-22 Tom Tromey <tom@tromey.com>
10875
10876 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10877 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10878 DATA_WIN case.
10879
10880 2020-02-22 Tom Tromey <tom@tromey.com>
10881
10882 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10883 TUI_DISASM_WIN, not tui_win_list.
10884
10885 2020-02-22 Tom Tromey <tom@tromey.com>
10886
10887 * valprint.c (generic_val_print_enum_1)
10888 (val_print_type_code_flags): Style member names.
10889 * rust-lang.c (val_print_struct, rust_print_enum)
10890 (rust_print_struct_def, rust_internal_print_type): Style member
10891 names.
10892 * p-valprint.c (pascal_object_print_value_fields): Style member
10893 names. Only call fprintf_symbol_filtered for static members.
10894 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10895 * f-valprint.c (f_val_print): Style member names.
10896 * f-typeprint.c (f_type_print_base): Style member names.
10897 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10898 call fprintf_symbol_filtered for static members.
10899 (cp_print_class_member): Style member names.
10900 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10901 member names.
10902 * ada-valprint.c (ada_print_scalar): Style enum names.
10903 (ada_val_print_enum): Likewise.
10904 * ada-typeprint.c (print_enum_type): Style enum names.
10905
10906 2020-02-21 Tom Tromey <tom@tromey.com>
10907
10908 * psympriv.h (struct partial_symtab): Update comment.
10909
10910 2020-02-21 Tom Tromey <tromey@adacore.com>
10911
10912 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10913 type is CORE_ADDR.
10914
10915 2020-02-21 Tom de Vries <tdevries@suse.de>
10916
10917 PR gdb/25534
10918 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10919 if dependencies[i]->user != NULL.
10920
10921 2020-02-21 Ali Tamur <tamur@google.com>
10922
10923 * dwarf2/read.c (dwarf2_name): Add null check.
10924
10925 2020-02-20 Tom Tromey <tom@tromey.com>
10926
10927 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10928 ">=", in binary search.
10929 (dwarf2_find_containing_comp_unit): New overload.
10930 (run_test): New self-test.
10931 (_initialize_dwarf2_read): Register new test.
10932
10933 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
10934
10935 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10936 * riscv-tdep.h: Likewise.
10937 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10938 rv32-only CSR.
10939 * features/riscv/64bit-csr.xml: Regenerated.
10940
10941 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10942 Tom Tromey <tom@tromey.com>
10943
10944 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10945 of 'fputc_unfiltered'.
10946 (putchar_unfiltered): Call 'fputc_unfiltered'.
10947 (fputc_unfiltered): Call 'fputs_unfiltered'.
10948
10949 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10950
10951 * config.in: Regenerate.
10952 * configure: Regenerate.
10953 * configure.ac: Add --with-python-libdir option.
10954 * main.c: Use WITH_PYTHON_LIBDIR.
10955
10956 2020-02-19 Tom Tromey <tom@tromey.com>
10957
10958 * symtab.c (general_symbol_info::compute_and_set_names): Use
10959 obstack_strndup. Simplify call to symbol_set_demangled_name.
10960
10961 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
10962
10963 * dwarf2/read.c (allocate_signatured_type_table,
10964 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10965 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10966 Remove objfile parameter, update all callers.
10967
10968 2020-02-19 Doug Evans <dje@google.com>
10969
10970 PR rust/25535
10971 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10972 rust_enum_variant calculation.
10973
10974 2020-02-19 Tom Tromey <tromey@adacore.com>
10975
10976 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10977
10978 2020-02-19 Tom Tromey <tromey@adacore.com>
10979
10980 * ada-lang.c (cache_symbol): Use obstack_strdup.
10981
10982 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10983
10984 * configure: Regenerate.
10985
10986 2020-02-19 Tom Tromey <tromey@adacore.com>
10987
10988 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10989 NULL check.
10990
10991 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
10992
10993 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10994
10995 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10996
10997 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10998 if GDBSERVER is not defined.
10999 (riscv_tdesc_cache): Likewise, also store const target_desc.
11000 (STATIC_IN_GDB): Define.
11001 (riscv_create_target_description): Update declaration with
11002 STATIC_IN_GDB.
11003 (riscv_lookup_target_description): New function, only define if
11004 GDBSERVER is not defined.
11005 * arch/riscv.h (riscv_create_target_description): Declare only
11006 when GDBSERVER is defined.
11007 (riscv_lookup_target_description): New declaration when GDBSERVER
11008 is not defined.
11009 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11010 (riscv_linux_read_features): ...this, and return
11011 riscv_gdbarch_features instead of target_desc.
11012 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11013 (riscv_linux_read_description): Rename to...
11014 (riscv_linux_read_features): ...this.
11015 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11016 Update to use riscv_gdbarch_features and
11017 riscv_lookup_target_description.
11018 * riscv-tdep.c (riscv_find_default_target_description): Use
11019 riscv_lookup_target_description instead of
11020 riscv_create_target_description.
11021
11022 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11023
11024 * valprint.c (generic_val_print_enum_1): When printing a flag
11025 enum with value 0 and there is no enumerator with value 0, print
11026 just "0" instead of "(unknown: 0x0)".
11027
11028 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11029
11030 * valprint.c (generic_val_print_enum_1): Print unknown part of
11031 flag enum in hex.
11032
11033 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11034
11035 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11036 flag enums to contain duplicate enumerators.
11037 * valprint.c (generic_val_print_enum_1): Update comment.
11038
11039 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11040
11041 * dwarf2/read.c: Include "count-one-bits.h".
11042 (update_enumeration_type_from_children): If an enumerator has
11043 multiple bits set, don't treat the enumeration as a "flag enum".
11044 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11045 of flag enums have 0 or 1 bit set.
11046
11047 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11048
11049 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11050 conversion.
11051 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11052 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11053 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11054 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11055 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11056
11057 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11058
11059 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11060
11061 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11062
11063 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11064 displaced_step_closure_up.
11065 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11066 (struct displaced_step_closure_up):
11067 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11068 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11069 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11070 Likewise.
11071 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11072 * gdbarch.c, gdbarch.h: Re-generate.
11073 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11074 displaced_step_closure_up.
11075 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11076 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11077 * infrun.h (displaced_step_closure_up): New type alias.
11078 (struct displaced_step_inferior_state) <step_closure>: Change
11079 type to displaced_step_closure_up.
11080 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11081 displaced_step_closure_up.
11082 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11083
11084 2020-02-14 Tom Tromey <tom@tromey.com>
11085
11086 * minidebug.c (gnu_debug_key): New global.
11087 (find_separate_debug_file_in_section): Use it.
11088
11089 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11090
11091 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11092 std::unique_ptr.
11093 * gdbarch.c: Re-generate.
11094 * gdbarch.h: Re-generate.
11095 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11096 change.
11097 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11098 type to std::unique_ptr.
11099 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11100 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11101 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11102 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11103 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11104 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11105 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11106 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11107 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11108
11109 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11110
11111 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11112 std::unique_ptr.
11113 (displaced_step_clear): Rename to...
11114 (displaced_step_reset): ... this. Just call displaced->reset ().
11115 (displaced_step_clear_cleanup): Rename to...
11116 (displaced_step_reset_cleanup): ... this.
11117 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11118 (displaced_step_fixup): Likewise.
11119 (resume_1): Likewise.
11120 (handle_inferior_event): Restore child's memory before calling
11121 displaced_step_fixup on the parent.
11122 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11123 to std::unique_ptr.
11124 <step_closure>: Change type to std::unique_ptr.
11125
11126 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11127
11128 * arm-tdep.c: Include count-one-bits.h.
11129 (cleanup_block_store_pc): Use count_one_bits.
11130 (cleanup_block_load_pc): Use count_one_bits.
11131 (arm_copy_block_xfer): Use count_one_bits.
11132 (thumb2_copy_block_xfer): Use count_one_bits.
11133 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11134 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11135 (thumb_get_next_pcs_raw): Use count_one_bits.
11136 (arm_get_next_pcs_raw): Use count_one_bits_l.
11137 * arch/arm.c (bitcount): Remove.
11138 * arch/arm.h (bitcount): Remove.
11139
11140 2020-02-14 Tom Tromey <tromey@adacore.com>
11141
11142 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11143 Update.
11144 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11145 * dwarf2/loc.c (call_site_find_chain_1): Return
11146 unique_xmalloc_ptr.
11147 (call_site_find_chain): Likewise.
11148
11149 2020-02-14 Richard Biener <rguenther@suse.de>
11150
11151 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11152 on expression with division operators.
11153
11154 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11155
11156 * MAINTAINERS (Write After Approval): Adding myself.
11157
11158 2020-02-12 Tom Tromey <tom@tromey.com>
11159
11160 * event-loop.c (event_data, gdb_event, event_handler_func):
11161 Remove.
11162
11163 2020-02-12 Tom Tromey <tom@tromey.com>
11164
11165 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11166 (dwarf2_frame_objfile_data): Add comment.
11167 (find_comp_unit, set_comp_unit): New functions.
11168 (dwarf2_frame_find_fde): Use find_comp_unit.
11169 (dwarf2_build_frame_info): Use set_comp_unit.
11170
11171 2020-02-12 Tom Tromey <tom@tromey.com>
11172
11173 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11174 (comp_unit): Don't initialize objfile.
11175 (execute_cfa_program): Add text_offset parameter.
11176 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11177 (dwarf2_frame_cache): Update.
11178 (dwarf2_build_frame_info): Don't set "objfile" member.
11179
11180 2020-02-12 Tom Tromey <tom@tromey.com>
11181
11182 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11183 (decode_frame_entry): Likewise.
11184 (dwarf2_build_frame_info): Update.
11185
11186 2020-02-12 Tom Tromey <tom@tromey.com>
11187
11188 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11189 (decode_frame_entry_1): Use the comp_unit obstack.
11190
11191 2020-02-12 Tom Tromey <tom@tromey.com>
11192
11193 * dwarf2/frame.c (struct comp_unit): Add initializers and
11194 constructor.
11195 (dwarf2_frame_objfile_data): Store a comp_unit.
11196 (dwarf2_frame_find_fde): Update.
11197 (dwarf2_build_frame_info): Use "new".
11198
11199 2020-02-12 Tom Tromey <tom@tromey.com>
11200
11201 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11202 (dwarf2_fde_table): Typedef for std::vector.
11203 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11204 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11205 (decode_frame_entry): Update.
11206 (dwarf2_build_frame_info): Use "new".
11207
11208 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11209
11210 * arm-tdep.c (arm_gdbarch_init): Update.
11211 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11212 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11213 have_neon, is_m>: Change to bool.
11214
11215 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11216
11217 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11218
11219 2020-02-12 Tom Tromey <tom@tromey.com>
11220
11221 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11222
11223 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
11224
11225 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11226 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11227
11228 2020-02-11 Tom Tromey <tom@tromey.com>
11229
11230 * psymtab.h: Update comment.
11231
11232 2020-02-11 Tom Tromey <tom@tromey.com>
11233
11234 * gdb_obstack.h (struct auto_obstack): Use
11235 DISABLE_COPY_AND_ASSIGN.
11236
11237 2020-02-11 Tom Tromey <tom@tromey.com>
11238
11239 * dwarf2/frame.h (struct objfile): Don't forward declare.
11240
11241 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11242
11243 * cris-tdep.c (cris_supply_gregset): Change signature to match
11244 what struct regset expects.
11245 (cris_regset): New struct.
11246 (fetch_core_registers): Remove.
11247 (cris_iterate_over_regset_sections): New function.
11248 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11249 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11250
11251 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11252
11253 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11254 registers.
11255
11256 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11257
11258 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11259
11260 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11261
11262 * configure: Re-generate.
11263
11264 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11265
11266 * configure: Re-generate.
11267
11268 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11269
11270 * acinclude: Update warning.m4 path.
11271 * warning.m4: Move to gdbsupport.
11272
11273 2020-02-11 Tom Tromey <tromey@adacore.com>
11274
11275 * remote.c (remote_console_output): Update.
11276 * printcmd.c (printf_command): Update.
11277 * event-loop.c (gdb_wait_for_event): Update.
11278 * linux-nat.c (sigchld_handler): Update.
11279 * remote-sim.c (gdb_os_write_stdout): Update.
11280 (gdb_os_flush_stdout): Update.
11281 (gdb_os_flush_stderr): Update.
11282 (gdb_os_write_stderr): Update.
11283 * exceptions.c (print_exception): Update.
11284 * remote-fileio.c (remote_fileio_func_read): Update.
11285 (remote_fileio_func_write): Update.
11286 * tui/tui.c (tui_enable): Update.
11287 * tui/tui-interp.c (tui_interp::init): Update.
11288 * utils.c (init_page_info): Update.
11289 (putchar_unfiltered, fputc_unfiltered): Update.
11290 (gdb_flush): Update.
11291 (emit_style_escape): Update.
11292 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11293 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11294 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11295 (stderr_file::write): Update.
11296 (stderr_file::puts): Update.
11297 * ui-file.h (ui_file_isatty, ui_file_write)
11298 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11299 (ui_file_puts): Don't declare.
11300
11301 2020-02-10 Tom de Vries <tdevries@suse.de>
11302
11303 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11304 sentinel to char *.
11305
11306 2020-02-09 Tom de Vries <tdevries@suse.de>
11307
11308 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11309 filename if it matches "<artificial>".
11310
11311 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11312
11313 * windows-tdep.c (struct enum_value_name): New struct.
11314 (create_enum): New function.
11315 (windows_get_siginfo_type): Create and use enum types.
11316
11317 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11318
11319 * NEWS: Mention $_siginfo support for Windows.
11320 * windows-nat.c (handle_exception): Set siginfo_er.
11321 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11322 (windows_xfer_siginfo): New function.
11323 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11324 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11325 (init_windows_gdbarch_data): New function.
11326 (get_windows_gdbarch_data): New function.
11327 (windows_get_siginfo_type): New function.
11328 (windows_init_abi): Register windows_get_siginfo_type.
11329 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11330
11331 2020-02-08 Tom Tromey <tom@tromey.com>
11332
11333 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11334 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11335 <keep>: Declare method.
11336 <m_keep>: Remove member.
11337 <~cutu_reader>: Remove.
11338 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11339 (cutu_reader::cutu_reader): Update.
11340 (cutu_reader::keep): Rename from ~cutu_reader.
11341 (process_psymtab_comp_unit, build_type_psymtabs_1)
11342 (process_skeletonless_type_unit, load_partial_comp_unit)
11343 (load_full_comp_unit, dwarf2_read_addr_index)
11344 (read_signatured_type): Update.
11345
11346 2020-02-08 Tom Tromey <tom@tromey.com>
11347
11348 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11349 "want_partial_unit" parameter.
11350 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11351 Inline check for DW_TAG_partial_unit.
11352 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11353
11354 2020-02-08 Tom Tromey <tom@tromey.com>
11355
11356 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11357 read.c.
11358 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11359 read.c.
11360
11361 2020-02-08 Tom Tromey <tom@tromey.com>
11362
11363 * dwarf2/read.c (read_address): Move to comp-unit.c.
11364 (dwarf2_rnglists_process, dwarf2_ranges_process)
11365 (read_attribute_value, dwarf_decode_lines_1)
11366 (var_decode_location, decode_locdesc): Update.
11367 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11368 read.c. Remove "cu" parameter.
11369 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11370 method.
11371
11372 2020-02-08 Tom Tromey <tom@tromey.com>
11373
11374 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11375 (read_indirect_line_string): Update.
11376 * dwarf2/comp-unit.c (read_offset): Remove.
11377 (read_comp_unit_head): Update.
11378 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11379 method.
11380 (read_offset): Don't declare.
11381
11382 2020-02-08 Tom Tromey <tom@tromey.com>
11383
11384 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11385 * dwarf2/read.c (struct comp_unit_head): Move to
11386 dwarf2/comp-unit.h.
11387 (enum class rcuh_kind): Move to comp-unit.h.
11388 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11389 (read_comp_unit_head, error_check_comp_unit_head)
11390 (read_and_check_comp_unit_head): Move to comp-unit.c.
11391 (read_offset, dwarf_unit_type_name): Likewise.
11392 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11393 (cutu_reader::cutu_reader, read_call_site_scope)
11394 (find_partial_die, follow_die_offset): Update.
11395 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11396
11397 2020-02-08 Tom Tromey <tom@tromey.com>
11398
11399 * dwarf2/read.c (read_offset_1): Move to leb.c.
11400 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11401 (dwarf_decode_macro_bytes): Update.
11402 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11403 * dwarf2/leb.h (read_offset): Declare.
11404
11405 2020-02-08 Tom Tromey <tom@tromey.com>
11406
11407 * dwarf2/read.c (dwarf2_section_size): Remove.
11408 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11409 Update.
11410 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11411
11412 2020-02-08 Tom Tromey <tom@tromey.com>
11413
11414 * dwarf2/read.c (read_initial_length): Move to leb.c.
11415 * dwarf2/leb.h (read_initial_length): Declare.
11416 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11417 handle_nonstd parameter.
11418 * dwarf2/frame.c (read_initial_length): Remove.
11419 (decode_frame_entry_1): Update.
11420
11421 2020-02-08 Tom Tromey <tom@tromey.com>
11422
11423 * dwarf2/loc.c (dwarf2_find_location_expression)
11424 (dwarf_evaluate_loc_desc::get_tls_address)
11425 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11426 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11427 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11428 (dwarf2_compile_property_to_c)
11429 (dwarf2_loc_desc_get_symbol_read_needs)
11430 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11431 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11432 (loclist_describe_location, loclist_tracepoint_var_ref)
11433 (loclist_generate_c_location): Update.
11434 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11435 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11436 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11437 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11438 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11439 (dwarf2_per_cu_data::addr_size)
11440 (dwarf2_per_cu_data::ref_addr_size)
11441 (dwarf2_per_cu_data::text_offset)
11442 (dwarf2_per_cu_data::addr_type): Now methods.
11443 (per_cu_header_read_in): Make per_cu "const".
11444 (dwarf2_version): Remove.
11445 (dwarf2_per_cu_data::int_type): Now a method.
11446 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11447 (set_die_type, read_array_type, read_subrange_index_type)
11448 (read_tag_string_type, read_subrange_type): Update.
11449 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11450 offset_size, ref_addr_size, text_offset, addr_type, version,
11451 objfile, int_type, addr_sized_int_type>: Declare methods.
11452
11453 2020-02-08 Tom Tromey <tom@tromey.com>
11454
11455 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11456 Move earlier.
11457
11458 2020-02-08 Tom Tromey <tom@tromey.com>
11459
11460 * dwarf2/read.h (dwarf_line_debug): Declare.
11461 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11462 * dwarf2/read.c: Move line_header code to new files.
11463 (dwarf_line_debug): No longer static.
11464 * dwarf2/line-header.c: New file.
11465 * dwarf2/line-header.h: New file.
11466
11467 2020-02-08 Tom Tromey <tom@tromey.com>
11468
11469 * dwarf2/read.c (struct line_header) <file_full_name,
11470 file_file_name>: Return unique_xmalloc_ptr.
11471 (line_header::file_file_name): Update.
11472 (line_header::file_full_name): Update.
11473 (dw2_get_file_names_reader): Update.
11474 (macro_start_file): Update.
11475
11476 2020-02-08 Tom Tromey <tom@tromey.com>
11477
11478 * dwarf2/read.c (struct line_header) <file_full_name,
11479 file_file_name>: Declare methods.
11480 (dw2_get_file_names_reader): Update.
11481 (file_file_name): Now a method.
11482 (file_full_name): Likewise.
11483 (macro_start_file): Update.
11484
11485 2020-02-08 Tom Tromey <tom@tromey.com>
11486
11487 * dwarf2/read.c (dwarf_always_disassemble)
11488 (show_dwarf_always_disassemble): Move to loc.c.
11489 (_initialize_dwarf2_read): Move "always-disassemble" registration
11490 to loc.c.
11491 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11492 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11493 static.
11494 (show_dwarf_always_disassemble): Move from read.c.
11495 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11496
11497 2020-02-08 Tom Tromey <tom@tromey.com>
11498
11499 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11500 (create_quick_file_names_table): Return htab_up.
11501 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11502 Update.
11503 * dwarf2/read.h (struct dwarf2_per_objfile)
11504 <quick_file_names_table>: Now htab_up.
11505
11506 2020-02-08 Tom Tromey <tom@tromey.com>
11507
11508 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11509
11510 2020-02-08 Tom Tromey <tom@tromey.com>
11511
11512 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11513 Rewrite.
11514 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11515 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11516 (abbrev_table::abbrev_table): No longer inline.
11517 (ABBREV_HASH_SIZE): Remove.
11518 (abbrev_table::m_abbrevs): Now an htab_up.
11519
11520 2020-02-08 Tom Tromey <tom@tromey.com>
11521
11522 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11523 (cutu_reader): Update.
11524 (build_type_psymtabs_1): Update.
11525 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11526 (abbrev_table::alloc_abbrev): Update.
11527 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11528 (abbrev_table::read): New static method, renamed from
11529 abbrev_table_read_table.
11530 (abbrev_table::alloc_abbrev)
11531 (abbrev_table::add_abbrev): Now private.
11532 (abbrev_table::abbrev_table): Now private.
11533 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11534
11535 2020-02-08 Tom Tromey <tom@tromey.com>
11536
11537 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11538 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11539 htab_up.
11540
11541 2020-02-08 Tom Tromey <tom@tromey.com>
11542
11543 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11544 htab_up.
11545 (lookup_dwo_unit_in_dwp): Update.
11546 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11547 on obstack.
11548
11549 2020-02-08 Tom Tromey <tom@tromey.com>
11550
11551 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11552 obstack.
11553
11554 2020-02-08 Tom Tromey <tom@tromey.com>
11555
11556 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11557 line_header_hash.
11558 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11559 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11560 Change type to htab_up.
11561
11562 2020-02-08 Tom Tromey <tom@tromey.com>
11563
11564 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11565 htab_up. Don't allocate on obstack.
11566 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11567 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11568 Change type to htab_up.
11569
11570 2020-02-08 Tom Tromey <tom@tromey.com>
11571
11572 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11573 Change type to htab_up.
11574 * dwarf2/read.c (create_signatured_type_table_from_index)
11575 (create_signatured_type_table_from_debug_names)
11576 (create_all_type_units, add_type_unit)
11577 (lookup_dwo_signatured_type, lookup_signatured_type)
11578 (process_skeletonless_type_unit): Update.
11579 (create_debug_type_hash_table, create_debug_types_hash_table):
11580 Change type of types_htab.
11581 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11582 htab_up. Don't allocate on obstack.
11583 (create_cus_hash_table): Change type of cus_htab parameter.
11584 (struct dwo_file) <cus, tus>: Now htab_up.
11585 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11586 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11587 (queue_and_load_all_dwo_tus): Update.
11588 * dwarf2/index-write.c (write_gdbindex): Update.
11589 (write_debug_names): Update.
11590
11591 2020-02-08 Tom Tromey <tom@tromey.com>
11592
11593 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11594 dwarf2/read.c. Remove "next" member. Add constructor ntad
11595 destructor.
11596 (struct dwarf2_per_objfile) <queue>: New member.
11597 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11598 dwarf2/read.h.
11599 (dwarf2_queue, dwarf2_queue_tail): Remove.
11600 (class dwarf2_queue_guard): Add parameter to constructor. Use
11601 DISABLE_COPY_AND_ASSIGN.
11602 <m_per_objfile>: New member.
11603 <~dwarf2_queue_guard>: Rewrite.
11604 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11605 Update.
11606 (~dwarf2_queue_item): New.
11607
11608 2020-02-08 Tom Tromey <tom@tromey.com>
11609
11610 * dwarf2/read.c (struct die_info) <has_children>: New member.
11611 (dw2_get_file_names_reader): Remove has_children.
11612 (dw2_get_file_names): Update.
11613 (read_cutu_die_from_dwo): Remove has_children.
11614 (cutu_reader::init_tu_and_read_dwo_dies)
11615 (cutu_reader::cutu_reader): Update.
11616 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11617 Remove has_children.
11618 (build_type_psymtabs_1, process_skeletonless_type_unit)
11619 (load_partial_comp_unit, load_full_comp_unit): Update.
11620 (create_dwo_cu_reader): Remove has_children.
11621 (create_cus_hash_table, read_die_and_children): Update.
11622 (read_full_die_1,read_full_die): Remove has_children.
11623 (read_signatured_type): Update.
11624 (class cutu_reader) <has_children>: Remove.
11625
11626 2020-02-08 Tom Tromey <tom@tromey.com>
11627
11628 * dwarf2/expr.c: Rename from dwarf2expr.c.
11629 * dwarf2/expr.h: Rename from dwarf2expr.h.
11630 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11631 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11632 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11633 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11634 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11635 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11636 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11637 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11638 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11639 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11640 * dwarf2/loc.c: Rename from dwarf2loc.c.
11641 * dwarf2/loc.h: Rename from dwarf2loc.h.
11642 * dwarf2/read.c: Rename from dwarf2read.c.
11643 * dwarf2/read.h: Rename from dwarf2read.h.
11644 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11645 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11646 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11647 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11648 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11649 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11650 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11651 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11652 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11653 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11654 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11655 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11656 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11657 Update.
11658 * Makefile.in (COMMON_SFILES): Update.
11659 (HFILES_NO_SRCDIR): Update.
11660
11661 2020-02-08 Tom Tromey <tom@tromey.com>
11662
11663 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11664 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11665
11666 2020-02-08 Tom Tromey <tom@tromey.com>
11667
11668 * dwarf2read.h (struct die_info): Don't declare.
11669
11670 2020-02-08 Tom Tromey <tom@tromey.com>
11671
11672 * dwarf2read.h (die_info_ptr): Remove typedef.
11673
11674 2020-02-08 Tom Tromey <tom@tromey.com>
11675
11676 * dwarf2read.c (read_call_site_scope)
11677 (handle_data_member_location, dwarf2_add_member_fn)
11678 (mark_common_block_symbol_computed, read_common_block)
11679 (attr_to_dynamic_prop, partial_die_info::read)
11680 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11681 (dwarf2_symbol_mark_computed, set_die_type): Update.
11682 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11683 method.
11684 (attr_form_is_block): Don't declare.
11685 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11686
11687 2020-02-08 Tom Tromey <tom@tromey.com>
11688
11689 * dwarf2read.c (dwarf2_find_base_address, )
11690 (read_call_site_scope, rust_containing_type)
11691 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11692 (handle_data_member_location, dwarf2_add_member_fn)
11693 (get_alignment, read_structure_type, process_structure_scope)
11694 (mark_common_block_symbol_computed, read_common_block)
11695 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11696 (partial_die_info::read, read_attribute_value, new_symbol)
11697 (lookup_die_type, dwarf2_get_ref_die_offset)
11698 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11699 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11700 (dwarf2_symbol_mark_computed): Update.
11701 * dwarf2/attribute.h (struct attribute) <value_as_address,
11702 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11703 methods.
11704 (value_as_address, attr_form_is_section_offset)
11705 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11706 * dwarf2/attribute.c (attribute::value_as_address)
11707 (attribute::form_is_section_offset, attribute::form_is_constant)
11708 (attribute::form_is_ref): Now methods.
11709
11710 2020-02-08 Tom Tromey <tom@tromey.com>
11711
11712 * dwarf2read.c (struct attribute, DW_STRING)
11713 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11714 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11715 (attr_form_is_block, attr_form_is_section_offset)
11716 (attr_form_is_constant, attr_form_is_ref): Move.
11717 * dwarf2/attribute.h: New file.
11718 * dwarf2/attribute.c: New file, from dwarf2read.c.
11719 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11720
11721 2020-02-08 Tom Tromey <tom@tromey.com>
11722
11723 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11724 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11725 Move.
11726 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11727 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11728 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11729 abbrev.c.
11730 * dwarf2/abbrev.h: New file.
11731 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11732 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11733
11734 2020-02-08 Tom Tromey <tom@tromey.com>
11735
11736 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11737 (dwarf2_section_size, dwarf2_get_section_info)
11738 (create_signatured_type_table_from_debug_names)
11739 (create_addrmap_from_aranges, read_debug_names_from_section)
11740 (get_gdb_index_contents_from_section, read_comp_unit_head)
11741 (error_check_comp_unit_head, read_abbrev_offset)
11742 (create_debug_type_hash_table, init_cu_die_reader)
11743 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11744 (read_comp_units_from_section, create_cus_hash_table)
11745 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11746 (create_dwp_v2_section, dwarf2_rnglists_process)
11747 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11748 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11749 (read_indirect_string_from_dwz, read_addr_index_1)
11750 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11751 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11752 (fill_in_loclist_baton): Update.
11753 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11754 get_containing_section, get_bfd_owner, get_bfd_section,
11755 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11756 (dwarf2_read_section, get_section_name, get_section_file_name)
11757 (get_containing_section, get_section_bfd_owner)
11758 (get_section_bfd_section, get_section_name, get_section_file_name)
11759 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11760 declare.
11761 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11762 (dwarf2_section_info::get_bfd_owner)
11763 (dwarf2_section_info::get_bfd_section)
11764 (dwarf2_section_info::get_name)
11765 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11766 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11767 (dwarf2_section_info::read): Now methods.
11768 * dwarf-index-write.c (class debug_names): Update.
11769
11770 2020-02-08 Tom Tromey <tom@tromey.com>
11771
11772 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11773 Move to dwarf2/section.h.
11774 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11775 (get_section_bfd_section, get_section_name)
11776 (get_section_file_name, get_section_id, get_section_flags)
11777 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11778 dwarf2/section.c.
11779 * dwarf2/section.h: New file.
11780 * dwarf2/section.c: New file, from dwarf2read.c.
11781 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11782
11783 2020-02-08 Tom Tromey <tom@tromey.com>
11784
11785 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11786 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11787 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11788 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11789 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11790 * dwarf2/leb.h: New file, from dwarf2read.c.
11791 * dwarf2/leb.c: New file, from dwarf2read.c.
11792 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11793 Remove.
11794 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11795 (COMMON_SFILES): Add dwarf2/leb.c.
11796
11797 2020-02-08 Joel Brobecker <brobecker@adacore.com>
11798
11799 GDB 9.1 released.
11800
11801 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11802
11803 PR gdb/25190:
11804 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11805 * gdb/remote.c (remote_console_output): Update.
11806 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11807 (ui_file_puts): ...this.
11808 * gdb/ui-file.h (ui_file_puts): Add declaration.
11809 * gdb/utils.c (emit_style_escape): Update.
11810 (flush_wrap_buffer): Update.
11811 (fputs_maybe_filtered): Update.
11812 (fputs_unfiltered): Add function.
11813
11814 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11815
11816 * gdb/event-loop.c (gdb_wait_for_event): Update.
11817 * gdb/printcmd.c (printf_command): Update.
11818 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11819 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11820 (gdb_os_flush_stderr): Update.
11821 * gdb/remote.c (remote_console_output): Update.
11822 * gdb/ui-file.c (gdb_flush): Rename to...
11823 (ui_file_flush): ...this.
11824 (stderr_file::write): Update.
11825 (stderr_file::puts): Update.
11826 * gdb/ui-file.h (gdb_flush): Rename to...
11827 (ui_file_flush): ...this.
11828 * gdb/utils.c (gdb_flush): Add function.
11829 * gdb/utils.h (gdb_flush): Add declaration.
11830
11831 2020-02-07 Tom Tromey <tromey@adacore.com>
11832
11833 PR breakpoints/24915:
11834 * source.c (find_and_open_source): Do not check basenames_may_differ.
11835
11836 2020-02-07 Tom Tromey <tom@tromey.com>
11837
11838 * README: Update gdbserver documentation.
11839 * gdbserver: Move to top level.
11840 * configure.tgt (build_gdbserver): Remove.
11841 * configure.ac: Remove --enable-gdbserver.
11842 * configure: Rebuild.
11843 * Makefile.in (distclean): Don't mention gdbserver.
11844
11845 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11846
11847 * source-cache.c (source_cache::ensure): Surround
11848 get_plain_source_lines with a try/catch.
11849 (source_cache::get_line_charpos): Get rid of try/catch
11850 and only check for the return value of "ensure".
11851 * tui/tui-source.c (tui_source_window::set_contents):
11852 Simplify "nlines" calculation.
11853
11854 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11855
11856 * MAINTAINERS (Write After Approval): Add myself.
11857
11858 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11859
11860 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11861 function call.
11862
11863 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11864
11865 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11866
11867 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
11868
11869 * nat/riscv-linux-tdesc.h: New file.
11870 * nat/riscv-linux-tdesc.c: New file, taking code from...
11871 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11872 ... here.
11873 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11874 NATDEPFILES.
11875
11876 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11877
11878 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11879 we don't set the fake simulator ptid to the null_ptid.
11880
11881 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
11882
11883 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11884 * gdbthread.h (class thread_info) <resumed>: Likewise.
11885 * infrun.c (resume_1): Likewise.
11886 (proceed): Likewise.
11887 (infrun_thread_stop_requested): Likewise.
11888 (stop_all_threads): Likewise.
11889 (handle_inferior_event): Likewise.
11890 (restart_threads): Likewise.
11891 (finish_step_over): Likewise.
11892 (keep_going_stepped_thread): Likewise.
11893 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11894 (linux_handle_extended_wait): Likewise.
11895 * record-btrace.c (get_thread_current_frame_id): Likewise.
11896 * record-full.c (record_full_wait_1): Likewise.
11897 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11898 * target.c (target_resume): Likewise.
11899 * thread.c (set_running_thread): Likewise.
11900
11901 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11902
11903 * f-valprint.c (f77_print_array_1): Changed datatype of index
11904 variable to LONGEST from int to enable it to contain bound
11905 values correctly.
11906
11907 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
11908
11909 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11910 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11911 offsets according to FLEN determined.
11912 (riscv_linux_nat_target::read_description): Determine FLEN
11913 dynamically.
11914 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11915 according to FLEN determined.
11916 (riscv_linux_nat_target::store_registers): Likewise.
11917
11918 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11919
11920 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11921 when reg->group is empty and reggroup is not.
11922
11923 2020-01-31 Tom Tromey <tromey@adacore.com>
11924
11925 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11926 Call beneath target's mourn_inferior after unpushing.
11927
11928 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11929
11930 PR tui/9765
11931 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11932 have enough lines to fill the screen, still return the lowest
11933 address we found.
11934
11935 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11936
11937 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11938 '-', '<', and '>' commands.
11939
11940 2020-01-29 Pedro Alves <palves@redhat.com>
11941 Sergio Durigan Junior <sergiodj@redhat.com>
11942
11943 * infcmd.c (construct_inferior_arguments): Assert that
11944 'argc' is greater than 0.
11945
11946 2020-01-29 Luis Machado <luis.machado@linaro.org>
11947
11948 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11949 (BRK_INSN_MASK): Define to 0xd4200000.
11950 (aarch64_program_breakpoint_here_p): New function.
11951 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11952 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11953 breakpoint.c.
11954 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11955 breakpoint.h
11956 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11957 call gdbarch_program_breakpoint_here_p.
11958 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11959 default_program_breakpoint_here_p, changed return type to bool and
11960 simplified.
11961 * breakpoint.h (program_breakpoint_here): Moved prototype to
11962 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11963 return type to bool.
11964 * gdbarch.c: Regenerate.
11965 * gdbarch.h: Regenerate.
11966 * gdbarch.sh (program_breakpoint_here_p): New method.
11967 * infrun.c (handle_signal_stop): Call
11968 gdbarch_program_breakpoint_here_p.
11969
11970 2020-01-26 Tom Tromey <tom@tromey.com>
11971
11972 * ctfread.c (struct ctf_fp_info): Reindent.
11973 (_initialize_ctfread): Remove.
11974
11975 2020-01-26 Tom Tromey <tom@tromey.com>
11976
11977 * psymtab.c (partial_map_expand_apply)
11978 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11979 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11980 (psym_print_stats, psym_expand_symtabs_for_function)
11981 (psym_map_symbol_filenames, psym_map_matching_symbols)
11982 (psym_expand_symtabs_matching)
11983 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11984 (maintenance_check_psymtabs): Use new methods.
11985 * psympriv.h (struct partial_symtab) <readin_p,
11986 get_compunit_symtab>: New methods.
11987 <readin, compunit_symtab>: Remove members.
11988 (struct standard_psymtab): New.
11989 (struct legacy_psymtab): Derive from standard_psymtab.
11990 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11991 standard_psymtab.
11992 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11993
11994 2020-01-26 Tom Tromey <tom@tromey.com>
11995
11996 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11997 read_dependencies. Add assert.
11998 * psymtab.c (partial_symtab::read_dependencies): New method.
11999 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12000 method.
12001 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12002 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12003 read_dependencies.
12004 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12005 Add assert.
12006
12007 2020-01-26 Tom Tromey <tom@tromey.com>
12008
12009 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12010 Call expand_psymtab.
12011 (xcoff_read_symtab): Call expand_psymtab.
12012 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12013 legacy_expand_psymtab.
12014 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12015 method.
12016 (struct legacy_psymtab) <expand_psymtab>: Implement.
12017 <legacy_expand_psymtab>: New member.
12018 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12019 (parse_partial_symbols): Set legacy_expand_psymtab.
12020 (psymtab_to_symtab_1): Change argument order. Call
12021 expand_psymtab.
12022 (new_psymtab): Set legacy_expand_psymtab.
12023 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12024 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12025 expand_psymtab.
12026 (dwarf2_psymtab::expand_psymtab): Rename from
12027 psymtab_to_symtab_1. Call expand_psymtab.
12028 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12029 (dbx_end_psymtab): Likewise.
12030 (dbx_psymtab_to_symtab_1): Change argument order. Call
12031 expand_psymtab.
12032 (dbx_read_symtab): Call expand_psymtab.
12033 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12034 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12035 (ctf_psymtab::read_symtab): Call expand_psymtab.
12036
12037 2020-01-26 Tom Tromey <tom@tromey.com>
12038
12039 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12040 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12041 messages.
12042 * mdebugread.c (mdebug_read_symtab): Remove prints.
12043 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12044 assert.
12045 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12046
12047 2020-01-26 Tom Tromey <tom@tromey.com>
12048
12049 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12050 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12051 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12052 legacy_symtab.
12053 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12054 * psymtab.c (psymtab_to_symtab): Call method.
12055 (dump_psymtab): Update.
12056 * psympriv.h (struct partial_symtab): Add virtual destructor.
12057 <read_symtab>: New method.
12058 (struct legacy_symtab): New.
12059 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12060 (struct pst_map) <pst>: Now a legacy_psymtab.
12061 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12062 (new_psymtab): Use legacy_psymtab.
12063 * dwarf2read.h (struct dwarf2_psymtab): New.
12064 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12065 * dwarf2read.c (dwarf2_create_include_psymtab)
12066 (dwarf2_build_include_psymtabs, create_type_unit_group)
12067 (create_partial_symtab, process_psymtab_comp_unit_reader)
12068 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12069 (set_partial_user): Use dwarf2_psymtab.
12070 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12071 (psymtab_to_symtab_1, process_full_comp_unit)
12072 (process_full_type_unit, dwarf2_ranges_read)
12073 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12074 (dwarf_decode_lines): Use dwarf2_psymtab.
12075 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12076 (add_address_entry_worker, write_one_signatured_type)
12077 (recursively_count_psymbols, recursively_write_psymbols)
12078 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12079 (write_debug_names): Likewise.
12080 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12081 <pst>: Now a legacy_psymtab.
12082 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12083 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12084 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12085 * ctfread.c (struct ctf_psymtab): New.
12086 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12087 ctf_psymtab.
12088 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12089 (create_partial_symtab): Return a ctf_psymtab.
12090 (scan_partial_symbols): Update.
12091
12092 2020-01-26 Tom Tromey <tom@tromey.com>
12093
12094 * xcoffread.c (xcoff_start_psymtab): Use new.
12095 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12096 renamed from start_psymtab_common.
12097 * psympriv.h (struct partial_symtab): Add new constructor.
12098 (start_psymtab_common): Don't declare.
12099 * mdebugread.c (parse_partial_symbols): Use new.
12100 * dwarf2read.c (create_partial_symtab): Use new.
12101 * dbxread.c (start_psymtab): Use new.
12102 * ctfread.c (create_partial_symtab): Use new.
12103
12104 2020-01-26 Tom Tromey <tom@tromey.com>
12105
12106 * xcoffread.c (xcoff_end_psymtab): Use new.
12107 * psymtab.c (start_psymtab_common): Use new.
12108 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12109 Update.
12110 * psympriv.h (struct partial_symtab): Add parameters to
12111 constructor. Don't inline.
12112 (allocate_psymtab): Don't declare.
12113 * mdebugread.c (new_psymtab): Use new.
12114 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12115 * dbxread.c (dbx_end_psymtab): Use new.
12116
12117 2020-01-26 Tom Tromey <tom@tromey.com>
12118
12119 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12120 allocate_psymtab. Update documentation.
12121 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12122 allocate_psymtab. Do not use new.
12123 (allocate_psymtab): Use new. Update.
12124
12125 2020-01-26 Tom Tromey <tom@tromey.com>
12126
12127 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12128 * psymtab.c (psym_print_stats): Update.
12129 * psympriv.h (struct partial_symtab) <readin,
12130 psymtabs_addrmap_supported, anonymous>: Now bool.
12131 * mdebugread.c (psymtab_to_symtab_1): Update.
12132 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12133 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12134 (process_full_comp_unit, process_full_type_unit): Update.
12135 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12136 * ctfread.c (psymtab_to_symtab): Update.
12137
12138 2020-01-26 Tom Tromey <tom@tromey.com>
12139
12140 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12141 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12142 * psymtab.c (psymtab_storage): Delete psymtabs.
12143 (psymtab_storage::allocate_psymtab): Use new.
12144 (psymtab_storage::discard_psymtab): Use delete.
12145 * psympriv.h (struct partial_symtab): Add constructor and
12146 initializers.
12147
12148 2020-01-26 Tom Tromey <tom@tromey.com>
12149
12150 * machoread.c: Do not include psympriv.h.
12151
12152 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12153
12154 * NEWS: Mention the new option and the set/show commands.
12155
12156 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12157
12158 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12159 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12160 (validate_exec_file): New variables, enums, functions.
12161 (exec_file_locate_attach, print_section_info): Style the filenames.
12162 (_initialize_exec): Install show_exec_file_mismatch_command and
12163 set_exec_file_mismatch_command.
12164 * gdbcore.h (validate_exec_file): Declare.
12165 * infcmd.c (attach_command): Call validate_exec_file.
12166 * remote.c ( remote_target::remote_add_inferior): Likewise.
12167
12168 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12169
12170 * frame.c (find_frame_sal): Move call to get_next_frame into more
12171 inner scope.
12172 * inline-frame.c (inilne_state) <inline_state>: Update argument
12173 types.
12174 (inilne_state) <skipped_symbol>: Rename to...
12175 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12176 (skip_inline_frames): Build vector of skipped symbols and use this
12177 to reate the inline_state.
12178 (inline_skipped_symbol): Add a comment and some assertions, fetch
12179 skipped symbol from the list.
12180
12181 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12182
12183 * buildsym.c (lte_is_less_than): Delete.
12184 (buildsym_compunit::end_symtab_with_blockvector): Create local
12185 lambda function to sort line table entries, and use
12186 std::stable_sort instead of std::sort.
12187 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12188 markers when looking for a previous line.
12189
12190 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12191
12192 * dwarf2read.c (lnp_state_machine::record_line): Include
12193 end_sequence parameter in debug print out. Record the line if we
12194 are at an end_sequence marker even if it's not the start of a
12195 statement.
12196 * symmisc.c (maintenance_print_one_line_table): Print end of
12197 sequence markers with 'END' not '0'.
12198
12199 2020-01-24 Pedro Alves <palves@redhat.com>
12200
12201 PR gdb/25410
12202 * thread.c (scoped_restore_current_thread::restore): Use
12203 switch_to_inferior_no_thread.
12204 * exec.c: Include "progspace-and-thread.h".
12205 (add_target_sections, remove_target_sections):
12206 scoped_restore_current_pspace_and_thread instead of
12207 scoped_restore_current_thread.
12208 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12209 and aspace to the inferior before calling clone_program_space.
12210 Remove stale comment.
12211
12212 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12213
12214 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12215 (arm_netbsd_nat_target::fetch_registers): ...this.
12216 (arm_nbsd_nat_target::store_registers): Rename to...
12217 (arm_netbsd_nat_target::store_registers): ...this.
12218
12219 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12220
12221 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12222 register_t.
12223
12224 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12225
12226 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12227 Update comment.
12228 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12229 Likewise.
12230 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12231 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12232 the correct replacement (iterate_over_regset_sections).
12233 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12234 Update comment.
12235
12236 2020-01-24 Graham Markall <graham.markall@embecosm.com>
12237
12238 PR gdb/23718
12239 * gdb/python/python.c (execute_gdb_command): Call
12240 async_enable_stdin in catch block.
12241
12242 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12243
12244 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12245 SWITCH_THRU_ALL_UIS.
12246
12247 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12248
12249 PR tui/9765
12250 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12251 comment, add extra parameter, and update to store previous symbol
12252 when appropriate.
12253 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12254 add extra parameter.
12255 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12256 remove unneeded parameter, add try/catch around gdb_print_insn,
12257 rewrite to add items to asm_lines vector.
12258 (tui_find_backward_disassembly_start_address): New function.
12259 (tui_find_disassembly_address): Updated throughout.
12260 (tui_disasm_window::set_contents): Update for changes to
12261 tui_disassemble.
12262 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12263 number of lines to scroll.
12264
12265 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12266
12267 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12268 (SECT_OFF_DATA): Likewise.
12269 (SECT_OFF_RODATA): Likewise.
12270 (SECT_OFF_TEXT): Likewise.
12271 (SECT_OFF_BSS): Likewise.
12272 (struct objfile) <text_section_offset, data_section_offset>: New
12273 methods.
12274 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12275 objfile::text_section_offset.
12276 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12277 * coffread.c (coff_symtab_read): Likewise.
12278 (enter_linenos): Likewise.
12279 (process_coff_symbol): Likewise.
12280 * ctfread.c (get_objfile_text_range): Likewise.
12281 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12282 Use objfile::data_section_offset.
12283 * dwarf2-frame.c (execute_cfa_program): Use
12284 objfile::text_section_offset.
12285 (dwarf2_frame_find_fde): Likewise.
12286 * dwarf2read.c (create_addrmap_from_index): Likewise.
12287 (create_addrmap_from_aranges): Likewise.
12288 (dw2_find_pc_sect_compunit_symtab): Likewise.
12289 (process_psymtab_comp_unit_reader): Likewise.
12290 (add_partial_symbol): Likewise.
12291 (add_partial_subprogram): Likewise.
12292 (process_full_comp_unit): Likewise.
12293 (read_file_scope): Likewise.
12294 (read_func_scope): Likewise.
12295 (read_lexical_block_scope): Likewise.
12296 (read_call_site_scope): Likewise.
12297 (dwarf2_rnglists_process): Likewise.
12298 (dwarf2_ranges_process): Likewise.
12299 (dwarf2_ranges_read): Likewise.
12300 (dwarf_decode_lines_1): Likewise.
12301 (new_symbol): Likewise.
12302 (dwarf2_fetch_die_loc_sect_off): Likewise.
12303 (dwarf2_per_cu_text_offset): Likewise.
12304 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12305 * hppa-tdep.c (read_unwind_info): Likewise.
12306 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12307 * psympriv.h (struct partial_symtab): Likewise.
12308 * psymtab.c (find_pc_sect_psymtab): Likewise.
12309 * solib-svr4.c (enable_break): Likewise.
12310 * stap-probe.c (relocate_address): Use
12311 objfile::data_section_offset.
12312 * xcoffread.c (enter_line_range): Use
12313 objfile::text_section_offset.
12314 (read_xcoff_symtab): Likewise.
12315
12316 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12317
12318 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12319 declaration to narrower scopes.
12320
12321 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12322
12323 * darwin-nat.h (struct darwin_exception_msg, enum
12324 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12325 Move up.
12326 (class darwin_nat_target) <wait_1, check_new_threads,
12327 decode_exception_message, decode_message, stop_inferior,
12328 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12329 * darwin-nat.c (darwin_check_new_threads): Rename to...
12330 (darwin_nat_target::check_new_threads): ... this.
12331 (darwin_suspend_inferior_it): Remove.
12332 (darwin_decode_exception_message): Rename to...
12333 (darwin_nat_target::decode_exception_message): ... this.
12334 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12335 (darwin_decode_message): Rename to...
12336 (darwin_nat_target::decode_message): ... this.
12337 (cancel_breakpoint): Rename to...
12338 (darwin_nat_target::cancel_breakpoint): ... this.
12339 (darwin_wait): Rename to...
12340 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12341 instead of iterate_over_inferiors.
12342 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12343 (darwin_stop_inferior): Rename to...
12344 (darwin_nat_target::stop_inferior): ... this.
12345 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12346 (darwin_init_thread_list): Rename to...
12347 (darwin_nat_target::init_thread_list): ... this.
12348 (darwin_ptrace_him): Rename to...
12349 (darwin_nat_target::ptrace_him): ... this.
12350 (darwin_nat_target::create_inferior): Pass lambda function to
12351 fork_inferior.
12352 (darwin_nat_target::detach): Call stop_inferior instead of
12353 darwin_stop_inferior.
12354 * fork-inferior.h (fork_inferior): Change init_trace_fun
12355 parameter to gdb::function_view.
12356 * fork-inferior.c (fork_inferior): Likewise.
12357
12358 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
12359
12360 * i386-cygwin-tdep.c (core_process_module_section): Update.
12361 * windows-nat.c (struct lm_info_windows): Add text_offset.
12362 (windows_xfer_shared_libraries): Update.
12363 * windows-tdep.c (windows_xfer_shared_library):
12364 Add text_offset_cached argument.
12365 * windows-tdep.h (windows_xfer_shared_library): Update.
12366
12367 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12368
12369 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12370
12371 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12372
12373 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12374 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12375 replace with range-based for.
12376 (gdbsim_interrupt_inferior): Remove.
12377 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12378 with a range-based for. Inline code from
12379 gdbsim_interrupt_inferior.
12380
12381 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12382
12383 * infrun.c (proceed): Fix indentation.
12384
12385 2020-01-21 Tom Tromey <tromey@adacore.com>
12386
12387 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12388 * python/python.c (python_extension_ops): Update.
12389 (gdbpy_colorize): New function.
12390 * python/lib/gdb/__init__.py (colorize): New function.
12391 * extension.h (ext_lang_colorize): Declare.
12392 * extension.c (ext_lang_colorize): New function.
12393 * extension-priv.h (struct extension_language_ops) <colorize>: New
12394 member.
12395 * cli/cli-style.c (_initialize_cli_style): Update help text.
12396
12397 2020-01-21 Luis Machado <luis.machado@linaro.org>
12398
12399 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12400 <cond>: Change type to bool.
12401 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12402 (aarch64_displaced_step_cb): Likewise.
12403 (aarch64_displaced_step_tb): Likewise.
12404
12405 2020-01-21 Luis Machado <luis.machado@linaro.org>
12406
12407 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12408 output.
12409
12410 2020-01-21 Luis Machado <luis.machado@linaro.org>
12411
12412 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12413 <pc_adjust>: Adjust the documentation.
12414 (aarch64_displaced_step_fixup): Check if PC really moved before
12415 adjusting it.
12416
12417 2020-01-19 Tom Tromey <tom@tromey.com>
12418
12419 * disasm.c (~gdb_disassembler): New destructor.
12420 (gdb_buffered_insn_length): Call disassemble_free_target.
12421 * disasm.h (class gdb_disassembler): Declare destructor. Use
12422 DISABLE_COPY_AND_ASSIGN.
12423
12424 2020-01-19 Tom Tromey <tom@tromey.com>
12425
12426 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12427 (die_reader_func_ftype): Remove.
12428 (cutu_reader): New class.
12429 (dw2_get_file_names_reader): Remove "data" parameter.
12430 (dw2_get_file_names): Use cutu_reader.
12431 (create_debug_type_hash_table): Update.
12432 (read_cutu_die_from_dwo): Update comment.
12433 (lookup_dwo_unit): Add dwo_name parameter.
12434 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12435 die_reader_func_ftype and data parameters.
12436 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12437 Remove die_reader_func_ftype and data parameters.
12438 (~cutu_reader): New; from init_cutu_and_read_dies.
12439 (cutu_reader::cutu_reader): Rename from
12440 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12441 and data parameters.
12442 (init_cutu_and_read_dies_simple): Remove.
12443 (struct process_psymtab_comp_unit_data): Remove.
12444 (process_psymtab_comp_unit_reader): Remove data parameter; add
12445 want_partial_unit and pretend_language parameters.
12446 (process_psymtab_comp_unit): Use cutu_reader.
12447 (build_type_psymtabs_reader): Remove data parameter.
12448 (build_type_psymtabs_1): Use cutu_reader.
12449 (process_skeletonless_type_unit): Likewise.
12450 (load_partial_comp_unit_reader): Remove.
12451 (load_partial_comp_unit): Use cutu_reader.
12452 (load_full_comp_unit_reader): Remove.
12453 (load_full_comp_unit): Use cutu_reader.
12454 (struct create_dwo_cu_data): Remove.
12455 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12456 dwo_unit parameters.
12457 (create_cus_hash_table): Use cutu_reader.
12458 (struct dwarf2_read_addr_index_data): Remove.
12459 (dwarf2_read_addr_index_reader): Remove.
12460 (dwarf2_read_addr_index): Use cutu_reader.
12461 (read_signatured_type_reader): Remove.
12462 (read_signatured_type): Use cutu_reader.
12463
12464 2020-01-19 Tom Tromey <tom@tromey.com>
12465
12466 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12467 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12468 (tui_wrefresh): Declare.
12469 * tui/tui-wingeneral.c (suppress_output): New global.
12470 (tui_suppress_output, ~tui_suppress_output): New constructor and
12471 destructor.
12472 (tui_wrefresh): New function.
12473 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12474 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12475 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12476 method.
12477 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12478 tui_wrefresh.
12479 (tui_data_window::no_refresh): New method.
12480 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12481 (tui_reg_command): Use tui_suppress_output
12482 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12483 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12484 method.
12485 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12486
12487 2020-01-19 Tom Tromey <tom@tromey.com>
12488
12489 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12490 Handle case where symtab is null.
12491
12492 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12493
12494 * linux-fork.c (one_fork_p): Simplify.
12495
12496 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12497
12498 * top.c (struct qt_args): Remove.
12499 (kill_or_detach): Change return type to void, replace `void *`
12500 parameter with a proper one.
12501 (print_inferior_quit_action): Likewise.
12502 (quit_confirm): Use range-based for loop to iterate over inferiors.
12503 (quit_force): Likewise.
12504
12505 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12506
12507 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12508 `void *` parameter with proper parameters.
12509 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12510 (print_one_inferior): Change return type to void, replace `void *`
12511 parameter with proper parameters.
12512 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12513 inferiors.
12514 (get_other_inferior): Remove.
12515 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12516 inferiors.
12517
12518 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12519
12520 * mi/mi-interp.c (report_initial_inferior): Remove.
12521 (mi_interp::init): Use range-based for to iterate over inferiors.
12522
12523 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12524
12525 * python/py-inferior.c (build_inferior_list): Remove.
12526 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12527
12528 2020-01-16 Christian Biesinger <cbiesinger@google.com>
12529
12530 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12531 (btrace_stitch_trace): Likewise.
12532 * charset.c (intermediate_encoding): Likewise (vaild).
12533 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12534 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12535 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12536
12537 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
12538
12539 * windows-tdep.c (windows_get_tlb_type):
12540 Add rtl_user_process_parameters type.
12541
12542 2020-01-16 Pedro Alves <palves@redhat.com>
12543 Norbert Lange <nolange79@gmail.com>
12544
12545 PR build/24805
12546 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12547 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12548 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12549 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12550 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12551 (ps_plog): Redeclare exported functions with default visibility.
12552
12553 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12554
12555 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12556 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12557
12558 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
12559
12560 * infcmd.c (post_create_inferior): Use get_thread_regcache
12561 instead of get_current_regcache.
12562
12563 2020-01-14 Tom Tromey <tom@tromey.com>
12564
12565 PR symtab/12535:
12566 * python/python.c (gdbpy_decode_line): Treat empty string the same
12567 as no argument.
12568
12569 2020-01-14 Tom Tromey <tom@tromey.com>
12570
12571 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12572
12573 2020-01-14 Tom Tromey <tom@tromey.com>
12574
12575 * nat/linux-btrace.c: Don't include <config.h>.
12576 * nat/linux-ptrace.c: Don't include <config.h>.
12577 * nat/x86-linux-dregs.c: Don't include <config.h>.
12578
12579 2020-01-14 Tom Tromey <tom@tromey.com>
12580
12581 * configure: Rebuild.
12582 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12583
12584 2020-01-14 Tom Tromey <tom@tromey.com>
12585
12586 * nat/x86-linux-dregs.c: Include configh.h.
12587 * nat/linux-ptrace.c: Include configh.h.
12588 * nat/linux-btrace.c: Include configh.h.
12589 * defs.h: Include config.h, bfd.h.
12590 * configure.ac: Don't source common.host.
12591 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12592 * configure: Rebuild.
12593 * acinclude.m4: Update path.
12594 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12595 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12596 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12597 (CLIBS): Add LIBSUPPORT.
12598 (CDEPS): Likewise.
12599 (COMMON_SFILES): Remove gdbsupport files.
12600 (HFILES_NO_SRCDIR): Likewise.
12601 (stamp-version): Update path to create-version.sh.
12602 (ALLDEPFILES): Remove gdbsupport files.
12603
12604 2020-01-14 Tom Tromey <tom@tromey.com>
12605
12606 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12607 USE_WIN32API when needed.
12608 * configure.ac (USE_WIN32API): Don't define.
12609 (WIN32LIBS): Use WIN32APILIBS.
12610 * configure: Rebuild.
12611
12612 2020-01-14 Tom Tromey <tom@tromey.com>
12613
12614 * configure: Rebuild.
12615 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12616
12617 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12618
12619 * skip.c (skip_function_command): Make skip w/o arguments use the
12620 name of the inlined function if pc is inside any inlined function.
12621
12622 2020-01-14 Luis Machado <luis.machado@linaro.org>
12623
12624 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12625 * infrun.c (resume_1): Likewise.
12626 (handle_inferior_event): Remove stale comment.
12627 * linux-nat.c (linux_nat_target::resume): Update comments.
12628 (save_stop_reason): Likewise.
12629 (linux_nat_filter_event): Likewise.
12630 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12631
12632 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12633
12634 * elfread.c (record_minimal_symbol): Set section index to 0 for
12635 non-allocatable sections.
12636
12637
12638 2020-01-13 Ali Tamur <tamur@google.com>
12639
12640 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12641 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12642 to gdb::optional. Update comments.
12643 (dwo_file): Update comments.
12644 (read_attribute): Update API to take an additional out parameter,
12645 need_reprocess. This is used to mark attributes that need other
12646 attributes (e.g. str_offsets_base) for correct computation which may not
12647 have been read yet.
12648 (read_attribute_reprocess): New function declaration.
12649 (read_addr_index): Likewise.
12650 (read_dwo_str_index): Likewise.
12651 (read_stub_str_index): Likewise.
12652 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12653 (lookup_addr_base): New function definition.
12654 (lookup_ranges_base): Likewise.
12655 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12656 lookup_ranges_base.
12657 (init_cutu_and_read_dies): Update comments.
12658 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12659 unit. This is used to inherit parent's str_offsets_base and addr_base.
12660 Update comments.
12661 (init_cutu_and_read_dies_simple): Reflect API changes.
12662 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12663 (create_cus_hash_table): Change API to take parent compile unit.
12664 Reflect API changes.
12665 (open_and_init_dwo_file): Reflect API changes.
12666 (dwarf2_get_pc_bounds): Update comments.
12667 (dwarf2_record_block_ranges): Likewise.
12668 (read_full_die_1): Change implementation to reprocess attributes that
12669 need str_offsets_base and addr_base.
12670 (partial_die_info::read): Likewise.
12671 (read_attribute_reprocess): New function definition.
12672 (read_attribute_value): Change API to take an additional out parameter,
12673 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12674 when a non-dwo compile unit has index based attributes.
12675 (read_attribute): Reflect API changes.
12676 (read_addr_index_1): Reflect API changes. Update comments.
12677 (dwarf2_read_addr_index_data): Reflect API changes.
12678 (dwarf2_read_addr_index): Likewise.
12679 (read_str_index): Change API and implementation. This becomes a helper
12680 to be used by the new string index related methods. Update error
12681 message and comments.
12682 (read_dwo_str_index): New function definition.
12683 (read_stub_str_index): Likewise.
12684 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12685 * symfile.h (dwarf2_debug_sections): Likewise.
12686 * xcoffread.c (dwarf2_debug_sections): Likewise.
12687
12688 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12689
12690 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12691 core_reg_sect type to gdb_byte *.
12692 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12693 * cris-tdep.c (fetch_core_registers): Likewise.
12694 * corelow.c (core_target::get_core_register_section): Change
12695 type of `contents` to gdb::byte_vector.
12696
12697 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12698
12699 * tui/tui-wingeneral.c (box_win): Position the title in the center
12700 of the border.
12701
12702 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12703
12704 * corelow.c (core_target::get_core_register_section): Use
12705 std::vector instead of alloca.
12706
12707 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12708
12709 * warning.m4: Add -Wmissing-declarations to build_warnings.
12710 * configure: Re-generate.
12711
12712 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12713
12714 * python/python.c (init__gdb_module): Add declaration.
12715
12716 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12717
12718 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12719 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12720 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12721 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12722 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12723 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12724 * ada-exp.y (_initialize_ada_exp): Add declaration.
12725 * ada-lang.c (_initialize_ada_language): Add declaration.
12726 * ada-tasks.c (_initialize_tasks): Add declaration.
12727 * agent.c (_initialize_agent): Add declaration.
12728 * aix-thread.c (_initialize_aix_thread): Add declaration.
12729 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12730 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12731 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12732 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12733 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12734 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12735 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12736 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12737 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12738 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12739 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12740 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12741 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12742 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12743 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12744 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12745 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12746 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12747 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12748 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12749 * annotate.c (_initialize_annotate): Add declaration.
12750 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12751 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12752 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12753 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12754 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12755 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12756 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12757 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12758 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12759 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12760 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12761 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12762 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12763 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12764 * auto-load.c (_initialize_auto_load): Add declaration.
12765 * auxv.c (_initialize_auxv): Add declaration.
12766 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12767 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12768 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12769 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12770 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12771 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12772 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12773 * breakpoint.c (_initialize_breakpoint): Add declaration.
12774 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12775 * btrace.c (_initialize_btrace): Add declaration.
12776 * charset.c (_initialize_charset): Add declaration.
12777 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12778 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12779 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12780 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12781 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12782 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12783 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12784 * coffread.c (_initialize_coffread): Add declaration.
12785 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12786 * compile/compile.c (_initialize_compile): Add declaration.
12787 * complaints.c (_initialize_complaints): Add declaration.
12788 * completer.c (_initialize_completer): Add declaration.
12789 * copying.c (_initialize_copying): Add declaration.
12790 * corefile.c (_initialize_core): Add declaration.
12791 * corelow.c (_initialize_corelow): Add declaration.
12792 * cp-abi.c (_initialize_cp_abi): Add declaration.
12793 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12794 * cp-support.c (_initialize_cp_support): Add declaration.
12795 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12796 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12797 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12798 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12799 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12800 * ctfread.c (_initialize_ctfread): Add declaration.
12801 * d-lang.c (_initialize_d_language): Add declaration.
12802 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12803 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12804 * dbxread.c (_initialize_dbxread): Add declaration.
12805 * dcache.c (_initialize_dcache): Add declaration.
12806 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12807 * disasm.c (_initialize_disasm): Add declaration.
12808 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12809 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12810 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12811 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12812 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12813 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12814 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12815 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12816 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12817 * elfread.c (_initialize_elfread): Add declaration.
12818 * exec.c (_initialize_exec): Add declaration.
12819 * extension.c (_initialize_extension): Add declaration.
12820 * f-lang.c (_initialize_f_language): Add declaration.
12821 * f-valprint.c (_initialize_f_valprint): Add declaration.
12822 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12823 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12824 * filesystem.c (_initialize_filesystem): Add declaration.
12825 * findcmd.c (_initialize_mem_search): Add declaration.
12826 * findvar.c (_initialize_findvar): Add declaration.
12827 * fork-child.c (_initialize_fork_child): Add declaration.
12828 * frame-base.c (_initialize_frame_base): Add declaration.
12829 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12830 * frame.c (_initialize_frame): Add declaration.
12831 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12832 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12833 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12834 * gcore.c (_initialize_gcore): Add declaration.
12835 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12836 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12837 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12838 * gdbarch.c (_initialize_gdbarch): Add declaration.
12839 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12840 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12841 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12842 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12843 * go-lang.c (_initialize_go_language): Add declaration.
12844 * go32-nat.c (_initialize_go32_nat): Add declaration.
12845 * guile/guile.c (_initialize_guile): Add declaration.
12846 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12847 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12848 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12849 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12850 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12851 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12852 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12853 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12854 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12855 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12856 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12857 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12858 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12859 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12860 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12861 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12862 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12863 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12864 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12865 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12866 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12867 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12868 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12869 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12870 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12871 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12872 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12873 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12874 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12875 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12876 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12877 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12878 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12879 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12880 * infcall.c (_initialize_infcall): Add declaration.
12881 * infcmd.c (_initialize_infcmd): Add declaration.
12882 * inflow.c (_initialize_inflow): Add declaration.
12883 * infrun.c (_initialize_infrun): Add declaration.
12884 * interps.c (_initialize_interpreter): Add declaration.
12885 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12886 * jit.c (_initialize_jit): Add declaration.
12887 * language.c (_initialize_language): Add declaration.
12888 * linux-fork.c (_initialize_linux_fork): Add declaration.
12889 * linux-nat.c (_initialize_linux_nat): Add declaration.
12890 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12891 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12892 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12893 * m2-lang.c (_initialize_m2_language): Add declaration.
12894 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12895 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12896 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12897 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12898 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12899 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12900 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12901 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12902 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12903 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12904 * machoread.c (_initialize_machoread): Add declaration.
12905 * macrocmd.c (_initialize_macrocmd): Add declaration.
12906 * macroscope.c (_initialize_macroscope): Add declaration.
12907 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12908 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12909 * maint.c (_initialize_maint_cmds): Add declaration.
12910 * mdebugread.c (_initialize_mdebugread): Add declaration.
12911 * memattr.c (_initialize_mem): Add declaration.
12912 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12913 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12914 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12915 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12916 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12917 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12918 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12919 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12920 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12921 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12922 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12923 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12924 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12925 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12926 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12927 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12928 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12929 * mipsread.c (_initialize_mipsread): Add declaration.
12930 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12931 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12932 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12933 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12934 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12935 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12936 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12937 * nto-procfs.c (_initialize_procfs): Add declaration.
12938 * objc-lang.c (_initialize_objc_language): Add declaration.
12939 * observable.c (_initialize_observer): Add declaration.
12940 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12941 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12942 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12943 * osabi.c (_initialize_gdb_osabi): Add declaration.
12944 * osdata.c (_initialize_osdata): Add declaration.
12945 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12946 * parse.c (_initialize_parse): Add declaration.
12947 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12948 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12949 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12950 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12951 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12952 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12953 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12954 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12955 * printcmd.c (_initialize_printcmd): Add declaration.
12956 * probe.c (_initialize_probe): Add declaration.
12957 * proc-api.c (_initialize_proc_api): Add declaration.
12958 * proc-events.c (_initialize_proc_events): Add declaration.
12959 * proc-service.c (_initialize_proc_service): Add declaration.
12960 * procfs.c (_initialize_procfs): Add declaration.
12961 * producer.c (_initialize_producer): Add declaration.
12962 * psymtab.c (_initialize_psymtab): Add declaration.
12963 * python/python.c (_initialize_python): Add declaration.
12964 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12965 * record-btrace.c (_initialize_record_btrace): Add declaration.
12966 * record-full.c (_initialize_record_full): Add declaration.
12967 * record.c (_initialize_record): Add declaration.
12968 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12969 * regcache.c (_initialize_regcache): Add declaration.
12970 * reggroups.c (_initialize_reggroup): Add declaration.
12971 * remote-notif.c (_initialize_notif): Add declaration.
12972 * remote-sim.c (_initialize_remote_sim): Add declaration.
12973 * remote.c (_initialize_remote): Add declaration.
12974 * reverse.c (_initialize_reverse): Add declaration.
12975 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12976 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12977 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12978 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12979 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12980 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12981 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12982 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12983 Add declaration.
12984 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12985 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12986 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12987 * rust-exp.y (_initialize_rust_exp): Add declaration.
12988 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12989 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12990 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12991 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12992 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12993 * score-tdep.c (_initialize_score_tdep): Add declaration.
12994 * ser-go32.c (_initialize_ser_dos): Add declaration.
12995 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12996 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12997 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12998 * ser-uds.c (_initialize_ser_socket): Add declaration.
12999 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13000 * serial.c (_initialize_serial): Add declaration.
13001 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13002 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13003 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13004 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13005 * skip.c (_initialize_step_skip): Add declaration.
13006 * sol-thread.c (_initialize_sol_thread): Add declaration.
13007 * solib-aix.c (_initialize_solib_aix): Add declaration.
13008 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13009 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13010 * solib-frv.c (_initialize_frv_solib): Add declaration.
13011 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13012 * solib-target.c (_initialize_solib_target): Add declaration.
13013 * solib.c (_initialize_solib): Add declaration.
13014 * source-cache.c (_initialize_source_cache): Add declaration.
13015 * source.c (_initialize_source): Add declaration.
13016 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13017 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13018 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13019 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13020 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13021 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13022 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13023 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13024 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13025 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13026 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13027 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13028 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13029 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13030 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13031 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13032 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13033 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13034 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13035 * stabsread.c (_initialize_stabsread): Add declaration.
13036 * stack.c (_initialize_stack): Add declaration.
13037 * stap-probe.c (_initialize_stap_probe): Add declaration.
13038 * std-regs.c (_initialize_frame_reg): Add declaration.
13039 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13040 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13041 * symfile.c (_initialize_symfile): Add declaration.
13042 * symmisc.c (_initialize_symmisc): Add declaration.
13043 * symtab.c (_initialize_symtab): Add declaration.
13044 * target.c (_initialize_target): Add declaration.
13045 * target-connection.c (_initialize_target_connection): Add
13046 declaration.
13047 * target-dcache.c (_initialize_target_dcache): Add declaration.
13048 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13049 * thread.c (_initialize_thread): Add declaration.
13050 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13051 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13052 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13053 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13054 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13055 * tracectf.c (_initialize_ctf): Add declaration.
13056 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13057 * tracefile.c (_initialize_tracefile): Add declaration.
13058 * tracepoint.c (_initialize_tracepoint): Add declaration.
13059 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13060 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13061 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13062 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13063 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13064 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13065 * tui/tui.c (_initialize_tui): Add declaration.
13066 * typeprint.c (_initialize_typeprint): Add declaration.
13067 * ui-style.c (_initialize_ui_style): Add declaration.
13068 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13069 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13070 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13071 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13072 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13073 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13074 * unittests/filtered_iterator-selftests.c
13075 (_initialize_filtered_iterator_selftests): Add declaration.
13076 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13077 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13078 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13079 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13080 * unittests/main-thread-selftests.c
13081 (_initialize_main_thread_selftests): Add declaration.
13082 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13083 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13084 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13085 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13086 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13087 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13088 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13089 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13090 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13091 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13092 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13093 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13094 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13095 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13096 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13097 declaration.
13098 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13099 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13100 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13101 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13102 * user-regs.c (_initialize_user_regs): Add declaration.
13103 * utils.c (_initialize_utils): Add declaration.
13104 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13105 * valops.c (_initialize_valops): Add declaration.
13106 * valprint.c (_initialize_valprint): Add declaration.
13107 * value.c (_initialize_values): Add declaration.
13108 * varobj.c (_initialize_varobj): Add declaration.
13109 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13110 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13111 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13112 * windows-nat.c (_initialize_windows_nat): Add declaration.
13113 (_initialize_check_for_gdb_ini): Add declaration.
13114 (_initialize_loadable): Add declaration.
13115 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13116 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13117 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13118 * xcoffread.c (_initialize_xcoffread): Add declaration.
13119 * xml-support.c (_initialize_xml_support): Add declaration.
13120 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13121 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13122 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13123 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13124
13125 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13126
13127 * regformats/regdat.sh: Generate declaration for init function.
13128
13129 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13130
13131 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13132 up.
13133 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13134 close_one_inferior>: New methods.
13135 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13136 pass down target to find_inferior_pid.
13137 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13138 Pass down target to find_inferior_ptid.
13139 (gdbsim_target::create_inferior): Pass down target to
13140 add_thread_silent.
13141 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13142 target down to find_inferior_ptid and switch_to_thread.
13143 (gdbsim_target::close): Update to call close_one_inferior.
13144 (struct resume_data): Remove.
13145 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13146 directly, rather than through a void pointer.
13147 (gdbsim_target::resume): Update to call resume_one_inferior.
13148
13149 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13150
13151 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13152
13153 2020-01-12 Pedro Alves <palves@redhat.com>
13154
13155 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13156 directly for the current inferior instead of
13157 discard_all_inferiors.
13158 (discard_all_inferiors): Delete.
13159
13160 2020-01-11 Tom Tromey <tom@tromey.com>
13161
13162 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13163 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13164 deprecated_safe_get_selected_frame.
13165
13166 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13167
13168 * inferior.c (print_inferior): Switch inferior before printing it.
13169
13170 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13171 Pedro Alves <palves@redhat.com>
13172
13173 * progspace-and-thread.c (switch_to_program_space_and_thread):
13174 Assert there's an inferior for PSPACE. Use
13175 switch_to_inferior_no_thread to switch the inferior too.
13176 * progspace.c (program_space::~program_space): Call
13177 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13178 (program_space::free_all_objfiles): Don't call clear_symtab_users
13179 here.
13180 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13181
13182 2020-01-10 Pedro Alves <palves@redhat.com>
13183
13184 * NEWS: Mention multi-target debugging, "info connections", and
13185 "add-inferior -no-connection".
13186
13187 2020-01-10 Pedro Alves <palves@redhat.com>
13188
13189 * infrun.c: Include "target-connection.h".
13190 (check_multi_target_resumption): New.
13191 (proceed): Call it.
13192 * target-connection.c (make_target_connection_string): Make
13193 extern.
13194 * target-connection.h (make_target_connection_string): Declare.
13195
13196 2020-01-10 Pedro Alves <palves@redhat.com>
13197
13198 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13199 * inferior.c (uiout_field_connection): New function.
13200 (print_inferior): Add new "connection-id" column.
13201 (add_inferior_command): Show connection number/string of added
13202 inferior.
13203 * process-stratum-target.h
13204 (process_stratum_target::connection_string): New virtual method.
13205 (process_stratum_target::connection_number): New field.
13206 * remote.c (remote_target::connection_string): New override.
13207 * target-connection.c: New file.
13208 * target-connection.h: New file.
13209 * target.c (decref_target): Remove process_stratum targets from
13210 the connection list.
13211 (target_stack::push): Add process_stratum targets to the
13212 connection list.
13213
13214 2020-01-10 Pedro Alves <palves@redhat.com>
13215
13216 Revert:
13217 2016-04-12 Pedro Alves <palves@redhat.com>
13218 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13219 Remove references to name.
13220 * serial.h (struct serial) <name>: Delete.
13221
13222 2020-01-10 Pedro Alves <palves@redhat.com>
13223
13224 * gdbarch-selftests.c (register_to_value_test): Remove "target
13225 already pushed" check.
13226
13227 2020-01-10 Pedro Alves <palves@redhat.com>
13228 John Baldwin <jhb@FreeBSD.org>
13229
13230 * aarch64-linux-nat.c
13231 (aarch64_linux_nat_target::thread_architecture): Adjust.
13232 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13233 (task_command_1): Likewise.
13234 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13235 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13236 (aix_thread_target::store_registers)
13237 (aix_thread_target::thread_alive): Adjust.
13238 * amd64-fbsd-tdep.c: Include "inferior.h".
13239 (amd64fbsd_get_thread_local_address): Pass down target.
13240 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13241 thread's gdbarch instead of target_gdbarch.
13242 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13243 get_last_target_status.
13244 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13245 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13246 inferiors.
13247 (update_inserted_breakpoint_locations): Skip if inferiors with no
13248 execution.
13249 (update_global_location_list): When handling moribund locations,
13250 find representative inferior for location's pspace, and use thread
13251 count of its process_stratum target.
13252 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13253 * bsd-uthread.c (bsd_uthread_target::wait): Use
13254 as_process_stratum_target and adjust thread_change_ptid and
13255 add_thread calls.
13256 (bsd_uthread_target::update_thread_list): Use
13257 as_process_stratum_target and adjust find_thread_ptid,
13258 thread_change_ptid and add_thread calls.
13259 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13260 find_thread_ptid call.
13261 * corelow.c (add_to_thread_list): Adjust add_thread call.
13262 (core_target_open): Adjust add_thread_silent and thread_count
13263 calls.
13264 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13265 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13266 * event-top.c (async_disconnect): Pop targets from all inferiors.
13267 * exec.c (add_target_sections): Push exec target on all inferiors
13268 sharing the program space.
13269 (remove_target_sections): Remove the exec target from all
13270 inferiors sharing the program space.
13271 (exec_on_vfork): New.
13272 * exec.h (exec_on_vfork): Declare.
13273 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13274 Pass it down.
13275 (fbsd_nat_target::update_thread_list): Adjust.
13276 (fbsd_nat_target::resume): Adjust.
13277 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13278 down.
13279 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13280 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13281 get_thread_arch_regcache call.
13282 * fork-child.c (gdb_startup_inferior): Pass target down to
13283 startup_inferior and set_executing.
13284 * gdbthread.h (struct process_stratum_target): Forward declare.
13285 (add_thread, add_thread_silent, add_thread_with_info)
13286 (in_thread_list): Add process_stratum_target parameter.
13287 (find_thread_ptid(inferior*, ptid_t)): New overload.
13288 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13289 parameter.
13290 (all_threads()): Delete overload.
13291 (all_threads, all_non_exited_threads): Add process_stratum_target
13292 parameter.
13293 (all_threads_safe): Use brace initialization.
13294 (thread_count): Add process_stratum_target parameter.
13295 (set_resumed, set_running, set_stop_requested, set_executing)
13296 (threads_are_executing, finish_thread_state): Add
13297 process_stratum_target parameter.
13298 (switch_to_thread): Use is_current_thread.
13299 * i386-fbsd-tdep.c: Include "inferior.h".
13300 (i386fbsd_get_thread_local_address): Pass down target.
13301 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13302 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13303 have_inferiors check.
13304 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13305 (inf_ptrace_target::attach): Adjust.
13306 * infcall.c (run_inferior_call): Adjust.
13307 * infcmd.c (run_command_1): Pass target to
13308 scoped_finish_thread_state.
13309 (proceed_thread_callback): Skip inferiors with no execution.
13310 (continue_command): Rename 'all_threads' local to avoid hiding
13311 'all_threads' function. Adjust get_last_target_status call.
13312 (prepare_one_step): Adjust set_running call.
13313 (signal_command): Use user_visible_resume_target. Compare thread
13314 pointers instead of inferior_ptid.
13315 (info_program_command): Adjust to pass down target.
13316 (attach_command): Mark target's 'thread_executing' flag.
13317 (stop_current_target_threads_ns): New, factored out from ...
13318 (interrupt_target_1): ... this. Switch inferior before making
13319 target calls.
13320 * inferior-iter.h
13321 (struct all_inferiors_iterator, struct all_inferiors_range)
13322 (struct all_inferiors_safe_range)
13323 (struct all_non_exited_inferiors_range): Filter on
13324 process_stratum_target too. Remove explicit.
13325 * inferior.c (inferior::inferior): Push dummy target on target
13326 stack.
13327 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13328 Add process_stratum_target parameter, and pass it down.
13329 (have_live_inferiors): Adjust.
13330 (switch_to_inferior_and_push_target): New.
13331 (add_inferior_command, clone_inferior_command): Handle
13332 "-no-connection" parameter. Use
13333 switch_to_inferior_and_push_target.
13334 (_initialize_inferior): Mention "-no-connection" option in
13335 the help of "add-inferior" and "clone-inferior" commands.
13336 * inferior.h: Include "process-stratum-target.h".
13337 (interrupt_target_1): Use bool.
13338 (struct inferior) <push_target, unpush_target, target_is_pushed,
13339 find_target_beneath, top_target, process_target, target_at,
13340 m_stack>: New.
13341 (discard_all_inferiors): Delete.
13342 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13343 (all_inferiors, all_non_exited_inferiors): Add
13344 process_stratum_target parameter.
13345 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13346 (target_last_proc_target): New global.
13347 (follow_fork_inferior): Push target on new inferior. Pass target
13348 to add_thread_silent. Call exec_on_vfork. Handle target's
13349 reference count.
13350 (follow_fork): Adjust get_last_target_status call. Also consider
13351 target.
13352 (follow_exec): Push target on new inferior.
13353 (struct execution_control_state) <target>: New field.
13354 (user_visible_resume_target): New.
13355 (do_target_resume): Call target_async.
13356 (resume_1): Set target's threads_executing flag. Consider resume
13357 target.
13358 (commit_resume_all_targets): New.
13359 (proceed): Also consider resume target. Skip threads of inferiors
13360 with no execution. Commit resumtion in all targets.
13361 (start_remote): Pass current inferior to wait_for_inferior.
13362 (infrun_thread_stop_requested): Consider target as well. Pass
13363 thread_info pointer to clear_inline_frame_state instead of ptid.
13364 (infrun_thread_thread_exit): Consider target as well.
13365 (random_pending_event_thread): New inferior parameter. Use it.
13366 (do_target_wait): Rename to ...
13367 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13368 down.
13369 (threads_are_resumed_pending_p, do_target_wait): New.
13370 (prepare_for_detach): Adjust calls.
13371 (wait_for_inferior): New inferior parameter. Handle it. Use
13372 do_target_wait_1 instead of do_target_wait.
13373 (fetch_inferior_event): Adjust. Switch to representative
13374 inferior. Pass target down.
13375 (set_last_target_status): Add process_stratum_target parameter.
13376 Save target in global.
13377 (get_last_target_status): Add process_stratum_target parameter and
13378 handle it.
13379 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13380 (context_switch): Check inferior_ptid == null_ptid before calling
13381 inferior_thread().
13382 (get_inferior_stop_soon): Pass down target.
13383 (wait_one): Rename to ...
13384 (poll_one_curr_target): ... this.
13385 (struct wait_one_event): New.
13386 (wait_one): New.
13387 (stop_all_threads): Adjust.
13388 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13389 event's target.
13390 (switch_back_to_stepped_thread): Also consider target.
13391 (print_stop_event): Update.
13392 (normal_stop): Update. Also consider the resume target.
13393 * infrun.h (wait_for_inferior): Remove declaration.
13394 (user_visible_resume_target): New declaration.
13395 (get_last_target_status, set_last_target_status): New
13396 process_stratum_target parameter.
13397 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13398 process_stratum_target parameter, and use it.
13399 (clear_inline_frame_state (thread_info*)): New.
13400 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13401 process_stratum_target parameter.
13402 (clear_inline_frame_state (thread_info*)): Declare.
13403 * linux-fork.c (delete_checkpoint_command): Pass target down to
13404 find_thread_ptid.
13405 (checkpoint_command): Adjust.
13406 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13407 instead of just tweaking inferior_ptid.
13408 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13409 (exit_lwp): Pass target down to find_thread_ptid.
13410 (attach_proc_task_lwp_callback): Pass target down to
13411 add_thread/set_running/set_executing.
13412 (linux_nat_target::attach): Pass target down to
13413 thread_change_ptid.
13414 (get_detach_signal): Pass target down to find_thread_ptid.
13415 Consider last target status's target.
13416 (linux_resume_one_lwp_throw, resume_lwp)
13417 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13418 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13419 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13420 (linux_nat_target::async_wait_fd): New.
13421 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13422 target down.
13423 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13424 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13425 * linux-thread-db.c (struct thread_db_info::process_target): New
13426 field.
13427 (add_thread_db_info): Save target.
13428 (get_thread_db_info): New process_stratum_target parameter. Also
13429 match target.
13430 (delete_thread_db_info): New process_stratum_target parameter.
13431 Also match target.
13432 (thread_from_lwp): Adjust to pass down target.
13433 (thread_db_notice_clone): Pass down target.
13434 (check_thread_db_callback): Pass down target.
13435 (try_thread_db_load_1): Always push the thread_db target.
13436 (try_thread_db_load, record_thread): Pass target down.
13437 (thread_db_target::detach): Pass target down. Always unpush the
13438 thread_db target.
13439 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13440 target down. Always unpush the thread_db target.
13441 (find_new_threads_callback, thread_db_find_new_threads_2)
13442 (thread_db_target::update_thread_list): Pass target down.
13443 (thread_db_target::pid_to_str): Pass current inferior down.
13444 (thread_db_target::get_thread_local_address): Pass target down.
13445 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13446 target down.
13447 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13448 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13449 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13450 (procfs_init_inferior): Rename to ...
13451 (procfs_target::procfs_init_inferior): ... this and adjust.
13452 (procfs_target::create_inferior, procfs_notice_thread)
13453 (procfs_do_thread_registers): Adjust.
13454 * ppc-fbsd-tdep.c: Include "inferior.h".
13455 (ppcfbsd_get_thread_local_address): Pass down target.
13456 * proc-service.c (ps_xfer_memory): Switch current inferior and
13457 program space as well.
13458 (get_ps_regcache): Pass target down.
13459 * process-stratum-target.c
13460 (process_stratum_target::thread_address_space)
13461 (process_stratum_target::thread_architecture): Pass target down.
13462 * process-stratum-target.h
13463 (process_stratum_target::threads_executing): New field.
13464 (as_process_stratum_target): New.
13465 * ravenscar-thread.c
13466 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13467 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13468 down.
13469 * record-btrace.c (record_btrace_target::info_record): Adjust.
13470 (record_btrace_target::record_method)
13471 (record_btrace_target::record_is_replaying)
13472 (record_btrace_target::fetch_registers)
13473 (get_thread_current_frame_id, record_btrace_target::resume)
13474 (record_btrace_target::wait, record_btrace_target::stop): Pass
13475 target down.
13476 * record-full.c (record_full_wait_1): Switch to event thread.
13477 Pass target down.
13478 * regcache.c (regcache::regcache)
13479 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13480 process_stratum_target parameter and handle it.
13481 (current_thread_target): New global.
13482 (get_thread_regcache): Add process_stratum_target parameter and
13483 handle it. Switch inferior before calling target method.
13484 (get_thread_regcache): Pass target down.
13485 (get_thread_regcache_for_ptid): Pass target down.
13486 (registers_changed_ptid): Add process_stratum_target parameter and
13487 handle it.
13488 (registers_changed_thread, registers_changed): Pass target down.
13489 (test_get_thread_arch_aspace_regcache): New.
13490 (current_regcache_test): Define a couple local test_target_ops
13491 instances and use them for testing.
13492 (readwrite_regcache): Pass process_stratum_target parameter.
13493 (cooked_read_test, cooked_write_test): Pass mock_target down.
13494 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13495 (get_thread_arch_aspace_regcache): Add process_stratum_target
13496 parameter.
13497 (regcache::target): New method.
13498 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13499 (regcache::registers_changed_ptid): Add process_stratum_target
13500 parameter.
13501 (regcache::m_target): New field.
13502 (registers_changed_ptid): Add process_stratum_target parameter.
13503 * remote.c (remote_state::supports_vCont_probed): New field.
13504 (remote_target::async_wait_fd): New method.
13505 (remote_unpush_and_throw): Add remote_target parameter.
13506 (get_current_remote_target): Adjust.
13507 (remote_target::remote_add_inferior): Push target.
13508 (remote_target::remote_add_thread)
13509 (remote_target::remote_notice_new_inferior)
13510 (get_remote_thread_info): Pass target down.
13511 (remote_target::update_thread_list): Skip threads of inferiors
13512 bound to other targets. (remote_target::close): Don't discard
13513 inferiors. (remote_target::add_current_inferior_and_thread)
13514 (remote_target::process_initial_stop_replies)
13515 (remote_target::start_remote)
13516 (remote_target::remote_serial_quit_handler): Pass down target.
13517 (remote_target::remote_unpush_target): New remote_target
13518 parameter. Unpush the target from all inferiors.
13519 (remote_target::remote_unpush_and_throw): New remote_target
13520 parameter. Pass it down.
13521 (remote_target::open_1): Check whether the current inferior has
13522 execution instead of checking whether any inferior is live. Pass
13523 target down.
13524 (remote_target::remote_detach_1): Pass down target. Use
13525 remote_unpush_target.
13526 (extended_remote_target::attach): Pass down target.
13527 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13528 (remote_target::append_resumption): Pass down target.
13529 (remote_target::append_pending_thread_resumptions)
13530 (remote_target::remote_resume_with_hc, remote_target::resume)
13531 (remote_target::commit_resume): Pass down target.
13532 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13533 (remote_target::interrupt_query)
13534 (remote_target::remove_new_fork_children)
13535 (remote_target::check_pending_events_prevent_wildcard_vcont)
13536 (remote_target::remote_parse_stop_reply)
13537 (remote_target::process_stop_reply): Pass down target.
13538 (first_remote_resumed_thread): New remote_target parameter. Pass
13539 it down.
13540 (remote_target::wait_as): Pass down target.
13541 (unpush_and_perror): New remote_target parameter. Pass it down.
13542 (remote_target::readchar, remote_target::remote_serial_write)
13543 (remote_target::getpkt_or_notif_sane_1)
13544 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13545 down target.
13546 (remote_target::mourn_inferior): Pass down target. Use
13547 remote_unpush_target.
13548 (remote_target::core_of_thread)
13549 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13550 (remote_target::pid_to_exec_file)
13551 (remote_target::thread_handle_to_thread_info): Pass down target.
13552 (remote_target::async_wait_fd): New.
13553 * riscv-fbsd-tdep.c: Include "inferior.h".
13554 (riscv_fbsd_get_thread_local_address): Pass down target.
13555 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13556 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13557 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13558 Adjust.
13559 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13560 * solib-svr4.c (enable_break): Pass down target.
13561 * spu-multiarch.c (parse_spufs_run): Pass down target.
13562 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13563 * target-delegates.c: Regenerate.
13564 * target.c (g_target_stack): Delete.
13565 (current_top_target): Return the current inferior's top target.
13566 (target_has_execution_1): Refer to the passed-in inferior's top
13567 target.
13568 (target_supports_terminal_ours): Check whether the initial
13569 inferior was already created.
13570 (decref_target): New.
13571 (target_stack::push): Incref/decref the target.
13572 (push_target, push_target, unpush_target): Adjust.
13573 (target_stack::unpush): Defref target.
13574 (target_is_pushed): Return bool. Adjust to refer to the current
13575 inferior's target stack.
13576 (dispose_inferior): Delete, and inline parts ...
13577 (target_preopen): ... here. Only dispose of the current inferior.
13578 (target_detach): Hold strong target reference while detaching.
13579 Pass target down.
13580 (target_thread_name): Add assertion.
13581 (target_resume): Pass down target.
13582 (target_ops::beneath, find_target_at): Adjust to refer to the
13583 current inferior's target stack.
13584 (get_dummy_target): New.
13585 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13586 has a thread running.
13587 (initialize_targets): Rename to ...
13588 (_initialize_target): ... this.
13589 * target.h: Include "gdbsupport/refcounted-object.h".
13590 (struct target_ops): Inherit refcounted_object.
13591 (target_ops::shortname, target_ops::longname): Make const.
13592 (target_ops::async_wait_fd): New method.
13593 (decref_target): Declare.
13594 (struct target_ops_ref_policy): New.
13595 (target_ops_ref): New typedef.
13596 (get_dummy_target): Declare function.
13597 (target_is_pushed): Return bool.
13598 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13599 (all_matching_threads_iterator::all_matching_threads_iterator):
13600 Handle filter target.
13601 * thread-iter.h (struct all_matching_threads_iterator, struct
13602 all_matching_threads_range, class all_non_exited_threads_range):
13603 Filter by target too. Remove explicit.
13604 * thread.c (threads_executing): Delete.
13605 (inferior_thread): Pass down current inferior.
13606 (clear_thread_inferior_resources): Pass down thread pointer
13607 instead of ptid_t.
13608 (add_thread_silent, add_thread_with_info, add_thread): Add
13609 process_stratum_target parameter. Use it for thread and inferior
13610 searches.
13611 (is_current_thread): New.
13612 (thread_info::deletable): Use it.
13613 (find_thread_ptid, thread_count, in_thread_list)
13614 (thread_change_ptid, set_resumed, set_running): New
13615 process_stratum_target parameter. Pass it down.
13616 (set_executing): New process_stratum_target parameter. Pass it
13617 down. Adjust reference to 'threads_executing'.
13618 (threads_are_executing): New process_stratum_target parameter.
13619 Adjust reference to 'threads_executing'.
13620 (set_stop_requested, finish_thread_state): New
13621 process_stratum_target parameter. Pass it down.
13622 (switch_to_thread): Also match inferior.
13623 (switch_to_thread): New process_stratum_target parameter. Pass it
13624 down.
13625 (update_threads_executing): Reimplement.
13626 * top.c (quit_force): Pop targets from all inferior.
13627 (gdb_init): Don't call initialize_targets.
13628 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13629 Declare.
13630 (windows_add_thread, windows_delete_thread): Adjust.
13631 (get_windows_debug_event): Rename to ...
13632 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13633 * tracefile-tfile.c (tfile_target_open): Pass down target.
13634 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13635 Forward declare.
13636 (switch_to_thread): Add process_stratum_target parameter.
13637 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13638 parameter. Use it.
13639 (mi_on_resume): Pass target down.
13640 * nat/fork-inferior.c (startup_inferior): Add
13641 process_stratum_target parameter. Pass it down.
13642 * nat/fork-inferior.h (startup_inferior): Add
13643 process_stratum_target parameter.
13644 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13645
13646 2020-01-10 Pedro Alves <palves@redhat.com>
13647
13648 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13649 directly. Instead find the first thread in the thread list and
13650 use switch_to_thread.
13651
13652 2020-01-10 Pedro Alves <palves@redhat.com>
13653
13654 * remote.c (remote_target::remote_add_inferior): Don't bind a
13655 process to the current inferior if the current inferior is already
13656 bound to a process.
13657
13658 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13659 Pedro Alves <palves@redhat.com>
13660
13661 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13662 If no process is specified, return null_ptid instead of
13663 inferior_ptid.
13664 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13665 TARGET_WAITKIND_SIGNALLED with no pid.
13666
13667 2020-01-10 Pedro Alves <palves@redhat.com>
13668
13669 * remote.c (first_remote_resumed_thread): New.
13670 (remote_target::wait_as): Use it as default event_ptid instead of
13671 inferior_ptid.
13672
13673 2020-01-10 Pedro Alves <palves@redhat.com>
13674
13675 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13676
13677 2020-01-10 Pedro Alves <palves@redhat.com>
13678
13679 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13680 not -1.
13681
13682 2020-01-10 Pedro Alves <palves@redhat.com>
13683
13684 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13685 ptid to get_last_target_status.
13686 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13687 ptid to get_last_target_status.
13688 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13689 get_last_target_status.
13690 (info_program_command): Don't pass a target_waitstatus to
13691 get_last_target_status.
13692 * infrun.c (init_wait_for_inferior): Use
13693 nullify_last_target_wait_ptid.
13694 (get_last_target_status): Handle nullptr arguments.
13695 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13696 (print_stop_event): Don't pass a ptid to get_last_target_status.
13697 (normal_stop): Don't pass a ptid to get_last_target_status.
13698 * infrun.h (get_last_target_status, set_last_target_status): Move
13699 comments here and update.
13700 (nullify_last_target_wait_ptid): Declare.
13701 * linux-fork.c (fork_load_infrun_state): Remove local extern
13702 declaration of nullify_last_target_wait_ptid.
13703 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13704 to get_last_target_status.
13705
13706 2020-01-10 Pedro Alves <palves@redhat.com>
13707
13708 * gdbthread.h (scoped_restore_current_thread)
13709 <dont_restore, restore, m_dont_restore>: Declare.
13710 * thread.c (thread_alive): Add assertion. Return bool.
13711 (switch_to_thread_if_alive): New.
13712 (prune_threads): Switch inferior/thread.
13713 (print_thread_info_1): Switch thread before calling target methods.
13714 (scoped_restore_current_thread::restore): New, factored out from
13715 ...
13716 (scoped_restore_current_thread::~scoped_restore_current_thread):
13717 ... this.
13718 (scoped_restore_current_thread::scoped_restore_current_thread):
13719 Add assertion.
13720 (thread_apply_all_command, thread_select): Use
13721 switch_to_thread_if_alive.
13722 * infrun.c (proceed, restart_threads, handle_signal_stop)
13723 (switch_back_to_stepped_thread): Switch current thread before
13724 calling target methods.
13725
13726 2020-01-10 Pedro Alves <palves@redhat.com>
13727
13728 * inferior.c (switch_to_inferior_no_thread): New function,
13729 factored out from ...
13730 (inferior_command): ... here.
13731 * inferior.h (switch_to_inferior_no_thread): Declare.
13732 * mi/mi-main.c (run_one_inferior): Use
13733 switch_to_inferior_no_thread.
13734
13735 2020-01-10 Pedro Alves <palves@redhat.com>
13736
13737 * infcmd.c (kill_command): Remove dead code.
13738
13739 2020-01-10 Pedro Alves <palves@redhat.com>
13740
13741 * remote.c (remote_target::mourn_inferior): No longer check
13742 whether the target is running.
13743
13744 2020-01-10 Pedro Alves <palves@redhat.com>
13745
13746 * corelow.c (core_target::has_execution): Change parameter type to
13747 inferior pointer.
13748 * inferior.c (number_of_live_inferiors): Use
13749 inferior::has_execution instead of target_has_execution_1.
13750 * inferior.h (inferior::has_execution): New.
13751 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13752 inferior::has_execution instead of target_has_execution_1.
13753 * process-stratum-target.c
13754 (process_stratum_target::has_execution): Change parameter type to
13755 inferior pointer. Check the inferior's PID instead of
13756 inferior_ptid.
13757 * process-stratum-target.h
13758 (process_stratum_target::has_execution): Change parameter type to
13759 inferior pointer.
13760 * record-full.c (record_full_core_target::has_execution): Change
13761 parameter type to inferior pointer.
13762 * target.c (target_has_execution_1): Change parameter type to
13763 inferior pointer.
13764 (target_has_execution_current): Adjust.
13765 * target.h (target_ops::has_execution): Change parameter type to
13766 inferior pointer.
13767 (target_has_execution_1): Change parameter type to inferior
13768 pointer. Change return type to bool.
13769 * tracefile.h (tracefile_target::has_execution): Change parameter
13770 type to inferior pointer.
13771
13772 2020-01-10 Pedro Alves <palves@redhat.com>
13773
13774 * exceptions.c (print_flush): Remove current_top_target() check.
13775
13776 2020-01-10 Pedro Alves <palves@redhat.com>
13777
13778 * remote.c (show_remote_exec_file): Show the current inferior's
13779 exec-file instead of the command variable's value.
13780
13781 2020-01-10 Pedro Alves <palves@redhat.com>
13782
13783 * record-full.c (record_full_resume_ptid): New global.
13784 (record_full_target::resume): Set it.
13785 (record_full_wait_1): Use record_full_resume_ptid instead of
13786 inferior_ptid.
13787
13788 2020-01-10 Pedro Alves <palves@redhat.com>
13789
13790 * gdbthread.h (scoped_restore_current_thread)
13791 <dont_restore, restore, m_dont_restore>: Declare.
13792 * thread.c (thread_alive): Add assertion. Return bool.
13793 (switch_to_thread_if_alive): New.
13794 (prune_threads): Switch inferior/thread.
13795 (print_thread_info_1): Switch thread before calling target methods.
13796 (scoped_restore_current_thread::restore): New, factored out from
13797 ...
13798 (scoped_restore_current_thread::~scoped_restore_current_thread):
13799 ... this.
13800 (scoped_restore_current_thread::scoped_restore_current_thread):
13801 Add assertion.
13802 (thread_apply_all_command, thread_select): Use
13803 switch_to_thread_if_alive.
13804
13805 2020-01-10 George Barrett <bob@bob131.so>
13806
13807 * stap-probe.c (stap_modify_semaphore): Don't check for null
13808 semaphores.
13809 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13810 for null semaphores.
13811
13812 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13813
13814 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13815 all source windows, and maintain horizontal scroll status while
13816 doing so.
13817
13818 2020-01-09 Tom Tromey <tom@tromey.com>
13819
13820 PR tui/18932:
13821 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13822 update_source_window, not print_source_lines.
13823
13824 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13825
13826 * tui/tui.c (tui_enable): Register tui hooks after calling
13827 tui_display_main.
13828
13829 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13830
13831 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13832
13833 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
13834
13835 * thread.c (print_thread_info_1): Fix indentation.
13836
13837 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13838
13839 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13840 unique_xmalloc_ptr outside the if to always free the demangled name.
13841
13842 2020-01-08 Tom Tromey <tromey@adacore.com>
13843
13844 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13845 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13846 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13847 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13848 Remove.
13849 (section_offsets): New typedef.
13850 * symtab.c (fixup_section, get_msymbol_address): Update.
13851 * symmisc.c (dump_msymbols): Update.
13852 * symfile.h (relative_addr_info_to_section_offsets)
13853 (symfile_map_offsets_to_segments): Update.
13854 * symfile.c (build_section_addr_info_from_objfile)
13855 (init_objfile_sect_indices): Update.
13856 (struct place_section_arg): Change type of "offsets".
13857 (place_section): Update.
13858 (relative_addr_info_to_section_offsets): Change type of
13859 "section_offsets". Remove "num_sections" parameter.
13860 (default_symfile_offsets, syms_from_objfile_1)
13861 (set_objfile_default_section_offset): Update.
13862 (reread_symbols): No need to preserve section offsets by hand.
13863 (symfile_map_offsets_to_segments): Change type of "offsets".
13864 * stap-probe.c (relocate_address): Update.
13865 * stabsread.h (process_one_symbol): Update.
13866 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13867 (solib_target_relocate_section_addresses): Update.
13868 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13869 Update.
13870 * solib-frv.c (frv_relocate_main_executable): Update.
13871 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13872 * solib-aix.c (solib_aix_get_section_offsets): Change return
13873 type.
13874 (solib_aix_solib_create_inferior_hook): Update.
13875 * remote.c (remote_target::get_offsets): Update.
13876 * psymtab.c (find_pc_sect_psymtab): Update.
13877 * psympriv.h (struct partial_symbol) <address, text_low,
13878 text_high>: Update.
13879 * objfiles.h (obj_section_offset): Update.
13880 (struct objfile) <section_offsets>: Change type.
13881 <num_sections>: Remove.
13882 (objfile_relocate): Update.
13883 * objfiles.c (entry_point_address_query): Update
13884 (relocate_one_symbol): Change type of "section_offsets".
13885 (objfile_relocate1, objfile_relocate1): Change type of
13886 "new_offsets".
13887 (objfile_rebase1): Update.
13888 * mipsread.c (mipscoff_symfile_read): Update.
13889 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13890 parameter.
13891 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13892 (parse_external, psymtab_to_symtab_1): Update.
13893 * machoread.c (macho_symfile_offsets): Update.
13894 * ia64-tdep.c (ia64_find_unwind_table): Update.
13895 * hppa-tdep.c (read_unwind_info): Update.
13896 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13897 * dwarf2read.c (create_addrmap_from_index)
13898 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13899 (process_psymtab_comp_unit_reader, add_partial_symbol)
13900 (add_partial_subprogram, process_full_comp_unit)
13901 (read_file_scope, read_func_scope, read_lexical_block_scope)
13902 (read_call_site_scope, dwarf2_rnglists_process)
13903 (dwarf2_ranges_process, dwarf2_ranges_read)
13904 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13905 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13906 Update.
13907 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13908 Update.
13909 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13910 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13911 (process_one_symbol): Change type of "section_offsets".
13912 * ctfread.c (get_objfile_text_range): Update.
13913 * coffread.c (coff_symtab_read, enter_linenos)
13914 (process_coff_symbol): Update.
13915 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13916 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13917
13918 2020-01-08 Tom Tromey <tromey@adacore.com>
13919
13920 * dwarf2read.c (parse_macro_definition): Use std::string.
13921 (parse_macro_definition): Likewise.
13922
13923 2020-01-08 Tom Tromey <tromey@adacore.com>
13924
13925 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13926 (ATTR_ALLOC_CHUNK): Remove.
13927
13928 2020-01-08 Tom Tromey <tromey@adacore.com>
13929
13930 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13931
13932 2020-01-08 Tom Tromey <tromey@adacore.com>
13933
13934 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13935 (dwarf2_compute_name, open_dwo_file): Likewise.
13936 (process_enumeration_scope): Use std::vector.
13937 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13938 (partial_die_info::fixup, dwarf2_start_subfile)
13939 (guess_full_die_structure_name, dwarf2_name): Likewise.
13940 (determine_prefix): Update.
13941 (guess_full_die_structure_name): Make return type const.
13942 (partial_die_full_name): Return unique_xmalloc_ptr.
13943 (DW_FIELD_ALLOC_CHUNK): Remove.
13944
13945 2020-01-07 Tom Tromey <tromey@adacore.com>
13946
13947 PR build/24937:
13948 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13949
13950 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13951
13952 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13953
13954 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13955
13956 * stack.c (print_frame_info): Move disassemble_next_line code
13957 inside source_print block.
13958
13959 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13960
13961 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13962 gdb/signals.h, as we are now using native signal symbols.
13963
13964 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13965
13966 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13967 overflow by an early check of content vs threshold.
13968 * tui/tui-source.c (tui_source_window::line_is_displayed):
13969 Likewise.
13970
13971 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13972
13973 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13974
13975 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13976
13977 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13978 export table if no section contains it's RVA.
13979
13980 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13981
13982 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13983
13984 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
13985
13986 * source.c (print_source_lines_base): Set last_line_listed.
13987
13988 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13989
13990 * tui/tui-disasm.c: Remove trailing spaces.
13991
13992 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13993 Pedro Alves <palves@redhat.com>
13994
13995 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13996 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13997 (windows_gdb_signal_to_target): New function, uses the above
13998 enumeration to convert GDB internal signal codes to equivalent
13999 Windows codes.
14000 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14001 * windows-nat.c: Include "gdb_wait.h".
14002 (get_windows_debug_event): Extract the fatal exception from the
14003 exit status and convert to the equivalent Posix signal number.
14004 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14005 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14006 * gdbsupport/gdb_wait.c: New file, implements
14007 windows_status_to_termsig.
14008 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14009 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14010
14011 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14012
14013 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14014 show_layout.
14015
14016 2020-01-05 Luis Machado <luis.machado@linaro.org>
14017
14018 * aarch64-linux-nat.c
14019 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14020 and bfd_mach_aarch64.
14021
14022 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14023
14024 * ui-file.c (stdio_file::can_emit_style_escape)
14025 (tee_file::can_emit_style_escape): Ensure style is used also on
14026 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14027 to gdb_stdout.
14028 * main.c (set_gdb_data_directory): Use file style to output the
14029 warning that the given pathname is not a directory.
14030 * top.c (show_history_filename, gdb_safe_append_history)
14031 (show_gdb_datadir): Use file style.
14032
14033 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14034
14035 * solib-target.c (struct lm_info_target):
14036 Change offsets to be a unique_xmalloc_ptr.
14037 (solib_target_relocate_section_addresses): Update.
14038
14039 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14040
14041 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14042
14043 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14044
14045 * MAINTAINERS (Write After Approval): Add myself.
14046
14047 2020-01-02 Luis Machado <luis.machado@linaro.org>
14048
14049 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14050 Cell BE architecture.
14051 * target.h (struct target_ops) <thread_architecture>: Likewise.
14052
14053 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14054
14055 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14056
14057 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14058
14059 * MAINTAINERS (Write After Approval): Add myself.
14060
14061 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14062
14063 * gdbarch.sh: Update copyright year range of generated files.
14064
14065 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14066
14067 Update copyright year range in all GDB files.
14068
14069 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14070
14071 * copyright.py: Convert to Python 3.
14072
14073 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14074
14075 * copyright.py: Adapt after move of gnulib directory from gdb
14076 directory to toplevel directory.
14077
14078 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14079
14080 * copyright.py (main): Exit if run from the wrong directory.
14081
14082 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14083
14084 * top.c (print_gdb_version): Change copyright year to 2020.
14085
14086 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14087
14088 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
14089
14090 For older changes see ChangeLog-2019.
14091 \f
14092 Local Variables:
14093 mode: change-log
14094 left-margin: 8
14095 fill-column: 74
14096 version-control: never
14097 coding: utf-8
14098 End: