Add a new overload of gdb_bfd_sections
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
cafb0d81
TT
12020-09-19 Tom Tromey <tom@tromey.com>
2
3 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
4 existing function.
5
c8d5abea
AB
62020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
7
8 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
9 for arrays.
10
6d816919
AB
112020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
12
13 * eval.c: Remove 'f-lang.h' include.
14 (value_f90_subarray): Moved to f-lang.c.
15 (eval_call): Renamed to...
16 (evaluate_subexp_do_call): ...this, is no longer static, header
17 comment moved into header file.
18 (evaluate_funcall): Update call to eval_call.
19 (skip_undetermined_arglist): Moved to f-lang.c.
20 (fortran_value_subarray): Likewise.
21 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
22 moved to evaluate_subexp_f.
23 (calc_f77_array_dims): Moved to f-lang.c
24 * expprint.c (print_subexp_funcall): New function.
25 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
26 moved to print_subexp_f, OP_FUNCALL uses new function.
27 (dump_subexp_body_funcall): New function.
28 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
29 moved to dump_subexp_f, OP_FUNCALL uses new function.
30 * expression.h (evaluate_subexp_do_call): Declare.
31 * f-lang.c (value_f90_subarray): Moved from eval.c.
32 (skip_undetermined_arglist): Likewise.
33 (calc_f77_array_dims): Likewise.
34 (fortran_value_subarray): Likewise.
35 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
36 (operator_length_f): Likewise.
37 (print_subexp_f): Likewise.
38 (dump_subexp_body_f): Likewise.
39 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
40 declaration of this operation to here.
41 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
42 support moved to operator_length_f.
43 * parser-defs.h (dump_subexp_body_funcall): Declare.
44 (print_subexp_funcall): Declare.
45 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
46 fortran-operator.def.
47
8c37706a
AB
482020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
49
50 * eval.c (fortran_value_subarray): New function, content is taken
51 from...
52 (evaluate_subexp_standard): ...here, in two places. Now arrays
53 and strings both call the new function.
54 (calc_f77_array_dims): Add header comment, handle strings.
55
14f9473c
VC
562020-09-18 Victor Collod <vcollod@nvidia.com>
57
58 PR gdb/26635
59 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
60 (i386_analyze_prologue): Call i386_skip_endbr.
61
b60cea74
TT
622020-09-18 Tom Tromey <tromey@adacore.com>
63
64 * windows-nat.c (struct windows_nat_target) <wait>: Update.
65 (windows_nat_target::wait): Update.
66 * target/wait.h (enum target_wait_flag): New. Use
67 DEF_ENUM_FLAGS_TYPE.
68 * target/target.h (target_wait): Change type of options.
69 * target.h (target_options_to_string, default_target_wait):
70 Update.
71 (struct target_ops) <wait>: Change type of options.
72 * target.c (target_wait, default_target_wait, do_option): Change
73 type of "options".
74 (target_options_to_string): Likewise.
75 * target-delegates.c: Rebuild.
76 * target-debug.h (target_debug_print_target_wait_flags): Rename
77 from target_debug_print_options.
78 * sol-thread.c (class sol_thread_target) <wait>: Update.
79 (sol_thread_target::wait): Update.
80 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
81 (rs6000_nat_target::wait): Update.
82 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
83 Update.
84 (remote_target::wait_ns, remote_target::wait_as): Change type of
85 "options".
86 (remote_target::wait): Update.
87 * remote-sim.c (struct gdbsim_target) <wait>: Update.
88 (gdbsim_target::wait): Update.
89 * record-full.c (class record_full_base_target) <wait>: Update.
90 (record_full_wait_1): Change type of "options".
91 (record_full_base_target::wait): Update.
92 * record-btrace.c (class record_btrace_target) <wait>: Update.
93 (record_btrace_target::wait): Update.
94 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
95 Update.
96 (ravenscar_thread_target::wait): Update.
97 * procfs.c (class procfs_target) <wait>: Update.
98 (procfs_target::wait): Update.
99 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
100 * obsd-nat.c (obsd_nat_target::wait): Update.
101 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
102 (nto_procfs_target::wait): Update.
103 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
104 * nbsd-nat.c (nbsd_wait): Change type of "options".
105 (nbsd_nat_target::wait): Update.
106 * linux-thread-db.c (class thread_db_target) <wait>: Update.
107 (thread_db_target::wait): Update.
108 * linux-nat.h (class linux_nat_target) <wait>: Update.
109 * linux-nat.c (linux_nat_target::wait): Update.
110 (linux_nat_wait_1): Update.
111 * infrun.c (do_target_wait_1, do_target_wait): Change type of
112 "options".
113 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
114 * inf-ptrace.c (inf_ptrace_target::wait): Update.
115 * go32-nat.c (struct go32_nat_target) <wait>: Update.
116 (go32_nat_target::wait): Update.
117 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
118 * gnu-nat.c (gnu_nat_target::wait): Update.
119 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
120 * fbsd-nat.c (fbsd_nat_target::wait): Update.
121 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
122 * darwin-nat.c (darwin_nat_target::wait): Update.
123 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
124 (bsd_uthread_target::wait): Update.
125 * aix-thread.c (class aix_thread_target) <wait>: Update.
126 (aix_thread_target::wait): Update.
127
0295dde6
AB
1282020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
129
130 * compile/compile-object-run.c (create_copied_type_recursive): New
131 function.
132 (compile_object_run): Use new function.
133
d3483b43
JT
1342020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
135
136 * NEWS: Mention x86_64 Cygwin core file support.
137
e7d612ad
JT
1382020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
139
140 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
141 (core_process_module_section): Handle NOTE_INFO_MODULE64.
142
aff9d387
JT
1432020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
144
62a5151b
JT
145 * windows-tdep.h: Add prototypes.
146 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
147 (i386_windows_core_pid_to_str): Move and rename ...
148 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
149 (windows_core_pid_to_str): ... and here.
150 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
151
1522020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
153 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
154 (amd64_windows_init_abi_common): ... and register.
155
7d155da3
JT
1562020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
157
158 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
159 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
160
e8ef12b9
PA
1612020-09-18 Pedro Alves <pedro@palves.net>
162
163 PR gdb/26631
164 * thread.c (thread_find_command): Switch inferior before calling
165 target methods.
166
c1e1314d
TT
1672020-09-17 Tom Tromey <tromey@adacore.com>
168
169 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
170 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
171 (tdesc_arch_data_up): New typedef.
172 (tdesc_use_registers, tdesc_data_alloc): Update.
173 (tdesc_data_cleanup): Don't declare.
174 * target-descriptions.c (tdesc_data_alloc): Return a
175 tdesc_arch_data_up.
176 (tdesc_arch_data_deleter::operator()): Rename from
177 tdesc_data_cleanup. Change argument type.
178 (tdesc_use_registers): Change early_data to an rvalue reference.
179 (tdesc_use_registers): Don't use delete.
180 * sparc-tdep.c (sparc32_gdbarch_init): Update.
181 * s390-tdep.c (s390_gdbarch_init): Update.
182 * rx-tdep.c (rx_gdbarch_init): Update.
183 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
184 * riscv-tdep.c (riscv_gdbarch_init): Update.
185 * or1k-tdep.c (or1k_gdbarch_init): Update.
186 * nios2-tdep.c (nios2_gdbarch_init): Update.
187 * nds32-tdep.c (nds32_gdbarch_init): Update.
188 * mips-tdep.c (mips_gdbarch_init): Update.
189 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
190 * m68k-tdep.c (m68k_gdbarch_init): Update.
191 * i386-tdep.c (i386_gdbarch_init): Update.
192 * arm-tdep.c (arm_gdbarch_init): Update.
193 * arc-tdep.c (arc_tdesc_init): Update.
194 (arc_gdbarch_init): Update.
195 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
196
0363df3d
HD
1972020-09-17 Hannes Domani <ssbssa@yahoo.de>
198
199 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
200 for WOW64 processes.
201
280a9412
TT
2022020-09-17 Tom Tromey <tom@tromey.com>
203
204 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
205
6108fd18
TT
2062020-09-17 Tom Tromey <tom@tromey.com>
207
208 * value.c (preserve_values): Update.
209 * python/py-type.c (save_objfile_types): Update.
210 * guile/scm-type.c (save_objfile_types): Update.
211 * gdbtypes.h (create_copied_types_hash): Return htab_up.
212 * gdbtypes.c (create_copied_types_hash): Return htab_up.
213 * compile/compile-object-run.c (compile_object_run): Update.
214
fa9b1164
TT
2152020-09-17 Tom Tromey <tom@tromey.com>
216
217 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
218 Remove.
219 <m_table>: Now htab_up.
220 * typeprint.c (typedef_hash_table::recursively_update)
221 (typedef_hash_table::add_template_parameters)
222 (typedef_hash_table::typedef_hash_table): Update.
223 (typedef_hash_table::~typedef_hash_table): Remove.
224 (typedef_hash_table::typedef_hash_table)
225 (typedef_hash_table::find_global_typedef)
226 (typedef_hash_table::find_typedef): Update.
227
eb53f105
TT
2282020-09-17 Tom Tromey <tom@tromey.com>
229
230 * target-descriptions.c (tdesc_use_registers): Use htab_up.
231
7a8a5d47
TT
2322020-09-17 Tom Tromey <tom@tromey.com>
233
234 * linespec.c (class decode_compound_collector)
235 <~decode_compound_collector>: Remove.
236 <m_unique_syms>: Now htab_up.
237 (decode_compound_collector::operator ()): Update.
238 (class symtab_collector) <~symtab_collector>: Remove.
239 <m_symtab_table>: Now htab_up.
240 (symtab_collector::operator ()): Update.
241
99032cfc
TT
2422020-09-17 Tom Tromey <tom@tromey.com>
243
244 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
245 (filename_seen_cache::clear): Update.
246 (~filename_seen_cache): Remove.
247 (filename_seen_cache::seen): Update.
248 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
249 htab_up.
250 <~filename_seen_cache>: Remove.
251 <traverse>: Update.
252
32580f6d
TT
2532020-09-17 Tom Tromey <tom@tromey.com>
254
255 * completer.c (completion_tracker::discard_completions)
256 (completion_tracker::~completion_tracker)
257 (completion_tracker::maybe_add_completion)
258 (completion_tracker::remove_completion)
259 (completion_tracker::recompute_lowest_common_denominator)
260 (completion_tracker::build_completion_result): Update.
261 * completer.h (class completion_tracker) <have_completions>:
262 Update.
263 <m_entries_hash>: Now htab_up.
264
c1fb9836
TT
2652020-09-17 Tom Tromey <tom@tromey.com>
266
267 * breakpoint.c (ambiguous_names_p): Use htab_up.
268
88f07206
TT
2692020-09-17 Tom Tromey <tom@tromey.com>
270
271 * auto-load.c (struct auto_load_pspace_info)
272 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
273 <loaded_script_files, loaded_script_texts>: Change type to
274 htab_up.
275 (~auto_load_pspace_info) Remove.
276 (init_loaded_scripts_info, maybe_add_script_file)
277 (maybe_add_script_text, auto_load_info_scripts): Update.
278
9519b2ee
TT
2792020-09-17 Tom Tromey <tromey@adacore.com>
280
281 * c-exp.y (name_obstack): Now static.
282
d2cd4113
CC
2832020-09-17 Chungyi Chi <demonic@csie.io>
284
285 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
286
b650a282
SM
2872020-09-16 Simon Marchi <simon.marchi@efficios.com>
288
289 * breakpoint.h (init_catchpoint): Change int parameter to bool.
290 (add_solib_catchpoint): Likewise.
291 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
292 to bool.
293 (add_solib_catchpoint): Change int parameter/variable to bool.
294 (catch_load_or_unload): Likewise.
295 (init_catchpoint): Likewise.
296 (create_fork_vfork_event_catchpoint): Likewise.
297 (catch_fork_command_1): Likewise.
298 (catch_exec_command_1): Likewise.
299
4d0bcfcf
SM
3002020-09-16 Simon Marchi <simon.marchi@efficios.com>
301
302 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
303 Change instance_flags to m_instance_flags.
304
fe830662
TT
3052020-09-16 Tom Tromey <tromey@adacore.com>
306
307 PR gdb/26598:
308 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
309
fe5ddfc3
JB
3102020-09-16 John Baldwin <jhb@FreeBSD.org>
311
312 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
313 PL_FLAG_EXEC.
314 (fbsd_nat_target::insert_exec_catchpoint)
315 (fbsd_nat_target::remove_exec_catchpoint): Always define.
316 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
317 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
318
e911c666
JB
3192020-09-16 John Baldwin <jhb@FreeBSD.org>
320
321 * configure.ac: Remove check for kinfo_getvmmap().
322 * configure, config.in: Regenerate.
323 * fbsd-nat.c (fbsd_read_mapping): Remove
324 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
325 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
326 kinfo_get_vmmap() are always present.
327
1f17d372
JB
3282020-09-16 John Baldwin <jhb@FreeBSD.org>
329
330 * fbsd-nat.c: Always include support for
331 TARGET_OBJECT_SIGNAL_INFO.
332
bcb1da7f
JB
3332020-09-16 John Baldwin <jhb@FreeBSD.org>
334
335 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
336 sysctl and remove procfs fallback.
337
5515f729
JB
3382020-09-16 John Baldwin <jhb@FreeBSD.org>
339
340 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
341 * fbsd-nat.h: Likewise.
342
da1df1db
TBA
3432020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
344
345 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
346 argument.
347
0e25e767
AB
3482020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
349
350 * ada-lang.c (ada_language_data): Delete.
351 (ada_language): Remove references to ada_language_data.
352 * c-lang.c (c_language_data): Delete.
353 (c_language): Remove references to c_language_data.
354 (cplus_language_data): Delete.
355 (cplus_language): Remove references to cplus_language_data.
356 (asm_language_data): Delete.
357 (asm_language): Remove references to asm_language_data.
358 (minimal_language_data): Delete.
359 (minimal_language): Remove references to minimal_language_data.
360 * d-lang.c (d_language_data): Delete.
361 (d_language): Remove references to d_language_data.
362 * f-lang.c (f_language_data): Delete.
363 (f_language): Remove references to f_language_data.
364 * go-lang.c (go_language_data): Delete.
365 (go_language): Remove references to go_language_data.
366 * language.c (unknown_language_data): Delete.
367 (unknown_language): Remove references to unknown_language_data.
368 (auto_language_data): Delete.
369 (auto_language): Remove references to auto_language_data.
370 * language.h (language_data): Delete struct.
371 (language_defn): No longer inherit from language_data.
372 * m2-lang.c (m2_language_data): Delete.
373 (m2_language): Remove references to m2_language_data.
374 * objc-lang.c (objc_language_data): Delete.
375 (objc_language): Remove references to objc_language_data.
376 * opencl-lang.c (opencl_language_data): Delete.
377 (opencl_language): Remove references to opencl_language_data.
378 * p-lang.c (pascal_language_data): Delete.
379 (pascal_language): Remove references to pascal_language_data.
380 * rust-lang.c (rust_language_data): Delete.
381 (rust_language): Remove references to rust_language_data.
382
b7c6e27d
AB
3832020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
384
385 * ada-lang.c (ada_language_data): Remove la_op_print_tab
386 initializer.
387 (ada_language::opcode_print_table): New member function.
388 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
389 (c_language::opcode_print_table): New member function.
390 (cplus_language_data): Remove la_op_print_tab initializer.
391 (cplus_language::opcode_print_table): New member function.
392 (asm_language_data): Remove la_op_print_tab initializer.
393 (asm_language::opcode_print_table): New member function.
394 (minimal_language_data): Remove la_op_print_tab initializer.
395 (minimal_language::opcode_print_table): New member function.
396 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
397 (d_language::opcode_print_table): New member function.
398 * expprint.c (print_subexp_standard): Update call to
399 opcode_print_table.
400 (op_string): Likewise.
401 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
402 (f_language::opcode_print_table): New member function.
403 * go-lang.c (go_language_data): Remove la_op_print_tab
404 initializer.
405 (go_language::opcode_print_table): New member function.
406 * language.c (unknown_language_data): Remove la_op_print_tab
407 initializer.
408 (unknown_language::opcode_print_table): New member function.
409 (auto_language_data): Remove la_op_print_tab initializer.
410 (auto_language::opcode_print_table): New member function.
411 * language.h (language_data): Remove la_op_print_tab field.
412 (language_defn::opcode_print_table): Declare new member function.
413 * m2-lang.c (m2_language_data): Remove la_op_print_tab
414 initializer.
415 (m2_language::opcode_print_table): New member function.
416 * objc-lang.c (objc_language_data): Remove la_op_print_tab
417 initializer.
418 (objc_language::opcode_print_table): New member function.
419 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
420 initializer.
421 (opencl_language::opcode_print_table): New member function.
422 * p-lang.c (pascal_language_data): Remove la_op_print_tab
423 initializer.
424 (pascal_language::opcode_print_table): New member function.
425 * rust-lang.c (rust_language_data): Remove la_op_print_tab
426 initializer.
427 (rust_language::opcode_print_table): New member function.
428
5aba6ebe
AB
4292020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
430
431 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
432 (ada_language::expression_ops): New member function.
433 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
434 (c_language::expression_ops): New member function.
435 (cplus_language_data): Remove la_exp_desc initializer.
436 (cplus_language::expression_ops): New member function.
437 (asm_language_data): Remove la_exp_desc initializer.
438 (asm_language::expression_ops): New member function.
439 (minimal_language_data): Remove la_exp_desc initializer.
440 (minimal_language::expression_ops): New member function.
441 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
442 (d_language::expression_ops): New member function.
443 * eval.c (evaluate_subexp): Update call to expression_ops.
444 * expprint.c (print_subexp): Likewise.
445 (op_name): Likewise.
446 (dump_subexp_body): Likewise.
447 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
448 (f_language::expression_ops): New member function.
449 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
450 (go_language::expression_ops): New member function.
451 * language.c (language_defn::expression_ops): New function.
452 (unknown_language_data): Remove la_exp_desc initializer.
453 (auto_language_data): Likewise.
454 * language.h (language_data): Remove la_exp_desc field.
455 (language_defn::expression_ops): Declare new member function.
456 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
457 (m2_language::expression_ops): New member function.
458 * objc-lang.c (objc_language_data): Remove la_exp_desc
459 initializer.
460 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
461 initializer.
462 (opencl_language::expression_ops): New member function.
463 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
464 * parse.c (operator_length): Update call to expression_ops.
465 (exp_iterate): Likewise.
466 * rust-lang.c (rust_language_data): Remove la_exp_desc
467 initializer.
468 (ruse_language::expression_ops): New member function.
469
b63a3f3f
AB
4702020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
471
472 * ada-lang.c (ada_language_data): Remove la_varobj_ops
473 initializer.
474 (ada_language::varobj_ops): New member function.
475 * c-lang.c (c_language_data): Remove la_varobj_ops
476 initializer.
477 (cplus_language_data): Likewise.
478 (cplus_language::varobj_ops): New member function.
479 (asm_language_data): Remove la_varobj_ops initializer.
480 (minimal_language_data): Likewise.
481 * d-lang.c (d_language_data): Likewise.
482 * f-lang.c (f_language_data): Likewise.
483 * go-lang.c (go_language_data): Likewise.
484 * language.c (language_defn::varobj_ops): New function.
485 (unknown_language_data): Remove la_varobj_ops
486 initializer.
487 (auto_language_data): Likewise.
488 * language.h (language_data): Remove la_varobj_ops field.
489 (language_defn::varobj_ops): Declare new member function.
490 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
491 * objc-lang.c (objc_language_data): Likewise.
492 * opencl-lang.c (opencl_language_data): Likewise.
493 * p-lang.c (pascal_language_data): Likewise.
494 * rust-lang.c (rust_language_data): Likewise.
495 * varobj.c (varobj_create): Update call to varobj_ops.
496 * varobj.h (default_varobj_ops): Delete define.
497
1ac14a04
AB
4982020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
499
500 * ada-lang.c (ada_language_data): Remove la_macro_expansion
501 initializer.
502 * c-lang.c (c_language_data): Likewise.
503 (c_language::macro_expansion): New member function.
504 (cplus_language_data): Likewise.
505 (cplus_language::macro_expansion): New member function.
506 (asm_language_data): Likewise.
507 (asm_language::macro_expansion): New member function.
508 (minimal_language_data): Likewise.
509 (minimal_language::macro_expansion): New member function.
510 * d-lang.c (d_language_data): Remove la_macro_expansion
511 initializer.
512 * f-lang.c (f_language_data): Likewise.
513 * go-lang.c (go_language_data): Likewise.
514 * language.c (unknown_language_data): Likewise.
515 (auto_language_data): Likewise.
516 * language.h (language_data): Remove la_macro_expansion field.
517 (language_defn::macro_expansion): New member function.
518 * m2-lang.c (m2_language_data): Remove la_macro_expansion
519 initializer.
520 * objc-lang.c (objc_language_data): Likewise.
521 (objc_language::macro_expansion): New member function.
522 * opencl-lang.c (opencl_language_data): Likewise.
523 (opencl_language::macro_expansion): New member function.
524 * p-lang.c (pascal_language_data): Remove la_macro_expansion
525 initializer.
526 * rust-lang.c (rust_language_data): Likewise.
527 * symtab.c (default_collect_symbol_completion_matches_break_on):
528 Update call to macro_expansion.
529
3a3440fb
AB
5302020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
531
532 * ada-lang.c (ada_language_data): Remove la_array_ordering
533 initializer.
534 * c-lang.c (c_language_data): Likewise.
535 (cplus_language_data): Likewise.
536 (asm_language_data): Likewise.
537 (minimal_language_data): Likewise.
538 * d-lang.c (d_language_data): Likewise.
539 * dwarf2/read.c (read_array_order): Update for call to
540 array_ordering.
541 * f-lang.c (f_language_data): Remove la_array_ordering
542 initializer.
543 (f_language::array_ordering): New member function.
544 * go-lang.c (go_language_data): Remove la_array_ordering
545 initializer.
546 * language.c (unknown_language_data): Likewise.
547 (auto_language_data): Likewise.
548 * language.h (language_data): Delete la_array_ordering field.
549 (language_defn::array_ordering): New member function.
550 * m2-lang.c (m2_language_data): Remove la_array_ordering
551 initializer.
552 * objc-lang.c (objc_language_data): Likewise.
553 * opencl-lang.c (opencl_language_data): Likewise.
554 * p-lang.c (pascal_language_data): Likewise.
555 * rust-lang.c (rust_language_data): Likewise.
556
0d201fa4
AB
5572020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
558
559 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
560 initializer.
561 * c-lang.c (c_language_data): Likewise.
562 (cplus_language_data): Likewise.
563 (asm_language_data): Likewise.
564 (minimal_language_data): Likewise.
565 * d-lang.c (d_language_data): Likewise.
566 * f-lang.c (f_language_data): Likewise.
567 (f_language::case_sensitivity): New member function.
568 * go-lang.c (go_language_data): Remove la_case_sensitivity
569 initializer.
570 * language.c (enum case_mode): Moved here from language.h.
571 (case_mode): Make static.
572 (show_case_command): Update for case_sensitivity being a method.
573 (set_case_command): Likewise.
574 (set_range_case): Likewise.
575 (unknown_language_data): Remove la_case_sensitivity initializer.
576 (auto_language_data): Likewise.
577 * language.h (case_mode): Delete, move enum declaration to
578 language.c.
579 (language_data): Delete la_case_sensitivity field.
580 (language_defn::case_sensitivity): New member function.
581 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
582 initializer.
583 * objc-lang.c (objc_language_data): Likewise.
584 * opencl-lang.c (opencl_language_data): Likewise.
585 * p-lang.c (pascal_language_data): Likewise.
586 * rust-lang.c (rust_language_data): Likewise.
587
efdf6a73
AB
5882020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
589
590 * ada-lang.c (ada_language_data): Remove la_range_check
591 initializer.
592 * c-lang.c (c_language_data): Likewise.
593 (cplus_language_data): Likewise.
594 (asm_language_data): Likewise.
595 (minimal_language_data): Likewise.
596 * d-lang.c (d_language_data): Likewise.
597 * f-lang.c (f_language_data): Likewise.
598 (f_language::range_checking_on_by_default): New member function.
599 * go-lang.c (go_language_data): Remove la_range_check initializer.
600 * language.c (enum range_mode): Moved here from language.h.
601 (range_mode): Made static.
602 (show_range_command): Update to use
603 range_checking_on_by_default.
604 (set_range_command): Likewise.
605 (set_range_case): Likewise.
606 (unknown_language_data): Remove la_range_check initializer.
607 (auto_language_data): Likewise.
608 * language.h (range_mode): Delete. Enum definition moved to
609 language.c.
610 (language_data): Remove la_range_check field.
611 (language_defn::range_checking_on_by_default): New member
612 function.
613 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
614 (m2_language::range_checking_on_by_default): New member function.
615 * objc-lang.c (objc_language_data): Remove la_range_check
616 initializer.
617 * opencl-lang.c (opencl_language_data): Likewise.
618 * p-lang.c (pascal_language_data): Likewise.
619 (pascal_language::range_checking_on_by_default): New member
620 function.
621 * rust-lang.c (rust_language_data): Remove la_range_check
622 initializer.
623 (rust_language::range_checking_on_by_default): New member
624 function.
625
bf92aec5
AB
6262020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
627
628 * dwarf2/read.c (dwarf2_physname): Remove special case for
629 language_go.
630 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
631 member function.
632
d3355e4d
AB
6332020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
634
635 * ada-lang.c (ada_language_data): Remove
636 la_store_sym_names_in_linkage_form_p initializer.
637 (ada_language::store_sym_names_in_linkage_form_p): New member
638 function.
639 * c-lang.c (c_language_data): Remove
640 la_store_sym_names_in_linkage_form_p initializer.
641 (c_language::store_sym_names_in_linkage_form_p): New member
642 function.
643 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
644 initializer.
645 (asm_language_data): Likewise.
646 (asm_language::store_sym_names_in_linkage_form_p): New member
647 function.
648 (minimal_language_data): Remove
649 la_store_sym_names_in_linkage_form_p initializer.
650 (minimal_language::store_sym_names_in_linkage_form_p): New member
651 function.
652 * d-lang.c (d_language_data): Remove
653 la_store_sym_names_in_linkage_form_p initializer.
654 * dwarf2/read.c (dwarf2_physname): Update call to
655 store_sym_names_in_linkage_form_p.
656 * f-lang.c (f_language_data): Remove
657 la_store_sym_names_in_linkage_form_p initializer.
658 * go-lang.c (go_language_data): Remove
659 la_store_sym_names_in_linkage_form_p initializer.
660 * language.c (unknown_language_data): Remove
661 la_store_sym_names_in_linkage_form_p initializer.
662 (unknown_language::store_sym_names_in_linkage_form_p): New member
663 function.
664 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
665 initializer.
666 (auto_language::store_sym_names_in_linkage_form_p): New member
667 function.
668 * language.h (language_data): Remove
669 la_store_sym_names_in_linkage_form_p member variable.
670 (language_defn::store_sym_names_in_linkage_form_p): New member
671 function.
672 * m2-lang.c (m2_language_data): Remove
673 la_store_sym_names_in_linkage_form_p initializer.
674 * objc-lang.c (objc_language_data): Likewise.
675 * opencl-lang.c (opencl_language_data): Likewise.
676 * p-lang.c (pascal_language_data): Likewise.
677 * rust-lang.c (rust_language_data): Likewise.
678
22c12a6c
AB
6792020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
680
681 * ada-lang.c (ada_language_data): Remove string_lower_bound
682 initializer.
683 * c-lang.c (c_language_data): Likewise.
684 (cplus_language_data): Likewise.
685 (asm_language_data): Likewise.
686 (minimal_language_data): Likewise.
687 * d-lang.c (d_language_data): Likewise.
688 * f-lang.c (f_language_data): Likewise.
689 * go-lang.c (go_language_data): Likewise.
690 * language.c (unknown_language_data): Likewise.
691 (auto_language_data): Likewise.
692 * language.h (language_data): Remove string_lower_bound field.
693 (language_defn::string_lower_bound): New member function.
694 * m2-lang.c (m2_language_data): Remove string_lower_bound
695 initializer.
696 (m2_language::string_lower_bound): New member function.
697 * objc-lang.c (objc_language_data): Remove string_lower_bound
698 initializer.
699 * opencl-lang.c (opencl_language_data): Likewise.
700 * p-lang.c (pascal_language_data): Likewise.
701 * rust-lang.c (rust_language_data): Likewise.
702 * valops.c (value_cstring): Update call to string_lower_bound.
703 (value_string): Likewise.
704 * value.c (allocate_repeated_value): Likewise.
705
1c236ddd
AB
7062020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
707
708 * valops.c (value_repeat): Fix incorrect argument name in comment.
709
67bd3fd5
AB
7102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
711
712 * ada-lang.c (ada_language_data): Remove c_style_arrays
713 initializer.
714 (ada_language::c_style_arrays_p): New member fuction.
715 * c-lang.c (c_language_data): Remove c_style_arrays
716 initializer.
717 (cplus_language_data): Likewise.
718 (asm_language_data): Likewise.
719 (minimal_language_data): Likewise.
720 * d-lang.c (d_language_data): Likewise.
721 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
722 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
723 (f_language::c_style_arrays_p): New member function.
724 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
725 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
726 * language.c (unknown_language_data): Remove c_style_arrays
727 initializer.
728 (auto_language_data): Likewise.
729 * language.h (language_data): Remove c_style_arrays field.
730 (language_defn::c_style_arrays_p): New member function.
731 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
732 (m2_language::c_style_arrays_p): New member function.
733 * objc-lang.c (objc_language_data): Remove c_style_arrays
734 initializer.
735 * opencl-lang.c (opencl_language_data): Likewise.
736 * p-lang.c (pascal_language_data): Likewise.
737 * rust-lang.c (rust_language_data): Likewise.
738 * valarith.c (value_subscript): Update call to c_style_arrays_p,
739 and update local variable to a bool.
740 * valops.c (value_cast): Update call to c_style_arrays_p.
741 (value_array): Likewise.
742 * value.c (coerce_array): Likewise.
743
85967615
AB
7442020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
745
746 * ada-lang.c (ada_language_data): Remove la_language initializer.
747 * c-lang.c (c_language_data): Likewise.
748 (cplus_language_data): Likewise.
749 (asm_language_data): Likewise.
750 (minimal_language_data): Likewise.
751 * d-lang.c (d_language_data): Likewise.
752 * f-lang.c (f_language_data): Likewise.
753 * go-lang.c (go_language_data): Likewise.
754 * language.c (unknown_language_data): Likewise.
755 (auto_language_data): Likewise.
756 * language.h (language_data): Remove la_language field.
757 (language_defn::language_defn): Initialise la_language field.
758 (language_defn::la_language): New member variable.
759 * m2-lang.c (m2_language_data): Remove la_language field.
760 * objc-lang.c (objc_language_data): Likewise.
761 * opencl-lang.c (opencl_language_data): Likewise.
762 * p-lang.c (pascal_language_data): Likewise.
763 * rust-lang.c (rust_language_data): Likewise.
764
e171d6f1
AB
7652020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
766
767 * ada-lang.c (ada_extensions): Delete, moved into
768 ada_language::filename_extensions.
769 (ada_language_data): Remove la_filename_extensions initializer.
770 (ada_language::filename_extensions): New member function.
771 * c-lang.c (c_extensions): Delete, moved into
772 c_language::filename_extensions.
773 (c_language_data): Remove la_filename_extensions initializer.
774 (c_language::filename_extensions): New member function.
775 (cplus_extensions): Delete, moved into
776 cplus_language::filename_extensions.
777 (cplus_language_data): Remove la_filename_extensions initializer.
778 (cplus_language::filename_extensions): New member function.
779 (asm_extensions): Delete, moved into
780 asm_language::filename_extensions.
781 (asm_language_data): Remove la_filename_extensions initializer.
782 (asm_language::filename_extensions): New member function.
783 (minimal_language_data): Remove la_filename_extensions
784 initializer.
785 * d-lang.c (d_extensions): Delete, moved into
786 d_language::filename_extensions.
787 (d_language_data): Remove la_filename_extensions initializer.
788 (d_language::filename_extensions): New member function.
789 * f-lang.c (f_extensions): Delete, moved into
790 f_language::filename_extensions.
791 (f_language_data): Remove la_filename_extensions initializer.
792 (f_language::filename_extensions): New member function.
793 * go-lang.c (go_language_data): Remove la_filename_extensions
794 initializer.
795 * language.c (add_set_language_command): Update now that
796 filename_extensions returns a vector.
797 (unknown_language_data): Remove la_filename_extensions
798 initializer.
799 (auto_language_data): Likewise.
800 * language.h (language_data): Remove la_filename_extensions field.
801 (language_defn::filename_extensions): New member function.
802 * m2-lang.c (m2_language_data): Remove la_filename_extensions
803 initializer.
804 * objc-lang.c (objc_extensions): Delete, moved into
805 objc_language::filename_extensions.
806 (objc_language_data): Remove la_filename_extensions initializer.
807 (objc_language::filename_extensions): New member function.
808 * opencl-lang.c (opencl_language_data): Remove
809 la_filename_extensions initializer.
810 * p-lang.c (pascal_extensions): Delete, moved into
811 pascal_language::filename_extensions.
812 (pascal_language_data): Remove la_filename_extensions initializer.
813 (pascal_language::filename_extensions): New member function.
814 * rust-lang.c (rust_extensions): Delete, moved into
815 rust_language::filename_extensions.
816 (rust_language_data): Remove la_filename_extensions initializer.
817 (rust_language::filename_extensions): New member function.
818 * symfile.c (add_filename_language): Add new assert.
819
6f7664a9
AB
8202020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
821
822 * ada-lang.c (ada_language_data): Remove la_name and
823 la_natural_name initializers.
824 (ada_language::name): New member function.
825 (ada_language::natural_name): New member function.
826 * c-lang.c (c_language_data): Remove la_name and
827 la_natural_name initializers.
828 (c_language::name): New member function.
829 (c_language::natural_name): New member function.
830 (cplus_language_data): Remove la_name and
831 la_natural_name initializers.
832 (cplus_language::name): New member function.
833 (cplus_language::natural_name): New member function.
834 (asm_language_data): Remove la_name and
835 la_natural_name initializers.
836 (asm_language::name): New member function.
837 (asm_language::natural_name): New member function.
838 (minimal_language_data): Remove la_name and
839 la_natural_name initializers.
840 (minimal_language::name): New member function.
841 (minimal_language::natural_name): New member function.
842 * compile/compile.c (compile_to_object): Update call to
843 lanugage_defn::name.
844 * d-lang.c (d_language_data): Remove la_name and
845 la_natural_name initializers.
846 (d_language::name): New member function.
847 (d_language::natural_name): New member function.
848 * expprint.c (print_subexp_standard): Update call to
849 language_defn::name.
850 (dump_raw_expression): Likewise
851 (dump_prefix_expression): Likewise.
852 * f-lang.c (f_language_data): Remove la_name and
853 la_natural_name initializers.
854 (f_language::name): New member function.
855 (f_language::natural_name): New member function.
856 * go-lang.c (go_language_data): Remove la_name and
857 la_natural_name initializers.
858 (go_language::name): New member function.
859 (go_language::natural_name): New member function.
860 * language.c (show_language_command): Update call to
861 language_defn::name.
862 (set_language_command): Likewise.
863 (language_enum): Likewise.
864 (language_str): Likewise.
865 (add_set_language_command): Likewise, use
866 language_defn::natural_name in the doc string.
867 (unknown_language_data): Remove la_name and
868 la_natural_name initializers.
869 (unknown_language::name): New member function.
870 (unknown_language::natural_name): New member function.
871 (auto_language_data): Remove la_name and
872 la_natural_name initializers.
873 (auto_language::name): New member function.
874 (auto_language::natural_name): New member function.
875 (language_lookup_primitive_type_as_symbol): Update call to
876 language_defn::name.
877 * language.h (language_data): Remove la_name and la_natural_name
878 member variables.
879 (language_defn::name): New member function.
880 (language_defn::natural_name): New member function.
881 * m2-lang.c (m2_language_data): Remove la_name and
882 la_natural_name initializers.
883 (m2_language::name): New member function.
884 (m2_language::natural_name): New member function.
885 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
886 language_defn::natural_name.
887 * objc-lang.c (objc_language_data): Remove la_name and
888 la_natural_name initializers.
889 (objc_language::name): New member function.
890 (objc_language::natural_name): New member function.
891 * opencl-lang.c (opencl_language_data): Remove la_name and
892 la_natural_name initializers.
893 (opencl_language::name): New member function.
894 (opencl_language::natural_name): New member function.
895 * p-lang.c (pascal_language_data): Remove la_name and
896 la_natural_name initializers.
897 (pascal_language::name): New member function.
898 (pascal_language::natural_name): New member function.
899 * rust-lang.c (rust_language_data): Remove la_name and
900 la_natural_name initializers.
901 (rust_language::name): New member function.
902 (rust_language::natural_name): New member function.
903 * symtab.c (lookup_language_this): Update call to
904 language_defn::name.
905
5bae7c4e
AB
9062020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
907
908 * ada-lang.c (ada_language_data): Remove la_name_of_this
909 initializer.
910 * ax-gdb.c (gen_expr): Update call to name_of_this.
911 * c-exp.y (classify_name): Likewise.
912 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
913 (cplus_language_data): Likewise.
914 (cplus_language::name_of_this): New member function.
915 (asm_language_data): Remove la_name_of_this initializer.
916 (minimal_language_data): Likewise.
917 * d-lang.c (d_language_data): Likewise.
918 (d_language::name_of_this): New member function.
919 * expprint.c (print_subexp_standard): Update call to name_of_this.
920 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
921 * go-lang.c (go_language_data): Likewise.
922 * language.c (unknown_language_data): Likewise.
923 (unknown_language::name_of_this): New member function.
924 (auto_language_data): Remove la_name_of_this initializer.
925 (auto_language::name_of_this): New member function.
926 * language.h (language_data): Delete la_name_of_this member
927 variable.
928 (language_defn::name_of_this): New member function.
929 * m2-lang.c (m2_language_data): Remove la_name_of_this
930 initializer.
931 * objc-lang.c (objc_language_data): Likewise.
932 (objc_language::name_of_this): New member function.
933 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
934 initializer.
935 * p-lang.c (pascal_language_data): Likewise.
936 (pascal_language::name_of_this): New member function.
937 * rust-lang.c (rust_language_data): Remove la_name_of_this
938 initializer.
939 * symtab.c (lookup_language_this): Update call to name_of_this.
940 (lookup_symbol_aux): Likewise.
941 * valops.c (value_of_this): Likewise.
942
22e3f3ed
AB
9432020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
944
945 * ada-lang.c (ada_language_data): Remove
946 la_struct_too_deep_ellipsis initializer.
947 (ada_language::struct_too_deep_ellipsis): New member function.
948 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
949 initializer.
950 (cplus_language_data): Likewise.
951 (asm_language_data): Likewise.
952 (minimal_language_data): Likewise.
953 * cp-valprint.c (cp_print_value): Update call to
954 struct_too_deep_ellipsis.
955 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
956 initializer.
957 * f-lang.c (f_language_data): Likewise.
958 (f_language::struct_too_deep_ellipsis): New member function.
959 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
960 initializer.
961 * language.c (unknown_language_data): Likewise.
962 (auto_language_data): Likewise.
963 * language.h (language_data): Delete la_struct_too_deep_ellipsis
964 member variable.
965 (language_defn::struct_too_deep_ellipsis): New member function.
966 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
967 initializer.Q
968 * objc-lang.c (objc_language_data): Likewise.
969 * opencl-lang.c (opencl_language_data): Likewise.
970 * p-lang.c (pascal_language_data): Likewise.
971 * rust-lang.c (rust_language_data): Likewise.
972 * valprint.c (val_print_check_max_depth): Update call to
973 struct_too_deep_ellipsis.
974
ed29e1c7
FW
9752020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
976
977 * MAINTAINERS (Write After Approval): Add myself.
978
12d8f940
TT
9792020-09-15 Tom Tromey <tom@tromey.com>
980
981 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
982 Remove.
983
6b5a7bc7
TT
9842020-09-15 Tom Tromey <tom@tromey.com>
985
986 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
987 and TYPE_CODE_METHODPTR cases.
988 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
989 (c_value_print_inner): Update.
990 * valprint.c (generic_value_print_memberptr): New function, from
991 c_value_print_memberptr.
992 (generic_value_print): Use it. Call cplus_print_method_ptr.
993
47f0e2ff
TT
9942020-09-15 Tom Tromey <tromey@adacore.com>
995
996 * python/python-internal.h (PyInt_FromLong): Remove define.
997 * python/py-value.c (convert_value_from_python): Use
998 gdb_py_object_from_longest.
999 * python/py-type.c (typy_get_code): Use
1000 gdb_py_object_from_longest.
1001 * python/py-symtab.c (salpy_get_line): Use
1002 gdb_py_object_from_longest.
1003 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1004 gdb_py_object_from_longest.
1005 * python/py-record.c (recpy_gap_reason_code): Use
1006 gdb_py_object_from_longest.
1007 * python/py-record-btrace.c (recpy_bt_insn_size)
1008 (recpy_bt_func_level, btpy_list_count): Use
1009 gdb_py_object_from_longest.
1010 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1011 gdb_py_object_from_longest. Fix error handling.
1012 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1013 gdb_py_object_from_longest.
1014 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1015 gdb_py_object_from_longest.
1016 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1017 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1018 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1019
512116ce
TT
10202020-09-15 Tom Tromey <tromey@adacore.com>
1021
1022 * python/python.c (gdbpy_parameter_value): Use
1023 gdb_py_object_from_ulongest.
1024
4ab1029c
TT
10252020-09-15 Tom Tromey <tromey@adacore.com>
1026
1027 * python/py-infevents.c (create_register_changed_event_object):
1028 Use gdb_py_object_from_longest.
1029 * python/py-exitedevent.c (create_exited_event_object): Use
1030 gdb_py_object_from_longest.
1031
062534d4
TT
10322020-09-15 Tom Tromey <tromey@adacore.com>
1033
1034 * python/python.c (gdbpy_parameter_value): Use
1035 gdb_py_object_from_longest.
1036 * python/py-type.c (convert_field, typy_range): Use
1037 gdb_py_object_from_longest.
1038 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1039 gdb_py_object_from_longest.
1040 * python/py-lazy-string.c (stpy_get_length): Use
1041 gdb_py_object_from_longest.
1042 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1043 gdb_py_object_from_longest.
1044 * python/py-infevents.c (create_memory_changed_event_object): Use
1045 gdb_py_object_from_longest.
1046 * python/py-inferior.c (infpy_get_num): Use
1047 gdb_py_object_from_longest.
1048 (infpy_get_pid): Likewise.
1049
d1cab987
TT
10502020-09-15 Tom Tromey <tromey@adacore.com>
1051
1052 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1053 defines.
1054 * python/py-value.c (valpy_long): Use
1055 gdb_py_object_from_ulongest.
1056 * python/py-symtab.c (salpy_get_pc): Use
1057 gdb_py_object_from_ulongest.
1058 (salpy_get_last): Likewise.
1059 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1060 gdb_py_object_from_ulongest.
1061 * python/py-lazy-string.c (stpy_get_address): Use
1062 gdb_py_object_from_ulongest.
1063 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1064 * python/py-arch.c (archpy_disassemble): Use
1065 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1066 error handling.
1067
4bde49dc
TT
10682020-09-15 Tom Tromey <tromey@adacore.com>
1069
1070 * python/python-internal.h (gdb_py_long_from_longest): Remove
1071 defines.
1072 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1073 * python/py-type.c (convert_field, typy_get_sizeof): Use
1074 gdb_py_object_from_longest.
1075 * python/py-record-btrace.c (btpy_list_index): Use
1076 gdb_py_object_from_longest.
1077
37431074
TT
10782020-09-15 Tom Tromey <tromey@adacore.com>
1079
1080 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1081 * python/py-record.c (recpy_element_number): Use
1082 gdb_py_object_from_longest.
1083 (recpy_gap_number): Likewise.
1084
cbe25684
TT
10852020-09-15 Tom Tromey <tromey@adacore.com>
1086
1087 * top.c (ui::ui): Update.
1088 (highest_ui_num): Remove.
1089 * top.h (struct ui) <num>: Remove.
1090
db92ac45
TT
10912020-09-15 Tom Tromey <tromey@adacore.com>
1092
1093 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1094 * ui-style.c (ansi_regex_text): Now array.
1095 * rust-exp.y (number_regex_text): Now array.
1096 * linespec.c (linespec_quote_characters): Now array.
1097 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1098 Now arrays.
1099
d2b31b67
SM
11002020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1101
1102 * debuginfod-support.c (debuginfod_client_deleter): New.
1103 (debuginfod_client_up): New.
1104 (debuginfod_init): Return debuginfod_client_up.
1105 (debuginfod_source_query): Adjust.
1106 (debuginfod_debuginfo_query): Adjust.
1107
3246bd8e
SM
11082020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1109
1110 * debuginfod-support.c (debuginfod_source_query): Use
1111 make_unique_xstrdup.
1112
10242f36
SM
11132020-09-14 Simon Marchi <simon.marchi@efficios.com>
1114
1115 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1116 with `type::instance_flags`.
1117
e1044e6a
MM
11182020-09-14 Michael Mullin <masmullin@gmail.com>
1119
1120 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1121 Remove baton parameter.
1122
04902b09
PA
11232020-09-14 Pedro Alves <pedro@palves.net>
1124
1125 * Makefile.in (SELFTESTS_SRCS): Add
1126 unittests/enum-flags-selftests.c.
1127 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1128 btrace_function_flags instead of enum btrace_function_flag.
1129 * compile/compile-c-types.c (convert_qualified): Use
1130 enum_flags::raw.
1131 * compile/compile-cplus-symbols.c (convert_one_symbol)
1132 (convert_symbol_bmsym):
1133 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1134 (compile_cplus_convert_struct_or_union_methods)
1135 (compile_cplus_instance::convert_qualified_base):
1136 * go-exp.y (parse_string_or_char): Add cast to int.
1137 * unittests/enum-flags-selftests.c: New file.
1138 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1139 type to btrace_thread_flags from btrace_thread_flag.
1140 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1141 local's type to btrace_thread_flags from btrace_thread_flag. Add
1142 cast in DEBUG call.
1143
69896a2c
PA
11442020-09-14 Pedro Alves <pedro@palves.net>
1145
1146 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1147 * gdbtypes.c (address_space_name_to_int): Rename to ...
1148 (address_space_name_to_type_instance_flags): ... this.
1149 (address_space_int_to_name): Rename to ...
1150 (address_space_type_instance_flags_to_name): ... this.
1151 * gdbtypes.h (address_space_name_to_int): Rename to ...
1152 (address_space_name_to_type_instance_flags): ... this.
1153 (address_space_int_to_name): Rename to ...
1154 (address_space_type_instance_flags_to_name): ... this.
1155 * type-stack.c (type_stack::insert): Adjust to rename.
1156 * type-stack.h (type_stack::insert): Likewise.
1157
314ad88d
PA
11582020-09-14 Pedro Alves <pedro@palves.net>
1159 Andrew Burgess <andrew.burgess@embecosm.com>
1160
1161 * avr-tdep.c (avr_address_class_type_flags): Return
1162 type_instance_flags.
1163 (avr_address_class_type_flags_to_name): Take a
1164 type_instance_flags.
1165 (avr_address_class_name_to_type_flags): Return bool and take a
1166 type_instance_flags.
1167 * d-lang.c (build_d_types): Use type::set_instance_flags.
1168 * ft32-tdep.c (ft32_address_class_type_flags): Return
1169 type_instance_flags.
1170 (ft32_address_class_type_flags_to_name): Take a
1171 type_instance_flags.
1172 (ft32_address_class_name_to_type_flags): Return bool and take a
1173 type_instance_flags.
1174 (ft32_gdbarch_init): Use type::set_instance_flags.
1175 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1176 * gdbarch.h, gdbarch.c: Regenerate.
1177 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1178 (address_class_name_to_type_flags): Use type_instance_flags and
1179 bool.
1180 * gdbtypes.c (address_space_name_to_int)
1181 (address_space_int_to_name, make_qualified_type): Use
1182 type_instance_flags.
1183 (make_qualified_type): Use type_instance_flags and
1184 type::set_instance_flags.
1185 (make_type_with_address_space, make_cv_type, make_vector_type)
1186 (check_typedef): Use type_instance_flags.
1187 (recursive_dump_type): Cast type_instance_flags to unsigned for
1188 printing.
1189 (copy_type_recursive): Use type::set_instance_flags.
1190 (gdbtypes_post_init): Use type::set_instance_flags.
1191 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1192 <m_instance_flags>: ... this.
1193 <instance_flags, set_instance_flags>: New methods.
1194 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1195 (SET_TYPE_INSTANCE_FLAGS): New.
1196 (address_space_name_to_int, address_space_int_to_name)
1197 (make_type_with_address_space): Pass flags using
1198 type_instance_flags instead of int.
1199 * stabsread.c (cleanup_undefined_types_noname): Use
1200 type::set_instance_flags.
1201 * s390-tdep.c (s390_address_class_type_flags): Return
1202 type_instance_flags.
1203 (s390_address_class_type_flags_to_name): Take a
1204 type_instance_flags.
1205 (s390_address_class_name_to_type_flags): Return bool and take a
1206 type_instance_flags.
1207 * type-stack.c (type_stack::follow_types): Use
1208 type_instance_flags.
1209 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1210
27087b7f
TT
12112020-09-14 Tom Tromey <tromey@adacore.com>
1212
1213 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1214 * x86-tdep.c (x86_is_thunk_register_name)
1215 (x86_in_indirect_branch_thunk): Update.
1216 * sparc64-tdep.c (sparc64_fpu_register_names)
1217 (sparc64_cp0_register_names, sparc64_register_names)
1218 (sparc64_pseudo_register_names): Now const.
1219 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1220 cp0_registers_num>: Now const.
1221 * sparc-tdep.c (sparc_core_register_names)
1222 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1223 (sparc32_pseudo_register_names): Now const.
1224 (validate_tdesc_registers): Update.
1225 * rust-lang.c (rust_extensions): Now const.
1226 * p-lang.c (p_extensions): Now const.
1227 * objc-lang.c (objc_extensions): Now const.
1228 * nto-tdep.c (nto_thread_state_str): Now const.
1229 * moxie-tdep.c (moxie_register_names): Now const.
1230 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1231 Now const.
1232 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1233 (mips_linux_reg_names): Now const.
1234 (mips_gdbarch_init): Update.
1235 * microblaze-tdep.c (microblaze_register_names): Now const.
1236 * m68k-tdep.c (m68k_register_names): Now const.
1237 * m32r-tdep.c (m32r_register_names): Now const.
1238 * ia64-tdep.c (ia64_register_names): Now const.
1239 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1240 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1241 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1242 ymm_avx512_register_names, pkeys_register_names>: Now const.
1243 * i386-tdep.c (i386_register_names, i386_zmm_names)
1244 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1245 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1246 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1247 * f-lang.c (f_extensions): Now const.
1248 * d-lang.c (d_extensions): Now const.
1249 * csky-tdep.c (csky_register_names): Now const.
1250 * charset.c (default_charset_names, charset_enum): Now const.
1251 (_initialize_charset): Update.
1252 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1253 const.
1254 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1255 (bsd_uthread_solib_loaded): Update.
1256 (bsd_uthread_state): Now const.
1257 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1258 (amd64_ymm_avx512_names, amd64_ymmh_names)
1259 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1260 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1261 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1262 (amd64_dword_names): Now const.
1263 * agent.c (can_use_agent_enum): Now const.
1264 * ada-tasks.c (task_states, long_task_states): Now const.
1265 * ada-lang.c (known_runtime_file_name_patterns)
1266 (known_auxiliary_function_name_patterns, attribute_names)
1267 (standard_exc, ada_extensions): Now const.
1268
89806626
SM
12692020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1270
1271 * bcache.h (struct bcache) <bcache>: Remove constructor.
1272 <m_hash_function, m_compare_function>: Remove.
1273 <~bcache>: Make virtual.
1274 <compare>: Remove static method, introduce virtual method.
1275 <default_hash>: Remove.
1276 <hash>: New virtual method.
1277 * bcache.c (bcache::expand_hash_table): Update.
1278 (bcache::insert): Update.
1279 (bcache::hash): New.
1280 (bcache::compare): Update comment and parameter names.
1281 * gdbtypes.c (types_deeply_equal): Update.
1282 * psymtab.h (struct psymbol_bcache): New struct.
1283 (class psymtab_storage) <psymtab_storage>: Make default.
1284 <psymbol_cache>: Change type to psymbol_bcache.
1285 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1286 (psymbol_hash): Change to...
1287 (psymbol_bcache::hash): ... this.
1288 (psymbol_compare): Change to...
1289 (psymbol_bcache::compare): ... this.
1290
677c92fe
SM
12912020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1292
1293 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1294 checking for initial lwp.
1295
3eba3a01
TT
12962020-09-14 Tom Tromey <tromey@adacore.com>
1297
1298 * m68k-tdep.c (m68k_extract_return_value): Use
1299 pointer_result_regnum.
1300 (m68k_store_return_value): Likewise.
1301 (m68k_reg_struct_return_p): Handle vectors and arrays.
1302 (m68k_return_value): Handle arrays.
1303 (m68k_svr4_return_value): Fix single-element aggregate handling.
1304 Handle long double. Adjust for embedded ABI.
1305 (m68k_svr4_init_abi): Set pointer_result_regnum.
1306 (m68k_embedded_init_abi): New function.
1307 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1308 (m68k_osabi_sniffer): New function.
1309 (_initialize_m68k_tdep): Register osabi sniffer.
1310 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1311 member.
1312
33f4dd48
SM
13132020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1314
1315 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1316 with gdb::unique_xmalloc_ptr<char>.
1317
8400a90d
SM
13182020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1319
1320 * xml-support.h (xml_fetch_another): Change type to be a
1321 function_view.
1322 (xml_process_xincludes): Remove baton parameter.
1323 (xml_fetch_content_from_file): Change baton parameter to
1324 dirname.
1325 * xml-support.c (struct xinclude_parsing_data)
1326 <xinclude_parsing_data>: Remove baton parameter.
1327 <fetcher_baton>: Remove.
1328 (xinclude_start_include): Adjust.
1329 (xml_process_xincludes): Adjust.
1330 (xml_fetch_content_from_file): Replace baton parameter with
1331 dirname.
1332 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1333 (xml_init_syscalls_info): Use a lambda.
1334 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1335 (file_read_description_xml): Use a lambda.
1336 (fetch_available_features_from_target): Change baton parameter
1337 to target_ops.
1338 (target_read_description_xml): Use a lambda.
1339 (target_fetch_description_xml): Use a lambda.
1340 (string_read_description_xml): Update.
1341
04f5bab2
SM
13422020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1343
1344 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1345 uses with type::endianity_is_not_default.
1346
db558e34
SM
13472020-09-14 Simon Marchi <simon.marchi@efficios.com>
1348
1349 * gdbtypes.h (struct type) <endianity_is_not_default,
1350 set_endianity_is_not_default>: New methods.
1351 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1352 type::endianity_is_not_default, change all write call sites to
1353 use type::set_endianity_is_not_default.
1354
22c4c60c
SM
13552020-09-14 Simon Marchi <simon.marchi@efficios.com>
1356
1357 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1358 uses with type::is_fixed_instance.
1359
9cdd0d12
SM
13602020-09-14 Simon Marchi <simon.marchi@efficios.com>
1361
1362 * gdbtypes.h (struct type) <is_fixed_instance,
1363 set_is_fixed_instance>: New methods.
1364 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1365 write call sites to use type::set_is_fixed_instance.
1366
0becda7a
SM
13672020-09-14 Simon Marchi <simon.marchi@efficios.com>
1368
1369 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1370 uses with type::is_gnu_ifunc.
1371
03cc7249
SM
13722020-09-14 Simon Marchi <simon.marchi@efficios.com>
1373
1374 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1375 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1376 use type::set_is_gnu_ifunc.
1377
3f46044c
SM
13782020-09-14 Simon Marchi <simon.marchi@efficios.com>
1379
1380 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1381 uses with type::stub_is_supported.
1382
9baccff6
SM
13832020-09-14 Simon Marchi <simon.marchi@efficios.com>
1384
1385 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1386 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1387 use type::set_stub_is_supported.
1388
bd63c870
SM
13892020-09-14 Simon Marchi <simon.marchi@efficios.com>
1390
1391 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1392 uses with type::is_vector.
1393
2062087b
SM
13942020-09-14 Simon Marchi <simon.marchi@efficios.com>
1395
1396 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1397 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1398 use type::set_is_vector.
1399
a409645d
SM
14002020-09-14 Simon Marchi <simon.marchi@efficios.com>
1401
1402 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1403 uses with type::has_varargs.
1404
1d6286ed
SM
14052020-09-14 Simon Marchi <simon.marchi@efficios.com>
1406
1407 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1408 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1409 use type::set_has_varargs.
1410
7f9f399b
SM
14112020-09-14 Simon Marchi <simon.marchi@efficios.com>
1412
1413 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1414 uses with type::is_prototyped.
1415
27e69b7a
SM
14162020-09-14 Simon Marchi <simon.marchi@efficios.com>
1417
1418 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1419 New methods.
1420 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1421 call sites to use type::set_is_prototyped.
1422
d2183968
SM
14232020-09-14 Simon Marchi <simon.marchi@efficios.com>
1424
1425 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1426 uses with type::target_is_stub.
1427
8f53807e
SM
14282020-09-14 Simon Marchi <simon.marchi@efficios.com>
1429
1430 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1431 New methods.
1432 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1433 sites to use type::set_target_is_stub.
1434
e46d3488
SM
14352020-09-14 Simon Marchi <simon.marchi@efficios.com>
1436
1437 * gdbtypes.h (TYPE_STUB): Remove, replace all
1438 uses with type::is_stub.
1439
b4b73759
SM
14402020-09-14 Simon Marchi <simon.marchi@efficios.com>
1441
1442 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1443 (TYPE_STUB): Use type::is_stub, change all write call sites to
1444 use type::set_is_stub.
1445
20ce4123
SM
14462020-09-14 Simon Marchi <simon.marchi@efficios.com>
1447
1448 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1449 type::has_no_signedness.
1450
15152a54
SM
14512020-09-14 Simon Marchi <simon.marchi@efficios.com>
1452
1453 * gdbtypes.h (struct type) <has_no_signedness,
1454 set_has_no_signedness>: New methods.
1455 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1456 call sites to use type::set_has_no_signedness.
1457
c6d940a9
SM
14582020-09-14 Simon Marchi <simon.marchi@efficios.com>
1459
1460 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1461 type::is_unsigned.
1462
653223d3
SM
14632020-09-14 Simon Marchi <simon.marchi@efficios.com>
1464
1465 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1466 methods.
1467 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1468 sites to use type::set_is_unsigned.
1469
55ea94da
FH
14702020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1471 Adam Renquinha <arenquinha@cimeq.qc.ca>
1472
1473 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1474 pointer and stack frame offset when unwinding.
1475
6791b117
PA
14762020-09-13 Pedro Alves <pedro@palves.net>
1477
1478 * NEWS: Document "-break-insert --qualified".
1479 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1480
77f2120b
PA
14812020-09-13 Pedro Alves <pedro@palves.net>
1482
1483 * linespec.c (classify_mtype, compare_msyms): Delete.
1484 (search_minsyms_for_name): Remove classification logic. Instead
1485 filter out trampoline symbols if we also found an external
1486 function of the same name.
1487
ed6a896c
JB
14882020-09-13 Joel Brobecker <brobecker@adacore.com>
1489
1490 * NEWS: Create a new section for the next release branch.
1491 Rename the section of the current branch, now that it has
1492 been cut.
1493
32aea73e
JB
14942020-09-13 Joel Brobecker <brobecker@adacore.com>
1495
1496 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1497 * version.in: Bump version to 11.0.50.DATE-git.
1498
8087c3fa
JB
14992020-09-12 Joel Brobecker <brobecker@adacore.com>
1500
1501 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1502
2a67f09d
FW
15032020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1504 Felix Willgerodt <Felix.Willgerodt@intel.com>
1505
1506 * gdbarch.sh: Added bfloat16 type.
1507 * gdbarch.c: Regenerated.
1508 * gdbarch.h: Regenerated.
1509 * gdbtypes.c (floatformats_bfloat16): New struct.
1510 (gdbtypes_post_init): Add builtin_bfloat16.
1511 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1512 (floatformats_bfloat16): New struct.
1513 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1514 (i386_ymm_type): Add field "v16_bfloat16"
1515 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1516 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1517 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1518 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1519 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1520 * features/i386/64bit-avx512.c: Regenerated.
1521 * features/i386/64bit-sse.xml: Add bfloat16 type.
1522 * features/i386/64bit-sse.c: Regenerated.
1523
1347d111
FW
15242020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1525
1526 * i386-tdep.c (i386_zmm_type): Fix field names.
1527 (i386_ymm_type): Fix field names.
1528
7a4e8e7d
TBA
15292020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1530
1531 * breakpoint.c: Fix typo in the help message of the
1532 "set breakpoint condition-evaluation" command.
1533
cf4ac4be
KR
15342020-09-10 Kamil Rytarowski <n54@gmx.com>
1535
1536 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1537 * (nbsd_nat_target::pid_to_exec_file)
1538 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1539 (nbsd_nat_target::post_startup_inferior)
1540 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1541 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1542 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1543 * (nbsd_thread_lister): Remove.
1544
f404573e
KR
15452020-09-10 Kamil Rytarowski <n54@gmx.com>
1546
1547 * fork-inferior.c (startup_inferior): Avoid double free.
1548
1ccb2c17
KR
15492020-09-10 Kamil Rytarowski <n54@gmx.com>
1550
1551 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1552 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1553
feedfcc7
KR
15542020-09-10 Kamil Rytarowski <n54@gmx.com>
1555
1556 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1557 * netbsd-nat.c: Include <sys/ptrace.h>.
1558 * (netbsd_nat::enable_proc_events): Add.
1559
c489f8c6
KR
15602020-09-10 Kamil Rytarowski <n54@gmx.com>
1561
1562 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1563 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1564 (netbsd_nat::for_each_thread): Add.
1565 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1566 "gdbsupport/common-debug.h".
1567 * (netbsd_nat::netbsd_thread_lister)
1568 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1569 (netbsd_nat::for_each_thread): Add.
1570
330662f6
KR
15712020-09-10 Kamil Rytarowski <n54@gmx.com>
1572
1573 * netbsd-nat.h: Include <unistd.h>.
1574 * (netbsd_nat::pid_to_exec_file): Add.
1575 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1576 * (netbsd_nat::pid_to_exec_file) Add.
1577
70b67307
KR
15782020-09-10 Kamil Rytarowski <n54@gmx.com>
1579
1580 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1581
99cf6da6
KR
15822020-09-10 Kamil Rytarowski <n54@gmx.com>
1583
1584 * netbsd-nat.h: New file.
1585 * netbsd-nat.c: Likewise.
1586
1b788fb6
TT
15872020-09-09 Tom Tromey <tromey@adacore.com>
1588
1589 * ada-lang.c (remove_extra_symbols): Do not increment when
1590 removing an element
1591
03b0a45f
TT
15922020-09-08 Tom Tromey <tromey@adacore.com>
1593
1594 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1595
3cae4447
TT
15962020-09-08 Tom Tromey <tromey@adacore.com>
1597
1598 PR win32/25302:
1599 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1600 (gdb_bfd_init_data): New function.
1601 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1602
7f08fd51
TBA
16032020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1604
1605 * infrun.c (fetch_inferior_event): Use
1606 `switch_to_target_no_thread` to switch the target.
1607
3e6ff933
TT
16082020-09-06 Tom Tromey <tom@tromey.com>
1609
1610 * symfile.h (dwarf2_free_objfile): Don't declare.
1611
e56798df
AKS
16122020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1613
1614 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1615 to match 16 byte real/complex type generated by Flang compiler.
1616
8f5c6526
TV
16172020-09-03 Tom de Vries <tdevries@suse.de>
1618
1619 PR breakpoint/26546
1620 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1621 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1622
c5065df0
SM
16232020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1624
1625 * maint.c (index_digits): New function.
1626 (struct maint_print_section_data): Remove.
1627 (print_bfd_section_info): Remove print_data parameter, add arg
1628 and index_digits.
1629 (print_objfile_section_info): Likewise.
1630 (print_bfd_section_info_maybe_relocated): Likewise (plus
1631 objfile).
1632 (maintenance_info_sections): Adjust calls.
1633
02c6f3f1
TT
16342020-09-02 Tom Tromey <tromey@adacore.com>
1635
1636 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1637 for null pointers.
1638 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1639
ef5e5b0b
SM
16402020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1641
1642 * bcache.h (struct bcache) <insert>: Change type of `added` to
1643 pointer to bool.
1644 * bcache.c (bcache::insert): Likewise.
1645 * gdbtypes.c (check_types_worklist): Adjust.
1646 * psymtab.c (add_psymbol_to_bcache): Adjust.
1647
973695d6
KB
16482020-08-31 Kevin Buettner <kevinb@redhat.com>
1649
1650 * corelow.c (unordered_set): Include.
1651 (class core_target): Add field 'm_core_unavailable_mappings'.
1652 (core_target::build_file_mappings): Print only one warning
1653 per inaccessible file. Add unavailable/broken mappings
1654 to m_core_unavailable_mappings.
1655 (core_target::xfer_partial): Call...
1656 (core_target::xfer_memory_via_mappings): New method.
1657
264fc0e2
SM
16582020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1659
1660 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1661 type to bool.
1662
2de01bdb
SM
16632020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1664
1665 * dwarf2/read.c (struct field_info): Fix indentation.
1666
f3bd50f1
SM
16672020-08-31 Simon Marchi <simon.marchi@efficios.com>
1668
1669 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1670 ordering in comment.
1671 * frame.c (frame_id_eq): Fix indentation.
1672
22b9b4b0
SL
16732020-08-31 Scott Linder <scott@scottlinder.com>
1674 Simon Marchi <simon.marchi@efficios.com>
1675
1676 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1677 inline frame ids in outer frame.
1678
84154d16
SM
16792020-08-31 Simon Marchi <simon.marchi@efficios.com>
1680
1681 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1682 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1683 (outer_frame_id): Use FID_STACK_OUTER instead of
1684 FID_STACK_INVALID.
1685 (frame_id_p): Don't check for outer_frame_id.
1686
8efaf6b3
SM
16872020-08-31 Simon Marchi <simon.marchi@efficios.com>
1688
1689 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1690 regnum/frame in value. Call allocate_value_lazy.
1691 * frame.c (frame_unwind_register_value): Use
1692 val_print_not_saved.
1693
fe1fe7ea
SM
16942020-08-31 Simon Marchi <simon.marchi@efficios.com>
1695
1696 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1697
f7c7700d
PA
16982020-08-29 Pedro Alves <pedro@palves.net>
1699
1700 * progspace.c (print_program_space): Use all_inferiors. Switch to
1701 the inferior before calling target_pid_to_str.
1702
e0814aae
TT
17032020-08-28 Tom Tromey <tom@tromey.com>
1704
1705 * xcoffread.c (xcoff_end_psymtab): Update comment.
1706 * dbxread.c (dbx_end_psymtab): Update comment.
1707
626d2320
TV
17082020-08-28 Tom de Vries <tdevries@suse.de>
1709
1710 PR breakpoint/26544
1711 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1712 event_location.
1713 (create_breakpoint): Same.
1714 (base_breakpoint_decode_location): Same.
1715 (bkpt_create_sals_from_location): Same.
1716 (bkpt_decode_location): Same.
1717 (bkpt_probe_create_sals_from_location): Same.
1718 (bkpt_probe_decode_location): Same.
1719 (tracepoint_create_sals_from_location): Same.
1720 (tracepoint_decode_location): Same.
1721 (tracepoint_probe_decode_location): Same.
1722 (strace_marker_create_sals_from_location): Same.
1723 (strace_marker_decode_location): Same.
1724 (create_sals_from_location_default): Same.
1725 (decode_location_default): Same.
1726 * breakpoint.h (struct breakpoint_ops): Same.
1727 (create_breakpoint): Same.
1728 * linespec.h (decode_line_full): Same.
1729 * linespec.c (decode_line_full): Same. Throw error if
1730 result.size () == 0.
1731
df631783
PA
17322020-08-27 Pedro Alves <pedro@palves.net>
1733
1734 PR gdb/26524
1735 * breakpoint.c (until_break_fsm) <location_breakpoint,
1736 caller_breakpoint>: Delete fields.
1737 <breakpoints>: New field.
1738 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1739 two individual breakpoints.
1740 (until_break_fsm::should_stop): Loop over breakpoints in the
1741 breakpoint vector.
1742 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1743 vector.
1744 (until_break_command): Handle location expanding into multiple
1745 sals.
1746
b2b38aa4
PA
17472020-08-27 Pedro Alves <pedro@palves.net>
1748
1749 PR gdb/26523
1750 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1751 bp_until breakpoints user-specified locations. Update intro
1752 comment.
1753
b886559f
SM
17542020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1755
1756 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1757 gdb_bfd_sections): New.
1758 * maint.c (print_bfd_section_info): Change param type to
1759 maint_print_section_data.
1760 (print_objfile_section_info): Likewise.
1761 (print_bfd_section_info_maybe_relocated): Likewise.
1762 (maintenance_info_sections): Use gdb_bfd_sections.
1763
4c6e63bf
SV
17642020-08-25 Shahab Vahedi <shahab@synopsys.com>
1765
1766 * MAINTAINERS: Add ARC target and maintainer.
1767
8d7f0635
AK
17682020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1769
1770 * configure.tgt: ARC support for GNU/Linux.
1771 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1772 * arc-linux-tdep.c: New file.
1773 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1774 * arc-tdep.c (arc_write_pc): Use it.
1775
fdd8731b
SV
17762020-08-25 Shahab Vahedi <shahab@synopsys.com>
1777
1778 * arc-tdep.c (arc_check_for_hardware_loop): New.
1779 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1780
22459524
SV
17812020-08-25 Shahab Vahedi <shahab@synopsys.com>
1782
1783 * arc-tdep.h: Include "gdbarch.h".
1784
995d3a19
SV
17852020-08-25 Shahab Vahedi <shahab@synopsys.com>
1786
1787 * arch/arc.h
1788 (arc_gdbarch_features): New class to stir the selection of target XML.
1789 (arc_create_target_description): Use FEATURES to choose XML target.
1790 (arc_lookup_target_description): Use arc_create_target_description
1791 to create _new_ target descriptions or return the already created
1792 ones if the FEATURES is the same.
1793 * arch/arc.c: Implementation of prototypes described above.
1794 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1795 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1796 * arc-tdep.c (*_feature_name): Make feature names consistent.
1797 (arc_register_feature): A new struct to hold information about
1798 registers of a particular target/feature.
1799 (arc_check_tdesc_feature): Check if XML provides registers in
1800 compliance with ARC_REGISTER_FEATURE structs.
1801 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1802 (determine_*_reg_feature_set): Which feature name to look for.
1803 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1804 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1805 to expected ISA enums to be used in arc_gdbarch_features structs.
1806 * features/Makefile (FEATURE_XMLFILES): Add new files.
1807 * gdb/features/arc/v1-aux.c: New file.
1808 * gdb/features/arc/v1-aux.xml: Likewise.
1809 * gdb/features/arc/v1-core.c: Likewise.
1810 * gdb/features/arc/v1-core.xml: Likewise.
1811 * gdb/features/arc/v2-aux.c: Likewise.
1812 * gdb/features/arc/v2-aux.xml: Likewise.
1813 * gdb/features/arc/v2-core.c: Likewise.
1814 * gdb/features/arc/v2-core.xml: Likewise.
1815 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1816
3945d2d7
GM
18172020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1818 Andrew Burgess <andrew.burgess@embecosm.com>
1819
1820 PR m2/26372
fc5d6901 1821 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
1822 an assert. Remove single element array indexing pattern as the
1823 MULTI_SUBSCRIPT support will handle this case too.
1824
2677f2d3
SM
18252020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1826
1827 * value.h (valprint_check_validity): Move declaration from
1828 here...
1829 * valprint.h (valprint_check_validity): ... to here.
1830
c426fddb
SM
18312020-08-24 Simon Marchi <simon.marchi@efficios.com>
1832
1833 * debug.h: New file.
1834 * debug.c (debug_prefixed_vprintf): New function.
1835 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1836 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1837
1eb8556f
SM
18382020-08-24 Simon Marchi <simon.marchi@efficios.com>
1839
1840 * infrun.h (infrun_debug_printf_1): New function declaration.
1841 (infrun_debug_printf): New macro.
1842 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1843 throughout.
1844 (infrun_debug_printf): New function.
1845 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1846 (handle_jit_event): Likewise.
1847
b8fff44e
MW
18482020-08-21 Mark Wielaard <mark@klomp.org>
1849
1850 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1851
d19c3068
SM
18522020-08-22 Simon Marchi <simon.marchi@efficios.com>
1853
1854 * frame.c (enum class frame_id_status): New.
1855 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1856 (fprintf_frame): Update.
1857 (compute_frame_id): Set frame id status to "computing" on entry.
1858 Set it back to "not_computed" on failure and to "computed" on
1859 success.
1860 (get_frame_id): Assert the frame id is not being computed.
1861 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1862 (create_new_frame): Likewise.
1863 (frame_cleanup_after_sniffer): Update assert.
1864
b70e516e
SM
18652020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1866
1867 * regcache.c (pid_ptid_regcache_map): New type.
1868 (target_ptid_regcache_map): Remove.
1869 (target_pid_ptid_regcache_map): New type.
1870 (regcaches): Change type to target_pid_ptid_regcache_map.
1871 (get_thread_arch_aspace_regcache): Update.
1872 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1873 case.
1874 (regcaches_size): Update.
1875 (regcache_count): Update.
1876 (registers_changed_ptid_target_pid_test): New.
1877 (_initialize_regcache): Register new test.
1878
cdd9148a
SM
18792020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1880
1881 * regcache.c (regcache_count): New.
1882 (struct regcache_test_data): New.
1883 (regcache_test_data_up): New.
1884 (populate_regcaches_for_test): New.
1885 (regcaches_test): Remove.
1886 (get_thread_arch_aspace_regcache_test): New.
1887 (registers_changed_ptid_all_test): New.
1888 (registers_changed_ptid_target_test): New.
1889 (registers_changed_ptid_target_ptid_test): New.
1890 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1891 (_initialize_regcache): Register new tests.
1892
dd125343
SM
18932020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1894
1895 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1896 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1897 gdbarch and aspace parameter. Use current inferior's aspace.
1898 Validate regcache's arch value.
1899 (regcaches_test): Update.
1900
3ee93972
SM
19012020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1902
1903 * regcache.c (regcaches_test): Call registers_changed.
1904
33bf4c5c
TBA
19052020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1906
1907 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1908
c2fd7fae
AKS
19092020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1910
1911 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1912 to find the end of prologue for flang compiled binaries.
1913 * arm-tdep.c (arm_skip_prologue): Likewise.
1914 * i386-tdep.c (i386_skip_prologue): Likewise.
1915 * producer.c (producer_is_llvm): New function.
1916 (producer_parsing_tests): Added new tests for clang/flang.
1917 * producer.h (producer_is_llvm): New declaration.
1918
9327494e
SM
19192020-08-18 Simon Marchi <simon.marchi@efficios.com>
1920
1921 * linux-nat.c (linux_nat_debug_printf): New function.
1922 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1923
d138725a
AM
19242020-08-18 Aaron Merey <amerey@redhat.com>
1925
1926 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1927 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1928 (CLIBS): Add DEBUGINFOD_LIBS.
1929
f9b11e6b
ST
19302020-08-17 Sergei Trofimovich <siarheit@google.com>
1931
1932 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1933 'gdbarch_num_regs'.
1934
3ae7ab99
TT
19352020-08-17 Tom Tromey <tromey@adacore.com>
1936
1937 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1938 ada_get_decoded_value returns NULL.
1939
b017825f
TT
19402020-08-17 Tom Tromey <tromey@adacore.com>
1941
1942 * python/py-inferior.c (infpy_search_memory): Use
1943 gdb_py_object_from_ulongest.
1944 * python/py-infevents.c (create_inferior_call_event_object)
1945 (create_memory_changed_event_object): Use
1946 gdb_py_object_from_ulongest.
1947 * python/py-linetable.c (ltpy_entry_get_pc): Use
1948 gdb_py_object_from_ulongest.
1949
7635cf79
SM
19502020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1951
1952 * loc.c (class symbol_needs_eval_context): Fix indentation.
1953
f54be24b
SM
19542020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1955
1956 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1957 bool.
1958
53d5a2a5
TV
19592020-08-17 Tom de Vries <tdevries@suse.de>
1960
1961 PR gdb/26393
1962 * gdbtypes.c (dump_dynamic_prop): New function.
1963 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1964
547ce8f0
TV
19652020-08-15 Tom de Vries <tdevries@suse.de>
1966
1967 PR backtrace/26390
1968 * stack.c (print_frame_args): Temporarily set the selected
1969 frame to FRAME while printing the frame's arguments.
1970
6ea815e7
PFC
19712020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1972
1973 PR breakpoints/26385
1974 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1975 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1976
6e562fa3
PFC
19772020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1978
1979 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1980 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1981 and >= to check return value instead of == -1 and != -1.
1982
d369b608
SM
19832020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1984
1985 * utils.h (class gdb_argv) <as_array_view>: New method.
1986 * utils.c (gdb_argv_as_array_view_test): New.
1987 (_initialize_utils): Register selftest.
1988 * maint.c (maintenance_selftest): Use the new method.
1989
b31488a3
KR
19902020-08-13 Kamil Rytarowski <n54@gmx.com>
1991
1992 * target.h (supports_dumpcore, dumpcore): New
1993 function declarations.
1994 * target.c (supports_dumpcore, dumpcore): New
1995 functions.
1996 * target-delegates.c: Rebuild.
1997 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1998 and target_dumpcore ().
1999
002a3166
AM
20002020-08-13 Aaron Merey <amerey@redhat.com>
2001
2002 * debuginfod-support.c: Replace global variables with user_data.
2003
ece5bc8a
SM
20042020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2005
2006 * maint.c (maintenance_selftest): Split args and pass array_view
2007 to run_tests.
2008
6d8a0a5e
LM
20092020-08-12 Luis Machado <luis.machado@linaro.org>
2010
2011 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2012 type's length.
2013 Use %s and pulongest to print the length.
2014
7cf663a9
PA
20152020-08-12 Pedro Alves <palves@redhat.com>
2016
2017 * NEWS: Move "Multi-target debugging support" item to the
2018 "Changes since GDB 9" section.
2019
27c7b875
PA
20202020-08-12 Pedro Alves <palves@redhat.com>
2021
2022 PR gdb/26336
2023 * progspace.c (program_space::remove_objfile): Invalidate the
2024 frame cache.
2025
1796a2a1
TV
20262020-08-11 Tom de Vries <tdevries@suse.de>
2027
2028 * MAINTAINERS: Mark ms1 as deleted.
2029
f8e3fe0d
LM
20302020-08-10 Luis Machado <luis.machado@linaro.org>
2031
2032 PR gdb/26310
2033
2034 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2035 act accordingly.
2036 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2037 movz/str/stur/stp skipping behavior.
2038
cc308722
LM
20392020-08-10 Luis Machado <luis.machado@linaro.org>
2040
2041 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2042 struct user_sve_header instead of struct sve_context.
2043
041d9819
SM
20442020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2045
2046 * read.h (dwarf2_fetch_die_loc_sect_off,
2047 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2048 `void *` parameter with function_view.
2049 * read.c (dwarf2_fetch_die_loc_sect_off,
2050 dwarf2_fetch_die_loc_cu_off): Likewise.
2051 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2052 (per_cu_dwarf_call): Adjust.
2053 (get_frame_address_in_block_wrapper): Remove.
2054 (indirect_synthetic_pointer): Adjust.
2055 (get_ax_pc): Remove.
2056 (dwarf2_compile_expr_to_ax): Adjust.
2057
38f8aa06
TV
20582020-08-08 Tom de Vries <tdevries@suse.de>
2059
2060 PR build/26344
2061 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2062 constructor.
2063 * regcache.c (get_thread_arch_aspace_regcache): Same.
2064
a52b3ae2
TT
20652020-08-07 Tom Tromey <tromey@adacore.com>
2066
2067 * ravenscar-thread.c
2068 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2069 New method.
2070 (ravenscar_thread_target::wait): Check
2071 runtime_initialized.
2072 (ravenscar_thread_target::prepare_to_store)
2073 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2074 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2075 (ravenscar_thread_target::stopped_by_watchpoint)
2076 (ravenscar_thread_target::stopped_data_address)
2077 (ravenscar_thread_target::core_of_thread): Use
2078 scoped_restore_current_thread and
2079 set_base_thread_from_ravenscar_task.
2080
0e29517d
TT
20812020-08-07 Tom Tromey <tromey@adacore.com>
2082
2083 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2084
592f9bd7
TT
20852020-08-07 Tom Tromey <tromey@adacore.com>
2086
2087 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2088 update_inferior_ptid before update_thread_list.
2089 (temporarily_change_regcache_ptid): New class.
2090 (ravenscar_thread_target::fetch_registers)
2091 (ravenscar_thread_target::store_registers)
2092 (ravenscar_thread_target::prepare_to_store): Use base thread when
2093 forwarding operation.
2094
39e2018a
TT
20952020-08-07 Tom Tromey <tromey@adacore.com>
2096
2097 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2098 "is_pid" case.
2099
2080266b
TT
21002020-08-07 Tom Tromey <tromey@adacore.com>
2101
2102 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2103 New methods.
2104 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2105 first.
2106 (ravenscar_thread_target::add_thread): Rename from
2107 ravenscar_add_thread.
2108 (ravenscar_thread_target::update_thread_list): Use a lambda.
2109 (ravenscar_thread_target::xfer_partial): New method.
2110
78c02f21
TT
21112020-08-07 Tom Tromey <tromey@adacore.com>
2112
2113 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2114 gdb::function_view.
2115 (iterate_over_live_ada_tasks): Change type of argument.
2116 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2117 of argument.
2118
d5d833af
TT
21192020-08-07 Tom Tromey <tromey@adacore.com>
2120
2121 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2122 Remove.
2123 (ravenscar_thread_target::extra_thread_info): Remove.
2124 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2125 defer to target beneath for non-Ravenscar threads.
2126
a8ac85bb
TT
21272020-08-07 Tom Tromey <tromey@adacore.com>
2128
2129 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2130 get_base_thread_from_ravenscar_task>: Now methods.
2131 <m_cpu_map>: New member.
2132 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2133 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2134 (ravenscar_thread_target::task_is_currently_active): Update.
2135 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2136 Now a method.
2137 (ravenscar_thread_target::add_active_thread): Put initial thread
2138 into the m_cpu_map.
2139
550ab58d
TT
21402020-08-07 Tom Tromey <tromey@adacore.com>
2141
2142 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2143 event_ptid.
2144
e9546579
TT
21452020-08-07 Tom Tromey <tromey@adacore.com>
2146
2147 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2148 runtime_initialized.
2149
3d4470e5
TT
21502020-08-07 Tom Tromey <tromey@adacore.com>
2151
2152 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2153 add_active_thread.
2154 (ravenscar_thread_target::add_active_thread): Now public.
2155 (ravenscar_inferior_created): Call add_active_thread after pushing
2156 the target.
2157
888bdb2b
SM
21582020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2159
2160 * regcache.c (ptid_regcache_map): New type.
2161 (target_ptid_regcache_map): New type.
2162 (regcaches): Change type to target_ptid_regcache_map.
2163 (get_thread_arch_aspace_regcache): Update to regcaches' new
2164 type.
2165 (regcache_thread_ptid_changed): Likewise.
2166 (registers_changed_ptid): Likewise.
2167 (regcaches_size): Likewise.
2168 (regcaches_test): Update.
2169 (regcache_thread_ptid_changed): Update.
2170 * regcache.h (regcache_up): New type.
2171 * gdbsupport/ptid.h (hash_ptid): New struct.
2172
b161a60d
SM
21732020-08-07 Simon Marchi <simon.marchi@efficios.com>
2174
2175 * observable.h (thread_ptid_changed): Add parameter
2176 `process_stratum_target *`.
2177 * infrun.c (infrun_thread_ptid_changed): Add parameter
2178 `process_stratum_target *` and use it.
2179 (selftests): New namespace.
2180 (infrun_thread_ptid_changed): New function.
2181 (_initialize_infrun): Register selftest.
2182 * regcache.c (regcache_thread_ptid_changed): Add parameter
2183 `process_stratum_target *` and use it.
2184 (regcache_thread_ptid_changed): New function.
2185 (_initialize_regcache): Register selftest.
2186 * thread.c (thread_change_ptid): Pass target to
2187 thread_ptid_changed observable.
2188
d2854d8d
CT
21892020-08-06 Caroline Tice <cmtice@google.com>
2190
fe4c3d43
SM
2191 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2192 (struct dwp_sections): Update field comments. Add loclists and
2193 rnglists fields.
2194 (struct virtual_v2_dwo_sections): Rename struct to
2195 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2196 size & offset fields for loclists and rnglists.
2197 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2198 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2199 skipping dummy type units.
2200 (create_dwp_hash_table): Update the large comment above the function to
2201 discuss Version 5 DWP files as well, with references. Update all the
2202 version checks in the function to check for version 5 as well. Add new
2203 section at the end to create dwp hash table for version 5.
2204 (create_dwp_v2_section): Rename function to
2205 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2206 Add V5 to error message text.
2207 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2208 into calls to create_dwp_v2_or_v5_section.
2209 (create_dwo_unit_in_dwp_v5): New function.
2210 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2211 check for version2; add else clause to handle version 5.
2212 (open_and_init_dwo_file): Add code to check dwarf version & only call
2213 create_debug_types_hash_table (with sections.types) if version is not 5;
2214 else call create_debug_type_hash_table, with sections.info.
2215 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2216 version 5.
2217 (dwarf2_locate_v5_dwp_sections): New function.
2218 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2219 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2220
159ed7d9
SM
22212020-08-06 Simon Marchi <simon.marchi@efficios.com>
2222
2223 * regcache.h (class regcache): Remove friend
2224 registers_changed_ptid.
2225 <regcache_thread_ptid_changed>: Remove.
2226 <regcaches>: Remove.
2227 * regcache.c (regcache::regcaches): Rename to...
2228 (regcaches): ... this. Make static.
2229 (get_thread_arch_aspace_regcache): Update.
2230 (regcache::regcache_thread_ptid_changed): Rename to...
2231 (regcache_thread_ptid_changed): ... this. Update.
2232 (class regcache_access): Remove.
2233 (regcaches_test): Update.
2234 (_initialize_regcache): Update.
2235 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2236 <forward_list>.
2237
174981ae
SM
22382020-08-06 Simon Marchi <simon.marchi@efficios.com>
2239
2240 * regcache.h (class regcache) <current_regcache>: Rename to...
2241 <regcaches>: ... this. Move doc here.
2242 * regcache.c (regcache::current_regcache) Rename to...
2243 (regcache::regcaches): ... this. Move doc to header.
2244 (get_thread_arch_aspace_regcache): Update.
2245 (regcache::regcache_thread_ptid_changed): Update.
2246 (registers_changed_ptid): Update.
2247 (class regcache_access) <current_regcache_size>: Rename to...
2248 <regcaches_size>: ... this.
2249 (current_regcache_test): Rename to...
2250 (regcaches_test): ... this.
2251 (_initialize_regcache): Update.
2252
ed908db6
VC
22532020-08-06 Victor Collod <vcollod@nvidia.com>
2254
2255 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2256
b5582ab7
KB
22572020-08-05 Kevin Buettner <kevinb@redhat.com>
2258
2259 * corelow.c (core_target::build_file_mappings): Don't output
2260 null pathname in warning.
2261
ea946b86
SM
22622020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2263
2264 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2265 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2266 gdb.dwarf2/dw2-single-line-discriminators.exp,
2267 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2268
57d02173
TT
22692020-08-05 Tom Tromey <tromey@adacore.com>
2270
2271 PR rust/26197:
2272 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2273 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2274 Fix off-by-one and type size errors in ordinary case.
2275
5555c86d
TV
22762020-08-05 Tom de Vries <tdevries@suse.de>
2277
2278 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2279 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2280
97916bfe
SM
22812020-08-04 Simon Marchi <simon.marchi@efficios.com>
2282
2283 * frame.h (frame_id_p): Return bool.
2284 (frame_id_artificial_p): Return bool.
2285 (frame_id_eq): Return bool.
2286 (has_stack_frames): Return bool.
2287 (get_selected_frame): Fix typo in comment.
2288 (get_frame_pc_if_available): Return bool.
2289 (get_frame_address_in_block_if_available): Return bool.
2290 (get_frame_func_if_available): Return bool.
2291 (read_frame_register_unsigned): Return bool.
2292 (get_frame_register_bytes): Return bool.
2293 (safe_frame_unwind_memory): Return bool.
2294 (deprecated_frame_register_read): Return bool.
2295 (frame_unwinder_is): Return bool.
2296 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2297 bool.
2298 <this_id::p>: Likewise.
2299 <prev_p>: Likewise.
2300 (frame_stash_add): Return bool.
2301 (get_frame_id): Use bool.
2302 (frame_id_build_special) Use bool.
2303 (frame_id_build_unavailable_stack): Use bool.
2304 (frame_id_build): Use bool.
2305 (frame_id_p): Return bool, use true/false instead of 1/0.
2306 (frame_id_artificial_p): Likewise.
2307 (frame_id_eq): Likewise.
2308 (frame_id_inner): Likewise.
2309 (get_frame_func_if_available): Likewise.
2310 (read_frame_register_unsigned): Likewise.
2311 (deprecated_frame_register_read): Likewise.
2312 (get_frame_register_bytes): Likewise.
2313 (has_stack_frames): Likewise.
2314 (inside_main_func): Likewise.
2315 (inside_entry_func): Likewise.
2316 (get_frame_pc_if_available): Likewise.
2317 (get_frame_address_in_block_if_available): Likewise.
2318 (frame_unwinder_is): Likewise.
2319 (safe_frame_unwind_memory): Likewise.
2320 (frame_unwind_arch): Likewise.
2321
fedfee88
SM
23222020-08-04 Simon Marchi <simon.marchi@efficios.com>
2323
2324 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2325 type to cached_copy_status.
2326 (fprintf_frame): Adjust.
2327 (get_frame_func_if_available): Adjust.
2328 (frame_cleanup_after_sniffer): Adjust.
2329
6cfa9b59
MW
23302020-08-04 Mark Wielaard <mark@klomp.org>
2331
2332 * MAINTAINERS (Write After Approval): Update email address.
2333
66d6346b
SM
23342020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2335
2336 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2337 dynamic_prop::const_val.
2338
8a6d5e35
SM
23392020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2340
2341 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2342 dynamic_prop::kind.
2343
51d6067d
SM
23442020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2345
2346 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2347
b26e2ae7
JM
23482020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2349
2350 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2351
39791af2
JM
23522020-08-04 Weimin Pan <weimin.pan@oracle.com>
2353 Jose E. Marchesi <jose.marchesi@oracle.com>
2354
2355 * configure.tgt: Add entry for bpf-*-*.
2356 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2357 (ALLDEPFILES): Add bpf-tdep.c.
2358 * bpf-tdep.c: New file.
2359 * MAINTAINERS: Add bpf target and maintainer.
2360 * NEWS: Mention the support for the new target.
2361
521894aa
TV
23622020-08-04 Tom de Vries <tdevries@suse.de>
2363
2364 PR symtab/23270
2365 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2366 Error.
2367
5d6356e9
JB
23682020-08-03 John Baldwin <jhb@FreeBSD.org>
2369
2370 * syscalls/freebsd.xml: Regenerate.
2371
0cf82b81
JB
23722020-08-03 John Baldwin <jhb@FreeBSD.org>
2373
2374 * syscalls/update-freebsd.sh: Fix usage and year range.
2375
8f34b746
TV
23762020-08-03 Tom de Vries <tdevries@suse.de>
2377
2378 PR symtab/26333
2379 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2380 DW_LNE_lo_user/DW_LNE_hi_user range.
2381
5e500d33
SM
23822020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2383
2384 PR ada/26318
2385 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2386 kind.
2387
78319c15
TBA
23882020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2389
2390 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2391
4c55e970
TBA
23922020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2393
2394 * breakpoint.c (set_breakpoint_condition): Update the condition
2395 expressions after checking that the input condition string parses
2396 successfully and does not contain junk at the end.
2397
1e620590
TBA
23982020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2399
2400 * breakpoint.c (set_breakpoint_condition): Update the
2401 condition string after parsing the new condition successfully.
2402
c8693053
RO
24032020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2404
2405 * proc-api.c (_STRUCTURED_PROC): Don't define.
2406 * proc-events.c: Likewise.
2407 * proc-flags.c: Likewise.
2408 * proc-why.c: Likewise.
2409 * procfs.c: Likewise.
2410
2411 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2412 * configure, config.in: Regenerate.
2413
5a99adb8
TV
24142020-07-30 Tom de Vries <tdevries@suse.de>
2415
2416 PR build/26320
2417 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2418 m_red/m_green/m_blue in a union.
2419
8ba83e91
TV
24202020-07-29 Tom de Vries <tdevries@suse.de>
2421
2422 PR tdep/26280
2423 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2424
f75a0693
AB
24252020-07-28 Tom Tromey <tromey@adacore.com>
2426
2427 PR symtab/26270:
2428 * symtab.h (find_pc_partial_function_sym): Declare.
2429 * cli/cli-cmds.c (disassemble_command): Use
2430 find_pc_partial_function_sym. Check asm_demangle.
2431 * blockframe.c (cache_pc_function_sym): New global.
2432 (cache_pc_function_name): Remove.
2433 (clear_pc_function_cache): Update.
2434 (find_pc_partial_function_sym): New function, from
2435 find_pc_partial_function.
2436 (find_pc_partial_function): Rewrite using
2437 find_pc_partial_function_sym.
2438
16f3242c
TT
24392020-07-28 Tom Tromey <tromey@adacore.com>
2440
2441 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2442 help. Add usage.
2443
4888741a
TT
24442020-07-28 Tom Tromey <tromey@adacore.com>
2445
2446 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2447 <DW_OP_GNU_variable_value>: Cast to address type.
2448
4d46f402
KR
24492020-07-28 Kamil Rytarowski <n54@gmx.com>
2450
2451 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2452 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2453 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2454 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2455 (nbsd_get_siginfo_type): New.
2456 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2457 (_initialize_nbsd_tdep): New.
2458
d70f978b
L
24592020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2460
2461 PR binutils/26301
2462 * configure: Regenerated.
2463
377170fa
L
24642020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2465
2466 PR binutils/26301
2467 * configure: Regenerated.
2468
43d5901d
AB
24692020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2470
2471 * python/py-frame.c: Remove 'user-regs.h' include.
2472 (frapy_read_register): Rewrite to make use of
2473 gdbpy_parse_register_id.
2474 * python/py-registers.c (gdbpy_parse_register_id): New function,
2475 moved here from python/py-unwind.c. Updated the return type, and
2476 also accepts register descriptor objects.
2477 * python/py-unwind.c: Remove 'user-regs.h' include.
2478 (pyuw_parse_register_id): Moved to python/py-registers.c.
2479 (unwind_infopy_add_saved_register): Update to use
2480 gdbpy_parse_register_id.
2481 (pending_framepy_read_register): Likewise.
2482 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2483
14fa8fb3
AB
24842020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2485
2486 * python/py-registers.c: Add 'user-regs.h' include.
2487 (register_descriptor_iter_find): New function.
2488 (register_descriptor_iterator_object_methods): New static global
2489 methods array.
2490 (register_descriptor_iterator_object_type): Add pointer to methods
2491 array.
2492
ddce1758
JB
24932020-07-27 John Baldwin <jhb@FreeBSD.org>
2494
2495 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2496 for all architectures on FreeBSD 11.3 and later.
2497
a4089f52
TT
24982020-07-27 Tom Tromey <tromey@adacore.com>
2499
2500 * gcore.h (load_corefile): Don't declare.
2501
95420d30
TV
25022020-07-27 Tom de Vries <tdevries@suse.de>
2503
2504 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2505 * config.in: Regenerate.
2506 * configure: Regenerate.
2507
05a6b8c2
EZ
25082020-07-26 Eli Zaretskii <eliz@gnu.org>
2509
2510 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2511 ws2tcpip.h. When checking whether socklen_t type is defined, use
2512 ws2tcpip.h if it is available and sys/socket.h isn't.
2513 * configure: Regenerate.
2514 * config.in: Regenerate.
2515
e79eb02f
AB
25162020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2517
2518 PR fortran/23051
2519 PR fortran/26139
2520 * valops.c (value_ind): Pass address to
2521 readjust_indirect_value_type.
2522 * value.c (readjust_indirect_value_type): Make parameter
2523 non-const, and add extra address parameter. Resolve original type
2524 before using it.
2525 * value.h (readjust_indirect_value_type): Update function
2526 signature and comment.
2527
876518dd
TV
25282020-07-25 Tom de Vries <tdevries@suse.de>
2529
2530 PR symtab/26243
2531 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2532 entries.
2533
f6720b1c
AM
25342020-07-24 Aaron Merey <amerey@redhat.com>
2535
2536 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2537 * configure: Rebuild.
2538
513487e1
KB
25392020-07-23 Kevin Buettner <kevinb@redhat.com>
2540
2541 PR corefiles/26294
2542 * corelow.c (_initialize_corelow): Add period to help text
2543 for "maintenance print core-file-backed-mappings".
2544
e7bc9db8
PA
25452020-07-23 Pedro Alves <pedro@palves.net>
2546
2547 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2548 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2549 meanwhile.
2550 * frame.c (frame_cache_generation, get_frame_cache_generation):
2551 New.
2552 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2553 (get_prev_frame_if_no_cycle): On exception, don't touch
2554 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2555 * frame.h (get_frame_cache_generation): Declare.
2556
90fcc466
TV
25572020-07-23 Tom de Vries <tdevries@suse.de>
2558
2559 PR tui/26282
2560 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2561 New default constructor.
2562
78344df7
AB
25632020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2564
2565 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2566 exclude non-statement entries.
2567
b089853a
KB
25682020-07-22 Kevin Buettner <kevinb@redhat.com>
2569
2570 * NEWS (New commands): Mention new command
2571 "maintenance print core-file-backed-mappings".
2572
09c2f5d4
KB
25732020-07-22 Kevin Buettner <kevinb@redhat.com>
2574
2575 * corelow.c (gdbcmd.h): Include.
2576 (core_target::info_proc_mappings): New method.
2577 (get_current_core_target): New function.
2578 (maintenance_print_core_file_backed_mappings): New function.
2579 (_initialize_corelow): Add core-file-backed-mappings to
2580 "maint print" commands.
2581
9c5ec5c2 25822020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 2583
9c5ec5c2
KB
2584 * linux-tdep.c (dump_note_entry_p): New function.
2585 (linux_dump_mapping_p_ftype): New typedef.
2586 (linux_find_memory_regions_full): Add new parameter,
2587 should_dump_mapping_p.
2588 (linux_find_memory_regions): Adjust call to
2589 linux_find_memory_regions_full.
2590 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2591 call to linux_find_memory_regions_full.
2592
db082f59
KB
25932020-07-22 Kevin Buettner <kevinb@redhat.com>
2594
2595 * corelow.c (solist.h, unordered_map): Include.
2596 (class core_target): Add field m_core_file_mappings and
2597 method build_file_mappings.
2598 (core_target::core_target): Call build_file_mappings.
2599 (core_target::~core_target): Free memory associated with
2600 m_core_file_mappings.
2601 (core_target::build_file_mappings): New method.
2602 (core_target::xfer_partial): Use m_core_file_mappings
2603 for memory transfers.
2604 * linux-tdep.c (linux_read_core_file_mappings): New
2605 function.
2606 (linux_core_info_proc_mappings): Rewrite to use
2607 linux_read_core_file_mappings.
2608 (linux_init_abi): Register linux_read_core_file_mappings.
2609
7e183d27
KB
26102020-07-22 Kevin Buettner <kevinb@redhat.com>
2611
2612 * arch-utils.c (default_read_core_file_mappings): New function.
2613 * arch-utils.c (default_read_core_file_mappings): Declare.
2614 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2615 * gdbarch.h, gdbarch.c: Regenerate.
2616
2735d421
KB
26172020-07-22 Kevin Buettner <kevinb@redhat.com>
2618
2619 PR corefiles/25631
2620 * corelow.c (core_target:xfer_partial): Revise
2621 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2622 case after first checking the stratum beneath the core
2623 target.
2624 (has_all_memory): Return true.
2625 * target.c (raw_memory_xfer_partial): Revise comment
2626 regarding use of has_all_memory.
2627
e56cb451
KB
26282020-07-22 Kevin Buettner <kevinb@redhat.com>
2629
2630 * exec.h (section_table_xfer_memory): Revise declaration,
2631 replacing section name parameter with an optional callback
2632 predicate.
2633 * exec.c (section_table_xfer_memory): Likewise.
2634 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2635 of section_table_xfer_memory.
2636
32fa152e
TT
26372020-07-22 Tom Tromey <tromey@adacore.com>
2638
2639 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2640 lookup_symbol_search_name.
2641
a67a1c41
AB
26422020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2643
2644 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2645 redundant local variable.
2646 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2647 reference, not pointer, update code accordingly.
2648
a7b4ff4f
SM
26492020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2650 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2651
2652 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2653 * jit.c (jit_breakpoint_re_set_internal): Use the
2654 `skip_jit_symbol_lookup` field.
2655
2340e834
SM
26562020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2657 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2658
2659 * jit.c (jit_read_descriptor): Define the descriptor address once,
2660 use twice.
2661 (jit_breakpoint_deleted): Move the declaration of the loop variable
2662 `iter` into the loop header.
2663 (jit_breakpoint_re_set_internal): Move the declaration of the local
2664 variable `objf_data` to the first point of definition.
2665 (jit_event_handler): Move the declaration of local variables
2666 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2667 Rename `objf` to `jited`.
2668
c1072906
SM
26692020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2670
2671 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2672 Remove.
2673 * jit.c (get_jiter_objfile_data): Update.
2674
c8474dc3
TBA
26752020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2676 Simon Marchi <simon.marchi@polymtl.ca>
2677
2678 * jit.c (struct jit_program_space_data): Remove.
2679 (jit_program_space_key): Remove.
2680 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2681 stuff.
2682 (get_jit_program_space_data): Remove.
2683 (jit_breakpoint_deleted): Iterate on all of the program space's
2684 objfiles.
2685 (jit_inferior_init): Likewise.
2686 (jit_breakpoint_re_set_internal): Likewise. Also change return
2687 type to void.
2688 (jit_breakpoint_re_set): Pass current_program_space to
2689 jit_breakpoint_re_set_internal.
2690
77208eb7
SM
26912020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2692
2693 * jit.h (struct jiter_objfile_data) <cached_code_address,
2694 jit_breakpoint>: Move to here from ...
2695 * jit.c (jit_program_space_data): ... here.
2696 (jiter_objfile_data::~jiter_objfile_data): Update.
2697 (jit_breakpoint_deleted): Update.
2698 (jit_breakpoint_re_set_internal): Update.
2699
8c1c720f
SM
27002020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2701
2702 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2703 checks.
2704 (jit_read_descriptor): Remove NULL check.
2705 (jit_event_handler): Add an assertion.
2706
0e74a041
SM
27072020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2708
2709 * jit.h (struct jit_objfile_data): Split into...
2710 (struct jiter_objfile_data): ... this ...
2711 (struct jited_objfile_data): ... and this.
2712 * objfiles.h (struct objfile) <jit_data>: Remove.
2713 <jiter_data, jited_data>: New fields.
2714 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2715 (jiter_objfile_data::~jiter_objfile_data): ... this.
2716 (get_jit_objfile_data): Rename to ...
2717 (get_jiter_objfile_data): ... this.
2718 (add_objfile_entry): Update.
2719 (jit_read_descriptor): Use get_jiter_objfile_data.
2720 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2721 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2722 (jit_inferior_exit_hook): Use objfile's jited_data field.
2723
238b5c9f
SM
27242020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2725
2726 * jit.h: Forward-declare `struct minimal_symbol`.
2727 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2728 constructor, destructor, and an objfile* field.
2729 * jit.c (jit_objfile_data): Remove.
2730 (struct jit_objfile_data): Migrate from here to jit.h.
2731 (jit_objfile_data::~jit_objfile_data): New destructor
2732 implementation with code moved from free_objfile_data.
2733 (free_objfile_data): Delete.
2734 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2735 (jit_find_objf_with_entry_addr): Ditto.
2736 (jit_inferior_exit_hook): Ditto.
2737 (_initialize_jit): Remove the call to
2738 register_objfile_data_with_cleanup.
2739 * objfiles.h (struct objfile) <jit_data>: New field.
2740
fe053b9e
TBA
27412020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2742
2743 * jit.h: Forward-declare `struct objfile`.
2744 (jit_event_handler): Add a second parameter, the JITer objfile.
2745 * jit.c (jit_read_descriptor): Change the signature to take the
2746 JITer objfile as an argument instead of the jit_program_space_data.
2747 (jit_inferior_init): Update the call to jit_read_descriptor.
2748 (jit_event_handler): Use the new JITer objfile argument when calling
2749 jit_read_descriptor.
2750 * breakpoint.c (handle_jit_event): Update the call to
2751 jit_event_handler to pass the JITer objfile.
2752
4cec0c66
JB
27532020-07-21 John Baldwin <jhb@FreeBSD.org>
2754
2755 * gdbarch.c: Regenerate.
2756 * gdbarch.h: Regenerate.
2757 * gdbarch.sh (handle_segmentation_fault): Remove method.
2758 * infrun.c (handle_segmentation_fault): Remove.
2759 (print_signal_received_reason): Remove call to
2760 handle_segmentation_fault.
2761
0e42f66a
JB
27622020-07-21 John Baldwin <jhb@FreeBSD.org>
2763
2764 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2765 Rename to sparc64_linux_report_signal_info and add siggnal
2766 argument.
2767 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2768 instead of sparc64_linux_handle_segmentation_fault.
2769
77bdfeb2
JB
27702020-07-21 John Baldwin <jhb@FreeBSD.org>
2771
2772 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2773 i386_linux_report_signal_info instead of
2774 i386_linux_handle_segmentation_fault.
2775 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2776 to i386_linux_report_signal_info and add siggnal argument.
2777 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2778 of i386_linux_handle_segmentation_fault.
2779 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2780 to i386_linux_report_signal_info and add siggnal argument.
2781
ad97bfc5
JB
27822020-07-21 John Baldwin <jhb@FreeBSD.org>
2783
2784 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2785 hook if present.
2786
272bb05c
JB
27872020-07-21 John Baldwin <jhb@FreeBSD.org>
2788
2789 * gdbarch.c: Regenerate.
2790 * gdbarch.h: Regenerate.
2791 * gdbarch.sh (report_signal_info): New method.
2792 * infrun.c (print_signal_received_reason): Invoke gdbarch
2793 report_signal_info hook if present.
2794
baf8791e
AB
27952020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2796
2797 * python/py-registers.c : Add 'unordered_map' include.
2798 (gdbpy_new_reggroup): Renamed to...
2799 (gdbpy_get_reggroup): ...this. Update to only create register
2800 group descriptors when needed.
2801 (gdbpy_reggroup_iter_next): Update.
2802
f7306dac
AB
28032020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2804
2805 * python/py-registers.c (gdbpy_register_object_data): New static
2806 global.
2807 (gdbpy_register_object_data_init): New function.
2808 (gdbpy_new_register_descriptor): Renamed to...
2809 (gdbpy_get_register_descriptor): ...this, and update to reuse
2810 existing register descriptors where possible.
2811 (gdbpy_register_descriptor_iter_next): Update.
2812 (gdbpy_initialize_registers): Register new gdbarch data.
2813
05c309a8
SM
28142020-07-21 Simon Marchi <simon.marchi@efficios.com>
2815
2816 * linux-nat.c (stopped_pids): Make static.
2817
d1fd641e
SM
28182020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2819
2820 PR ada/26235
2821 * gdbtypes.c (ada_discrete_type_low_bound,
2822 ada_discrete_type_high_bound): Handle undefined bounds.
2823
1de14d77
KR
28242020-07-21 Kamil Rytarowski <n54@gmx.com>
2825
2826 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2827 declaration.
2828 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2829 function.
2830
ed810cc7
JB
28312020-07-20 John Baldwin <jhb@FreeBSD.org>
2832
2833 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2834 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2835 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2836 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2837 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2838 method.
2839
ae5369e7
LC
28402020-07-20 Ludovic Courtès <ludo@gnu.org>
2841
2842 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2843 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2844 which are deprecated in Guile 3.0.
2845 * configure.ac (try_guile_versions): Add "guile-3.0".
2846 * configure (try_guile_versions): Regenerate.
2847 * NEWS: Update entry.
2848
68cf161c
LC
28492020-07-20 Ludovic Courtès <ludo@gnu.org>
2850 Doug Evans <dje@google.com>
2851
2852 PR gdb/21104
2853 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2854 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2855 USING_GUILE_BEFORE_2_2.
2856 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2857 Change type to 'scm_t_port_type *'.
2858 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2859 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2860 parameter and honor it. Update callers.
2861 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2862 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2863 functions.
2864 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2865 USING_GUILE_BEFORE_2_2.
2866 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2867 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2868 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2869 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2870 and 'SCM_PORT_TYPE'.
2871 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2872 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2873 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2874 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2875 [!USING_GUILE_BEFORE_2_2]: New functions.
2876 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2877 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2878 'gdbscm_memory_port_read'.
2879 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2880 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2881 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2882 function.
2883 (ioscm_init_memory_port): Remove.
2884 (ioscm_init_memory_port_stream): New function
2885 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2886 function.
2887 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2888 Return scm_from_uint (0).
2889 (gdbscm_set_memory_port_read_buffer_size_x)
2890 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2891 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2892 Return scm_from_uint (0).
2893 (gdbscm_set_memory_port_write_buffer_size_x)
2894 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2895 * configure.ac (try_guile_versions): Add "guile-2.2".
2896 * configure: Regenerate.
2897 * NEWS: Add entry.
2898
aee91db3
TT
28992020-07-18 Tom Tromey <tom@tromey.com>
2900
2901 * linux-nat.c (linux_multi_process): Remove.
2902 (linux_nat_target::supports_multi_process): Return true.
2903
0e267416
AB
29042020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2905
2906 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2907 (riscv_lookup_target_description): Return pointer out of
2908 unique_ptr.
2909 * target-descriptions.c (allocate_target_description): Add
2910 comment.
2911 (target_desc_deleter::operator()): Likewise.
2912 * target-descriptions.h (struct target_desc_deleter): Moved to
2913 gdbsupport/tdesc.h.
2914 (target_desc_up): Likewise.
2915
f80c8ec4
TT
29162020-07-17 Tom Tromey <tromey@adacore.com>
2917
2918 * linux-nat.c (linux_nat_target::supports_non_stop)
2919 (linux_nat_target::always_non_stop_p): Use "true".
2920 (linux_nat_target::supports_disable_randomization): Use "true" and
2921 "false".
2922
d0ce17d8
CT
29232020-07-16 Caroline Tice <cmtice@google.com>
2924
2925 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2926 (RNGLIST_HEADER_SIZE64): New constant definition.
2927 (struct dwop_section_names): Add rnglists_dwo.
2928 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2929 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2930 (struct dwo_sections): Add rnglists field.
2931 (read_attribut_reprocess): Add tag parameter.
2932 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2933 (cu_debug_rnglists_section): New function (decl & definition).
2934 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2935 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2936 die whose range is being checked; get rnglist section from
2937 cu_debug_rnglists_section, to get from either objfile or dwo file as
2938 appropriate. Add cases for DW_RLE_base_addressx,
2939 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2940 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2941 test inside if-condition and updating complaint message.
2942 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2943 dwarf2_rnglists_process.
2944 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2945 dwarf2_ranges_process.
2946 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2947 need_ranges_base and update comment appropriately. Also pass die tag
2948 to dwarf2_ranges_read.
2949 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2950 need_ranges_base and update comment appropriately. Also pass die tag
2951 to dwarf2_ranges_process.
2952 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2953 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2954 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2955 need_ranges_base and update comment appropriately. Also pass die tag
2956 to read_attribute_reprocess and dwarf2_ranges_read.
2957 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2958 and update function comment appropriately.
2959 (read_loclist_index): Call read_loclists_rnglists_header instead of
2960 read_loclist_header.
2961 (read_rnglist_index): New function.
2962 (read_attribute_reprocess): Add tag parameter. Add code for
2963 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2964 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2965
3dcc261c
AB
29662020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2967
2968 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2969 being resolved.
2970
ccb9eba6
AB
29712020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2972
2973 * arch-utils.c (show_architecture): Update formatting of messages.
2974
cf88be68
SM
29752020-07-12 Simon Marchi <simon.marchi@efficios.com>
2976
2977 * gdbtypes.h (struct type) <bounds>: Handle array and string
2978 types.
2979 * ada-lang.c (assign_aggregate): Use type::bounds on
2980 array/string type.
2981 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2982 * c-varobj.c (c_number_of_children): Likewise.
2983 (c_describe_child): Likewise.
2984 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2985 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2986 (f_type_print_base): Likewise.
2987 * f-valprint.c (f77_array_offset_tbl): Likewise.
2988 (f77_get_upperbound): Likewise.
2989 (f77_print_array_1): Likewise.
2990 * guile/scm-type.c (gdbscm_type_range): Likewise.
2991 * m2-typeprint.c (m2_array): Likewise.
2992 (m2_is_long_set_of_type): Likewise.
2993 * m2-valprint.c (get_long_set_bounds): Likewise.
2994 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2995 * python/py-type.c (typy_range): Likewise.
2996 * rust-lang.c (rust_internal_print_type): Likewise.
2997 * type-stack.c (type_stack::follow_types): Likewise.
2998 * valarith.c (value_subscripted_rvalue): Likewise.
2999 * valops.c (value_cast): Likewise.
3000
509971ae
SM
30012020-07-12 Simon Marchi <simon.marchi@efficios.com>
3002
3003 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3004 callers to use the equivalent accessor methods.
3005
107406b7
SM
30062020-07-12 Simon Marchi <simon.marchi@efficios.com>
3007
3008 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3009 (struct type) <bit_stride>: New method.
3010 (TYPE_BIT_STRIDE): Remove.
3011 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3012
bb789949
SM
30132020-07-12 Simon Marchi <simon.marchi@efficios.com>
3014
3015 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3016 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3017 callers to use the equivalent accessor methods instead.
3018
39498edb
SM
30192020-07-12 Simon Marchi <simon.marchi@efficios.com>
3020
3021 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3022 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3023 callers to use the equivalent accessor methods instead.
3024
3b606f38
SM
30252020-07-12 Simon Marchi <simon.marchi@efficios.com>
3026
3027 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3028 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3029 to use dynamic_prop::kind.
3030
064d9cb9
SM
30312020-07-12 Simon Marchi <simon.marchi@efficios.com>
3032
3033 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3034 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3035 to get the bound property's kind and check against
3036 PROP_UNDEFINED.
3037
5537ddd0
SM
30382020-07-12 Simon Marchi <simon.marchi@efficios.com>
3039
3040 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3041 all callers to use type::range_bounds followed by
3042 dynamic_prop::{low,high}.
3043
8c2e4e06
SM
30442020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3045
3046 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3047 const_val, set_const_val, baton, set_locexpr, set_loclist,
3048 set_addr_offset, variant_parts, set_variant_parts,
3049 original_type, set_original_type>: New methods.
3050 <kind>: Rename to...
3051 <m_kind>: ... this. Update all users to use the new methods
3052 instead.
3053 <data>: Rename to...
3054 <m_data>: ... this. Update all users to use the new methods
3055 instead.
3056
7c6f2712
SM
30572020-07-12 Simon Marchi <simon.marchi@efficios.com>
3058
3059 * gdbtypes.c (get_discrete_bounds): Return failure if
3060 the range type's bounds are not both defined and constant
3061 values.
3062 (get_array_bounds): Update comment. Remove undefined bound check.
3063
599088e3
SM
30642020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3065
3066 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3067 the type::bounds method directly.
3068
c4dfcb36
SM
30692020-07-12 Simon Marchi <simon.marchi@efficios.com>
3070
3071 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3072 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3073 are used to set the range type's bounds to use set_bounds.
3074
0a278aa7
PW
30752020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3076
3077 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3078
cce20f10
PA
30792020-07-10 Pedro Alves <pedro@palves.net>
3080
3081 * gdbthread.h (inferior_ref): Define.
3082 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3083 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3084 * thread.c
3085 (scoped_restore_current_thread::restore):
3086 Adjust to gdb::ref_ptr.
3087 (scoped_restore_current_thread::~scoped_restore_current_thread):
3088 Remove manual decref handling.
3089 (scoped_restore_current_thread::scoped_restore_current_thread):
3090 Adjust to use
3091 inferior_ref::new_reference/thread_info_ref::new_reference.
3092 Incref the thread before calling get_frame_id instead of after.
3093 Let TARGET_CLOSE_ERROR propagate.
3094
6d7aa592
PA
30952020-07-10 Pedro Alves <pedro@palves.net>
3096
3097 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3098 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3099 NOT_AVAILABLE_ERROR.
3100 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3101 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3102
b3e3a4c1
SM
31032020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3104 Pedro Alves <pedro@palves.net>
3105
3106 PR gdb/26199
3107 * infrun.c (threads_are_resumed_pending_p): Delete.
3108 (do_target_wait): Remove threads_are_executing and
3109 threads_are_resumed_pending_p checks from the inferior_matches
3110 lambda. Update comments.
3111
d6cc5d98
PA
31122020-07-10 Pedro Alves <pedro@palves.net>
3113
3114 PR gdb/26199
3115 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3116 executing threads.
3117
7d3badc6
PA
31182020-07-10 Pedro Alves <pedro@palves.net>
3119
3120 PR gdb/26199
3121 * infrun.c (handle_no_resumed): Handle multiple targets.
3122
42bd97a6
PA
31232020-07-10 Pedro Alves <pedro@palves.net>
3124
3125 PR gdb/26199
3126 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3127 target_is_async_p.
3128
43667cc6
PA
31292020-07-10 Pedro Alves <pedro@palves.net>
3130
3131 PR gdb/26199
3132 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3133 threads, not all threads.
3134
96118d11
PA
31352020-07-10 Pedro Alves <pedro@palves.net>
3136
3137 PR gdb/26199
3138 * remote.c (remote_target::open_1): Pass remote target pointer as
3139 data to create_async_event_handler.
3140 (remote_async_inferior_event_handler): Mark async event handler
3141 before returning if the remote target still has either pending
3142 events or unacknowledged notifications.
3143
54904d81
JB
31442020-07-10 John Baldwin <jhb@FreeBSD.org>
3145
3146 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3147 declaration.
3148 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3149 function.
3150
f37e5866
JB
31512020-07-09 John Baldwin <jhb@FreeBSD.org>
3152
3153 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3154 inferior_ptid.
3155
fc238d4a
JB
31562020-07-09 John Baldwin <jhb@FreeBSD.org>
3157
3158 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3159 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3160 AT_FREEBSD_PS_STRINGS.
3161
6e2469ff
HD
31622020-07-08 Hannes Domani <ssbssa@yahoo.de>
3163
3164 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3165 of debugfile path on Windows.
3166
d1076c41
JB
31672020-07-08 John Baldwin <jhb@FreeBSD.org>
3168
3169 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3170 argument to 'data'.
3171
15f3b077
TT
31722020-07-08 Tom Tromey <tromey@adacore.com>
3173
3174 * ada-lang.c (ada_exception_message_1): Use read_memory.
3175
9fc501fd
AB
31762020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3177
3178 PR python/22748
3179 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3180 special handling for inline frames.
3181 * findvar.c (value_of_register_lazy): Skip inline frames when
3182 creating lazy register values.
3183 * frame.c (frame_id_computed_p): Delete definition.
3184 * frame.h (frame_id_computed_p): Delete declaration.
3185
64cb3757
AB
31862020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3187
3188 * NEWS: Mention additions to Python API.
3189 * python/py-arch.c (archpy_register_groups): New function.
3190 (arch_object_methods): Add 'register_groups' method.
3191 * python/py-registers.c (reggroup_iterator_object): New struct.
3192 (reggroup_object): New struct.
3193 (gdbpy_new_reggroup): New function.
3194 (gdbpy_reggroup_to_string): New function.
3195 (gdbpy_reggroup_name): New function.
3196 (gdbpy_reggroup_iter): New function.
3197 (gdbpy_reggroup_iter_next): New function.
3198 (gdbpy_new_reggroup_iterator): New function
3199 (gdbpy_initialize_registers): Register new types.
3200 (reggroup_iterator_object_type): Define new Python type.
3201 (gdbpy_reggroup_getset): New static global.
3202 (reggroup_object_type): Define new Python type.
3203 * python/python-internal.h
3204
0f767f94
AB
32052020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3206
3207 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3208 * python/py-arch.c (archpy_registers): New function.
3209 (arch_object_methods): Add 'registers' method.
3210 * python/py-registers.c: New file.
3211 * python/python-internal.h
3212 (gdbpy_new_register_descriptor_iterator): Declare.
3213 (gdbpy_initialize_registers): Declare.
3214 * python/python.c (do_start_initialization): Call
3215 gdbpy_initialize_registers.
3216 * NEWS: Mention additions to the Python API.
3217
87dbc774
AB
32182020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3219
3220 * NEWS: Mention new Python API method.
3221 * python/py-unwind.c (pending_framepy_architecture): New function.
3222 (pending_frame_object_methods): Add architecture method.
3223
3bc98c0c
AB
32242020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3225
3226 * gdbarch.c: Regenerate.
3227 * gdbarch.h: Regenerate.
3228 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3229 (gdbarch_data): Use internal_error for the case where
3230 deprecated_set_gdbarch_data was originally needed.
3231 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3232 and use passed in obstack.
3233 (libunwind_frame_set_descr): Should no longer get back NULL from
3234 gdbarch_data.
3235 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3236 type.
3237 * user-regs.c (user_regs_init): Update parameters, and use passed
3238 in obstack.
3239 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3240 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3241
d8cc8af6
TV
32422020-07-06 Tom de Vries <tdevries@suse.de>
3243
3244 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3245 End-Of-Sequence in lte_is_less_than.
3246 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3247 "gdb: Don't reorder line table entries too much when sorting".
3248
947f7597
TV
32492020-07-06 Tom de Vries <tdevries@suse.de>
3250
3251 PR tui/26205
3252 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3253
1e7c1b22
TV
32542020-07-05 Tom de Vries <tdevries@suse.de>
3255
3256 PR build/26187
3257 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3258 std::uncaught_exceptions instead of deprecated
3259 std::uncaught_exception.
3260
a36158ec
SM
32612020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3262
3263 * macroexp.h (macro_stringify): Return
3264 gdb::unique_xmalloc_ptr<char>.
3265 * macroexp.c (macro_stringify): Likewise.
3266 * macrotab.c (fixup_definition): Update.
3267
14d960c8
SM
32682020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3269
3270 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3271 (lex_one_token): Update.
3272 * macroexp.c (struct macro_buffer) <release>: Return
3273 gdb::unique_xmalloc_ptr<char>.
3274 (macro_stringify): Update.
3275 (macro_expand): Update.
3276 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3277 * macroexp.h (macro_expand_next): Likewise.
3278
211d5b1c
SM
32792020-07-02 Simon Marchi <simon.marchi@efficios.com>
3280
3281 * macroexp.h (macro_lookup_ftype): Remove.
3282 (macro_expand, macro_expand_once, macro_expand_next): Remove
3283 lookup function parameters, add scope parameter.
3284 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3285 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3286 * macroscope.h (standard_macro_lookup): Change parameter type
3287 to macro_scope.
3288 * macroscope.c (standard_macro_lookup): Likewise.
3289 * c-exp.y (lex_one_token): Update.
3290 * macrocmd.c (macro_expand_command): Likewise.
3291 (macro_expand_once_command): Likewise.
3292
b1a35af2
SM
32932020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3294
3295 * inf-loop.c (inferior_event_handler): Remove client_data param.
3296 * inf-loop.h (inferior_event_handler): Likewise.
3297 * infcmd.c (step_1): Adjust.
3298 * infrun.c (proceed): Adjust.
3299 (fetch_inferior_event): Remove client_data param.
3300 (infrun_async_inferior_event_handler): Adjust.
3301 * infrun.h (fetch_inferior_event): Remove `void *` param.
3302 * linux-nat.c (handle_target_event): Adjust.
3303 * record-btrace.c (record_btrace_handle_async_inferior_event):
3304 Adjust.
3305 * record-full.c (record_full_async_inferior_event_handler):
3306 Adjust.
3307 * remote.c (remote_async_inferior_event_handler): Adjust.
3308
1cdf9e33
TT
33092020-07-01 Tom Tromey <tom@tromey.com>
3310
3311 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3312 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3313
32c1e210
TT
33142020-07-01 Tom Tromey <tom@tromey.com>
3315
3316 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3317 tui_gen_win_info.
3318 (tui_win_info::make_window): Merge with
3319 tui_gen_win_info::make_window.
3320 (tui_win_info::make_visible): Move from tui_gen_win_info.
3321 * tui/tui-win.c (tui_win_info::max_width): Move from
3322 tui_gen_win_info.
3323 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3324 type.
3325 <window_factory>: Likewise.
3326 * tui/tui-layout.c (tui_win_info::resize): Move from
3327 tui_gen_win_info.
3328 (make_standard_window): Change return type.
3329 (get_locator_window, tui_get_window_by_name): Likewise.
3330 (tui_layout_window::apply): Remove a cast.
3331 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3332 (struct tui_win_info): Merge with tui_gen_win_info.
3333 (struct tui_gen_win_info): Remove.
3334
a30cb6da
TT
33352020-07-01 Tom Tromey <tom@tromey.com>
3336
3337 * tui/tui-stack.h (struct tui_locator_window): Derive from
3338 tui_win_info.
3339 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3340 <can_box>: New method.
3341
1eb2161f
TT
33422020-07-01 Tom Tromey <tom@tromey.com>
3343
3344 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3345
7134f2eb
TT
33462020-07-01 Tom Tromey <tom@tromey.com>
3347
3348 * tui/tui-regs.c (tui_data_window::display_registers_from)
3349 (tui_data_window::display_registers_from)
3350 (tui_data_window::first_data_item_displayed)
3351 (tui_data_window::delete_data_content_windows): Update.
3352 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3353 Remove.
3354 (tui_data_window::check_register_values): Update.
3355 (tui_data_item_window::rerender): Add parameters. Update.
3356 (tui_data_item_window::refresh_window): Remove.
3357 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3358 virtual.
3359 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3360 tui_gen_win_info.
3361 <refresh_window, max_height, min_height>: Remove.
3362 <rerender>: Add parameters.
3363 <x, y, visible>: New members.
3364 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3365 <m_item_width>: New member.
3366
22b7b041
TT
33672020-07-01 Tom Tromey <tom@tromey.com>
3368
3369 * tui/tui-regs.c (tui_data_window::show_register_group)
3370 (tui_data_window::check_register_values): Update.
3371 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3372 from item_no.
3373
c9753adb
TT
33742020-07-01 Tom Tromey <tom@tromey.com>
3375
3376 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3377 useless "if".
3378
9ab26b4a
TT
33792020-07-01 Tom Tromey <tom@tromey.com>
3380
3381 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3382 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3383
e555083f
TT
33842020-07-01 Tom Tromey <tom@tromey.com>
3385
3386 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3387 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3388 (struct tui_line_or_address): Move from tui-data.h.
3389 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3390 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3391 (tui_cmd_window, tui_source_window_base, tui_source_window)
3392 (tui_disasm_window): Don't declare.
3393 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3394 to tui-winsource.h.
3395 (SINGLE_KEY): Move to tui-stack.c.
3396
7a02bab7
TT
33972020-07-01 Tom Tromey <tom@tromey.com>
3398
3399 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3400 std::string.
3401 * tui/tui-regs.c (class tab_expansion_file): New.
3402 (tab_expansion_file::write): New method.
3403 (tui_register_format): Change return type. Use
3404 tab_expansion_file.
3405 (tui_get_register, tui_data_window::display_registers_from)
3406 (tui_data_item_window::rerender): Update.
3407 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3408 * tui/tui-io.c (tui_expand_tabs): Remove.
3409
ea68593b
TT
34102020-07-01 Tom Tromey <tom@tromey.com>
3411
3412 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3413
a8caed5d
FS
34142020-07-01 Fangrui Song <maskray@google.com>
3415
3416 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3417
9cdf9820
AKS
34182020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3419
3420 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3421 forms for DW_AT_associated and DW_AT_allocated attributes,
3422 which is already checked in function attr_to_dynamic_prop.
3423
a1520ad8
TT
34242020-06-30 Tom Tromey <tromey@adacore.com>
3425
3426 * dwarf2/read.c (quirk_rust_enum): Correctly call
3427 alloc_rust_variant for default-less enum.
3428
5ac58899
TT
34292020-06-30 Tom Tromey <tromey@adacore.com>
3430
3431 PR build/26183:
3432 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3433 gdb::to_string.
3434
19b187a9
SM
34352020-06-29 Simon Marchi <simon.marchi@efficios.com>
3436
3437 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3438 * gdbarch.h: Re-generate.
3439
cd4c4c07
TT
34402020-06-28 Tom Tromey <tom@tromey.com>
3441
3442 * command.h (cmd_types): Remove.
3443 (cmd_type): Don't declare.
3444 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3445 typedef.
3446 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3447 * cli/cli-decode.c (cmd_type): Remove.
3448
05779d57
PA
34492020-06-27 Pedro Alves <palves@redhat.com>
3450
3451 * fork-child.c (prefork_hook): Adjust.
3452 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3453 Delete.
3454 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3455 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3456 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3457 Remove declarations.
3458 (struct inferior) <set_tty, tty>: New methods.
3459 (struct inferior) <terminal>: Rename to ...
3460 (struct inferior) <m_terminal>: ... this and make private.
3461 * main.c (captured_main_1): Adjust.
3462 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3463 (mi_cmd_inferior_tty_show): Adjust.
3464 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3465 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3466
1776e3e5
NA
34672020-06-26 Nick Alcock <nick.alcock@oracle.com>
3468
3469 * configure.ac: Add --enable-libctf: handle --disable-static
3470 properly.
3471 * acinclude.m4: sinclude ../config/enable.m4.
3472 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3473 (LIBCTF): Substitute in.
3474 (CTF_DEPS): New, likewise.
3475 (CLIBS): libctf needs symbols from libbfd: move earlier.
3476 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3477 flags.
3478 * ctfread.c: Surround in ENABLE_LIBCTF.
3479 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3480 * configure: Regenerate.
3481 * config.in: Likewise.
3482
58373b80
SM
34832020-06-25 Simon Marchi <simon.marchi@efficios.com>
3484
3485 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3486
277474ee
SM
34872020-06-25 Simon Marchi <simon.marchi@efficios.com>
3488
3489 * inferior.h (struct inferior) <terminal>: Change type to
3490 gdb::unique_xmalloc_ptr<char>.
3491 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3492 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3493 field, adjust to unique pointer.
3494 (get_inferior_io_terminal): Adjust to unique pointer.
3495
6d74da72
AB
34962020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3497
3498 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3499 registers, not just the known core set of registers.
3500
2e52d038
AB
35012020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3502
3503 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3504 fflags, frm, and fcsr registers.
3505 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3506 restore groups.
3507 (riscv_tdesc_unknown_reg): New function.
3508 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3509 tdesc_use_registers.
3510 * riscv-tdep.h (struct gdbarch_tdep): Add
3511 unknown_csrs_first_regnum, unknown_csrs_count,
3512 duplicate_fflags_regnum, duplicate_frm_regnum, and
3513 duplicate_fcsr_regnum fields.
3514
be64fd07
AB
35152020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3516
3517 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3518 callback, use the callback (when not null) to help number unknown
3519 registers.
3520 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3521 (tdesc_use_registers): Add extra parameter to declaration.
3522
3b9fce96
AB
35232020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3524
3525 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3526 in the file.
3527 (class riscv_pending_register_alias): Likewise.
3528 (riscv_register_feature::register_info): Change 'required_p' field
3529 to 'required', and change its type. Add 'check' member function.
3530 (riscv_register_feature::register_info::check): Define new member
3531 function.
3532 (riscv_xreg_feature): Change initialisation of 'required' field.
3533 (riscv_freg_feature): Likewise.
3534 (riscv_virtual_feature): Likewise.
3535 (riscv_csr_feature): Likewise.
3536 (riscv_check_tdesc_feature): Take extra parameter, the csr
3537 tdesc_feature, rewrite the function to use the new
3538 riscv_register_feature::register_info::check function.
3539 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3540
865bad26
AB
35412020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3542
3543 * features/Makefile: Remove all references to the deleted files
3544 below.
3545 * features/riscv/32bit-csr.c: Deleted.
3546 * features/riscv/32bit-csr.xml: Deleted.
3547 * features/riscv/64bit-csr.c: Deleted.
3548 * features/riscv/64bit-csr.xml: Deleted.
3549 * features/riscv/rebuild-csr-xml.sh: Deleted.
3550
ed69cbc8
AB
35512020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3552
3553 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3554 whitespace error for declaration of names member variable.
3555 (struct riscv_register_feature): Add new prefer_first_name member
3556 variable, and fix whitespace error in declaration of registers.
3557 (riscv_xreg_feature): Initialize prefer_first_name field.
3558 (riscv_freg_feature): Likewise.
3559 (riscv_virtual_feature): Likewise.
3560 (riscv_csr_feature): Likewise.
3561 (riscv_register_name): Expand on comments. Remove register name
3562 modifications for CSR and virtual registers.
3563
4445e8f5
AB
35642020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3565
3566 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3567 errors.
3568
767a879e
AB
35692020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3570
3571 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3572 riscv-opc.h.
3573 (class riscv_pending_register_alias): New class.
3574 (riscv_check_tdesc_feature): Take vector of pending aliases and
3575 populate it as appropriate.
3576 (riscv_setup_register_aliases): Delete.
3577 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3578 to riscv_check_tdesc_feature in all cases. Use the vector to
3579 create the register aliases.
3580
bb6e55f3
RO
35812020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3582
3583 * sol2-tdep.c (sol2_static_transform_name): Remove.
3584 (sol2_init_abi): Don't register it.
3585 * gdbarch.sh (static_transform_name): Remove.
3586 * gdbarch.c, gdbarch.h: Regenerate.
3587
3588 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3589 gdbarch_static_transform_name.
3590 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3591 * stabsread.c (define_symbol) <'X'>: Remove.
3592 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3593 handling.
3594 <'V'>: Likewise.
3595 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3596 <'S'>: Remove call to gdbarch_static_transform_name.
3597
c6d36836
RO
35982020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3599
3600 * procfs.c (procfs_pre_trace): New function.
3601 (procfs_target::create_inferior): Pass it to fork_inferior.
3602
a7e6196b
RO
36032020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3604
3605 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3606 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3607 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3608 sol2-tdep.o, sparc-sol2-tdep.o.
3609 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3610 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3611 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3612 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3613
d412e696
RO
36142020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3615
3616 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3617 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3618 Call sol2_init_abi.
3619 Remove calls to set_gdbarch_skip_solib_resolver,
3620 set_gdbarch_core_pid_to_str.
3621 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3622 (i386_sol2_static_transform_name): Remove.
3623 (i386_sol2_init_abi): Call sol2_init_abi.
3624 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3625 set_gdbarch_static_transform_name,
3626 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3627 Use sol2_sigtramp_p.
3628 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3629 (sol2_sigtramp_p): New function.
3630 (sol2_static_transform_name): New function.
3631 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3632 (sol2_init_abi): New function.
3633 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3634 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3635 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3636 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3637 (sparc_sol2_static_transform_name): Remove.
3638 (sparc32_sol2_init_abi): Call sol2_init_abi.
3639 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3640 set_gdbarch_static_transform_name,
3641 set_gdbarch_skip_solib_resolver,
3642 set_gdbarch_core_pid_to_str.
3643 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3644 (sparc_sol2_static_transform_name): Remove
3645 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3646 call sol2_sigtramp_p.
3647 (sparc64_sol2_init_abi): Call sol2_init_abi.
3648 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3649 set_gdbarch_static_transform_name,
3650 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3651
a8654e7d
PW
36522020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3653
3654 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3655 * exec.c (validate_exec_file): If from_tty, set both
3656 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3657 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3658 and from_tty, unconditionally ask a confirmation.
3659
caa7fd04
AB
36602020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3661
3662 * target-descriptions.c (tdesc_architecture_name): Protect against
3663 NULL pointer dereference.
3664 (maint_print_xml_tdesc_cmd): New function.
3665 (_initialize_target_descriptions): Register new 'maint print
3666 xml-tdesc' command and give it the filename completer.
3667 * NEWS: Mention new 'maint print xml-tdesc' command.
3668
fbf42f4e
AB
36692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3670
3671 * target-descriptions.c (class tdesc_compatible_info): New class.
3672 (struct target_desc): Change type of compatible vector.
3673 (tdesc_compatible_p): Update for change in type of
3674 target_desc::compatible.
3675 (tdesc_compatible_info_list): New function.
3676 (tdesc_compatible_info_arch_name): New function.
3677 (tdesc_add_compatible): Update for change in type of
3678 target_desc::compatible.
3679 (print_c_tdesc::visit_pre): Likewise.
3680
20821f4e
AB
36812020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3682
3683 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3684 whitespace to underscore.
3685 (maint_print_c_tdesc_cmd): Use fake filename for target
3686 descriptions that came from the target.
3687 (_initialize_target_descriptions): Add filename command completion
3688 for 'maint print c-tdesc'.
3689
1fb5ee62
SM
36902020-06-23 Simon Marchi <simon.marchi@efficios.com>
3691
3692 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3693 lines.
3694
fc3ecb3e
SM
36952020-06-23 Simon Marchi <simon.marchi@efficios.com>
3696
3697 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3698 lines.
3699 (dwarf2_find_location_expression): Likewise.
3700 (call_site_parameter_matches): Likewise.
3701 (dwarf2_compile_expr_to_ax): Likewise.
3702 (disassemble_dwarf_expression): Likewise.
3703 (loclist_describe_location): Likewise.
3704
236ef034
PA
37052020-06-23 Pedro Alves <palves@redhat.com>
3706
3707 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3708 progspace-and-thread.h. Include scoped-mock-context.h instead.
3709 (register_to_value_test): Use scoped_mock_context.
3710 * regcache.c: Include "scoped-mock-context.h".
3711 (cooked_read_test): Don't error out if a target is already pushed.
3712 Use scoped_mock_context. Adjust.
3713 * scoped-mock-context.h: New file.
3714
39e7ecca
AB
37152020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3716
3717 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3718 initializer.
3719 (ada_language::is_string_type_p): New member function.
3720 * c-lang.c (c_language_data): Delete la_is_string_type_p
3721 initializer.
3722 (cplus_language_data): Likewise.
3723 (asm_language_data): Likewise.
3724 (minimal_language_data): Likewise.
3725 * d-lang.c (d_language_data): Likewise.
3726 * f-lang.c (f_is_string_type_p): Delete function, implementation
3727 moved to f_language::is_string_type_p.
3728 (f_language_data): Delete la_is_string_type_p initializer.
3729 (f_language::is_string_type_p): New member function,
3730 implementation from f_is_string_type_p.
3731 * go-lang.c (go_is_string_type_p): Delete function, implementation
3732 moved to go_language::is_string_type_p.
3733 (go_language_data): Delete la_is_string_type_p initializer.
3734 (go_language::is_string_type_p): New member function,
3735 implementation from go_is_string_type_p.
3736 * language.c (language_defn::is_string_type_p): Define new member
3737 function.
3738 (default_is_string_type_p): Make static, add comment copied from
3739 header file.
3740 (unknown_language_data): Delete la_is_string_type_p initializer.
3741 (unknown_language::is_string_type_p): New member function.
3742 (auto_language_data): Delete la_is_string_type_p initializer.
3743 (auto_language::is_string_type_p): New member function.
3744 * language.h (language_data): Delete la_is_string_type_p field.
3745 (language_defn::is_string_type_p): Declare new function.
3746 (default_is_string_type_p): Delete desclaration, move comment to
3747 definition.
3748 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3749 moved to m2_language::is_string_type_p.
3750 (m2_language_data): Delete la_is_string_type_p initializer.
3751 (m2_language::is_string_type_p): New member function,
3752 implementation from m2_is_string_type_p.
3753 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3754 initializer.
3755 * opencl-lang.c (opencl_language_data): Likewise.
3756 * p-lang.c (pascal_is_string_type_p): Delete function,
3757 implementation moved to pascal_language::is_string_type_p.
3758 (pascal_language_data): Delete la_is_string_type_p initializer.
3759 (pascal_language::is_string_type_p): New member function,
3760 implementation from pascal_is_string_type_p.
3761 * rust-lang.c (rust_is_string_type_p): Delete function,
3762 implementation moved to rust_language::is_string_type_p.
3763 (rust_language_data): Delete la_is_string_type_p initializer.
3764 (rust_language::is_string_type_p): New member function,
3765 implementation from rust_is_string_type_p.
3766 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3767 is_string_type_p.
3768
4ffc13fb
AB
37692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3770
3771 * ada-lang.c (ada_language_data): Delete la_print_typedef
3772 initializer.
3773 (ada_language::print_typedef): New member function.
3774 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3775 (cplus_language_data): Likewise.
3776 (asm_language_data): Likewise.
3777 (minimal_language_data): Likewise.
3778 * d-lang.c (d_language_data): Likewise.
3779 * f-lang.c (f_language_data): Likewise.
3780 (f_language::print_typedef): New member function.
3781 * go-lang.c (go_language_data): Delete la_print_typedef
3782 initializer.
3783 * language.c (language_defn::print_typedef): Define member
3784 function.
3785 (unknown_language_data): Delete la_print_typedef initializer.
3786 (unknown_language::print_typedef): New member function.
3787 (auto_language_data): Delete la_print_typedef initializer.
3788 (auto_language::print_typedef): New member function.
3789 * language.h (language_data): Delete la_print_typedef field.
3790 (language_defn::print_typedef): Declare new member function.
3791 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3792 (default_print_typedef): Delete declaration.
3793 * m2-lang.c (m2_language_data): Delete la_print_typedef
3794 initializer.
3795 (m2_language::print_typedef): New member function.
3796 * objc-lang.c (objc_language_data): Delete la_print_typedef
3797 initializer.
3798 * opencl-lang.c (opencl_language_data): Likewise.
3799 * p-lang.c (pascal_language_data): Likewise.
3800 (pascal_language::print_typedef): New member function.
3801 * rust-lang.c (rust_print_typedef): Delete function,
3802 implementation moved to rust_language::print_typedef.
3803 (rust_language): Delete la_print_typedef initializer.
3804 (rust_language::print_typedef): New member function,
3805 implementation from rust_print_typedef.
3806 * typeprint.c (default_print_typedef): Delete.
3807
d711ee67
AB
38082020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3809
3810 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3811 (ada_language::printstr): New member function.
3812 * c-lang.c (c_language_data): Delete la_printstr initializer.
3813 (cplus_language_data): Likewise.
3814 (asm_language_data): Likewise.
3815 (minimal_language_data): Likewise.
3816 * d-lang.c (d_language_data): Likewise.
3817 * f-lang.c (f_printstr): Rename to f_language::printstr.
3818 (f_language_data): Delete la_printstr initializer.
3819 (f_language::printstr): New member function, implementation from
3820 f_printstr.
3821 * go-lang.c (go_language_data): Delete la_printstr initializer.
3822 * language.c (language_defn::printstr): Define new member
3823 function.
3824 (unk_lang_printstr): Delete.
3825 (unknown_language_data): Delete la_printstr initializer.
3826 (unknown_language::printstr): New member function.
3827 (auto_language_data): Delete la_printstr initializer.
3828 (auto_language::printstr): New member function.
3829 * language.h (language_data): Delete la_printstr field.
3830 (language_defn::printstr): Declare new member function.
3831 (LA_PRINT_STRING): Update call to printstr.
3832 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3833 (m2_language_data): Delete la_printstr initializer.
3834 (m2_language::printstr): New member function, implementation from
3835 m2_printstr.
3836 * objc-lang.c (objc_language_data): Delete la_printstr
3837 initializer.
3838 * opencl-lang.c (opencl_language_data): Likewise.
3839 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3840 (pascal_language_data): Delete la_printstr initializer.
3841 (pascal_language::printstr): New member function, implementation
3842 from pascal_printstr.
3843 * p-lang.h (pascal_printstr): Delete declaration.
3844 * rust-lang.c (rust_printstr): Update header comment.
3845 (rust_language_data): Delete la_printstr initializer.
3846 (rust_language::printstr): New member function.
3847
52b50f2c
AB
38482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3849
3850 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3851 (ada_language::printchar): New member function.
3852 * c-lang.c (c_language_data): Delete la_printchar initializer.
3853 (cplus_language_data): Likewise.
3854 (asm_language_data): Likewise.
3855 (minimal_language_data): Likewise.
3856 * d-lang.c (d_language_data): Likewise.
3857 * f-lang.c (f_printchar): Rename to f_language::printchar.
3858 (f_language_data): Delete la_printchar initializer.
3859 (f_language::printchar): New member function, implementation from
3860 f_printchar.
3861 * go-lang.c (go_language_data): Delete la_printchar initializer.
3862 * language.c (unk_lang_printchar): Delete.
3863 (language_defn::printchar): Define new member function.
3864 (unknown_language_data): Delete la_printchar initializer.
3865 (unknown_language::printchar): New member function.
3866 (auto_language_data): Delete la_printchar initializer.
3867 (auto_language::printchar): New member function.
3868 * language.h (language_data): Delete la_printchar field.
3869 (language_defn::printchar): Declare new member function.
3870 (LA_PRINT_CHAR): Update call to printchar.
3871 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3872 (m2_language::printchar): New member function.
3873 * objc-lang.c (objc_language_data): Delete la_printchar
3874 initializer.
3875 * opencl-lang.c (opencl_language_data): Likewise.
3876 * p-lang.c (pascal_language_data): Delete la_printchar
3877 initializer.
3878 (pascal_language::printchar): New member function.
3879 * rust-lang.c (rust_printchar): Rename to
3880 rust_language::printchar.
3881 (rust_language_data): Delete la_printchar initializer.
3882 (rust_language::printchar): New member function, implementation
3883 from rust_printchar.
3884
ec8cec5b
AB
38852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3886
3887 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3888 (ada_language_data): Delete la_emitchar initializer.
3889 (ada_language::emitchar): New member function, implementation from
3890 emit_char.
3891 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3892 (cplus_language_data): Likewise.
3893 (asm_language_data): Likewise.
3894 (minimal_language_data): Likewise.
3895 * d-lang.c (d_language_data): Likewise.
3896 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3897 (f_language_data): Delete la_emitchar initializer.
3898 (f_language::emitchar): New member function, implementation from
3899 f_emit_char.
3900 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3901 * language.c (unk_lang_emit_char): Delete.
3902 (language_defn::emitchar): New member function definition.
3903 (unknown_language_data): Delete la_emitchar initializer.
3904 (unknown_language::emitchar): New member function.
3905 (auto_language_data): Delete la_emitchar initializer.
3906 (auto_language::emitchar): New member function.
3907 * language.h (language_data): Delete la_emitchar field.
3908 (language_defn::emitchar): New member field declaration.
3909 (LA_EMIT_CHAR): Update call to emitchar.
3910 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3911 (m2_language_data): Delete la_emitchar initializer.
3912 (m2_language::emitchar): New member function, implementation from
3913 m2_emit_char.
3914 * objc-lang.c (objc_language_data): Delete la_emitchar
3915 initializer.
3916 * opencl-lang.c (opencl_language_data): Likewise.
3917 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3918 (pascal_language_data): Delete la_emitchar initializer.
3919 (pascal_language::emitchar): New member function, implementation
3920 from pascal_emit_char.
3921 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3922 (rust_language_data): Delete la_emitchar initializer.
3923 (rust_language::emitchar): New member function, implementation
3924 from rust_emitchar.
3925
1bf9c363
AB
39262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3927
3928 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3929 (ada_language_data): Delete la_post_parser initializer.
3930 (ada_language::post_parser): New member function.
3931 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3932 (cplus_language_data): Likewise.
3933 (asm_language_data): Likewise.
3934 (minimal_language_data): Likewise.
3935 * d-lang.c (d_language_data): Likewise.
3936 * f-lang.c (f_language_data): Likewise.
3937 * go-lang.c (go_language_data): Likewise.
3938 * language.c (unknown_language_data): Likewise.
3939 (auto_language_data): Likewise.
3940 * language.h (language_data): Delete la_post_parser field.
3941 (language_defn::post_parser): New member function.
3942 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3943 * objc-lang.c (objc_language_data): Likewise.
3944 * opencl-lang.c (opencl_language_data): Likewise.
3945 * p-lang.c (pascal_language_data): Likewise.
3946 * parse.c (parse_exp_in_context): Update call to post_parser.
3947 (null_post_parser): Delete definition.
3948 * parser-defs.h (null_post_parser): Delete declaration.
3949 * rust-lang.c (rust_language_data): Delete la_post_parser
3950 initializer.
3951
87afa652
AB
39522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3953
3954 * ada-lang.c (parse): Rename to ada_language::parser.
3955 (ada_language_data): Delete la_parser initializer.
3956 (ada_language::parser): New member function, implementation from
3957 parse.
3958 * c-lang.c (c_language_data): Delete la_parser initializer.
3959 (cplus_language_data): Likewise.
3960 (asm_language_data): Likewise.
3961 (minimal_language_data): Likewise.
3962 * d-lang.c (d_language_data): Likewise.
3963 (d_language::parser): New member function.
3964 * f-lang.c (f_language_data): Delete la_parser initializer.
3965 (f_language::parser): New member function.
3966 * go-lang.c (go_language_data): Delete la_parser initializer.
3967 (go_language::parser): New member function.
3968 * language.c (unk_lang_parser): Delete.
3969 (language_defn::parser): Define new member function.
3970 (unknown_language_data): Delete la_parser initializer.
3971 (unknown_language::parser): New member function.
3972 (auto_language_data): Delete la_parser initializer.
3973 (auto_language::parser): New member function.
3974 * language.h (language_data): Delete la_parser field.
3975 (language_defn::parser): Declare new member function.
3976 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3977 (m2_language::parser): New member function.
3978 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3979 * opencl-lang.c (opencl_language_data): Likewise.
3980 * p-lang.c (pascal_language_data): Likewise.
3981 (pascal_language::parser): New member function.
3982 * parse.c (parse_exp_in_context): Update call to parser.
3983 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3984 (rust_language::parser): New member function.
3985
37825800
AB
39862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3987
3988 * top.c (print_gdb_configuration): Print --with-python-libdir
3989 configuration value.
3990
5b860c93
PW
39912020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3992
3993 * NEWS: Mention change to the alias command.
3994
cf00cd6f
PW
39952020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3996
3997 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3998 (alias_command_completer)
3999 (make_alias_options_def_group): New functions.
4000 (alias_opts, alias_option_defs): New struct and array.
4001 (alias_usage_error): Update usage.
4002 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4003 Use option framework.
4004 (_initialize_cli_cmds): Update alias command help.
4005 Update aliases command help.
4006 (show_user):
4007 Add NULL for new default_args lookup_cmd argument.
4008 (valid_command_p): Rename to validate_aliased_command.
4009 Add NULL for new default_args lookup_cmd argument. Verify that the
4010 aliased_command has no default args.
4011 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4012 (lookup_cmd_1, lookup_cmd): New argument default_args.
4013 (add_alias_cmd):
4014 Add NULL for new default_args lookup_cmd argument.
4015 (print_help_for_command): Show default args under the layout
4016 alias some_alias = some_aliased_cmd some_alias_default_arg.
4017 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4018 xfree default_args in destructor.
4019 * cli/cli-script.c (process_next_line, do_define_command):
4020 Add NULL for new default_args lookup_cmd argument.
4021 * command.h: Declare new default_args argument in lookup_cmd
4022 and lookup_cmd_1.
4023 * completer.c (complete_line_internal_1):
4024 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4025 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4026 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4027 Likewise.
4028 * infcmd.c (_initialize_infcmd): Likewise.
4029 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4030 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4031 * python/py-param.c (add_setshow_generic): Likewise.
4032 * remote.c (_initialize_remote): Likewise.
4033 * top.c (execute_command): Prepend default_args if command has some.
4034 (set_verbose):
4035 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4036 * tracepoint.c (validate_actionline, encode_actions_1):
4037 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4038
bd920864
TBA
40392020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4040
4041 * jit.c (jit_read_descriptor): Use bool as the return type.
4042 (jit_breakpoint_re_set_internal): Use bool as the return type.
4043 Invert the return value logic; return true if the jit breakpoint
4044 has been successfully initialized.
4045 (jit_inferior_init): Update the call to
4046 jit_breakpoint_re_set_internal.
4047
f8098322
PA
40482020-06-22 Pedro Alves <palves@redhat.com>
4049
4050 PR gdb/25939
4051 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4052 Use the current inferior instead. Don't return
4053 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4054 wait again.
4055 * sol-thread.c (sol_thread_target::wait): Don't reference
4056 inferior_ptid.
4057 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4058 (sol_update_thread_list_callback): Use the current inferior's pid
4059 instead of inferior_ptid.
4060
196535a6
RO
40612020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4062
4063 * procfs.c: Cleanup many comments.
4064
4065 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4066 (AFTER_WATCHFLAG): Replace by value.
4067
4068 (MAIN_PROC_NAME_FORMAT): Inline ...
4069 (create_procinfo): ... here.
4070
4071 (procfs_debug_inferior): Remove SYS_exec handling.
4072 (syscall_is_exec): Likewise.
4073 (procfs_set_exec_trap): Likewise.
4074
4075 (syscall_is_lwp_exit): Inline in callers.
4076 (syscall_is_exit): Likewise.
4077 (syscall_is_exec): Likewise.
4078 (syscall_is_lwp_create): Likewise.
4079
4080 (invalidate_cache): Remove #if 0 code.
4081
4082 (make_signal_thread_runnable): Remove.
4083 (procfs_target::resume): Remove #if 0 code.
4084
cf6f3e86
RO
40852020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4086
4087 PR gdb/25939
4088 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4089 call ...
4090 (procfs_target::create_inferior): ... here.
4091
48e9cc84
PW
40922020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4093
4094 * exec.c (validate_exec_file): Ensure the build-id is up to
4095 date by calling reopen_exec_file (that checks file timestamp
4096 to decide to re-read the file).
4097
3922b302
PA
40982020-06-18 Pedro Alves <palves@redhat.com>
4099
4100 PR gdb/25412
4101 * gdbthread.h (delete_thread, delete_thread_silent)
4102 (find_thread_ptid): Update comments.
4103 * thread.c (current_thread_): New global.
4104 (is_current_thread): Move higher, and reimplement.
4105 (inferior_thread): Reimplement.
4106 (set_thread_exited): Use bool. Add assertions.
4107 (add_thread_silent): Simplify thread-reuse handling by always
4108 calling delete_thread.
4109 (delete_thread): Remove intro comment.
4110 (find_thread_ptid): Skip exited threads.
4111 (switch_to_thread_no_regs): Write to current_thread_.
4112 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4113 INFERIOR_PTID. Clear current_thread_.
4114
6dbdab44
PA
41152020-06-18 Pedro Alves <palves@redhat.com>
4116
4117 * aix-thread.c (pd_update): Use switch_to_thread.
4118
2da4b788
PA
41192020-06-18 Pedro Alves <palves@redhat.com>
4120
4121 * ravenscar-thread.c (ravenscar_thread_target): Update.
4122 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4123 (ravenscar_thread_target::add_active_thread): ... this. Don't
4124 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4125 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4126
50838d1b
PA
41272020-06-18 Pedro Alves <palves@redhat.com>
4128
4129 * nat/windows-nat.c (current_windows_thread): Remove.
4130 * nat/windows-nat.h (current_windows_thread): Remove.
4131 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4132 Adjust.
4133 (display_selectors): Adjust to fetch the current
4134 windows_thread_info based on inferior_ptid.
4135 (fake_create_process): No longer write to current_windows_thread.
4136 (windows_nat_target::get_windows_debug_event):
4137 Don't set inferior_ptid or current_windows_thread.
4138 (windows_nat_target::wait): Adjust to not rely on
4139 current_windows_thread.
4140 (do_initial_windows_stuff): Now a method of windows_nat_target.
4141 Switch to the last_ptid thread.
4142 (windows_nat_target::attach): Adjust.
4143 (windows_nat_target::detach): Use switch_to_no_thread instead of
4144 writing to inferior_ptid directly.
4145 (windows_nat_target::create_inferior): Adjust.
4146
31ce04e9
PA
41472020-06-18 Pedro Alves <palves@redhat.com>
4148
4149 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4150
1ee1a363
PA
41512020-06-18 Pedro Alves <palves@redhat.com>
4152
4153 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4154 after creating it, instead of writing to inferior_ptid. Don't
4155 write to inferior_ptid.
4156
6d350754
PA
41572020-06-18 Pedro Alves <palves@redhat.com>
4158
4159 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4160
5d971d48
PA
41612020-06-18 Pedro Alves <palves@redhat.com>
4162
4163 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4164 it, instead of writing to inferior_ptid.
4165
86e57d1b
PA
41662020-06-18 Pedro Alves <palves@redhat.com>
4167
4168 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4169 to inferior_ptid.
4170
f2e1c129
PA
41712020-06-18 Pedro Alves <palves@redhat.com>
4172
4173 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4174 instead of writing to inferior_ptid directly.
4175
60db1b85
PA
41762020-06-18 Pedro Alves <palves@redhat.com>
4177
4178 * corelow.c (core_target::close): Use switch_to_no_thread instead
4179 of writing to inferior_ptid directly.
4180 (add_to_thread_list, core_target_open): Use switch_to_thread
4181 instead of writing to inferior_ptid directly.
4182
fe7d6a8d
PA
41832020-06-18 Pedro Alves <palves@redhat.com>
4184
4185 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4186 inferior_ptid.
4187 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4188 inferior_ptid.
4189 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4190 inferior_ptid directly.
4191 (darwin_nat_target::init_thread_list): Switch to thread, instead
4192 of writing to inferior_ptid.
4193 (darwin_nat_target::attach): Don't write to inferior_ptid.
4194 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4195
975f8708
PA
41962020-06-18 Pedro Alves <palves@redhat.com>
4197
4198 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4199 thread.
4200 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4201 Instead use switch_to_thread.
4202 (gnu_nat_target::detach): Use switch_to_no_thread
4203 instead of writing to inferior_ptid directly. Used passed-in
4204 inferior instead of looking up the inferior by pid.
4205
1a204730
PA
42062020-06-18 Pedro Alves <palves@redhat.com>
4207
4208 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4209 inferior_ptid.
4210
ebe84f23
PA
42112020-06-18 Pedro Alves <palves@redhat.com>
4212
4213 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4214 inferior_ptid.
4215 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4216 thread.
4217 (nto_procfs_target::detach): Avoid referencing
4218 inferior_ptid. Use switch_to_no_thread instead of writing to
4219 inferior_ptid directly.
4220 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4221 instead of writing to inferior_ptid directly.
4222 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4223 to thread.
4224
191f02e5
PA
42252020-06-18 Pedro Alves <palves@redhat.com>
4226
4227 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4228 after creating it, instead of writing to inferior_ptid.
4229 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4230 to inferior_ptid directly.
4231 (gdbsim_target::wait): Don't write to inferior_ptid.
4232
0ac55310
PA
42332020-06-18 Pedro Alves <palves@redhat.com>
4234
4235 * remote.c (remote_target::remote_notice_new_inferior): Use
4236 switch_to_thread instead of writing to inferior_ptid directly.
4237 (remote_target::add_current_inferior_and_thread): Use
4238 switch_to_no_thread instead of writing to inferior_ptid directly.
4239 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4240 and switch_to_thread instead of using set_current_inferior or
4241 writing to inferior_ptid directly.
4242
5233f39b
PA
42432020-06-18 Pedro Alves <palves@redhat.com>
4244
4245 * tracectf.c (ctf_target_open): Switch to added thread instead of
4246 writing to inferior_ptid directly.
4247 (ctf_target::close): Use switch_to_no_thread instead of writing to
4248 inferior_ptid directly.
4249
087e161b
PA
42502020-06-18 Pedro Alves <palves@redhat.com>
4251
4252 * tracefile-tfile.c (tfile_target_open): Don't write to
4253 inferior_ptid directly, instead switch to added thread.
4254 (tfile_target::close): Use switch_to_no_thread instead of writing
4255 to inferior_ptid directly.
4256
7fb43e53
PA
42572020-06-18 Pedro Alves <palves@redhat.com>
4258
4259 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4260 (procfs_target::detach): Use switch_to_no_thread
4261 instead of writing to inferior_ptid directly.
4262 (do_attach): Change return type to void. Switch to the added
4263 thread.
4264 (procfs_target::create_inferior): Switch to the added thread.
4265 (procfs_do_thread_registers): Don't write to inferior_ptid.
4266
18493a00
PA
42672020-06-18 Pedro Alves <palves@redhat.com>
4268
4269 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4270 of writing to inferior_ptid.
4271 (scoped_restore_exited_inferior): Delete.
4272 (handle_vfork_child_exec_or_exit): Simplify using
4273 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4274 instead of writing to inferior_ptid.
4275 (THREAD_STOPPED_BY): Delete.
4276 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4277 (thread_stopped_by_hw_breakpoint): Delete.
4278 (save_waitstatus): Use
4279 scoped_restore_current_thread+switch_to_thread, and call
4280 target_stopped_by_watchpoint instead of
4281 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4282 instead of thread_stopped_by_sw_breakpoint, and
4283 target_stopped_by_hw_breakpoint instead of
4284 thread_stopped_by_hw_breakpoint.
4285 (handle_inferior_event)
4286 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4287 inferior_ptid directly, nor
4288 set_current_inferior/set_current_program_space. Use
4289 switch_to_thread / switch_to_inferior_no_thread instead.
4290
a0776b13
PA
42912020-06-18 Pedro Alves <palves@redhat.com>
4292
4293 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4294 instead of writing to inferior_ptid.
4295
6155c136
PA
42962020-06-18 Pedro Alves <palves@redhat.com>
4297
4298 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4299 added thread.
4300 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4301 to the added thread.
4302 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4303 instead of writing to inferior_ptid.
4304
c5316fc6
PA
43052020-06-18 Pedro Alves <palves@redhat.com>
4306
4307 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4308 (register_to_value_test): Mock a program_space too. Heap-allocate
4309 the address space. Don't write to inferior_ptid. Use
4310 switch_to_thread instead.
4311
8df01799
PA
43122020-06-18 Pedro Alves <palves@redhat.com>
4313
4314 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4315 Delete.
4316 (find_signalled_thread()): New, factored out from
4317 linux_make_corefile_notes and adjusted to handle exited threads.
4318 (linux_make_corefile_notes): Adjust to use the new
4319 find_signalled_thread.
4320
41792d68
PA
43212020-06-18 Pedro Alves <palves@redhat.com>
4322
4323 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4324 of saving/restoring inferior_ptid.
4325
612f258a
TT
43262020-06-17 Tom Tromey <tom@tromey.com>
4327
4328 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4329 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4330 declare.
4331 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4332
efb763a5
SM
43332020-06-15 Simon Marchi <simon.marchi@efficios.com>
4334
4335 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4336 of partial symtabs.
4337
2951f6c0
SM
43382020-06-17 Simon Marchi <simon.marchi@efficios.com>
4339
4340 * regformats/reg-arm.dat: Remove.
4341 * regformats/reg-bfin.dat: Remove.
4342 * regformats/reg-cris.dat: Remove.
4343 * regformats/reg-crisv32.dat: Remove.
4344 * regformats/reg-m32r.dat: Remove.
4345 * regformats/reg-tilegx.dat: Remove.
4346 * regformats/reg-tilegx32.dat: Remove.
4347
7d458ea5
SM
43482020-06-17 Simon Marchi <simon.marchi@efficios.com>
4349
4350 * features/Makefile (WHICH): Remove arm files.
4351 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4352 * regformats/arm/arm-with-neon.dat: Remove.
4353 * regformats/arm/arm-with-vfpv2.dat: Remove.
4354 * regformats/arm/arm-with-vfpv3.dat: Remove.
4355
3af96c0d
SM
43562020-06-17 Simon Marchi <simon.marchi@efficios.com>
4357
4358 * features/Makefile (XMLTOC): Remove rx.xml.
4359
b25e22fd
PA
43602020-06-17 Pedro Alves <palves@redhat.com>
4361
4362 * gdbthread.h (thread_control_state) <trap_expected> Update
4363 comments.
4364
a78a19b1
AB
43652020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4366
4367 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4368 ada_language::lookup_symbol_nonlocal.
4369 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4370 (ada_language::lookup_symbol_nonlocal): New member function,
4371 implementation from ada_lookup_symbol_nonlocal.
4372 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4373 initializer.
4374 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4375 initializer.
4376 (cplus_language::lookup_symbol_nonlocal): New member function.
4377 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4378 (minimal_language_data) Likewise.
4379 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4380 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4381 initializer.
4382 (d_language::lookup_symbol_nonlocal): New member function.
4383 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4384 initializer.
4385 (f_language::lookup_symbol_nonlocal): New member function.
4386 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4387 initializer.
4388 * language.c (unknown_language_data): Likewise.
4389 (auto_language_data): Likewise.
4390 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4391 field.
4392 (language_defn::lookup_symbol_nonlocal): New member function.
4393 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4394 initializer.
4395 * objc-lang.c (objc_language_data): Likewise.
4396 * opencl-lang.c (opencl_language_data): Likewise.
4397 * p-lang.c (pascal_language_data): Likewise.
4398 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4399 rust_language::lookup_symbol_nonlocal.
4400 (rust_language_data): Delete la_lookup_symbol_nonlocal
4401 initializer.
4402 (rust_language::lookup_symbol_nonlocal): New member function,
4403 implementation from rust_lookup_symbol_nonlocal.
4404 * symtab.c (lookup_symbol_aux): Update call to
4405 lookup_symbol_nonlocal.
4406 (basic_lookup_symbol_nonlocal): Rename to...
4407 (language_defn::lookup_symbol_nonlocal): ...this, and update
4408 header comment. Remove language_defn parameter, and replace with
4409 uses of `this'.
4410 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4411
ebe2334e
AB
44122020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4413
4414 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4415 initializer.
4416 (ada_language::value_print_inner): New member function.
4417 * c-lang.c (c_language_data): Delete la_value_print_inner
4418 initializer.
4419 (cplus_language_data): Likewise.
4420 (asm_language_data): Likewise.
4421 (minimal_language_data): Likewise.
4422 * d-lang.c (d_language_data): Likewise.
4423 (d_language::value_print_inner): New member function.
4424 * f-lang.c (f_language_data): Delete la_value_print_inner
4425 initializer.
4426 (f_language::value_print_inner): New member function.
4427 * f-lang.h (f_value_print_innner): Rename to...
4428 (f_value_print_inner): ...this (note spelling of 'inner').
4429 * f-valprint.c (f_value_print_innner): Rename to...
4430 (f_value_print_inner): ...this (note spelling of 'inner').
4431 * go-lang.c (go_language_data): Delete la_value_print_inner
4432 initializer.
4433 (go_language::value_print_inner): New member function.
4434 * language.c (language_defn::value_print_inner): Define new member
4435 function.
4436 (unk_lang_value_print_inner): Delete.
4437 (unknown_language_data): Delete la_value_print_inner initializer.
4438 (unknown_language::value_print_inner): New member function.
4439 (auto_language_data): Delete la_value_print_inner initializer.
4440 (auto_language::value_print_inner): New member function.
4441 * language.h (language_data): Delete la_value_print_inner field.
4442 (language_defn::value_print_inner): Delcare new member function.
4443 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4444 initializer.
4445 (m2_language::value_print_inner): New member function.
4446 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4447 initializer.
4448 * opencl-lang.c (opencl_language_data): Likewise.
4449 * p-lang.c (pascal_language_data): Likewise.
4450 (pascal_language::value_print_inner): New member function.
4451 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4452 initializer.
4453 (rust_language::value_print_inner): New member function.
4454 * valprint.c (do_val_print): Update call to value_print_inner.
4455
a1d1fa3e
AB
44562020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4457
4458 * ada-lang.c (ada_language_data): Delete la_value_print
4459 initializer.
4460 (ada_language::value_print): New member function.
4461 * c-lang.c (c_language_data): Delete la_value_print initializer.
4462 (cplus_language_data): Likewise.
4463 (asm_language_data): Likewise.
4464 (minimal_language_data): Likewise.
4465 * d-lang.c (d_language_data): Likewise.
4466 * f-lang.c (f_language_data): Likewise.
4467 * go-lang.c (go_language_data): Likewise.
4468 * language.c (unk_lang_value_print): Delete.
4469 (language_defn::value_print): Define new member function.
4470 (unknown_language_data): Delete la_value_print initializer.
4471 (unknown_language::value_print): New member function.
4472 (auto_language_data): Delete la_value_print initializer.
4473 (auto_language::value_print): New member function.
4474 * language.h (language_data): Delete la_value_print field.
4475 (language_defn::value_print): Declare new member function.
4476 (LA_VALUE_PRINT): Update call to value_print.
4477 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4478 * objc-lang.c (objc_language_data): Likewise.
4479 * opencl-lang.c (opencl_language_data): Likewise.
4480 * p-lang.c (pascal_language_data): Likewise.
4481 (pascal_language::value_print): New member function.
4482 * rust-lang.c (rust_language_data): Delete la_value_print
4483 initializer.
4484
f16a9f57
AB
44852020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4486
4487 * ada-lang.c (ada_watch_location_expression): Rename to
4488 ada_language::watch_location_expression.
4489 (ada_language_data): Delete la_watch_location_expression
4490 initializer.
4491 (ada_language::watch_location_expression): New member function,
4492 implementation from ada_watch_location_expression.
4493 * breakpoint.c (watch_command_1): Update call to
4494 watch_location_expression.
4495 * c-lang.c (c_watch_location_expression): Rename to
4496 language_defn::watch_location_expression.
4497 (c_language_data): Delete la_watch_location_expression
4498 initializer.
4499 (cplus_language_data): Likewise.
4500 (asm_language_data): Likewise.
4501 (minimal_language_data): Likewise.
4502 * c-lang.h (c_watch_location_expression): Delete declaration.
4503 * d-lang.c (d_language_data): Delete la_watch_location_expression
4504 initializer.
4505 * f-lang.c (f_language_data): Likewise.
4506 * go-lang.c (go_language_data): Likewise.
4507 * language.c (language_defn::watch_location_expression): Member
4508 function implementation from c_watch_location_expression.
4509 (unknown_language_data): Delete la_watch_location_expression
4510 initializer.
4511 (auto_language_data): Likewise.
4512 * language.h (language_data): Delete la_watch_location_expression
4513 field.
4514 (language_defn::watch_location_expression): Declare new member
4515 function.
4516 * m2-lang.c (m2_language_data): Delete
4517 la_watch_location_expression initializer.
4518 * objc-lang.c (objc_language_data): Likewise.
4519 * opencl-lang.c (opencl_language_data): Likewise.
4520 * p-lang.c (pascal_language_data): Likewise.
4521 * rust-lang.c (rust_watch_location_expression): Rename to
4522 rust_language::watch_location_expression.
4523 (rust_language_data): Delete la_watch_location_expression
4524 initializer.
4525 (rust_language::watch_location_expression): New member function,
4526 implementation from rust_watch_location_expression.
4527
7e56227d
AB
45282020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4529
4530 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4531 ada_language::collect_symbol_completion_matches.
4532 (ada_language_data): Delete la_collect_symbol_completion_matches
4533 initializer.
4534 (ada_language::collect_symbol_completion_matches): New member
4535 function, implementation from
4536 ada_collect_symbol_completion_matches.
4537 * c-lang.c (c_language_data): Delete
4538 la_collect_symbol_completion_matches initializer.
4539 (cplus_language_data): Likewise.
4540 (asm_language_data): Likewise.
4541 (minimal_language_data): Likewise.
4542 * d-lang.c (d_language_data): Likewise.
4543 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4544 f_language::collect_symbol_completion_matches.
4545 (f_language_data): Delete la_collect_symbol_completion_matches
4546 initializer.
4547 (f_language::collect_symbol_completion_matches) New member
4548 function, implementation from f_collect_symbol_completion_matches.
4549 * go-lang.c (go_language_data): Delete
4550 la_collect_symbol_completion_matches initializer.
4551 * language.c (unknown_language_data): Likewise.
4552 (auto_language_data): Likewise.
4553 * language.h (language_data): Delete
4554 la_collect_symbol_completion_matches field.
4555 (language_defn::collect_symbol_completion_matches): New member
4556 function.
4557 * m2-lang.c (m2_language_data): Delete
4558 la_collect_symbol_completion_matches initializer.
4559 * objc-lang.c (objc_language_data): Likewise.
4560 * opencl-lang.c (opencl_language_data): Likewise.
4561 * p-lang.c (pascal_language_data): Likewise.
4562 * rust-lang.c (rust_language_data): Likewise.
4563 * symtab.c (default_collect_symbol_completion_matches): Delete.
4564 (collect_symbol_completion_matches): Update call to
4565 collect_symbol_completion_matches.
4566 (collect_symbol_completion_matches_type): Likewise.
4567 * symtab.h (default_collect_symbol_completion_matches): Delete
4568 declaration.
4569
53fc67f8
AB
45702020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4571
4572 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4573 (ada_language_data): Delete la_word_break_characters initializer.
4574 (ada_language::word_break_characters): New member function.
4575 * c-lang.c (c_language_data): Delete la_word_break_characters
4576 initializer.
4577 (cplus_language_data): Likewise.
4578 (asm_language_data): Likewise.
4579 (minimal_language_data): Likewise.
4580 * completer.c: Update global comment.
4581 (advance_to_expression_complete_word_point): Update call to
4582 word_break_characters.
4583 (complete_files_symbols): Likewise.
4584 (complete_line_internal_1): Likewise.
4585 (default_completer_handle_brkchars): Likewise.
4586 (skip_quoted_chars): Likewise.
4587 * d-lang.c (d_language_data): Delete la_word_break_characters
4588 initializer.
4589 * f-lang.c (f_word_break_characters): Delete.
4590 (f_language_data): Delete la_word_break_characters initializer.
4591 (f_language::word_break_characters): New member function.
4592 * go-lang.c (go_language_data): Delete la_word_break_characters
4593 initializer.
4594 * language.c (unknown_language_data): Likewise.
4595 (auto_language_data): Likewise.
4596 * language.h (default_word_break_characters): Move declaration to
4597 earlier in the file.
4598 (language_data): Delete la_word_break_characters field.
4599 (language_defn::word_break_characters): New member function.
4600 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4601 initializer.
4602 * objc-lang.c (objc_language_data): Likewise.
4603 * opencl-lang.c (opencl_language_data): Likewise.
4604 * p-lang.c (pascal_language_data): Likewise.
4605 * rust-lang.c (rust_language_data): Likewise.
4606
c9debfb9
AB
46072020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4608
4609 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4610 (ada_language_data): Delete la_get_symbol_name_matcher
4611 initializer.
4612 (language_defn::get_symbol_name_matcher_inner): New member
4613 function.
4614 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4615 initializer.
4616 (cplus_language_data): Likewise.
4617 (cplus_language::get_symbol_name_matcher_inner): New member
4618 function.
4619 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4620 (minimal_language_data): Likewise.
4621 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4622 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4623 initializer.
4624 * dictionary.c (iter_match_first_hashed): Update call to
4625 get_symbol_name_matcher.
4626 (iter_match_next_hashed): Likewise.
4627 (iter_match_next_linear): Likewise.
4628 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4629 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4630 initializer.
4631 (f_language::get_symbol_name_matcher_inner): New member function.
4632 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4633 initializer.
4634 * language.c (default_symbol_name_matcher): Update header comment,
4635 make static.
4636 (language_defn::get_symbol_name_matcher): New definition.
4637 (language_defn::get_symbol_name_matcher_inner): Likewise.
4638 (get_symbol_name_matcher): Delete.
4639 (unknown_language_data): Delete la_get_symbol_name_matcher
4640 initializer.
4641 (auto_language_data): Likewise.
4642 * language.h (language_data): Delete la_get_symbol_name_matcher
4643 field.
4644 (language_defn::get_symbol_name_matcher): New member function.
4645 (language_defn::get_symbol_name_matcher_inner): Likewise.
4646 (default_symbol_name_matcher): Delete declaration.
4647 * linespec.c (find_methods): Update call to
4648 get_symbol_name_matcher.
4649 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4650 initializer.
4651 * minsyms.c (lookup_minimal_symbol): Update call to
4652 get_symbol_name_matcher.
4653 (iterate_over_minimal_symbols): Likewise.
4654 * objc-lang.c (objc_language_data): Delete
4655 la_get_symbol_name_matcher initializer.
4656 * opencl-lang.c (opencl_language_data): Likewise.
4657 * p-lang.c (pascal_language_data): Likewise.
4658 * psymtab.c (psymbol_name_matches): Update call to
4659 get_symbol_name_matcher.
4660 * rust-lang.c (rust_language_data): Delete
4661 la_get_symbol_name_matcher initializer.
4662 * symtab.c (symbol_matches_search_name): Update call to
4663 get_symbol_name_matcher.
4664 (compare_symbol_name): Likewise.
4665
9a49ad8c
AB
46662020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4667
4668 * ada-lang.c (ada_language_data): Delete la_compute_program
4669 initializer.
4670 * c-lang.c (c_language_data): Likewise.
4671 (c_language::compute_program): New member function.
4672 (cplus_language_data): Delete la_compute_program initializer.
4673 (cplus_language::compute_program): New member function.
4674 (asm_language_data): Delete la_compute_program initializer.
4675 (minimal_language_data): Likewise.
4676 * c-lang.h (c_compute_program): Update comment.
4677 (cplus_compute_program): Likewise.
4678 * compile/compile-c-support.c (c_compute_program): Likewise.
4679 (cplus_compute_program): Likewise.
4680 * compile/compile.c (compile_to_object): Update call to
4681 la_compute_program.
4682 * d-lang.c (d_language_data): Delete la_compute_program
4683 initializer.
4684 * f-lang.c (f_language_data): Likewise.
4685 * go-lang.c (go_language_data): Likewise.
4686 * language.c (unknown_language_data): Likewise.
4687 (auto_language_data): Likewise.
4688 * language.h (language_data): Delete la_compute_program field.
4689 (language_defn::compute_program): New member function.
4690 * m2-lang.c (m2_language_data): Delete la_compute_program
4691 initializer.
4692 * objc-lang.c (objc_language_data): Likewise.
4693 * opencl-lang.c (opencl_language_data): Likewise.
4694 * p-lang.c (pascal_language_data): Likewise.
4695 * rust-lang.c (rust_language_data): Likewise.
4696
eff93b4d
AB
46972020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4698
4699 * ada-lang.c (ada_language_data) Delete
4700 la_class_name_from_physname initializer.
4701 * c-lang.c (c_language_data): Likewise.
4702 (cplus_language_data): Likewise.
4703 (cplus_language::class_name_from_physname): New member function.
4704 (asm_language_data): Delete la_class_name_from_physname
4705 initializer.
4706 (minimal_language_data): Likewise.
4707 * d-lang.c (d_language_data): Likewise.
4708 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4709 method on language_defn class.
4710 (guess_full_die_structure_name): Likewise.
4711 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4712 initializer.
4713 * go-lang.c (go_language_data): Likewise.
4714 * language.c (language_class_name_from_physname): Delete.
4715 (unk_lang_class_name): Delete.
4716 (unknown_language_data): Delete la_class_name_from_physname
4717 initializer.
4718 (auto_language_data): Likewise.
4719 * language.h (language_data): Delete la_class_name_from_physname
4720 field.
4721 (language_defn::class_name_from_physname): New function.
4722 (language_class_name_from_physname): Delete declaration.
4723 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4724 initializer.
4725 * objc-lang.c (objc_language_data): Likewise.
4726 * opencl-lang.c (opencl_language_data): Likewise.
4727 * p-lang.c (pascal_language_data): Likewise.
4728 * rust-lang.c (rust_language_data): Likewise.
4729
de543742
TT
47302020-06-16 Tom Tromey <tom@tromey.com>
4731
4732 * tui/tui-data.h (STATUS_NAME): New macro.
4733 * tui/tui-layout.c (tui_remove_some_windows)
4734 (initialize_known_windows, tui_register_window)
4735 (tui_layout_split::remove_windows, initialize_layouts)
4736 (tui_new_layout_command): Don't use hard-coded window names.
4737
a350efd4
TT
47382020-06-16 Tom Tromey <tom@tromey.com>
4739
4740 PR tui/25348:
4741 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4742 tui_initialize_readline. Only run once. Call rl_initialize.
4743 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4744 tui_initialize_readline.
4745 * tui/tui-io.c (tui_setup_io): Call
4746 tui_ensure_readline_initialized.
4747 * tui/tui-interp.c (tui_interp::init): Update.
4748
39ec0490
TT
47492020-06-16 Tom Tromey <tom@tromey.com>
4750
4751 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4752 Also preserve the status window.
4753
d2d1ea20
TT
47542020-06-16 Tom Tromey <tom@tromey.com>
4755
4756 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4757 where m_window==nullptr.
4758
66920317
TT
47592020-06-15 Tom Tromey <tromey@adacore.com>
4760
4761 * windows-nat.c (windows_nat::handle_output_debug_string):
4762 Update.
4763 (windows_nat::handle_ms_vc_exception): Update.
4764 * target.h (target_read_string): Change API.
4765 * target.c (target_read_string): Change API.
4766 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4767 Update.
4768 * solib-frv.c (frv_current_sos): Update.
4769 * solib-dsbt.c (dsbt_current_sos): Update.
4770 * solib-darwin.c (darwin_current_sos): Update.
4771 * linux-thread-db.c (inferior_has_bug): Update.
4772 * expprint.c (print_subexp_standard): Update.
4773 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4774 (ada_exception_message_1): Update.
4775
a5d871dd
TT
47762020-06-15 Tom Tromey <tromey@adacore.com>
4777
4778 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4779
670e35fa
TT
47802020-06-15 Tom Tromey <tromey@adacore.com>
4781
4782 * valprint.c (read_string): Update comment.
4783 * target.c (MIN): Remove.
4784 (target_read_string): Rewrite.
4785
f5272a3b
TT
47862020-06-15 Tom Tromey <tromey@adacore.com>
4787
4788 * corefile.c (read_memory_string): Remove.
4789 * ada-valprint.c (ada_value_print_ptr): Update.
4790 * ada-lang.h (ada_tag_name): Change return type.
4791 * ada-lang.c (type_from_tag): Update.
4792 (ada_tag_name_from_tsd): Change return type. Use
4793 target_read_string.
4794 (ada_tag_name): Likewise.
4795 * gdbcore.h (read_memory_string): Don't declare.
4796
2c074f49
HD
47972020-06-14 Hannes Domani <ssbssa@yahoo.de>
4798
4799 * symtab.c (rbreak_command): Ignore Windows drive colon.
4800
6a17d503
SM
48012020-06-12 Simon Marchi <simon.marchi@efficios.com>
4802
4803 * NEWS: Mention removed GDBserver host support.
4804
453c733f
NC
48052020-06-12 Nelson Chu <nelson.chu@sifive.com>
4806
4807 * features/riscv/rebuild-csr-xml.sh: Updated.
4808
2b4e6a3f
TT
48092020-06-11 Tom Tromey <tom@tromey.com>
4810
4811 PR gdb/18318:
4812 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4813
4412332f
JG
48142020-06-09 Jonny Grant <jg@jguk.org>
48152020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4816
4817 * main.c (captured_main_1): Don't print new line after help.
4818 (print_gdb_help): add mailing list and IRC channel information
4819 to --help. Add new lines between items in the footer. Remove
4820 quotes around bug url.
4821
2f33032a
KS
48222020-06-11 Keith Seitz <keiths@redhat.com>
4823
4824 PR gdb/21356
4825 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4826 Resolve typedefs for type length calculations.
4827
7ab96794
TV
48282020-06-10 Tom de Vries <tdevries@suse.de>
4829
4830 PR ada/24713
4831 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4832 (write_psymbols): Enable .gdb_index for ada.
4833 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4834 ada.
4835
e5f3ece2
TV
48362020-06-10 Tom de Vries <tdevries@suse.de>
4837
4838 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4839 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4840 namei" instead of "const char *name" argument.
4841 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4842 dw2_symtab_iter_init.
4843
940da03e
SM
48442020-06-08 Simon Marchi <simon.marchi@efficios.com>
4845
4846 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4847 to use type::field and field::type instead.
4848
b6cdac4b
SM
48492020-06-08 Simon Marchi <simon.marchi@efficios.com>
4850
4851 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4852 to use field::type instead.
4853
5d14b6e5
SM
48542020-06-08 Simon Marchi <simon.marchi@efficios.com>
4855
4856 * gdbtypes.h (struct field) <type, set_type>: New methods.
4857 Rename `type` field to...
4858 <m_type>: ... this. Change references throughout to use type or
4859 set_type methods.
4860 (FIELD_TYPE): Use field::type. Change call sites that modify
4861 the field's type to use field::set_type instead.
4862
3d967001
SM
48632020-06-08 Simon Marchi <simon.marchi@efficios.com>
4864
4865 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4866 to use type::index_type instead.
4867
262abc0d
SM
48682020-06-08 Simon Marchi <simon.marchi@efficios.com>
4869
4870 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4871 methods.
4872 (TYPE_INDEX_TYPE): Use type::index_type.
4873 * gdbtypes.c (create_array_type_with_stride): Likewise.
4874
82836c92
TT
48752020-06-07 Tom Tromey <tom@tromey.com>
4876
4877 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4878 parameter.
4879 (generic_value_print): Update.
4880
940dace9
AB
48812020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4882
4883 Revert commit 982a38f60b0.
4884 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4885
982a38f6
AB
48862020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4887
4888 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4889 avoid use after free.
4890
82f06518
TV
48912020-06-05 Tom de Vries <tdevries@suse.de>
4892
4893 * NEWS: Fix typos.
4894
f8c41851
SM
48952020-06-04 Simon Marchi <simon.marchi@efficios.com>
4896
4897 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4898 the per_bfd object.
4899 (dwarf2_read_debug_names): Likewise.
4900 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4901 object when re-using a per_bfd object with an index.
4902
f9b5d5ea
TV
49032020-06-03 Tom de Vries <tdevries@suse.de>
4904
4905 PR symtab/26046
4906 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4907 children for C++.
4908 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4909 DW_TAG_subprogram.
4910
f6eee2d0
AB
49112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4912
4913 * ada-lang.c (ada_language_data): Delete skip_trampoline
4914 initializer.
4915 * c-lang.c (c_language_data): Likewise.
4916 (cplus_language_data): Likewise.
4917 (cplus_language::skip_trampoline): New member function.
4918 (asm_language_data): Delete skip_trampoline initializer.
4919 (minimal_language_data): Likewise.
4920 * d-lang.c (d_language_data): Likewise.
4921 * f-lang.c (f_language_data): Likewise.
4922 * go-lang.c (go_language_data): Likewise.
4923 * language.c (unk_lang_trampoline): Delete function.
4924 (skip_language_trampoline): Update.
4925 (unknown_language_data): Delete skip_trampoline initializer.
4926 (auto_language_data): Likewise.
4927 * language.h (language_data): Delete skip_trampoline field.
4928 (language_defn::skip_trampoline): New function.
4929 * m2-lang.c (m2_language_data): Delete skip_trampoline
4930 initializer.
4931 * objc-lang.c (objc_skip_trampoline): Delete function, move
4932 implementation to objc_language::skip_trampoline.
4933 (objc_language_data): Delete skip_trampoline initializer.
4934 (objc_language::skip_trampoline): New member function with
4935 implementation from objc_skip_trampoline.
4936 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4937 initializer.
4938 * p-lang.c (pascal_language_data): Likewise.
4939 * rust-lang.c (rust_language_data): Likewise.
4940
0a50df5d
AB
49412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4942
4943 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4944 (ada_language::demangle): New member function.
4945 * c-lang.c (c_language_data): Delete la_demangle initializer.
4946 (cplus_language_data): Delete la_demangle initializer.
4947 (cplus_language::demangle): New member function.
4948 (asm_language_data): Delete la_demangle initializer.
4949 (minimal_language_data): Delete la_demangle initializer.
4950 * d-lang.c (d_language_data): Delete la_demangle initializer.
4951 (d_language::demangle): New member function.
4952 * f-lang.c (f_language_data): Delete la_demangle initializer.
4953 (f_language::demangle): New member function.
4954 * go-lang.c (go_language_data): Delete la_demangle initializer.
4955 (go_language::demangle): New member function.
4956 * language.c (language_demangle): Update.
4957 (unk_lang_demangle): Delete.
4958 (unknown_language_data): Delete la_demangle initializer.
4959 (unknown_language::demangle): New member function.
4960 (auto_language_data): Delete la_demangle initializer.
4961 (auto_language::demangle): New member function.
4962 * language.h (language_data): Delete la_demangle field.
4963 (language_defn::demangle): New function.
4964 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4965 * objc-lang.c (objc_language_data): Delete la_demangle
4966 initializer.
4967 (objc_language::demangle): New member function.
4968 * opencl-lang.c (opencl_language_data): Delete la_demangle
4969 initializer.
4970 * p-lang.c (pascal_language_data): Likewise.
4971 * rust-lang.c (rust_language_data): Likewise.
4972 (rust_language::demangle): New member function.
4973
fbfb0a46
AB
49742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4975
4976 * ada-lang.c (ada_language_data): Delete la_print_type
4977 initializer.
4978 (ada_language::print_type): New member function.
4979 * c-lang.c (c_language_data): Delete la_print_type initializer.
4980 (c_language::print_type): New member function.
4981 (cplus_language_data): Delete la_print_type initializer.
4982 (cplus_language::print_type): New member function.
4983 (asm_language_data): Delete la_print_type initializer.
4984 (asm_language::print_type): New member function.
4985 (minimal_language_data): Delete la_print_type initializer.
4986 (minimal_language::print_type): New member function.
4987 * d-lang.c (d_language_data): Delete la_print_type initializer.
4988 (d_language::print_type): New member function.
4989 * f-lang.c (f_language_data): Delete la_print_type initializer.
4990 (f_language::print_type): New member function.
4991 * go-lang.c (go_language_data): Delete la_print_type initializer.
4992 (go_language::print_type): New member function.
4993 * language.c (unk_lang_print_type): Delete.
4994 (unknown_language_data): Delete la_print_type initializer.
4995 (unknown_language::print_type): New member function.
4996 (auto_language_data): Delete la_print_type initializer.
4997 (auto_language::print_type): New member function.
4998 * language.h (language_data): Delete la_print_type field.
4999 (language_defn::print_type): New function.
5000 (LA_PRINT_TYPE): Update.
5001 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5002 (m2_language::print_type): New member function.
5003 * objc-lang.c (objc_language_data): Delete la_print_type
5004 initializer.
5005 (objc_language::print_type): New member function.
5006 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5007 to opencl_language::print_type.
5008 (opencl_language_data): Delete la_print_type initializer.
5009 (opencl_language::print_type): New member function, implementation
5010 from opencl_print_type.
5011 * p-lang.c (pascal_language_data): Delete la_print_type
5012 initializer.
5013 (pascal_language::print_type): New member function.
5014 * rust-lang.c (rust_print_type): Delete, implementation moved to
5015 rust_language::print_type.
5016 (rust_language_data): Delete la_print_type initializer.
5017 (rust_language::print_type): New member function, implementation
5018 from rust_print_type.
5019
6f827019
AB
50202020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5021
5022 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5023 implementation moves to...
5024 (ada_language::sniff_from_mangled_name): ...here. Update return
5025 type.
5026 (ada_language_data): Delete la_sniff_from_mangled_name
5027 initializer.
5028 * c-lang.c (c_language_data): Likewise.
5029 (cplus_language_data): Likewise.
5030 (cplus_language::sniff_from_mangled_name): New member function,
5031 implementation taken from gdb_sniff_from_mangled_name.
5032 (asm_language_data): Delete la_sniff_from_mangled_name
5033 initializer.
5034 (minimal_language_data): Likewise.
5035 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5036 implementation moves to cplus_language::sniff_from_mangled_name.
5037 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5038 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5039 moves to...
5040 (d_language::sniff_from_mangled_name): ...here.
5041 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5042 * f-lang.c (f_language_data): Likewise.
5043 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5044 moves to...
5045 (go_language::sniff_from_mangled_name): ...here.
5046 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5047 * language.c (language_sniff_from_mangled_name): Delete.
5048 (unknown_language_data): Delete la_sniff_from_mangled_name
5049 initializer.
5050 (auto_language_data): Likewise.
5051 * language.h (language_data): Delete la_sniff_from_mangled_name
5052 field.
5053 (language_defn::sniff_from_mangled_name): New function.
5054 (language_sniff_from_mangled_name): Delete declaration.
5055 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5056 field.
5057 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5058 implementation moves to...
5059 (objc_language::sniff_from_mangled_name): ...here.
5060 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5061 * opencl-lang.c (opencl_language_data): Likewise.
5062 * p-lang.c (pascal_language_data): Likewise.
5063 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5064 implementation moves to...
5065 (rust_language::sniff_from_mangled_name): ...here.
5066 (rust_language_data): Delete la_sniff_from_mangled_name
5067 initializer.
5068 * symtab.c (symbol_find_demangled_name): Call
5069 sniff_from_mangled_name member function.
5070
fb8006fd
AB
50712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5072
5073 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5074 initializer.
5075 * c-lang.c (c_language_data): Likewise.
5076 (cplus_language_data): Likewise.
5077 (cplus_language::search_name_hash): New member function.
5078 (asm_language_data): Delete la_search_name_hash initializer.
5079 (minimal_language_data): Likewise.
5080 * d-lang.c (d_language_data): Likewise.
5081 * dictionary.c (default_search_name_hash): Rename to...
5082 (language_defn::search_name_hash): ...this.
5083 * f-lang.c (f_language_data): Likewise.
5084 (f_language::search_name_hash): New member function.
5085 * go-lang.c (go_language_data): Delete la_search_name_hash
5086 initializer.
5087 * language.c (unknown_language_data): Likewise.
5088 (auto_language_data): Likewise.
5089 * language.h (struct language_data): Delete la_search_name_hash
5090 field.
5091 (language_defn::search_name_hash): Declare new member function.
5092 (default_search_name_hash): Delete declaration.
5093 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5094 initializer.
5095 * objc-lang.c (objc_language_data): Likewise.
5096 * opencl-lang.c (opencl_language_data): Likewise.
5097 * p-lang.c (pascal_language_data): Likewise.
5098 * rust-lang.c (rust_language_data): Likewise.
5099 * symtab.c (search_name_hash): Update call.
5100
8e25bafe
AB
51012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5102
5103 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5104 initializer.
5105 * c-lang.c (class compile_instance): Declare.
5106 (c_language_data): Delete la_get_compile_instance initializer.
5107 (c_language::get_compile_instance): New member function.
5108 (cplus_language_data): Delete la_get_compile_instance initializer.
5109 (cplus_language::get_compile_instance): New member function.
5110 (asm_language_data): Delete la_get_compile_instance initializer.
5111 (minimal_language_data): Likewise.
5112 * c-lang.h (c_get_compile_context): Update comment.
5113 (cplus_get_compile_context): Update comment.
5114 * compile/compile.c (compile_to_object): Update calls, don't rely
5115 on function pointer being NULL.
5116 * d-lang.c (d_language_data): Delete la_get_compile_instance
5117 initializer.
5118 * f-lang.c (f_language_data): Likewise.
5119 * go-lang.c (go_language_data): Likewise.
5120 * language.c (unknown_language_data): Likewise.
5121 (auto_language_data): Likewise.
5122 * language.h (language_data): Delete la_get_compile_instance field.
5123 (language_defn::get_compile_instance): New member function.
5124 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5125 initializer.
5126 * objc-lang.c (objc_language_data): Likewise.
5127 * opencl-lang.c (opencl_language_data): Likewise.
5128 * p-lang.c (pascal_language_data): Likewise.
5129 * rust-lang.c (rust_language_data): Likewise.
5130
4009ee92
AB
51312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5132
5133 * ada-lang.c (ada_add_all_symbols): Update comment.
5134 (ada_iterate_over_symbols): Delete, move implementation to...
5135 (ada_language::iterate_over_symbols): ...here, a new member
5136 function, rewrite to use range based for loop.
5137 (ada_language_data): Delete la_iterate_over_symbols initializer.
5138 * c-lang.c (c_language_data): Likewise.
5139 (cplus_language_data): Likewise.
5140 (asm_language_data): Likewise.
5141 (minimal_language_data): Likewise.
5142 * d-lang.c (d_language_data): Likewise.
5143 * f-lang.c (f_language_data): Likewise.
5144 * go-lang.c (go_language_data): Likewise.
5145 * language.c (unknown_language_data): Likewise.
5146 (auto_language_data): Likewise.
5147 * language.h (language_data): Delete la_iterate_over_symbols field.
5148 (language_defn::iterate_over_symbols): New member function.
5149 (LA_ITERATE_OVER_SYMBOLS): Update.
5150 * linespec.c (iterate_over_all_matching_symtabs): Update.
5151 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5152 initializer.
5153 * objc-lang.c (objc_language_data): Likewise.
5154 * opencl-lang.c (opencl_language_data): Likewise.
5155 * p-lang.c (pascal_language_data): Likewise.
5156 * rust-lang.c (rust_language_data): Likewise.
5157
54f4ca46
AB
51582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5159
5160 * ada-lang.c (ada_language_data): Delete
5161 la_lookup_transparent_type initializer.
5162 * c-lang.c (c_language_data): Likewise.
5163 (cplus_language_data): Likewise.
5164 (cplus_language::lookup_transparent_type): New member function.
5165 (asm_language_data): Delete la_lookup_transparent_type
5166 initializer.
5167 (minimal_language_data): Likewise.
5168 * d-lang.c (d_language_data): Likewise.
5169 * f-lang.c (f_language_data): Likewise.
5170 * go-lang.c (go_language_data): Likewise.
5171 * language.c (unknown_language_data): Likewise.
5172 (auto_language_data): Likewise.
5173 * language.h (struct language_data): Delete
5174 la_lookup_transparent_type field.
5175 (language_defn::lookup_transparent_type): New member function.
5176 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5177 initializer.
5178 * objc-lang.c (objc_language_data): Likewise.
5179 * opencl-lang.c (opencl_language_data): Likewise.
5180 * p-lang.c (pascal_language_data): Likewise.
5181 * rust-lang.c (rust_language_data): Likewise.
5182 * symtab.c (symbol_matches_domain): Update call.
5183
1fb314aa
AB
51842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5185
5186 * ada-lang.c (ada_language_arch_info): Delete function, move
5187 implementation to...
5188 (ada_language::language_arch_info): ...here, a new member
5189 function.
5190 (ada_language_data): Delete la_language_arch_info.
5191 * c-lang.c (c_language_data): Likewise.
5192 (c_language::language_arch_info): New member function.
5193 (cplus_language_arch_info): Delete function, move
5194 implementation to...
5195 (cplus_language::language_arch_info): ...here, a new member
5196 function.
5197 (cplus_language_data): Delete la_language_arch_info.
5198 (asm_language_data): Likewise.
5199 (asm_language::language_arch_info): New member function.
5200 (minimal_language_data): Delete la_language_arch_info.
5201 (minimal_language::language_arch_info): New member function.
5202 * d-lang.c (d_language_arch_info): Delete function, move
5203 implementation to...
5204 (d_language::language_arch_info): ...here, a new member
5205 function.
5206 (d_language_data): Delete la_language_arch_info.
5207 * f-lang.c (f_language_arch_info): Delete function, move
5208 implementation to...
5209 (f_language::language_arch_info): ...here, a new member
5210 function.
5211 (f_language_data): Delete la_language_arch_info.
5212 * go-lang.c (go_language_arch_info): Delete function, move
5213 implementation to...
5214 (go_language::language_arch_info): ...here, a new member
5215 function.
5216 (go_language_data): Delete la_language_arch_info.
5217 * language.c (unknown_language_data): Likewise.
5218 (unknown_language::language_arch_info): New member function.
5219 (auto_language_data): Delete la_language_arch_info.
5220 (auto_language::language_arch_info): New member function.
5221 (language_gdbarch_post_init): Update call to
5222 la_language_arch_info.
5223 * language.h (language_data): Delete la_language_arch_info
5224 function pointer.
5225 (language_defn::language_arch_info): New function.
5226 * m2-lang.c (m2_language_arch_info): Delete function, move
5227 implementation to...
5228 (m2_language::language_arch_info): ...here, a new member
5229 function.
5230 (m2_language_data): Delete la_language_arch_info.
5231 * objc-lang.c (objc_language_arch_info): Delete function, move
5232 implementation to...
5233 (objc_language::language_arch_info): ...here, a new member
5234 function.
5235 (objc_language_data): Delete la_language_arch_info.
5236 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5237 implementation to...
5238 (opencl_language::language_arch_info): ...here, a new member
5239 function.
5240 (opencl_language_data): Delete la_language_arch_info.
5241 * p-lang.c (pascal_language_arch_info): Delete function, move
5242 implementation to...
5243 (pascal_language::language_arch_info): ...here, a new member
5244 function.
5245 (pascal_language_data): Delete la_language_arch_info.
5246 * rust-lang.c (rust_language_arch_info): Delete function, move
5247 implementation to...
5248 (rust_language::language_arch_info): ...here, a new member
5249 function.
5250 (rust_language_data): Delete la_language_arch_info.
5251
48448202
AB
52522020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5253
5254 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5255 initializer.
5256 * c-lang.c (c_language_data): Likewise.
5257 (cplus_language_data): Likewise.
5258 (cplus_language::pass_by_reference_info): New method.
5259 (asm_language_data): Delete la_pass_by_reference initializer.
5260 (minimal_language_data): Likewise.
5261 * cp-abi.c (cp_pass_by_reference): Remove use of
5262 default_pass_by_reference.
5263 * d-lang.c (d_language_data): Likewise.
5264 * f-lang.c (f_language_data): Likewise.
5265 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5266 default_pass_by_reference.
5267 * go-lang.c (go_language_data): Likewise.
5268 * language.c (language_pass_by_reference): Update.
5269 (default_pass_by_reference): Delete.
5270 (unknown_language_data): Delete la_pass_by_reference
5271 initializer.
5272 (auto_language_data): Likewise.
5273 * language.h (struct language_data): Delete la_pass_by_reference
5274 field.
5275 (language_defn::pass_by_reference_info): New member function.
5276 (default_pass_by_reference): Delete declaration.
5277 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5278 initializer.
5279 * objc-lang.c (objc_language_data): Likewise.
5280 * opencl-lang.c (opencl_language_data): Likewise.
5281 * p-lang.c (pascal_language_data): Likewise.
5282 * rust-lang.c (rust_language_data): Likewise.
5283
15e5fd35
AB
52842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5285
5286 * ada-lang.c (ada_read_var_value): Delete function, move
5287 implementation to...
5288 (ada_language::read_var_value): ...here.
5289 (ada_language_data): Delete la_read_var_value initializer.
5290 * c-lang.c (c_language_data): Likewise.
5291 (cplus_language_data): Likewise.
5292 (minimal_language_data): Likewise.
5293 * d-lang.c (d_language_data): Likewise.
5294 * f-lang.c (f_language_data): Likewise.
5295 * findvar.c (default_read_var_value): Rename to...
5296 (language_defn::read_var_value): ...this.
5297 * findvar.c (read_var_value): Update header comment, and change to
5298 call member function instead of function pointer.
5299 * go-lang.c (go_language_data): Likewise.
5300 * language.c (unknown_language_data): Delete la_read_var_value
5301 initializer.
5302 (auto_language_data): Likewise.
5303 * language.h (struct language_data): Delete la_read_var_value
5304 field.
5305 (language_defn::read_var_value): New member function.
5306 (default_read_var_value): Delete declaration.
5307 * m2-lang.c (m2_language_data): Delete la_read_var_value
5308 initializer.
5309 * objc-lang.c (objc_language_data): Likewise.
5310 * opencl-lang.c (opencl_language_data): Likewise.
5311 * p-lang.c (pascal_language_data): Likewise.
5312 * rust-lang.c (rust_language_data): Likewise.
5313 * value.h (default_read_var_value): Delete declaration.
5314
5bd40f2a
AB
53152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5316
5317 * ada-lang.c (ada_print_array_index): Delete function, move
5318 implementation to...
5319 (ada_language::print_array_index): ...here.
5320 (ada_language_data): Delete la_print_array_index initializer.
5321 * c-lang.c (c_language_data): Likewise.
5322 (cplus_language_data): Likewise.
5323 (minimal_language_data): Likewise.
5324 * d-lang.c (d_language_data): Likewise.
5325 * f-lang.c (f_language_data): Likewise.
5326 * go-lang.c (go_language_data): Likewise.
5327 * language.c (default_print_array_index): Delete function, move
5328 implementation to...
5329 (language_defn::print_array_index): ...here.
5330 (unknown_language_data): Delete la_print_array_index initializer.
5331 (auto_language_data): Likewise.
5332 * language.h (struct language_data): Delete la_print_array_index
5333 field.
5334 (language_defn::print_array_index): New member function.
5335 (LA_PRINT_ARRAY_INDEX): Update.
5336 (default_print_array_index): Delete declaration.
5337 * m2-lang.c (m2_language_data): Delete la_print_array_index
5338 initializer.
5339 * objc-lang.c (objc_language_data): Likewise.
5340 * opencl-lang.c (opencl_language_data): Likewise.
5341 * p-lang.c (pascal_language_data): Likewise.
5342 * rust-lang.c (rust_language_data): Likewise.
5343
0874fd07
AB
53442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5345
5346 * gdb/ada-lang.c (ada_language_defn): Convert to...
5347 (ada_language_data): ...this.
5348 (class ada_language): New class.
5349 (ada_language_defn): New static global.
5350 * gdb/c-lang.c (c_language_defn): Convert to...
5351 (c_language_data): ...this.
5352 (class c_language): New class.
5353 (c_language_defn): New static global.
5354 (cplus_language_defn): Convert to...
5355 (cplus_language_data): ...this.
5356 (class cplus_language): New class.
5357 (cplus_language_defn): New static global.
5358 (asm_language_defn): Convert to...
5359 (asm_language_data): ...this.
5360 (class asm_language): New class.
5361 (asm_language_defn): New static global.
5362 (minimal_language_defn): Convert to...
5363 (minimal_language_data): ...this.
5364 (class minimal_language): New class.
5365 (minimal_language_defn): New static global.
5366 * gdb/d-lang.c (d_language_defn): Convert to...
5367 (d_language_data): ...this.
5368 (class d_language): New class.
5369 (d_language_defn): New static global.
5370 * gdb/f-lang.c (f_language_defn): Convert to...
5371 (f_language_data): ...this.
5372 (class f_language): New class.
5373 (f_language_defn): New static global.
5374 * gdb/go-lang.c (go_language_defn): Convert to...
5375 (go_language_data): ...this.
5376 (class go_language): New class.
5377 (go_language_defn): New static global.
5378 * gdb/language.c (unknown_language_defn): Remove declaration.
5379 (current_language): Initialize to nullptr, real initialization is
5380 moved to _initialize_language.
5381 (languages): Delete global.
5382 (language_defn::languages): Define.
5383 (set_language_command): Use language_defn::languages.
5384 (set_language): Likewise.
5385 (range_error): Likewise.
5386 (language_enum): Likewise.
5387 (language_def): Likewise.
5388 (add_set_language_command): Use language_def::languages for the
5389 language list, and language_def to lookup language pointers.
5390 (skip_language_trampoline): Use language_defn::languages.
5391 (unknown_language_defn): Convert to...
5392 (unknown_language_data): ...this.
5393 (class unknown_language): New class.
5394 (unknown_language_defn): New static global.
5395 (auto_language_defn): Convert to...
5396 (auto_language_data): ...this.
5397 (class auto_language): New class.
5398 (auto_language_defn): New static global.
5399 (language_gdbarch_post_init): Use language_defn::languages.
5400 (_initialize_language): Initialize current_language.
5401 * gdb/language.h (struct language_defn): Rename to...
5402 (struct language_data): ...this.
5403 (struct language_defn): New.
5404 (auto_language_defn): Delete.
5405 (unknown_language_defn): Delete.
5406 (minimal_language_defn): Delete.
5407 (ada_language_defn): Delete.
5408 (asm_language_defn): Delete.
5409 (c_language_defn): Delete.
5410 (cplus_language_defn): Delete.
5411 (d_language_defn): Delete.
5412 (f_language_defn): Delete.
5413 (go_language_defn): Delete.
5414 (m2_language_defn): Delete.
5415 (objc_language_defn): Delete.
5416 (opencl_language_defn): Delete.
5417 (pascal_language_defn): Delete.
5418 (rust_language_defn): Delete.
5419 * gdb/m2-lang.c (m2_language_defn): Convert to...
5420 (m2_language_data): ...this.
5421 (class m2_language): New class.
5422 (m2_language_defn): New static global.
5423 * gdb/objc-lang.c (objc_language_defn): Convert to...
5424 (objc_language_data): ...this.
5425 (class objc_language): New class.
5426 (objc_language_defn): New static global.
5427 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5428 (opencl_language_data): ...this.
5429 (class opencl_language): New class.
5430 (opencl_language_defn): New static global.
5431 * gdb/p-lang.c (pascal_language_defn): Convert to...
5432 (pascal_language_data): ...this.
5433 (class pascal_language): New class.
5434 (pascal_language_defn): New static global.
5435 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5436 language pointer, update comment format.
5437 * gdb/rust-lang.c (rust_language_defn): Convert to...
5438 (rust_language_data): ...this.
5439 (class rust_language): New class.
5440 (rust_language_defn): New static global.
5441
1313c56e
AB
54422020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5443
5444 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5445 member variable.
5446 <m_stmt_at_address>: New member variable.
5447 (lnp_state_machine::record_line): Don't record some lines, update
5448 tracking of is_stmt at the same address.
5449 (lnp_state_machine::lnp_state_machine): Initialise new member
5450 variables.
5451
b7ed9f3d
ST
54522020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5453
5454 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5455 "-include gnu-nat-mig.h".
5456 * gnu-nat-mig.h: New file.
5457 * gnu-nat.c: Include "gnu-nat-mig.h".
5458 (exc_server, msg_reply_server, notify_server,
5459 process_reply_server): Remove declarations.
5460
14a8ad62
ST
54612020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5462
5463 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5464 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5465 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5466 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5467 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5468 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5469 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5470 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5471 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5472 to gnu_nat_target class.
5473 * gnu-nat.c: Likewise.
5474 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5475 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5476 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5477 object.
5478 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5479 instead of `gnu_target'.
5480
0af5e106
ST
54812020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5482
5483 * i386-gnu-tdep.c: Include "gdbcore.h"
5484 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5485 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5486 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5487 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5488 i386_gnu_sigcontext_addr): New functions
5489 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5490 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5491 tdep.
5492
078f2fc9
ST
54932020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5494
5495 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5496 before fork_inferior call. Avoid calling it if target_is_pushed returns
5497 true.
5498
53dff92c
ST
54992020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5500
5501 * gnu-nat.h (gnu_target): New variable declaration.
5502 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5503 gnu_target.
5504 * gnu-nat.c (gnu_target): New variable.
5505 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5506 add_thread_silent, and add_thread calls.
5507 (gnu_nat_target::create_inferior): Pass gnu_target to
5508 add_thread_silent, thread_change_ptid call.
5509 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5510 call.
5511
5a8b8627
ST
55122020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5513
5514 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5515 (gnu_nat_target::find_memory_regions): Remove unused
5516 `old_address' variable.
5517
366f550a
ST
55182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5519
5520 * gnu-nat.c: Include "gdbarch.h".
5521
f14871bf
ST
55222020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5523
5524 * reply_mig_hack.awk (Error return): Cast function through
5525 void *, to bypass compiler function call check.
5526
c6887cfb
ST
55272020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5528
5529 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5530 $(srcdir)/reply_mig_hack.awk.
5531
6930bffe
ST
55322020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5533
5534 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5535
112c22ed
JG
55362020-05-30 Jonny Grant <jg@jguk.org>
5537
5538 * configure.ac (ACX_BUGURL): change bug URL to https.
5539
f68f85b5
PA
55402020-05-30 Pedro Alves <palves@redhat.com>
5541
5542 * cp-support.c (replace_typedefs_template): New.
5543 (replace_typedefs_qualified_name): Handle
5544 DEMANGLE_COMPONENT_TEMPLATE.
5545
976ca316
SM
55462020-05-29 Simon Marchi <simon.marchi@efficios.com>
5547
5548 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5549 dwarf2/index-cache.h, dwarf2/index-write.c,
5550 dwarf2/index-write.h, dwarf2/line-header.c,
5551 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5552 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5553 variables and fields from `dwarf2_per_objfile` to just
5554 `per_objfile` throughout.
5555
989ade05
SM
55562020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5557
5558 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5559 <push_dwarf_reg_entry_value>: Add comment.
5560
c47bae85
KB
55612020-05-28 Kevin Buettner <kevinb@redhat.com>
5562 Keith Seitz <keiths@redhat.com>
5563
5564 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5565 instead of PyEval_ReleaseLock.
5566 (class gdbpy_gil): Move to earlier in file.
5567 (finalize_python): Set gdb_python_initialized.
5568 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5569 when not initialized.
5570
44486dcf
SM
55712020-05-28 Simon Marchi <simon.marchi@efficios.com>
5572
5573 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5574 <push_dwarf_reg_entry_value>: Remove assert. Override
5575 per_objfile with caller_per_objfile.
5576
f030440d
TV
55772020-05-28 Tom de Vries <tdevries@suse.de>
5578
5579 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5580 PR gold/15646 workaround to symbol kind "type".
5581
f0fbb768
TT
55822020-05-27 Tom Tromey <tromey@adacore.com>
5583
5584 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5585
af0b2a3e
TT
55862020-05-27 Tom Tromey <tromey@adacore.com>
5587
5588 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5589 Use htab_find_with_hash.
5590 <add_abbrev>: Remove "abbrev_number" parameter.
5591 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5592 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5593 (hash_abbrev): Add comment.
5594 (abbrev_table::lookup_abbrev): Move to header file.
5595 (abbrev_table::read): Update.
5596
7d00ffec
TT
55972020-05-27 Tom Tromey <tromey@adacore.com>
5598
5599 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5600 method.
5601 <canonical_name>: New member.
5602 <raw_name>: Rename from "name".
5603 (partial_die_info): Initialize canonical_name.
5604 (scan_partial_symbols): Check raw_name.
5605 (partial_die_parent_scope, partial_die_full_name)
5606 (add_partial_symbol, add_partial_subprogram)
5607 (add_partial_enumeration, load_partial_dies): Use "name" method.
5608 (partial_die_info::name): New method.
5609 (partial_die_info::read, guess_partial_die_structure_name)
5610 (partial_die_info::fixup): Update.
5611
697bba18
TT
56122020-05-27 Tom Tromey <tromey@adacore.com>
5613
5614 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5615 <get_ref_die_offset>: Inline.
5616 <get_ref_die_offset_complaint>: New method.
5617 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5618 (attribute::get_ref_die_offset_complaint): Rename from
5619 get_ref_die_offset. Just issue complaint.
5620
c17ace43
HD
56212020-05-27 Hannes Domani <ssbssa@yahoo.de>
5622
5623 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5624
96445f0b
HD
56252020-05-27 Hannes Domani <ssbssa@yahoo.de>
5626
5627 * exec.c (exec_file_attach): Use errno value of first openp failure.
5628
ac637ec3
HD
56292020-05-27 Hannes Domani <ssbssa@yahoo.de>
5630
5631 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5632 Don't close thread handle.
5633
17ee85fc
TT
56342020-05-27 Tom Tromey <tom@tromey.com>
5635 Simon Marchi <simon.marchi@efficios.com>
5636
5637 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5638 shared_ptr.
5639 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5640 member.
5641 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5642 dwarf2_per_bfd_objfile_data_key>: New globals.
5643 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5644 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5645 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5646 shared.
5647 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5648 short-circuit when sharing.
5649 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5650 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5651
39b16f87
SM
56522020-05-27 Simon Marchi <simon.marchi@efficios.com>
5653
5654 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5655 to...
5656 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5657 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5658
fcf23d5b
SM
56592020-05-27 Simon Marchi <simon.marchi@efficios.com>
5660
5661 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5662 build_name_components, find_name_components_bounds>:
5663 Add per_objfile parameter.
5664 (struct mapped_index) <symbol_name_at>: Likewise.
5665 (struct mapped_debug_names): Remove constructor.
5666 <dwarf2_per_objfile>: Remove field.
5667 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5668 (mapped_index_base::find_name_components_bounds,
5669 mapped_index_base::build_name_components,
5670 dw2_expand_symtabs_matching_symbol): Likewise.
5671 (class mock_mapped_index) <symbol_name_at>: Likewise.
5672 (check_match): Likewise.
5673 (check_find_bounds_finds): Likewise.
5674 (test_mapped_index_find_name_component_bounds): Update.
5675 (CHECK_MATCH): Update.
5676 (dw2_expand_symtabs_matching): Update.
5677 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5678 per_objfile parameter.
5679 <find_vec_in_debug_names>: Likewise.
5680 <m_per_objfile>: New field.
5681 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5682 parameter.
5683 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5684 (dw2_debug_names_iterator::next): Update.
5685 (dw2_debug_names_lookup_symbol): Update.
5686 (dw2_debug_names_expand_symtabs_for_function): Update.
5687 (dw2_debug_names_map_matching_symbols): Update.
5688 (dw2_debug_names_expand_symtabs_matching): Update.
5689 (dwarf2_read_debug_names): Update.
5690
7188ed02
SM
56912020-05-27 Simon Marchi <simon.marchi@efficios.com>
5692
5693 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5694 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5695 move to dwarf2_per_objfile.
5696 <read_in_chain>: Remove.
5697 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5698 remove_all_cus, age_comp_units>: New methods.
5699 <m_dwarf2_cus>: New member.
5700 (struct dwarf2_per_cu_data) <cu>: Remove.
5701 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5702 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5703 moved to methods of dwarf2_per_objfile.
5704 (dwarf2_clear_marks): Remove.
5705 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5706 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5707 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5708 (dwarf2_per_objfile::remove_all_cus): New.
5709 (class free_cached_comp_units) <~free_cached_comp_units>:
5710 Update.
5711 (load_cu): Update.
5712 (dw2_do_instantiate_symtab): Adjust.
5713 (fill_in_sig_entry_from_dwo_entry): Adjust.
5714 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5715 (cutu_reader::cutu_reader): Likewise.
5716 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5717 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5718 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5719 and dwarf2_per_objfile::age_comp_units.
5720 (load_partial_comp_unit): Update.
5721 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5722 (process_queue): Likewise.
5723 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5724 backlink.
5725 (dwarf2_read_addr_index): Likewise.
5726 (follow_die_offset): Likewise.
5727 (dwarf2_fetch_die_loc_sect_off): Likewise.
5728 (dwarf2_fetch_constant_bytes): Likewise.
5729 (dwarf2_fetch_die_type_sect_off): Likewise.
5730 (follow_die_sig_1): Likewise.
5731 (load_full_type_unit): Likewise.
5732 (read_signatured_type): Likewise.
5733 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5734 (dwarf2_cu::~dwarf2_cu): Remove.
5735 (dwarf2_per_objfile::get_cu): New.
5736 (dwarf2_per_objfile::set_cu): New.
5737 (age_cached_comp_units): Rename to...
5738 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5739 to std::unordered_map.
5740 (free_one_cached_comp_unit): Rename to...
5741 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5742 to std::unordered_map.
5743 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5744 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5745 a dwarf2_per_objfile in data.
5746 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5747 (dwarf2_clear_marks): Remove.
5748
2e671100
SM
57492020-05-27 Simon Marchi <simon.marchi@efficios.com>
5750
5751 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5752 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5753 (init_tu_and_read_dwo_dies): Likewise.
5754 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5755 (cutu_reader::cutu_reader): Likewise.
5756 (load_partial_comp_unit): Likewise.
5757 (process_psymtab_comp_unit): Update.
5758 (build_type_psymtabs_1): Update.
5759 (process_skeletonless_type_unit): Update.
5760 (load_full_comp_unit): Update.
5761 (find_partial_die): Update.
5762 (dwarf2_read_addr_index): Update.
5763 (read_signatured_type): Update.
5764
2e6a9f79
SM
57652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5766
5767 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5768 m_header_read_in>: New fields.
5769 <get_header>: New method.
5770 * dwarf2/read.c (per_cu_header_read_in): Remove.
5771 (dwarf2_per_cu_data::get_header): New.
5772 (dwarf2_per_cu_data::addr_size): Update.
5773 (dwarf2_per_cu_data::offset_size): Update.
5774 (dwarf2_per_cu_data::ref_addr_size): Update.
5775
1b555f17
SM
57762020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5777
5778 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5779 (dw2_do_instantiate_symtab): Update.
5780 (queue_and_load_all_dwo_tus): Change parameter from
5781 dwarf2_per_cu_data to dwarf2_cu.
5782 (dwarf2_fetch_die_loc_sect_off): Update.
5783 (dwarf2_fetch_constant_bytes): Update.
5784 (dwarf2_fetch_die_type_sect_off): Update.
5785
8fc0b21d
SM
57862020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5787
5788 * dwarf2/read.c (process_full_comp_unit,
5789 process_full_type_unit): Remove per_cu, per_objfile paramters.
5790 Add dwarf2_cu parameter.
5791 (process_queue): Update.
5792
168c9250
SM
57932020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5794
5795 * dwarf2/read.c (create_cu_from_index_list): Replace
5796 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5797 (create_cus_from_index_list): Likewise.
5798 (create_cus_from_index): Likewise.
5799 (create_signatured_type_table_from_index): Likewise.
5800 (create_cus_from_debug_names_list): Likewise.
5801 (create_cus_from_debug_names): Likewise.
5802 (dwarf2_read_gdb_index): Update.
5803 (dwarf2_read_debug_names): Update.
5804
e286671b
TT
58052020-05-27 Tom Tromey <tom@tromey.com>
5806 Simon Marchi <simon.marchi@efficios.com>
5807
5808 * dwarf2/read.h (struct dwarf2_per_objfile)
5809 <get_type_for_signatured_type, set_type_for_signatured_type>:
5810 New methods.
5811 <m_type_map>: New member.
5812 (struct signatured_type) <type>: Remove.
5813 * dwarf2/read.c
5814 (dwarf2_per_objfile::get_type_for_signatured_type,
5815 dwarf2_per_objfile::set_type_for_signatured_type): New.
5816 (get_signatured_type): Use new methods.
5817
8adb8487
TT
58182020-05-27 Tom Tromey <tom@tromey.com>
5819 Simon Marchi <simon.marchi@efficios.com>
5820
5821 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5822 (struct dwarf2_per_objfile) <type_units>: New member.
5823 <get_type_unit_group_unshareable>: New method.
5824 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5825 num_symtabs, symtabs>: Remove; move to
5826 type_unit_group_unshareable.
5827 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5828 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5829 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5830
127bbf4b
SM
58312020-05-27 Simon Marchi <simon.marchi@efficios.com>
5832
5833 * dwarf2/read.h (struct dwarf2_per_cu_data):
5834 <dwarf2_per_objfile>: Remove.
5835 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5836 dwarf2_per_objfile.
5837 (create_signatured_type_table_from_index): Likewise.
5838 (create_signatured_type_table_from_debug_names): Likewise.
5839 (create_debug_type_hash_table): Likewise.
5840 (fill_in_sig_entry_from_dwo_entry): Likewise.
5841 (create_type_unit_group): Likewise.
5842 (read_comp_units_from_section): Likewise.
5843 (create_cus_hash_table): Likewise.
5844
f6e649dd
SM
58452020-05-27 Simon Marchi <simon.marchi@efficios.com>
5846
5847 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5848 dwarf2_per_cu_data::dwarf2_per_objfile.
5849 (compute_compunit_symtab_includes): Likewise.
5850 (dwarf2_cu::start_symtab): Likewise.
5851
aa66c379
SM
58522020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5853
5854 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5855 parameter.
5856 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5857 (read_namespace_alias): Update.
5858 (lookup_die_type): Update.
5859 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5860 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5861 Update.
5862 (disassemble_dwarf_expression): Update.
5863
120ce1b5
SM
58642020-05-27 Simon Marchi <simon.marchi@efficios.com>
5865
5866 * dwarf2/read.h (struct dwarf2_queue_item): Add
5867 dwarf2_per_objfile parameter, assign new parameter.
5868 <per_objfile>: New field.
5869 * dwarf2/read.c (free_one_cached_comp_unit): Add
5870 dwarf2_per_objfile parameter.
5871 (queue_comp_unit): Likewise.
5872 (dw2_do_instantiate_symtab): Update.
5873 (process_psymtab_comp_unit): Update.
5874 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5875 (process_imported_unit_die): Update.
5876 (queue_and_load_dwo_tu): Update.
5877 (follow_die_offset): Update.
5878 (follow_die_sig_1): Update.
5879
9f47c707
SM
58802020-05-27 Simon Marchi <simon.marchi@efficios.com>
5881
5882 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5883 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5884 (read_call_site_scope): Assign per_objfile.
5885 (dwarf2_per_cu_data::objfile): Remove.
5886 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5887 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5888 dwarf2_per_objfile parameter.
5889 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5890 dwarf2_per_objfile parameter.
5891 (dwarf_expr_reg_to_entry_parameter): Add output
5892 dwarf2_per_objfile parameter.
5893 (locexpr_get_frame_base): Update.
5894 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5895 <push_dwarf_reg_entry_value>: Update.
5896 <call_site_to_target_addr>: Update.
5897 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5898 parameter.
5899 (value_of_dwarf_reg_entry): Update.
5900 (rw_pieced_value): Update.
5901 (indirect_synthetic_pointer): Update.
5902 (dwarf2_evaluate_property): Update.
5903 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5904 parameter.
5905 (locexpr_read_variable): Update.
5906 (locexpr_get_symbol_read_needs): Update.
5907 (loclist_read_variable): Update.
5908
14095eb3
SM
59092020-05-27 Simon Marchi <simon.marchi@efficios.com>
5910
5911 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5912 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5913 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5914 parameter.
5915 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5916 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5917 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5918 parameter.
5919 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5920 sect_variable_value): Add dwarf2_per_objfile parameter.
5921 (class dwarf_evaluate_loc_desc) <dwarf_call,
5922 dwarf_variable_value>: Update.
5923 (fetch_const_value_from_synthetic_pointer): Add
5924 dwarf2_per_objfile parameter.
5925 (fetch_const_value_from_synthetic_pointer): Update.
5926 (coerced_pieced_ref): Update.
5927 (class symbol_needs_eval_context) <dwarf_call,
5928 dwarf_variable_value>: Update.
5929 (dwarf2_compile_expr_to_ax): Update.
5930
3c3cd3d4
SM
59312020-05-27 Simon Marchi <simon.marchi@efficios.com>
5932
5933 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5934 parameter.
5935 (dwarf2_evaluate_loc_desc_full): Update.
5936
82ca3f51
SM
59372020-05-27 Simon Marchi <simon.marchi@efficios.com>
5938
5939 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5940 parameter.
5941 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5942 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5943 dwarf2_per_objfile parameter.
5944 (decode_debug_loc_dwo_addresses): Likewise.
5945 (dwarf2_find_location_expression): Update.
5946 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5947 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5948 parameter.
5949 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5950 parameter.
5951 (locexpr_describe_location_1): Likewise.
5952 (locexpr_describe_location): Update.
5953
4b167ea1
SM
59542020-05-27 Simon Marchi <simon.marchi@efficios.com>
5955
5956 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5957 Remove.
5958 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5959 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5960 (dwarf2_compile_property_to_c): Update.
5961 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5962 use text offset from objfile.
5963 (locexpr_tracepoint_var_ref): Update.
5964 (locexpr_generate_c_location): Update.
5965 (loclist_describe_location): Update.
5966 (loclist_tracepoint_var_ref): Update.
5967 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5968 dwarf2_per_objfile parameter.
5969 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5970 use text offset from objfile.
5971 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5972
89b07335
SM
59732020-05-27 Simon Marchi <simon.marchi@efficios.com>
5974
5975 * dwarf2/expr.h (struct dwarf_expr_context)
5976 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5977 <offset>: Remove.
5978 <per_objfile>: New member.
5979 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5980 dwarf2_per_objfile parameter. Don't set offset, set
5981 per_objfile.
5982 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5983 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5984 a dwarf2_per_objfile object instead of an offset.
5985 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5986 constructor.
5987 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5988 to dwarf2_expr_executor constructor. Don't set offset.
5989 (dwarf2_fetch_cfa_info): Update.
5990 (struct dwarf2_frame_cache) <text_offset>: Remove.
5991 <per_objfile>: New field.
5992 (dwarf2_frame_cache): Update.
5993 (dwarf2_frame_prev_register): Update.
5994 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5995 <dwarf_evaluate_loc_desc>: Add constructor.
5996 (dwarf2_evaluate_loc_desc_full): Update.
5997 (dwarf2_locexpr_baton_eval): Update.
5998 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5999 Add constructor.
6000 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6001
293e7e51
SM
60022020-05-27 Simon Marchi <simon.marchi@efficios.com>
6003
6004 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6005 addr_sized_int_type>: Move to dwarf2_cu.
6006 <int_type>: Move to dwarf2_per_objfile.
6007 (struct dwarf2_per_objfile) <int_type>: Move here.
6008 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6009 addr_sized_int_type>: Move here.
6010 (read_func_scope): Update.
6011 (read_array_type): Update.
6012 (read_tag_string_type): Update.
6013 (attr_to_dynamic_prop): Update.
6014 (dwarf2_per_cu_data::int_type): Rename to...
6015 (dwarf2_per_objfile::int_type): ... this.
6016 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6017 (dwarf2_cu::addr_sized_int_type): ... this.
6018 (read_subrange_type): Update.
6019 (dwarf2_per_cu_data::addr_type): Rename to...
6020 (dwarf2_cu::addr_type): ... this.
6021 (set_die_type): Update.
6022
64874a40
SM
60232020-05-27 Simon Marchi <simon.marchi@efficios.com>
6024
6025 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6026 data through per_cu->cu.
6027
4ab09049
SM
60282020-05-27 Simon Marchi <simon.marchi@efficios.com>
6029
6030 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6031 dwarf2_per_cu_data parameter fo dwarf2_cu.
6032 (lookup_dwo_type_unit): Likewise.
6033 (read_cutu_die_from_dwo): Likewise.
6034 (lookup_dwo_unit): Likewise.
6035 (open_and_init_dwo_file): Likewise.
6036 (lookup_dwo_cutu): Likewise.
6037 (lookup_dwo_comp_unit): Likewise.
6038 (lookup_dwo_type_unit): Likewise.
6039 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6040 (cutu_reader::cutu_reader): Update.
6041
47b14e86
SM
60422020-05-27 Simon Marchi <simon.marchi@efficios.com>
6043
6044 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6045 parameter.
6046 (process_full_type_unit): Likewise.
6047 (process_queue): Update.
6048
43182c09
SM
60492020-05-27 Simon Marchi <simon.marchi@efficios.com>
6050
6051 * dwarf2/read.c (recursively_compute_inclusions): Add
6052 dwarf2_per_objfile parameter.
6053 (compute_compunit_symtab_includes): Likewise.
6054 (process_cu_includes): Update.
6055
7aa104c4
SM
60562020-05-27 Simon Marchi <simon.marchi@efficios.com>
6057
6058 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6059 parameter.
6060 (create_type_unit_group): Update.
6061 (process_psymtab_comp_unit_reader): Update.
6062 (build_type_psymtabs_reader): Update.
6063
e3beb21d
SM
60642020-05-27 Simon Marchi <simon.marchi@efficios.com>
6065
6066 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6067 object through m_this_cu->cu.
6068
d460f660
SM
60692020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6070
6071 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6072 the info parameter.
6073 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6074
ab432490
SM
60752020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6076
6077 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6078 per_objfile parameter.
6079 (load_full_type_unit): Add per_objfile parameter.
6080 (read_signatured_type): Likewise.
6081 (load_full_comp_unit): Likewise.
6082 (load_cu): Likewise.
6083 (dw2_do_instantiate_symtab): Likewise.
6084 (dw2_get_file_names): Likewise.
6085 (dw2_map_symtabs_matching_filename): Update.
6086 (dw_expand_symtabs_matching_file_matcher): Update.
6087 (dw2_map_symbol_filenames): Update.
6088 (process_psymtab_comp_unit): Add per_objfile parameter.
6089 (build_type_psymtabs_1): Update.
6090 (process_skeletonless_type_unit): Update.
6091 (dwarf2_build_psymtabs_hard): Update.
6092 (load_partial_comp_unit): Add per_objfile parameter.
6093 (scan_partial_symbols): Update.
6094 (load_full_comp_unit): Add per_objfile parameter.
6095 (process_imported_unit_die): Update.
6096 (create_cus_hash_table): Update.
6097 (find_partial_die): Update.
6098 (dwarf2_read_addr_index): Update.
6099 (follow_die_offset): Update.
6100 (dwarf2_fetch_die_loc_sect_off): Update.
6101 (dwarf2_fetch_constant_bytes): Update.
6102 (dwarf2_fetch_die_type_sect_off): Update.
6103 (follow_die_sig_1): Update.
6104 (load_full_type_unit): Add per_objfile parameter.
6105 (read_signatured_type): Likewise.
6106
313bad1b
SM
61072020-05-27 Simon Marchi <simon.marchi@efficios.com>
6108
6109 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6110 of objfile_name.
6111
c3699833
SM
61122020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6113
6114 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6115 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6116 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6117 field.
6118 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6119 (create_cus_from_index): Update.
6120 (dwarf2_read_gdb_index): Update.
6121 (create_cus_from_debug_names): Update.
6122 (dwarf2_read_debug_names): Update.
6123 (get_abbrev_section_for_cu): Update.
6124 (create_all_comp_units): Update.
6125 (read_attribute_value): Update.
6126 (get_debug_line_section): Update.
6127 * dwarf2/index-cache.c (index_cache::store): Update.
6128 * dwarf2/index-write.c (save_gdb_index_command): Update.
6129 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6130
1859c670
SM
61312020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6132
6133 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6134 member.
6135 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6136 dwarf2_per_cu_data::per_bfd.
6137 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6138 (create_type_unit_group): Likewise.
6139 (queue_comp_unit): Remove reference to
6140 per_cu->dwarf2_per_objfile.
6141 (maybe_queue_comp_unit): Likewise.
6142 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6143 (create_cus_hash_table): Assign new field.
6144
5e22e966
SM
61452020-05-27 Simon Marchi <simon.marchi@efficios.com>
6146
6147 * dwarf2/read.c: Replace
6148 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6149 dwarf2_cu->per_objfile throughout.
6150
97a1449a
SM
61512020-05-27 Simon Marchi <simon.marchi@efficios.com>
6152
6153 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6154 parameter, don't use per_cu->dwarf2_per_objfile.
6155 (dw2_instantiate_symtab): Likewise.
6156 (dw2_find_last_source_symtab): Update.
6157 (dw2_map_expand_apply): Update.
6158 (dw2_lookup_symbol): Update.
6159 (dw2_expand_symtabs_for_function): Update.
6160 (dw2_expand_all_symtabs): Update.
6161 (dw2_expand_symtabs_with_fullname): Update.
6162 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6163 don't use per_cu->dwarf2_per_objfile.
6164 (dw2_expand_marked_cus): Update.
6165 (dw2_find_pc_sect_compunit_symtab): Update.
6166 (dw2_debug_names_lookup_symbol): Update.
6167 (dw2_debug_names_expand_symtabs_for_function): Update.
6168 (dw2_debug_names_map_matching_symbols): Update.
6169 (dwarf2_psymtab::expand_psymtab): Update.
6170
9e021579
SM
61712020-05-27 Simon Marchi <simon.marchi@efficios.com>
6172
6173 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6174 <per_objfile>: New member.
6175 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6176 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6177 call to dwarf2_cu.
6178 (cutu_reader::cutu_reader): Update.
6179 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6180
ae090bdb
SM
61812020-05-27 Simon Marchi <simon.marchi@efficios.com>
6182
6183 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6184 struct dwarf2_per_objfile.
6185 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6186 dwarf2_per_bfd.
6187 * dwarf2/read.c (set_die_type): Update.
6188 (get_die_type_at_offset): Update.
6189
af758d11
SM
61902020-05-27 Tom Tromey <tom@tromey.com>
6191 Simon Marchi <simon.marchi@efficios.com>
6192
6193 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6194 method.
6195 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6196 get_symtab, set_symtab>: New methods.
6197 <m_symtabs>: New field.
6198 (struct dwarf2_psymtab): Derive from partial_symtab.
6199 <readin_p, get_compunit_symtab>: Declare methods.
6200 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6201 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6202 New methods.
6203 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6204 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6205 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6206 (dw2_symtab_iter_next, dw2_print_stats)
6207 (dw2_expand_symtabs_with_fullname)
6208 (dw2_expand_symtabs_matching_one)
6209 (dw_expand_symtabs_matching_file_matcher)
6210 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6211 (dw2_debug_names_iterator::next)
6212 (dw2_debug_names_map_matching_symbols)
6213 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6214 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6215 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6216 New methods.
6217 (get_compunit_symtab, process_full_comp_unit)
6218 (process_full_type_unit): Update.
6219 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6220
5989a64e
SM
62212020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6222
6223 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6224 then introduce a new dwarf2_per_objfile type.
6225 <read_line_string>: Move to the new dwarf2_per_objfile type.
6226 <objfile>: Likewise.
6227 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6228 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6229 dwarf2_per_objfile->per_bfd.
6230 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6231 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6232 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6233 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6234 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6235 (dwarf2_per_objfile::locate_sections): Rename to...
6236 (dwarf2_per_bfd::locate_sections): ... this.
6237 (dwarf2_per_objfile::get_cutu): Rename to...
6238 (dwarf2_per_bfd::get_cutu): ... this.
6239 (dwarf2_per_objfile::get_cu): Rename to...
6240 (dwarf2_per_bfd::get_cu): ... this.
6241 (dwarf2_per_objfile::get_tu): Rename to...
6242 (dwarf2_per_bfd::get_tu): ... this.
6243 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6244 (dwarf2_per_bfd::allocate_per_cu): ... this.
6245 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6246 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6247 (get_gdb_index_contents_ftype): Change parameter from
6248 dwarf2_per_objfile to dwarf2_per_bfd.
6249 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6250 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6251
a50264ba
TT
62522020-05-27 Tom Tromey <tom@tromey.com>
6253 Simon Marchi <simon.marchi@efficios.com>
6254
6255 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6256 (allocate_piece_closure): Set "per_objfile" member.
6257 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6258 (locexpr_describe_location, loclist_describe_location): Use new
6259 member.
6260 * dwarf2/read.c (read_call_site_scope)
6261 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6262 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6263 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6264 handle_data_member_location): Set per_objfile member.
6265 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6266 member.
6267 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6268
d3473f0c
TT
62692020-05-27 Tom Tromey <tom@tromey.com>
6270
6271 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6272 allocate_signatured_type>: Declare new methods.
6273 <m_num_psymtabs>: New member.
6274 (struct dwarf2_per_cu_data) <index>: New member.
6275 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6276 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6277 (create_cu_from_index_list): Use allocate_per_cu.
6278 (create_signatured_type_table_from_index)
6279 (create_signatured_type_table_from_debug_names)
6280 (create_debug_type_hash_table, add_type_unit)
6281 (read_comp_units_from_section): Use allocate_signatured_type.
6282
5717c425
TT
62832020-05-27 Tom Tromey <tom@tromey.com>
6284
6285 * psymtab.c (partial_map_expand_apply)
6286 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6287 (psym_lookup_global_symbol_language)
6288 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6289 (psym_print_stats, psym_expand_symtabs_for_function)
6290 (psym_map_symbol_filenames, psym_map_matching_symbols)
6291 (psym_expand_symtabs_matching)
6292 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6293 (maintenance_check_psymtabs): Update.
6294 * psympriv.h (struct partial_symtab) <readin_p,
6295 get_compunit_symtab>: Add objfile parameter.
6296 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6297 Likewise.
6298 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6299 get_compunit_symtab>: Likewise.
6300 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6301
45940949
TT
63022020-05-27 Tom Tromey <tom@tromey.com>
6303
6304 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6305 member.
6306 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6307 (create_cu_from_index_list)
6308 (create_signatured_type_table_from_index)
6309 (create_signatured_type_table_from_debug_names)
6310 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6311 (dwarf2_create_include_psymtab)
6312 (create_debug_type_hash_table, add_type_unit)
6313 (create_type_unit_group, read_comp_units_from_section)
6314 (dwarf2_compute_name, create_cus_hash_table)
6315 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6316 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6317 obstack.
6318 (dw2_get_real_path): Likewise. Change argument to
6319 dwarf2_per_objfile.
6320
f8c6d152
LM
63212020-05-27 Luis Machado <luis.machado@linaro.org>
6322
6323 PR tdep/26000
6324 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6325 for ldrd (immediate).
6326
e98d2e6d
PW
63272020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6328
6329 * command.h: Add comment giving the name of class_tui.
6330 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6331 create the fake command for the help for class_tui.
6332
53a47a3e
TT
63332020-05-26 Tom Tromey <tromey@adacore.com>
6334
6335 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6336 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6337 (val_atr): New function.
6338 (value_val_atr): Use it.
6339 * ada-valprint.c (print_optional_low_bound): Change low bound
6340 handling for enums.
6341 (val_print_packed_array_elements): Don't call discrete_position.
6342 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6343 discrete_position for enum types.
6344 * language.c (default_print_array_index): Change type.
6345 * language.h (struct language_defn) <la_print_array_index>: Add
6346 index_type parameter, change type of index_value.
6347 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6348 (default_print_array_index): Update.
6349 * valprint.c (maybe_print_array_index): Don't call
6350 value_from_longest. Update.
6351 (value_print_array_elements): Don't call discrete_position.
6352
0bc2354b
TT
63532020-05-26 Tom Tromey <tromey@adacore.com>
6354
6355 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6356 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6357
1218a4bf
CDA
63582020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6359
6360 PR gdb/13519
6361 * avr-tdep.c (avr_integer_to_address): Return data or code
6362 address accordingly to the second 'type' argument of the
6363 function.
6364
92651b1d
MW
63652020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6366
6367 * infcmd.c, inferior.h: (construct_inferior_arguments):
6368 Moved function from here to gdbsupport/common-inferior.{h,cc}
6369
0a4f5f8c
TT
63702020-05-23 Tom Tromey <tom@tromey.com>
6371
6372 Revert commit eca1f90c:
6373 * NEWS: Remove entry for completion styling.
6374 * completer.c (_rl_completion_prefix_display_length): Move
6375 declaration later.
6376 (gdb_fnprint): Revert.
6377 (gdb_display_match_list_1): Likewise.
6378 * cli/cli-style.c (completion_prefix_style)
6379 (completion_difference_style, completion_suffix_style): Remove.
6380 (_initialize_cli_style): Revert.
6381 * cli/cli-style.h (completion_prefix_style)
6382 (completion_difference_style, completion_suffix_style): Don't
6383 declare.
6384
e08bd6c5
PA
63852020-05-24 Pedro Alves <palves@redhat.com>
6386
6387 * symtab.c (completion_list_add_name): Return boolean indication
6388 of whether the symbol matched.
6389 (completion_list_add_symbol): Don't try to remove C++ aliases if
6390 the symbol didn't match in the first place.
6391 * symtab.h (completion_list_add_name): Return bool.
6392
ceacbf6e
SM
63932020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6394
6395 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6396 type::field.
6397
26f16254
JB
63982020-05-23 Joel Brobecker <brobecker@adacore.com>
6399
6400 GDB 9.2 released.
6401
eca1f90c
TT
64022020-05-23 Tom Tromey <tom@tromey.com>
6403
6404 * NEWS: Add entry for completion styling.
6405 * completer.c (_rl_completion_prefix_display_length): Move
6406 declaration earlier.
6407 (gdb_fnprint): Use completion_style.
6408 (gdb_display_match_list_1): Likewise.
6409 * cli/cli-style.c (completion_prefix_style)
6410 (completion_difference_style, completion_suffix_style): New
6411 globals.
6412 (_initialize_cli_style): Register new globals.
6413 * cli/cli-style.h (completion_prefix_style)
6414 (completion_difference_style, completion_suffix_style): Declare.
6415
51e2cfa2
PA
64162020-05-23 Pedro Alves <palves@redhat.com>
6417
6418 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6419 (parse_escape): Use ISDIGIT instead of isdigit.
6420 (puts_debug): Use gdb_isprint instead of isprint.
6421 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6422 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6423 ISSPACE instead of isspace.
6424 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6425 instead of isspace.
6426 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6427 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6428 instead of isxdigit and ISDIGIT instead of isdigit.
6429
80fc5e77
SM
64302020-05-22 Simon Marchi <simon.marchi@efficios.com>
6431
6432 * gdbtypes.h (struct type) <field>: New method.
6433 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6434 or type::field.
6435
3cabb6b0
SM
64362020-05-22 Simon Marchi <simon.marchi@efficios.com>
6437
6438 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6439 (TYPE_FIELDS): Use type::fields. Change all call sites that
6440 modify the propery to use type::set_fields instead.
6441
1f704f76
SM
64422020-05-22 Simon Marchi <simon.marchi@efficios.com>
6443
6444 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6445 type::num_fields instead.
6446
5e33d5f4
SM
64472020-05-22 Simon Marchi <simon.marchi@efficios.com>
6448
6449 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6450 methods.
6451 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6452 that modify the number of fields to use type::set_num_fields
6453 instead.
6454
9392ebb3
TT
64552020-05-22 Tom Tromey <tromey@adacore.com>
6456
6457 * compile/compile-object-load.h (munmap_list_free): Don't
6458 declare.
6459
7c13f4e8
AB
64602020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6461
6462 * annotate.c (annotate_source_line): Update return type, add call
6463 to update current symtab and line.
6464 * annotate.h (annotate_source_line): Update return type, and
6465 extend header comment.
6466 * source.c (info_line_command): Check annotation_level before
6467 calling annotate_source_line.
6468 * stack.c (print_frame_info): If calling annotate_source_line
6469 returns true, then don't print any other source line information.
6470
aa370940
SM
64712020-05-21 Simon Marchi <simon.marchi@efficios.com>
6472
6473 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6474
84d53fa9
SM
64752020-05-21 Simon Marchi <simon.marchi@efficios.com>
6476
6477 * coffread.c (patch_type): Remove NULL check before xfree.
6478 * corefile.c (set_gnutarget): Likewise.
6479 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6480 * exec.c (build_section_table): Likewise.
6481 * remote.c (remote_target::pass_signals): Likewise.
6482 * utils.c (n_spaces): Likewise.
6483 * cli/cli-script.c (document_command): Likewise.
6484 * i386-windows-tdep.c (core_process_module_section): Likewise.
6485 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6486
9d428aae
SM
64872020-05-20 Simon Marchi <simon.marchi@efficios.com>
6488
6489 * symfile.c (reread_symbols): Clear objfile's section_offsets
6490 vector and section indices, re-compute them by calling
6491 sym_offsets.
6492
250106a7
TT
64932020-05-20 Tom Tromey <tromey@adacore.com>
6494
6495 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6496 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6497
9a0bacfb
TV
64982020-05-20 Tom de Vries <tdevries@suse.de>
6499
6500 PR symtab/25833
6501 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6502
7b958a48
AM
65032020-05-20 Alan Modra <amodra@gmail.com>
6504
6505 PR 25993
6506 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6507 bfd_set_filename.
6508 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6509 passed to bfd_set_filename.
6510 * symfile-mem.c (add_vsyscall_page): Likewise for string
6511 passed to symbol_file_add_from_memory.
6512 (symbol_file_add_from_memory): Make name param a const char* and
6513 don't strdup.
6514
c7e97679
AM
65152020-05-20 Alan Modra <amodra@gmail.com>
6516
6517 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6518 rather than accessing bfd->filename directly.
6519 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6520 and use bfd_section_name.
6521 * dwarf2/frame.c (decode_frame_entry): Likewise.
6522 * exec.c (exec_set_section_address): Likewise.
6523 * solib-aix.c (solib_aix_bfd_open): Likewise.
6524 * stap-probe.c (get_stap_base_address): Likewise.
6525 * symfile.c (reread_symbols): Likewise.
6526
563c591b
TT
65272020-05-19 Tom Tromey <tromey@adacore.com>
6528
6529 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6530
f408d82c
SM
65312020-05-19 Simon Marchi <simon.marchi@efficios.com>
6532
6533 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6534
98c59b52
PA
65352020-05-19 Pedro Alves <palves@redhat.com>
6536
6537 * NEWS (set exec-file-mismatch): Adjust entry.
6538 * exec.c: Include "build-id.h".
6539 (validate_exec_file): Try to match build IDs instead of filenames.
6540 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6541 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6542 and pass down 'warn_if_slow'.
6543 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6544 gdb_bfd_open_closure to pass it down.
6545 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6546
4111f652
PA
65472020-05-19 Pedro Alves <palves@redhat.com>
6548
6549 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6550 * target.c (target_fileio_open_1): Rename to target_fileio_open
6551 and make extern. Use bool.
6552 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6553 (target_fileio_read_alloc_1): Adjust.
6554 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6555 (target_fileio_open_warn_if_slow): Delete declaration.
6556
ad80db5b
PA
65572020-05-19 Pedro Alves <palves@redhat.com>
6558
6559 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6560 Adjust all callers.
6561
1d6ce4d3
YS
65622020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6563
6564 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6565 whether disp is negative.
6566
9005fbbb
SM
65672020-05-19 Simon Marchi <simon.marchi@efficios.com>
6568
6569 * symfile.h (struct symfile_segment_data)
6570 <~symfile_segment_data>: Remove.
6571 <segment_info>: Change to std::vector.
6572 * symfile.c (default_symfile_segments): Update.
6573 * elfread.c (elf_symfile_segments): Update.
6574
68b888ff
SM
65752020-05-19 Simon Marchi <simon.marchi@efficios.com>
6576
6577 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6578 <segments>: New.
6579 <segment_bases, segment_sizes>: Remove.
6580 * symfile.c (default_symfile_segments): Update.
6581 * elfread.c (elf_symfile_segments): Update.
6582 * remote.c (remote_target::get_offsets): Update.
6583 * solib-target.c (solib_target_relocate_section_addresses):
6584 Update.
6585
62982abd
SM
65862020-05-19 Simon Marchi <simon.marchi@efficios.com>
6587
6588 * symfile.h (struct symfile_segment_data): Initialize fields.
6589 <~symfile_segment_data>: Add.
6590 (symfile_segment_data_up): New.
6591 (struct sym_fns) <sym_segments>: Return a
6592 symfile_segment_data_up.
6593 (default_symfile_segments): Return a symfile_segment_data_up.
6594 (free_symfile_segment_data): Remove.
6595 (get_symfile_segment_data): Return a symfile_segment_data_up.
6596 * symfile.c (default_symfile_segments): Likewise.
6597 (get_symfile_segment_data): Likewise.
6598 (free_symfile_segment_data): Remove.
6599 (symfile_find_segment_sections): Update.
6600 * elfread.c (elf_symfile_segments): Return a
6601 symfile_segment_data_up.
6602 * remote.c (remote_target::get_offsets): Update.
6603 * solib-target.c (solib_target_relocate_section_addresses):
6604 Update.
6605 * symfile-debug.c (debug_sym_segments): Return a
6606 symfile_segment_data_up.
6607
7f204339
RO
66082020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6609
e52a0f1b
RO
6610 PR build/25981
6611 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6612 Hardcode register numbers.
6613
7f204339
RO
6614 PR build/25981
6615 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6616 procfs_find_LDT_entry): Remove.
6617 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6618 procfs_find_LDT_entry): Remove.
6619 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6620 Remove.
6621
7f32a4d5
PA
66222020-05-17 Pedro Alves <palves@redhat.com>
6623 Andrew Burgess <andrew.burgess@embecosm.com>
6624 Keno Fischer <keno@juliacomputing.com>
6625
6626 PR gdb/25741
6627 * breakpoint.c (build_target_condition_list): Update comments.
6628 (build_target_command_list): Update comments and skip matching
6629 locations.
6630 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6631 a separate function. Simplify "set breakpoint auto-hw off"
6632 handling.
6633 (insert_breakpoints): Update comment.
6634 (tracepoint_locations_match): New parameter. For breakpoints,
6635 compare location types too, if the caller wants to.
6636 (handle_automatic_hardware_breakpoints): New functions.
6637 (bp_location_is_less_than): Also sort by location type and
6638 hardware breakpoint length.
6639 (update_global_location_list): Handle "set breakpoint auto-hw on"
6640 here.
6641 (update_breakpoint_locations): Ask breakpoint_locations_match to
6642 ignore location types.
6643
7d93a1e0
SM
66442020-05-16 Simon Marchi <simon.marchi@efficios.com>
6645
6646 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6647 type::name instead.
6648
d0e39ea2
SM
66492020-05-16 Simon Marchi <simon.marchi@efficios.com>
6650
6651 * gdbtypes.h (struct type) <name, set_name>: New methods.
6652 (TYPE_CODE): Use type::name. Change all call sites used to set
6653 the name to use type::set_name instead.
6654
2dab0c7b
TT
66552020-05-16 Tom Tromey <tom@tromey.com>
6656
6657 * top.c (quit_force): Update.
6658 * infrun.c (handle_no_resumed): Update.
6659 * top.h (all_uis): New function.
6660 (ALL_UIS): Remove.
6661
59f7bd8d
SM
66622020-05-16 Simon Marchi <simon.marchi@efficios.com>
6663
6664 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6665
9bf058f0
PA
66662020-05-16 Pedro Alves <palves@redhat.com>
6667
6668 * ia64-linux-nat.c
6669 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6670 Declare method.
6671 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6672
8f86ae1a
SM
66732020-05-15 Simon Marchi <simon.marchi@efficios.com>
6674
6675 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6676 (sparc64_adi_info): Likewise.
6677
d6bc0792
TT
66782020-05-15 Tom Tromey <tom@tromey.com>
6679
6680 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6681 block_objfile.
6682 (lookup_objfile_from_block): Remove.
6683 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6684 (lookup_global_symbol): Use block_objfile.
6685 * symtab.h (lookup_objfile_from_block): Don't declare.
6686 * printcmd.c (clear_dangling_display_expressions): Use
6687 block_objfile.
6688 * parse.c (operator_check_standard): Use block_objfile.
6689
8c14c3a3
TT
66902020-05-15 Tom Tromey <tom@tromey.com>
6691
6692 * language.c (language_alloc_type_symbol): Set
6693 SYMBOL_SECTION.
6694 * symtab.c (initialize_objfile_symbol): Remove.
6695 (allocate_symbol): Remove.
6696 (allocate_template_symbol): Remove.
6697 * dwarf2/read.c (fixup_go_packaging): Use "new".
6698 (new_symbol): Use "new".
6699 (read_variable): Don't call initialize_objfile_symbol. Use
6700 "new".
6701 (read_func_scope): Use "new".
6702 * xcoffread.c (process_xcoff_symbol): Don't call
6703 initialize_objfile_symbol.
6704 (SYMBOL_DUP): Remove.
6705 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6706 "new".
6707 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6708 (allocate_template_symbol): Don't declare.
6709 (struct symbol): Add copy constructor. Change defaults.
6710 * jit.c (finalize_symtab): Use "new".
6711 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6712 Use "new".
6713 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6714 (common_block_end): Use "new".
6715 * mdebugread.c (parse_symbol): Use "new".
6716 (new_symbol): Likewise.
6717
5b4a1a8d
PW
67182020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6719
6720 * NEWS: Mention changes to help and apropos.
6721
57b4f16e
PW
67222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6723
6724 * command.h (enum command_class): Improve comments, document
6725 that class_alias is for user-defined aliases, give the class
6726 name for each class, remove unused class_xdb.
6727 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6728 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6729 by a precise class.
6730 * infcmd.c (_initialize_infcmd): Likewise.
6731 * reverse.c (_initialize_reverse): Likewise.
6732 * stack.c (_initialize_stack): Likewise.
6733 * symfile.c (_initialize_symfile): Likewise.
6734 * tracepoint.c (_initialize_tracepoint): Likewise.
6735
7c05caf7
PW
67362020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6737
6738 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6739 when their aliased command is traversed.
6740 (help_cmd): Add fput_command_names_styled call to
6741 output command name and aliases when command has an alias.
6742
3b3aaacb
PW
67432020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6744
6745 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6746 * cli/cli-decode.c (help_cmd_list): Declare as static,
6747 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6748 a command together with the command.
6749 (fput_command_name_styled, fput_command_names_styled): New functions.
6750 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6751 fput_command_name_styled.
6752 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6753 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6754
7aa1b46f
PW
67552020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6756
6757 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6758 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6759 * command.h (cmd_show_list): Likewise.
6760 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6761 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6762
89bcba74
PW
67632020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6764
6765 * unittests/command-def-selftests.c (traverse_command_structure):
6766 Verify all commands of a list have the same prefix command and
6767 that only the top cmdlist commands have a null prefix.
6768
3f4d92eb
PW
67692020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6770
6771 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6772 as prefix, not one of its aliases.
6773 (set_cmd_prefix): Remove.
6774 (do_add_cmd): Centralize the setting of the prefix of a command, when
6775 command is defined after its full chain of prefix commands.
6776 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6777 (add_setshow_cmd_full): Likewise.
6778 (update_prefix_field_of_prefixed_commands): New function.
6779 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6780 update_prefix_field_of_prefixed_commands.
6781 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6782 addresses of remote_set_cmdlist and remote_show_cmdlist given
6783 as argument, not the address of an argument.
6784 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6785 * gdb/remote.c (_initialize_remote): Likewise.
6786
0605465f
PW
67872020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6788
6789 * cli/cli-cmds.c (alias_command): Check for an existing alias
6790 using lookup_cmd_composition, as valid_command_p is too strict
6791 and forbids aliases that are the prefix of an existing alias
6792 or command.
6793 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6794 command is properly recognised as a valid command.
6795
58e6ac70
PW
67962020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6797
6798 * unittests/help-doc-selftests.c: Rename to
6799 unittests/command-def-selftests.c
6800 * unittests/command-def-selftests.c (help_doc_tests): Update some
6801 comments.
6802 (command_structure_tests, traverse_command_structure): New namespace
6803 and function.
6804 (command_structure_invariants_tests): New function.
6805 (_initialize_command_def_selftests) Renamed from
6806 _initialize_help_doc_selftests, register command_structure_invariants
6807 selftest.
6808
a7b9ceb8
PW
68092020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6810
6811 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6812 an alias of 'show'.
6813
b2188a06
JB
68142020-05-15 Joel Brobecker <brobecker@adacore.com>
6815
6816 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6817 ada_is_fixed_point_type. Update all callers.
6818 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6819 all callers.
6820 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6821 Update all callers.
6822 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6823 print_fixed_point_type. Update all callers.
6824 * ada-valprint.c (ada_value_print_num): Replace call to
6825 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6826
a51951c2
KB
68272020-05-14 Kevin Buettner <kevinb@redhat.com>
6828
6829 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6830 processors.
6831 (cpu_supports_bts): Add CV_AMD case.
6832
29d6859f
LM
68332020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6834 Simon Marchi <simon.marchi@efficios.com>
6835
6836 * infrun.c (stop_all_threads): Collect multiple wait events at
6837 each pass.
6838
78134374
SM
68392020-05-14 Simon Marchi <simon.marchi@efficios.com>
6840
6841 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6842 type::code instead.
6843
67607e24
SM
68442020-05-14 Simon Marchi <simon.marchi@efficios.com>
6845
6846 * gdbtypes.h (struct type) <code, set_code>: New methods.
6847 (TYPE_CODE): Use type::code. Change all call sites used to set
6848 the code to use type::set_code instead.
6849
a05575d3
TBA
68502020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6851 Tom de Vries <tdevries@suse.de>
6852 Pedro Alves <palves@redhat.com>
6853
6854 PR threads/25478
6855 * infrun.c (stop_all_threads): Do NOT ignore
6856 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6857 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6858 received.
6859 (handle_no_resumed): Remove code handling a live inferior with no
6860 threads.
6861 * remote.c (has_single_non_exited_thread): New.
6862 (remote_target::update_thread_list): Do not delete a thread if is
6863 the last thread of the process.
6864 * thread.c (thread_select): Call delete_exited_threads instead of
6865 prune_threads.
6866
6ad82919
TBA
68672020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6868
6869 * infrun.c (stop_all_threads): Enable/disable thread events of all
6870 targets. Move a debug message denoting the end of the function
6871 into the SCOPED_EXIT block.
6872
d890404b
TBA
68732020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6874
6875 * process-stratum-target.h: Include <set>.
6876 (all_non_exited_process_targets, switch_to_target_no_thread): New
6877 function declarations.
6878 * process-stratum-target.c (all_non_exited_process_targets)
6879 (switch_to_target_no_thread): New function implementations.
6880
293b3ebc
TBA
68812020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6882
6883 * infrun.c (handle_inferior_event): Extract out a piece of code
6884 into...
6885 (mark_non_executing_threads): ...this new function.
6886
7ca9b62a
TBA
68872020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6888
6889 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6890 use.
6891
fc75c28b
TBA
68922020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6893
6894 * regcache.c (regcache_read_pc_protected): New function
6895 implementation that returns 0 if the PC cannot read via
6896 'regcache_read_pc'.
6897 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6898 instead of 'regcache_read_pc'.
6899 (keep_going_pass_signal): Ditto.
6900
a89febbd
TT
69012020-05-13 Tom Tromey <tromey@adacore.com>
6902
6903 * ada-lang.c (align_value): Remove.
6904 (ada_template_to_fixed_record_type_1): Use align_up.
6905
f7e23710
TBA
69062020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6907
6908 * async-event.c: Update the copyright year.
6909 * async-event.h: Update the copyright year.
6910
02ff80c2
SM
69112020-05-12 Simon Marchi <simon.marchi@efficios.com>
6912
6913 * objfiles.h (is_addr_in_objfile,
6914 shared_objfile_contains_address_p): Return bool.
6915 * objfile.c (is_addr_in_objfile,
6916 shared_objfile_contains_address_p): Return bool.
6917
4fd6c7e8
TT
69182020-05-11 Tom Tromey <tromey@adacore.com>
6919
6920 * cli/cli-cmds.c (info_command): Restore.
6921 (_initialize_cli_cmds): Use add_prefix_command for "info".
6922 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6923
5eb68a39
TT
69242020-05-11 Tom Tromey <tromey@adacore.com>
6925
6926 * ada-lang.c (ada_value_primitive_field): Now public.
6927 * ada-lang.h (ada_value_primitive_field): Declare.
6928 * ada-valprint.c (print_field_values): Use
6929 ada_value_primitive_field for wrapper fields.
6930
7666722f
TV
69312020-05-11 Tom de Vries <tdevries@suse.de>
6932
6933 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6934 MODULE_DOMAIN.
6935
3ee6bb11
TV
69362020-05-11 Tom de Vries <tdevries@suse.de>
6937
6938 PR symtab/25941
6939 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6940 with length 0, if not gdb-produced.
6941 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6942
43434996
TV
69432020-05-09 Tom de Vries <tdevries@suse.de>
6944
6945 PR gdb/25955
6946 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6947 calculation.
6948
2f78cffc
TT
69492020-05-09 Tom Tromey <tom@tromey.com>
6950
6951 * top.c (server_command): Now bool.
6952 * top.h (server_command): Now bool.
6953
4f7bc5ed
TT
69542020-05-08 Tom Tromey <tromey@adacore.com>
6955
6956 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6957 already being processed.
6958
8be4b118
TT
69592020-05-08 Tom Tromey <tom@tromey.com>
6960
6961 * printcmd.c (struct display) <next>: Remove.
6962 <display>: New constructor.
6963 <exp_string>: Now a std::string.
6964 <enabled_p>: Now a bool.
6965 (display_number): Move definition earlier.
6966 (displays): Rename from display_chain. Now a std::vector.
6967 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6968 (display_command): Update.
6969 (do_one_display, disable_display)
6970 (enable_disable_display_command, do_enable_disable_display):
6971 Update.
6972 (free_display): Remove.
6973 (clear_displays): Rewrite.
6974 (delete_display): Update.
6975 (map_display_numbers): Use function_view. Remove "data"
6976 parameter. Update.
6977 (do_delete_display): Remove.
6978 (undisplay_command): Update.
6979 (do_one_display, do_displays, disable_display)
6980 (info_display_command): Update.
6981 (do_enable_disable_display): Remove.
6982 (enable_disable_display_command)
6983 (clear_dangling_display_expressions): Update.
6984
94c93c35
TT
69852020-05-08 Tom Tromey <tom@tromey.com>
6986
6987 * symtab.c (set_symbol_cache_size)
6988 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6989 (maintenance_print_symbol_cache_statistics): Update.
6990 * symmisc.c (print_symbol_bcache_statistics)
6991 (print_objfile_statistics, maintenance_print_objfiles)
6992 (maintenance_info_symtabs, maintenance_check_symtabs)
6993 (maintenance_expand_symtabs, maintenance_info_line_tables):
6994 Update.
6995 * symfile-debug.c (set_debug_symfile): Update.
6996 * source.c (forget_cached_source_info): Update.
6997 * python/python.c (gdbpy_progspaces): Update.
6998 * psymtab.c (maintenance_info_psymtabs): Update.
6999 * probe.c (parse_probes): Update.
7000 * linespec.c (iterate_over_all_matching_symtabs)
7001 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7002 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7003 * exec.c (exec_target::close): Update.
7004 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7005 * breakpoint.c (print_one_breakpoint_location)
7006 (create_longjmp_master_breakpoint)
7007 (create_std_terminate_master_breakpoint): Update.
7008 * progspace.c (program_spaces): Now a std::vector.
7009 (maybe_new_address_space): Update.
7010 (add_program_space): Remove.
7011 (program_space::program_space): Update.
7012 (remove_program_space): Update.
7013 (number_of_program_spaces): Remove.
7014 (print_program_space, update_address_spaces): Update.
7015 * progspace.h (program_spaces): Change type.
7016 (ALL_PSPACES): Remove.
7017 (number_of_program_spaces): Don't declare.
7018 (struct program_space) <next>: Remove.
7019
a1fd1ac9
TT
70202020-05-08 Tom Tromey <tom@tromey.com>
7021
7022 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7023 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7024 (enable_break): Update.
7025 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7026 (frv_fdpic_find_canonical_descriptor): Update.
7027 (frv_fetch_objfile_link_map): Update.
7028 * progspace.c (program_space::free_all_objfiles): Update.
7029 (program_space::solibs): New method.
7030 * progspace.h (struct program_space) <solibs>: New method.
7031 * solist.h (master_so_list): Don't declare.
7032 (ALL_SO_LIBS): Remove.
7033 * solib.h (so_list_head): Remove.
7034 (update_solib_list): Update comment.
7035 * solib.c (master_so_list): Remove.
7036 (solib_used, update_solib_list, solib_add)
7037 (info_sharedlibrary_command, clear_solib)
7038 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7039
38eae084
TT
70402020-05-08 Tom Tromey <tom@tromey.com>
7041
7042 * extension.c (extension_languages): Now a std::array.
7043 (ALL_EXTENSION_LANGUAGES): Remove.
7044 (get_ext_lang_defn, get_ext_lang_of_file)
7045 (eval_ext_lang_from_control_command): Update.
7046 (finish_ext_lang_initialization)
7047 (auto_load_ext_lang_scripts_for_objfile)
7048 (ext_lang_type_printers::ext_lang_type_printers)
7049 (apply_ext_lang_type_printers)
7050 (ext_lang_type_printers::~ext_lang_type_printers)
7051 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7052 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7053 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7054 (get_matching_xmethod_workers, ext_lang_colorize)
7055 (ext_lang_before_prompt): Update.
7056 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7057
596dc4ad
TT
70582020-05-08 Tom Tromey <tom@tromey.com>
7059
7060 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7061 overload.
7062 <swap_string, m_string>: Remove.
7063 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7064 Update.
7065 * stabsread.c (define_symbol, read_type): Update.
7066 * linespec.c (find_linespec_symbols): Update.
7067 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7068 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7069 * dbxread.c (read_dbx_symtab): Update.
7070 * cp-support.h (cp_canonicalize_string_full)
7071 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7072 Return unique_xmalloc_ptr.
7073 * cp-support.c (inspect_type): Update.
7074 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7075 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7076 Likewise.
7077 * c-typeprint.c (print_name_maybe_canonical): Update.
7078 * break-catch-throw.c (check_status_exception_catchpoint):
7079 Update.
7080
bf4cb9be
TV
70812020-05-08 Tom de Vries <tdevries@suse.de>
7082
7083 * infrun.c (follow_fork): Copy current_line and current_symtab to
7084 child thread.
7085
a1b68f28
SM
70862020-05-07 Simon Marchi <simon.marchi@efficios.com>
7087
7088 * async-event.c (struct async_signal_handler, struct
7089 async_event_handler): Reformat, remove typedef.
7090
98d48915
SM
70912020-05-07 Simon Marchi <simon.marchi@efficios.com>
7092
7093 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7094 access thistype->main_type->dyn_prop_list directly.
7095
7aa91313
SM
70962020-05-07 Simon Marchi <simon.marchi@efficios.com>
7097
7098 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7099 (remove_dyn_prop): Remove. Update all users to use
7100 type::remove_dyn_prop.
7101 * gdbtypes.c (remove_dyn_prop): Rename to...
7102 (type::remove_dyn_prop): ... this.
7103
5c54719c
SM
71042020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7105
7106 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7107 (add_dyn_prop): Remove. Update all users to use
7108 type::add_dyn_prop.
7109 * gdbtypes.c (add_dyn_prop): Rename to...
7110 (type::add_dyn_prop): ... this.
7111
24e99c6c
SM
71122020-05-07 Simon Marchi <simon.marchi@efficios.com>
7113
7114 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7115 (get_dyn_prop): Remove. Update all users to use
7116 type::dyn_prop.
7117 * gdbtypes.c (get_dyn_prop): Rename to...
7118 (type::dyn_prop): ... this.
7119
0d4bf016
SM
71202020-05-06 Simon Marchi <simon.marchi@efficios.com>
7121
7122 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7123
ac4a4f1c
SM
71242020-05-06 Simon Marchi <simon.marchi@efficios.com>
7125
7126 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7127 instruction, skip it if it's there.
7128
a3bbacc1
SM
71292020-05-05 Simon Marchi <simon.marchi@efficios.com>
7130
7131 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7132
c3236f84
SM
71332020-05-04 Simon Marchi <simon.marchi@efficios.com>
7134
7135 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7136 * gdbtypes.c (recursive_dump_type): Remove use of
7137 TYPE_INCOMPLETE.
7138
3b6acaee
TT
71392020-05-03 Tom Tromey <tom@tromey.com>
7140
7141 * breakpoint.c (catch_command, tcatch_command): Remove.
7142 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7143 add_show_prefix_cmd.
7144 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7145 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7146 Remove.
7147 (add_internal_problem_command): Use add_basic_prefix_cmd,
7148 add_show_prefix_cmd.
7149 * mips-tdep.c (set_mipsfpu_command): Remove.
7150 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7151 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7152 (_initialize_index_cache): Use add_basic_prefix_cmd.
7153 * memattr.c (dummy_cmd): Remove.
7154 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7155 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7156 (_initialize_tui_win): Use add_basic_prefix_cmd,
7157 add_show_prefix_cmd.
7158 * cli/cli-logging.c (set_logging_command): Remove.
7159 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7160 add_show_prefix_cmd.
7161 (show_logging_command): Remove.
7162 * target.c (target_command): Remove.
7163 (add_target): Use add_basic_prefix_cmd.
7164
a51119cd
HD
71652020-05-02 Hannes Domani <ssbssa@yahoo.de>
7166
7167 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7168
652fc23a 71692020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7170
652fc23a
PW
7171 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7172 info_command.
7173
117539e6
KR
71742020-04-30 Kamil Rytarowski <n54@gmx.com>
7175
7176 * nbsd-nat.c (nbsd_enable_proc_events)
7177 (nbsd_nat_target::post_startup_inferior): Add.
7178 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7179 (nbsd_nat_target::update_thread_list): Rewrite.
7180 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7181 "PTRACE_LWP_CREATE".
7182 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7183
102e38eb 71842020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7185
102e38eb
PW
7186 * stack.c (_initialize_stack): Remove duplicated creation
7187 of "frame" command and "f" alias.
7188
ee9d1e5f
HD
71892020-04-30 Hannes Domani <ssbssa@yahoo.de>
7190
7191 PR gdb/18706
7192 * gdbtypes.c (check_typedef): Calculate size of array of
7193 stubbed type.
7194
627c7fb8
HD
71952020-04-30 Hannes Domani <ssbssa@yahoo.de>
7196
7197 PR gdb/15559
7198 * i386-tdep.c (i386_push_dummy_call): Call
7199 i386_thiscall_push_dummy_call.
7200 (i386_thiscall_push_dummy_call): New function.
7201 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7202 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7203 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7204
ffc2844e
SM
72052020-04-29 Simon Marchi <simon.marchi@efficios.com>
7206
7207 * gdbarch.sh (do_read): Add shellcheck disable directive for
7208 warning SC2162.
7209
1207375d
SM
72102020-04-29 Simon Marchi <simon.marchi@efficios.com>
7211
7212 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7213 "referenced but not assigned" warning.
7214
9fdb2916
SM
72152020-04-29 Simon Marchi <simon.marchi@efficios.com>
7216
7217 * gdbarch.sh: Remove code that sets fallbackdefault.
7218
759cea5e
SM
72192020-04-29 Simon Marchi <simon.marchi@efficios.com>
7220
7221 * gdbarch.sh: Use shell operators && and || instead of
7222 -a and -o.
7223
cb02ab24
SM
72242020-04-29 Simon Marchi <simon.marchi@efficios.com>
7225
7226 * gdbarch.sh: Use $(...) instead of `...`.
7227
a6fc5ffc
SM
72282020-04-29 Simon Marchi <simon.marchi@efficios.com>
7229
7230 * gdbarch.sh: Use double quotes around variables.
7231
8d113d13
SM
72322020-04-29 Simon Marchi <simon.marchi@efficios.com>
7233
7234 * gdbarch.sh: Use %s with printf, instead of variables in the
7235 format string.
7236
ed6acedd
TT
72372020-04-29 Tom Tromey <tromey@adacore.com>
7238
7239 PR ada/25875:
7240 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7241 type fields here.
7242 (read_enumeration_type): Call
7243 update_enumeration_type_from_children later. Update comments.
7244 (process_enumeration_scope): Don't create type fields.
7245
b68b1b58
KR
72462020-04-29 Kamil Rytarowski <n54@gmx.com>
7247
7248 * nbsd-tdep.c: Include "xml-syscall.h".
7249 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7250
f94b2e03
KR
72512020-04-29 Kamil Rytarowski <n54@gmx.com>
7252
7253 * nbsd-nat.c: Include "sys/wait.h".
7254 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7255 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7256 (nbsd_nat_target::remove_exec_catchpoint)
7257 (nbsd_nat_target::set_syscall_catchpoint): Add.
7258 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7259 (nbsd_nat_target::insert_exec_catchpoint)
7260 (nbsd_nat_target::remove_exec_catchpoint)
7261 (nbsd_nat_target::set_syscall_catchpoint): Add.
7262 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7263 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7264 `nbsd_get_syscall_number'.
7265
fc49bc72
TT
72662020-04-29 Tom Tromey <tom@tromey.com>
7267
7268 * stack.c (print_block_frame_labels): Remove.
7269
d642b692
HD
72702020-04-29 Hannes Domani <ssbssa@yahoo.de>
7271
7272 PR gdb/17320
7273 * ada-valprint.c (val_print_packed_array_elements): Move array
7274 end bracket to new line.
7275 (ada_val_print_string): Remove extra spaces before first array
7276 element.
7277 * c-valprint.c (c_value_print_array): Likewise.
7278 * m2-valprint.c (m2_print_array_contents): Likewise.
7279 (m2_value_print_inner): Likewise.
7280 * p-valprint.c (pascal_value_print_inner): Likewise.
7281 * valprint.c (generic_val_print_array): Likewise.
7282 (value_print_array_elements): Move first array element and array
7283 end bracket to new line.
7284
ea90f227
TV
72852020-04-29 Tom de Vries <tdevries@suse.de>
7286
7287 PR symtab/25889
7288 * linespec.c (find_method): Fix ix calculation.
7289
4498ef4f
KR
72902020-04-28 Kamil Rytarowski <n54@gmx.com>
7291
7292 * syscalls/update-netbsd.sh: New file.
7293 * syscalls/netbsd.xml: Regenerate.
7294 * data-directory/Makefile.in: Register `netbsd.xml' in
7295 `SYSCALLS_FILES'.
7296
a55e30b5
SM
72972020-04-28 Simon Marchi <simon.marchi@efficios.com>
7298
7299 * syscalls/update-freebsd.sh: Add double quotes.
7300
2b2fbab8
TT
73012020-04-28 Tom Tromey <tom@tromey.com>
7302
7303 * NEWS: Update.
7304 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7305 (cmdpy_init): Allow class_tui.
7306
a65189c9
TV
73072020-04-28 Mark Williams <mark@myosotissp.com>
7308
7309 PR gdb/24480
7310 * dwarf2read.c: Add missing assingments to list_in_scope when
7311 start_symtab was already called.
7312
1b95cdb7
SM
73132020-04-28 Simon Marchi <simon.marchi@efficios.com>
7314
7315 PR gdb/25881
7316 * dwarf2/read.c (offset_map_type): Use
7317 gdb:hash_enum<sect_offset> as hash function.
7318
15cd93d0
TV
73192020-04-28 Tom de Vries <tdevries@suse.de>
7320
7321 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7322 with DW_AT_signature.
7323
1eb39914
SM
73242020-04-27 Simon Marchi <simon.marchi@efficios.com>
7325
7326 * configure.ac: Remove check for fs_base/gs_base in
7327 user_regs_struct.
7328 * configure: Re-generate.
7329 * config.in: Re-generate.
7330 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7331 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7332 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7333
991a3e2e
LM
73342020-04-27 Luis Machado <luis.machado@linaro.org>
7335
7336 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7337 problematic inline frame unwinding situation.
7338 * frame.c (frame_id_computed_p): New function.
7339 * frame.h (frame_id_computed_p): New prototype.
7340
361ba0e8
TT
73412020-04-26 Tom Tromey <tom@tromey.com>
7342
7343 * command.h (enum command_class) <class_pseudo>: Remove.
7344
bc3609fd
PW
73452020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7346
7347 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7348 and whitespace.
7349
b9771db7
KR
73502020-04-25 Kamil Rytarowski <n54@gmx.com>
7351
ec16513e
SM
7352 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7353 `PT_GET_PROCESS_STATE' block.
b9771db7 7354
7151c1af
TT
73552020-04-24 Tom Tromey <tom@tromey.com>
7356
7357 * symtab.h (symbol_get_demangled_name): Don't declare.
7358 * symtab.c (symbol_get_demangled_name): Remove.
7359 (general_symbol_info::natural_name)
7360 (general_symbol_info::demangled_name): Update.
7361
906bb4c5
TT
73622020-04-24 Tom Tromey <tom@tromey.com>
7363
7364 PR rust/25025:
7365 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7366
bcfe6157
TT
73672020-04-24 Tom Tromey <tom@tromey.com>
7368
7369 PR symtab/12707:
7370 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7371 exists.
7372 (new_symbol): Likewise.
7373 * compile/compile-object-load.c (get_out_value_type): Use
7374 symbol_matches_search_name.
7375
f049a313
TT
73762020-04-24 Tom Tromey <tom@tromey.com>
7377
7378 * dwarf2/read.c (add_partial_symbol): Do not call
7379 compute_and_set_names.
7380
76e288d1
TT
73812020-04-24 Tom Tromey <tom@tromey.com>
7382
7383 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7384 overload.
7385
2467f4f6
TT
73862020-04-24 Tom Tromey <tom@tromey.com>
7387
7388 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7389 (add_psymbol_to_list): New overload. Make old overload call new
7390 one.
7391 * psympriv.h (add_psymbol_to_list): New overload.
7392
e61108c9
TT
73932020-04-24 Tom Tromey <tom@tromey.com>
7394
7395 * dwarf2/read.c (partial_die_info::read) <case
7396 DW_AT_linkage_name>: Use value_as_string.
7397 (dwarf2_string_attr): Use value_as_string.
7398 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7399 method.
7400 * dwarf2/attribute.c (attribute::value_as_string): New method.
7401
8c87a452
TT
74022020-04-24 Tom Tromey <tom@tromey.com>
7403
7404 * symtab.c (general_symbol_info::natural_name)
7405 (general_symbol_info::demangled_name): Check for language_rust.
7406
787de330
TT
74072020-04-24 Tom Tromey <tom@tromey.com>
7408
7409 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7410 (dwarf2_physname): ... from here.
7411 (partial_die_info::read): Add Rust "{" hack.
7412
ff985671
TT
74132020-04-24 Tom Tromey <tom@tromey.com>
7414
7415 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7416 method.
7417 (symbol_set_demangled_name): Don't declare.
7418 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7419 symbol_set_demangled_name.
7420 (general_symbol_info::set_language)
7421 (general_symbol_info::compute_and_set_names): Update.
7422 * minsyms.c (minimal_symbol_reader::install): Update.
7423 * dwarf2/read.c (new_symbol): Update.
7424
1acda803
TT
74252020-04-24 Tom Tromey <tromey@adacore.com>
7426
7427 PR python/23662:
7428 * python/py-type.c (convert_field): Handle
7429 FIELD_LOC_KIND_DWARF_BLOCK.
7430 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7431 (typy_get_dynamic): Nw function.
7432 (type_object_getset): Add "dynamic".
7433 * NEWS: Add entry.
7434
d656f129
TT
74352020-04-24 Tom Tromey <tromey@adacore.com>
7436
7437 * ada-typeprint.c (print_choices, print_variant_part)
7438 (print_record_field_types_dynamic): New functions.
7439 (print_record_field_types): Use print_record_field_types_dynamic.
7440
7d79de9a
TT
74412020-04-24 Tom Tromey <tromey@adacore.com>
7442
7443 * dwarf2/read.c (handle_data_member_location): New overload.
7444 (dwarf2_add_field): Use it.
7445 (decode_locdesc): Add "computed" parameter. Update comment.
7446 * gdbtypes.c (is_dynamic_type_internal): Also look for
7447 FIELD_LOC_KIND_DWARF_BLOCK.
7448 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7449 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7450 virtual base classes.
7451 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7452 FIELD_LOC_KIND_DWARF_BLOCK.
7453
f8e89861
TT
74542020-04-24 Tom Tromey <tromey@adacore.com>
7455
7456 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7457 * gdbtypes.c (is_dynamic_type_internal): Check
7458 TYPE_HAS_DYNAMIC_LENGTH.
7459 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7460 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7461 New macros.
7462 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7463 constant.
7464
9c6a1327
TT
74652020-04-24 Tom Tromey <tromey@adacore.com>
7466
7467 * dwarf2/read.c (struct variant_field): Rewrite.
7468 (struct variant_part_builder): New.
7469 (struct nextfield): Remove "variant" field. Add "offset".
7470 (struct field_info): Add "current_variant_part" and
7471 "variant_parts".
7472 (alloc_discriminant_info): Remove.
7473 (alloc_rust_variant): New function.
7474 (quirk_rust_enum): Update.
7475 (dwarf2_add_field): Set "offset" member. Don't handle
7476 DW_TAG_variant_part.
7477 (offset_map_type): New typedef.
7478 (convert_variant_range, create_one_variant)
7479 (create_one_variant_part, create_variant_parts)
7480 (add_variant_property): New functions.
7481 (dwarf2_attach_fields_to_type): Call add_variant_property.
7482 (read_structure_type): Don't handle DW_TAG_variant_part.
7483 (handle_variant_part, handle_variant): New functions.
7484 (handle_struct_member_die): Use them.
7485 (process_structure_scope): Don't handle variant parts.
7486 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7487 (struct discriminant_info): Remove.
7488 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7489 (struct main_type) <flag_discriminated_union>: Remove.
7490 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7491 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7492 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7493 Update.
7494 * valops.c (value_union_variant): Remove.
7495 * value.h (value_union_variant): Don't declare.
7496
b249d2c2
TT
74972020-04-24 Tom Tromey <tromey@adacore.com>
7498
7499 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7500 (ada_value_primitive_packed_val): Update.
7501 * ada-valprint.c (ada_value_print_1): Update.
7502 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7503 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7504 just an address. Use evaluate_for_locexpr_baton.
7505 (dwarf2_evaluate_property): Update.
7506 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7507 array_view.
7508 * findvar.c (default_read_var_value): Update.
7509 * gdbtypes.c (compute_variant_fields_inner)
7510 (resolve_dynamic_type_internal): Update.
7511 (resolve_dynamic_type): Change type of valaddr parameter.
7512 * gdbtypes.h (resolve_dynamic_type): Update.
7513 * valarith.c (value_subscripted_rvalue): Update.
7514 * value.c (value_from_contents_and_address): Update.
7515
61122aa9
TT
75162020-04-24 Tom Tromey <tromey@adacore.com>
7517
7518 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7519 "push_initial_value" parameter.
7520 (dwarf2_evaluate_property): Likewise.
7521 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7522
ef83a141
TT
75232020-04-24 Tom Tromey <tromey@adacore.com>
7524
7525 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7526 (variant::matches, compute_variant_fields_recurse)
7527 (compute_variant_fields_inner, compute_variant_fields): New
7528 functions.
7529 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7530 Use resolved_type after type is made.
7531 (operator==): Add new cases.
7532 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7533 (struct discriminant_range, struct variant, struct variant_part):
7534 New.
7535 (union dynamic_prop_data) <variant_parts, original_type>: New
7536 members.
7537 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7538 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7539 constants.
7540 * value.c (unpack_bits_as_long): Now public.
7541 * value.h (unpack_bits_as_long): Declare.
7542
675127ec
TT
75432020-04-24 Tom Tromey <tromey@adacore.com>
7544
7545 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7546 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7547
9852ceef
HD
75482020-04-24 Hannes Domani <ssbssa@yahoo.de>
7549
7550 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7551
7632c6ce
KR
75522020-04-24 Kamil Rytarowski <n54@gmx.com>
7553
7554 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7555 (remove_fork_catchpoint, post_startup_inferior)
7556 (post_attach): Move...
7557 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7558 (remove_fork_catchpoint, post_startup_inferior)
7559 (post_attach): ...here.
7560 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7561 (remove_fork_catchpoint, post_startup_inferior)
7562 (post_attach): Move...
7563 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7564 (remove_fork_catchpoint, post_startup_inferior)
7565 (post_attach): ...here.
7566
7be2bb4f
TT
75672020-04-24 Tom Tromey <tromey@adacore.com>
7568
7569 * nat/windows-nat.h (struct windows_thread_info)
7570 <pc_adjusted>: New member.
7571 * windows-nat.c (windows_fetch_one_register): Check
7572 pc_adjusted.
7573 (windows_nat_target::get_windows_debug_event)
7574 (windows_nat_target::wait): Set pc_adjusted.
7575
f80cb3b4
TV
75762020-04-24 Tom de Vries <tdevries@suse.de>
7577
7578 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7579 Run gdb-add-index inside temp dir.
7580
29514b87
TT
75812020-04-23 Tom Tromey <tromey@adacore.com>
7582
7583 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7584 in loop.
7585
5939967b
LM
75862020-04-23 Luis Machado <luis.machado@linaro.org>
7587
7588 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7589 get_frame_register instead of gdbarch_unwind_pc.
7590
70bc38f5
TV
75912020-04-23 Tom de Vries <tdevries@suse.de>
7592
7593 * symtab.c (lookup_global_symbol): Prefer def over decl.
7594
de82891c
TV
75952020-04-23 Tom de Vries <tdevries@suse.de>
7596
7597 PR symtab/25807
7598 * block.c (best_symbol, better_symbol): Promote to external.
7599 * block.h (best_symbol, better_symbol): Declare.
7600 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7601 decl.
7602
ecc6c606
TT
76032020-04-23 Tom Tromey <tromey@adacore.com>
7604
7605 PR ada/25837:
7606 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7607 "const char *", not a "const std::string &".
7608 <name_and_matcher::operator==>: Update.
7609 * unittests/lookup_name_info-selftests.c: Change type of
7610 "result".
7611
740480b8
TT
76122020-04-23 Tom Tromey <tom@tromey.com>
7613
7614 * inferior.h (iterate_over_inferiors): Don't declare.
7615 * inferior.c (iterate_over_inferiors): Remove.
7616 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7617 Remove.
7618 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7619 use iterate_over_inferiors.
7620 (darwin_resume_inferior_it)
7621 (struct resume_inferior_threads_param)
7622 (darwin_resume_inferior_threads_it): Remove.
7623 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7624
ae3ab1f0
TV
76252020-04-23 Tom de Vries <tdevries@suse.de>
7626
7627 * blockframe.c (find_pc_partial_function): Use
7628 find_pc_sect_compunit_symtab rather than
7629 objfile->sf->qf->find_pc_sect_compunit_symtab.
7630
317d2668
TV
76312020-04-22 Tom de Vries <tdevries@suse.de>
7632
7633 PR symtab/25764
7634 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7635 in psymtabs.
7636
eea9e357
TV
76372020-04-22 Tom de Vries <tdevries@suse.de>
7638
7639 PR symtab/25801
7640 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7641 symtabs.
7642
3d5afab3
TV
76432020-04-22 Tom de Vries <tdevries@suse.de>
7644
7645 PR symtab/25700
7646 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7647 CU if already created.
7648
d43b7a2d
TBA
76492020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7650
7651 * infrun.c (displaced_step_fixup): Switch to the event_thread
7652 before calling displaced_step_restore, not after.
7653
d89edf9b
MM
76542020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7655
7656 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7657 its inferior is not recorded by us.
7658 (record_btrace_target_open): Replace call to
7659 all_non_exited_threads () with call to current_inferior
7660 ()->non_exited_threads ().
7661 (record_btrace_target::stop_recording): Likewise.
7662 (record_btrace_target::close): Likewise.
7663 (record_btrace_target::wait): Likewise.
7664 (record_btrace_target::record_stop_replaying): Likewise.
7665
5897fd49
MM
76662020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7667
7668 * btrace.c (btrace_enable): Throw an error on double enables and
7669 when enabling recording fails.
7670 (btrace_disable): Throw an error if the thread is not recorded.
7671
1a476b6d
MM
76722020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7673
7674 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7675 request if we do not have a thread_info.
7676
4778a5f8
TV
76772020-04-21 Tom de Vries <tdevries@suse.de>
7678
7679 PR gdb/25471
7680 * thread.c
7681 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7682 exception in get_frame_id.
7683
0fa7617d
TT
76842020-04-20 Tom Tromey <tromey@adacore.com>
7685
7686 * python/python.c (struct gdbpy_event): Mark move constructor as
7687 noexcept.
7688 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7689 constructor as noexcept.
7690 * completer.h (struct completion_result): Mark move constructor as
7691 noexcept.
7692 * completer.c (completion_result::completion_result): Use
7693 initialization style. Don't call reset_match_list.
7694
ad23bda0
MS
76952020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7696
7697 * MAINTAINERS (Write After Approval): Add myself.
7698
45e1f031
TT
76992020-04-18 Tom Tromey <tom@tromey.com>
7700
7701 * windows-tdep.c (init_w32_command_list)
7702 (w32_prefix_command_valid): Restore.
7703 (_initialize_windows_tdep): Call init_w32_command_list.
7704
08feed99
TT
77052020-04-18 Tom Tromey <tom@tromey.com>
7706
7707 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7708 * value.c (value_fn_field): Update.
7709 * valops.c (find_function_in_inferior)
7710 (value_allocate_space_in_inferior): Update.
7711 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7712 Update.
7713 * tui/tui-source.c (tui_source_window::set_contents): Update.
7714 * symtab.c (lookup_global_or_static_symbol)
7715 (find_function_start_sal_1, skip_prologue_sal)
7716 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7717 * symmisc.c (dump_msymbols, dump_symtab_1)
7718 (maintenance_print_one_line_table): Update.
7719 * symfile.c (init_entry_point_info, section_is_mapped)
7720 (list_overlays_command, simple_read_overlay_table)
7721 (simple_overlay_update_1): Update.
7722 * stap-probe.c (handle_stap_probe): Update.
7723 * stabsread.c (dbx_init_float_type, define_symbol)
7724 (read_one_struct_field, read_enum_type, read_range_type): Update.
7725 * source.c (info_line_command): Update.
7726 * python/python.c (gdbpy_source_objfile_script)
7727 (gdbpy_execute_objfile_script): Update.
7728 * python/py-type.c (save_objfile_types): Update.
7729 * python/py-objfile.c (py_free_objfile): Update.
7730 * python/py-inferior.c (python_new_objfile): Update.
7731 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7732 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7733 (maintenance_check_psymtabs): Update.
7734 * printcmd.c (info_address_command): Update.
7735 * objfiles.h (struct objfile) <arch>: New method, from
7736 get_objfile_arch.
7737 (get_objfile_arch): Don't declare.
7738 * objfiles.c (get_objfile_arch): Remove.
7739 (filter_overlapping_sections): Update.
7740 * minsyms.c (msymbol_is_function): Update.
7741 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7742 (output_nondebug_symbol): Update.
7743 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7744 (mdebug_expand_psymtab): Update.
7745 * machoread.c (macho_add_oso_symfile): Update.
7746 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7747 Update.
7748 * linux-fork.c (checkpoint_command): Update.
7749 * linespec.c (convert_linespec_to_sals): Update.
7750 * jit.c (finalize_symtab): Update.
7751 * infrun.c (insert_exception_resume_from_probe): Update.
7752 * ia64-tdep.c (ia64_find_unwind_table): Update.
7753 * hppa-tdep.c (internalize_unwinds): Update.
7754 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7755 Update.
7756 * gcore.c (call_target_sbrk): Update.
7757 * elfread.c (record_minimal_symbol, elf_symtab_read)
7758 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7759 (elf_gnu_ifunc_resolve_by_got): Update.
7760 * dwarf2/read.c (create_addrmap_from_index)
7761 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7762 (read_debug_names_from_section)
7763 (process_psymtab_comp_unit_reader, add_partial_symbol)
7764 (add_partial_subprogram, process_full_comp_unit)
7765 (read_file_scope, read_func_scope, read_lexical_block_scope)
7766 (read_call_site_scope, dwarf2_ranges_read)
7767 (dwarf2_record_block_ranges, dwarf2_add_field)
7768 (mark_common_block_symbol_computed, read_tag_pointer_type)
7769 (read_tag_string_type, dwarf2_init_float_type)
7770 (dwarf2_init_complex_target_type, read_base_type)
7771 (partial_die_info::read, partial_die_info::read)
7772 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7773 (dwarf2_fetch_die_loc_sect_off): Update.
7774 * dwarf2/loc.c (dwarf2_find_location_expression)
7775 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7776 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7777 (dwarf2_loc_desc_get_symbol_read_needs)
7778 (locexpr_describe_location_piece, locexpr_describe_location_1)
7779 (loclist_describe_location): Update.
7780 * dwarf2/index-write.c (write_debug_names): Update.
7781 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7782 * dtrace-probe.c (dtrace_process_dof): Update.
7783 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7784 (process_one_symbol): Update.
7785 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7786 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7787 (coff_read_enum_type): Update.
7788 * cli/cli-cmds.c (edit_command, list_command): Update.
7789 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7790 * breakpoint.c (create_overlay_event_breakpoint)
7791 (create_longjmp_master_breakpoint)
7792 (create_std_terminate_master_breakpoint)
7793 (create_exception_master_breakpoint, get_sal_arch): Update.
7794 * block.c (block_gdbarch): Update.
7795 * annotate.c (annotate_source_line): Update.
7796
0743fc83
TT
77972020-04-17 Tom Tromey <tromey@adacore.com>
7798
7799 * auto-load.c (show_auto_load_cmd): Remove.
7800 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7801 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7802 (maintenance_print_arc_command): Remove.
7803 * tui/tui-win.c (tui_command): Remove.
7804 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7805 * tui/tui-layout.c (tui_layout_command): Remove.
7806 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7807 * python/python.c (user_set_python, user_show_python): Remove.
7808 (_initialize_python): Use add_basic_prefix_cmd,
7809 add_show_prefix_cmd.
7810 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7811 (install_gdb_commands): Use add_basic_prefix_cmd,
7812 add_show_prefix_cmd.
7813 (info_guile_command): Remove.
7814 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7815 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7816 add_show_prefix_cmd.
7817 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7818 Remove do_set and do_show parameters.
7819 * cli/cli-style.c (set_style, show_style): Remove.
7820 (_initialize_cli_style): Use add_basic_prefix_cmd,
7821 add_show_prefix_cmd.
7822 (cli_style_option::add_setshow_commands): Remove do_set and
7823 do_show parameters.
7824 (cli_style_option::add_setshow_commands): Use
7825 add_basic_prefix_cmd, add_show_prefix_cmd.
7826 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7827 (set_style_name): Remove.
7828 * cli/cli-dump.c (dump_command, append_command): Remove.
7829 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7830 (tekhex_dump_command, binary_dump_command)
7831 (binary_append_command): Remove.
7832 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7833 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7834 (init_w32_command_list): Remove; move into ...
7835 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7836 * valprint.c (set_print, show_print, set_print_raw)
7837 (show_print_raw): Remove.
7838 (_initialize_valprint): Use add_basic_prefix_cmd,
7839 add_show_prefix_cmd.
7840 * typeprint.c (set_print_type, show_print_type): Remove.
7841 (_initialize_typeprint): Use add_basic_prefix_cmd,
7842 add_show_prefix_cmd.
7843 * record.c (set_record_command, show_record_command): Remove.
7844 (_initialize_record): Use add_basic_prefix_cmd,
7845 add_show_prefix_cmd.
7846 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7847 add_show_prefix_cmd.
7848 (info_command, show_command, set_debug, show_debug): Remove.
7849 * top.h (set_history, show_history): Don't declare.
7850 * top.c (set_history, show_history): Remove.
7851 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7852 (unset_tdesc_cmd): Remove.
7853 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7854 add_show_prefix_cmd.
7855 * symtab.c (info_module_command): Remove.
7856 (_initialize_symtab): Use add_basic_prefix_cmd.
7857 * symfile.c (overlay_command): Remove.
7858 (_initialize_symfile): Use add_basic_prefix_cmd.
7859 * sparc64-tdep.c (info_adi_command): Remove.
7860 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7861 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7862 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7863 add_show_prefix_cmd.
7864 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7865 (_initialize_serial): Use add_basic_prefix_cmd,
7866 add_show_prefix_cmd.
7867 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7868 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7869 add_show_prefix_cmd.
7870 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7871 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7872 add_show_prefix_cmd.
7873 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7874 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7875 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7876 add_show_prefix_cmd.
7877 * remote.c (remote_command, set_remote_cmd): Remove.
7878 (_initialize_remote): Use add_basic_prefix_cmd.
7879 * record-full.c (set_record_full_command)
7880 (show_record_full_command): Remove.
7881 (_initialize_record_full): Use add_basic_prefix_cmd,
7882 add_show_prefix_cmd.
7883 * record-btrace.c (cmd_set_record_btrace)
7884 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7885 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7886 (cmd_show_record_btrace_pt): Remove.
7887 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7888 add_show_prefix_cmd.
7889 * ravenscar-thread.c (set_ravenscar_command)
7890 (show_ravenscar_command): Remove.
7891 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7892 add_show_prefix_cmd.
7893 * mips-tdep.c (show_mips_command, set_mips_command)
7894 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7895 add_show_prefix_cmd.
7896 * maint.c (maintenance_command, maintenance_info_command)
7897 (maintenance_check_command, maintenance_print_command)
7898 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7899 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7900 add_show_prefix_cmd.
7901 (show_per_command_cmd): Remove.
7902 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7903 Remove.
7904 (maintenance_show_test_settings_cmd): Remove.
7905 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7906 add_show_prefix_cmd.
7907 * maint-test-options.c (maintenance_test_options_command):
7908 Remove.
7909 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7910 * macrocmd.c (macro_command): Remove
7911 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7912 * language.c (set_check, show_check): Remove.
7913 (_initialize_language): Use add_basic_prefix_cmd,
7914 add_show_prefix_cmd.
7915 * infcmd.c (unset_command): Remove.
7916 (_initialize_infcmd): Use add_basic_prefix_cmd.
7917 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7918 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7919 add_show_prefix_cmd.
7920 * go32-nat.c (go32_info_dos_command): Remove.
7921 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7922 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7923 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7924 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7925 (_initialize_frame): Use add_basic_prefix_cmd,
7926 add_show_prefix_cmd.
7927 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7928 (_initialize_dcache): Use add_basic_prefix_cmd,
7929 add_show_prefix_cmd.
7930 * cp-support.c (maint_cplus_command): Remove.
7931 (_initialize_cp_support): Use add_basic_prefix_cmd.
7932 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7933 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7934 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7935 add_basic_prefix_cmd, add_show_prefix_cmd.
7936 * breakpoint.c (save_command): Remove.
7937 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7938 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7939 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7940 add_show_prefix_cmd.
7941 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7942 (set_ada_command, show_ada_command): Remove.
7943 (_initialize_ada_language): Use add_basic_prefix_cmd,
7944 add_show_prefix_cmd.
7945 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7946
3557f442
KR
79472020-04-16 Kamil Rytarowski <n54@gmx.com>
7948
7949 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7950 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7951
16197208
SM
79522020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7953
7954 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7955 warning messages.
7956
00ac85d3
SM
79572020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7958
7959 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7960 import table is not at beginning of .idata section.
7961
381ce63f
PA
79622020-04-16 Pedro Alves <palves@redhat.com>
7963
7964 * inferior.c (delete_inferior): Use delete operator directly
7965 instead of delete_program_space.
7966 * progspace.c (add_program_space): New, factored out from
7967 program_space::program_space.
7968 (remove_program_space): New, factored out from
7969 delete_program_space.
7970 (program_space::program_space): Remove intro comment. Rewrite.
7971 (program_space::~program_space): Remove intro comment. Call
7972 remove_program_space.
7973 (delete_program_space): Delete.
7974 * progspace.h (program_space::program_space): Make explicit. Move
7975 intro comment here, adjusted.
7976 (program_space::~program_space): Move intro comment here,
7977 adjusted.
7978 (delete_program_space): Remove.
7979
a010605f
TT
79802020-04-16 Tom Tromey <tromey@adacore.com>
7981
7982 * windows-nat.c (windows_nat::handle_access_violation): New
7983 function.
7984 * nat/windows-nat.h (handle_access_violation): Declare.
7985 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7986 windows-nat.c. Call handle_access_violation.
7987
efba5c23
TV
79882020-04-16 Tom de Vries <tdevries@suse.de>
7989
7990 PR symtab/25791
7991 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7992 CUs without psymtab.
7993
97ed802d
KB
79942020-04-16 Kevin Buettner <kevinb@redhat.com>
7995
7996 * python/python.c (do_start_initialization): Don't call
7997 PyEval_InitThreads for Python 3.9 and beyond.
7998
c7d64809
KR
79992020-04-15 Kamil Rytarowski <n54@gmx.com>
8000
8001 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8002 thread functions.
8003 (obsd_nat_target::wait): Likewise.
8004
ce127a96
TT
80052020-04-15 Tom Tromey <tromey@adacore.com>
8006
8007 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8008 (DEBUG_EXCEPT): Use debug_printf.
8009
99f1bc6a
AB
80102020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8011
8012 * completer.c (class completion_tracker::completion_hash_entry)
8013 <hash_name>: New member function.
8014 (completion_tracker::discard_completions): New callback to hash a
8015 completion_hash_entry, pass this to htab_create_alloc.
8016
a0e9b532
JT
80172016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8018
8019 * windows-nat.c (windows_make_so): Warn rather than stopping with
8020 an error if realpath() fails.
8021
06ca5dd4
KR
80222020-04-14 Kamil Rytarowski <n54@gmx.com>
8023
8024 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8025 (nbsd_nat_target::info_proc): Add do_status.
8026
194d088f
TV
80272020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8028 Tom de Vries <tdevries@suse.de>
8029
8030 PR symtab/25718
8031 * psympriv.h (struct partial_symtab::read_symtab)
8032 (struct partial_symtab::expand_psymtab)
8033 (struct partial_symtab::read_dependencies): Update comments.
8034 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8035 read_symtab for includer.
8036 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8037 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8038 (struct dwarf2_include_psymtab::m_readin): Remove.
8039 (struct dwarf2_include_psymtab::includer): New member function.
8040 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8041
c1a66c06
TV
80422020-04-14 Tom de Vries <tdevries@suse.de>
8043
8044 PR symtab/25720
8045 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8046 with NULL symbol_matcher and lookup_name.
8047 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8048 and lookup_name.
8049 * dwarf2/read.c (dw2_expand_symtabs_matching)
8050 (dw2_debug_names_expand_symtabs_matching): Same.
8051 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8052 Make lookup_name a pointer. Update comment.
8053 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8054 lookup_name being a pointer.
8055 * symfile.c (expand_symtabs_matching): Same.
8056 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8057 * linespec.c (iterate_over_all_matching_symtabs): Same.
8058
400b5eca
TT
80592020-04-13 Tom Tromey <tom@tromey.com>
8060
8061 * run-on-main-thread.c: Update include.
8062 * unittests/main-thread-selftests.c: Update include.
8063 * tui/tui-win.c: Update include.
8064 * tui/tui-io.c: Update include.
8065 * tui/tui-interp.c: Update include.
8066 * tui/tui-hooks.c: Update include.
8067 * top.h: Update include.
8068 * top.c: Update include.
8069 * ser-base.c: Update include.
8070 * remote.c: Update include.
8071 * remote-notif.c: Update include.
8072 * remote-fileio.c: Update include.
8073 * record-full.c: Update include.
8074 * record-btrace.c: Update include.
8075 * python/python.c: Update include.
8076 * posix-hdep.c: Update include.
8077 * mingw-hdep.c: Update include.
8078 * mi/mi-main.c: Update include.
8079 * mi/mi-interp.c: Update include.
8080 * main.c: Update include.
8081 * linux-nat.c: Update include.
8082 * interps.c: Update include.
8083 * infrun.c: Update include.
8084 * inf-loop.c: Update include.
8085 * event-top.c: Update include.
8086 * event-loop.c: Move to ../gdbsupport/.
8087 * event-loop.h: Move to ../gdbsupport/.
8088 * async-event.h: Update include.
8089 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8090
93b54c8e
TT
80912020-04-13 Tom Tromey <tom@tromey.com>
8092
8093 * tui/tui-win.c: Include async-event.h.
8094 * remote.c: Include async-event.h.
8095 * remote-notif.c: Include async-event.h.
8096 * record-full.c: Include async-event.h.
8097 * record-btrace.c: Include async-event.h.
8098 * infrun.c: Include async-event.h.
8099 * event-top.c: Include async-event.h.
8100 * event-loop.h: Move some declarations to async-event.h.
8101 * event-loop.c: Don't include ser-event.h or top.h. Move some
8102 code to async-event.c.
8103 * async-event.h: New file.
8104 * async-event.c: New file.
8105 * Makefile.in (COMMON_SFILES): Add async-event.c.
8106 (HFILES_NO_SRCDIR): Add async-event.h.
8107
c1cd3163
TT
81082020-04-13 Tom Tromey <tom@tromey.com>
8109
8110 * utils.c (flush_streams): New function.
8111 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8112
29f2bf4f
TT
81132020-04-13 Tom Tromey <tom@tromey.com>
8114
8115 * event-loop.c (handle_file_event): Use warning, not
8116 printf_unfiltered.
8117
98029d02
TT
81182020-04-13 Tom Tromey <tom@tromey.com>
8119
8120 * event-loop.c: Include <chrono>.
8121
06cc9596
TT
81222020-04-13 Tom Tromey <tom@tromey.com>
8123
8124 * gdb_select.h: Move to ../gdbsupport/.
8125 * event-loop.c: Update include path.
8126 * top.c: Update include path.
8127 * ser-base.c: Update include path.
8128 * ui-file.c: Update include path.
8129 * ser-tcp.c: Update include path.
8130 * guile/scm-ports.c: Update include path.
8131 * posix-hdep.c: Update include path.
8132 * ser-unix.c: Update include path.
8133 * gdb_usleep.c: Update include path.
8134 * mingw-hdep.c: Update include path.
8135 * inflow.c: Update include path.
8136 * infrun.c: Update include path.
8137 * event-top.c: Update include path.
8138
8ae8e197
TT
81392020-04-13 Tom Tromey <tom@tromey.com>
8140
8141 * configure: Rebuild.
8142 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8143
58cf28e8
TT
81442020-04-13 Tom Tromey <tom@tromey.com>
8145
8146 * event-loop.h (start_event_loop): Don't declare.
8147 * event-loop.c (start_event_loop): Move...
8148 * main.c (start_event_loop): ...here. Now static.
8149
b7f999ae
SDJ
81502020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8151
8152 * MAINTAINERS: Update my email address.
8153
1085dfd4
KR
81542020-04-12 Kamil Rytarowski <n54@gmx.com>
8155
8156 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8157 IP_ALL.
8158
49d1d1f5
KR
81592020-04-12 Kamil Rytarowski <n54@gmx.com>
8160
8161 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8162 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8163
b4848d2a
KR
81642020-04-12 Kamil Rytarowski <n54@gmx.com>
8165
8166 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8167 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8168
51c133d5
KR
81692020-04-12 Kamil Rytarowski <n54@gmx.com>
8170
8171 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8172
54b8cbd0
KR
81732020-04-11 Kamil Rytarowski <n54@gmx.com>
8174
8175 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8176 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8177 (nbsd_nat_target::info_proc): New functions.
8178 * nbsd-nat.c (kinfo_get_vmmap): New function.
8179 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8180 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8181 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8182 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8183 functions.
8184 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8185 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8186 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8187 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8188 (KINFO_VME_FLAG_GROWS_DOWN): New.
8189
cf83625d
AS
81902020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8191
8192 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8193 bit shift.
8194
0c4311ab
TT
81952020-04-10 Tom Tromey <tromey@adacore.com>
8196
8197 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8198
3e65b3e9
TT
81992020-04-10 Tom Tromey <tromey@adacore.com>
8200
8201 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8202 separate debug files.
8203
13302e95
HD
82042020-04-10 Hannes Domani <ssbssa@yahoo.de>
8205
8206 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8207 Move to...
8208 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8209 ... here.
8210 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8211 Check for STATUS_WX86_BREAKPOINT.
8212 (windows_nat_target::wait): Same.
8213
bdfc1e8a
TV
82142020-04-10 Tom de Vries <tdevries@suse.de>
8215
8216 PR cli/25808
8217 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8218
f4460aec
SM
82192020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8220
8221 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8222 (Write After Approval): Remove Tom de Vries.
8223
a25198bb
BE
82242020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8225
8226 revert partially:
8227 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8228
aac66a4c
SM
8229 * buildsym.c (record_line): Fix undefined behavior and preserve
8230 lines at eof.
a25198bb 8231
206c98a6
KR
82322020-04-09 Kamil Rytarowski <n54@gmx.com>
8233
8234 * auxv.h (svr4_auxv_parse): New.
8235 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8236 and generic_auxv_parse.
8237 (svr4_auxv_parse): Add.
8238 * obsd-tdep.c: Include "auxv.h".
8239 (obsd_auxv_parse): Remove.
8240 (obsd_init_abi): Remove comment.
8241 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8242 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8243 * nbsd-tdep.c: Include "auxv.h".
8244 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8245
71fbdbaf
TT
82462020-04-08 Tom Tromey <tromey@adacore.com>
8247
8248 * nat/windows-nat.h (last_wait_event): Don't declare.
8249 (wait_for_debug_event): Update comment.
8250 * nat/windows-nat.c (last_wait_event): Now static.
8251
2c1d95e8
TT
82522020-04-08 Tom Tromey <tromey@adacore.com>
8253
8254 * windows-nat.c (wait_for_debug_event): Move to
8255 nat/windows-nat.c.
8256 * nat/windows-nat.h (wait_for_debug_event): Declare.
8257 * nat/windows-nat.c (wait_for_debug_event): Move from
8258 windows-nat.c. No longer static.
8259
d2977bc4
TT
82602020-04-08 Tom Tromey <tromey@adacore.com>
8261
8262 * windows-nat.c (get_windows_debug_event): Use
8263 fetch_pending_stop.
8264 * nat/windows-nat.h (fetch_pending_stop): Declare.
8265 * nat/windows-nat.c (fetch_pending_stop): New function.
8266
e758e19c
TT
82672020-04-08 Tom Tromey <tromey@adacore.com>
8268
8269 * windows-nat.c (windows_continue): Use matching_pending_stop and
8270 continue_last_debug_event.
8271 * nat/windows-nat.h (matching_pending_stop)
8272 (continue_last_debug_event): Declare.
8273 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8274 (matching_pending_stop, continue_last_debug_event): New
8275 functions.
8276
8d30e395
TT
82772020-04-08 Tom Tromey <tromey@adacore.com>
8278
8279 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8280 (handle_exception_result): Move to nat/windows-nat.h.
8281 (DEBUG_EXCEPTION_SIMPLE): Remove.
8282 (windows_nat::handle_ms_vc_exception): New function.
8283 (handle_exception): Move to nat/windows-nat.c.
8284 (get_windows_debug_event): Update.
8285 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8286 nat/windows-nat.c.
8287 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8288 (handle_exception_result): Move from windows-nat.c.
8289 (handle_exception): Declare.
8290 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8291 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8292 windows-nat.c.
8293
29de418d
TT
82942020-04-08 Tom Tromey <tromey@adacore.com>
8295
8296 * windows-nat.c (exception_count, event_count): Remove.
8297 (handle_exception, get_windows_debug_event)
8298 (do_initial_windows_stuff): Update.
8299
a816ba18
TT
83002020-04-08 Tom Tromey <tromey@adacore.com>
8301
8302 * windows-nat.c (windows_nat::handle_load_dll)
8303 (windows_nat::handle_unload_dll): Rename. No longer static.
8304 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8305 Declare.
8306
a00caa12
TT
83072020-04-08 Tom Tromey <tromey@adacore.com>
8308
8309 * complaints.h (stop_whining): Declare at top-level.
8310 (complaint): Don't declare stop_whining.
8311
d41b524f
TT
83122020-04-08 Tom Tromey <tromey@adacore.com>
8313
8314 * windows-nat.c (windows_nat::handle_output_debug_string):
8315 Rename. No longer static.
8316 * nat/windows-nat.h (handle_output_debug_string): Declare.
8317
3c76026d
TT
83182020-04-08 Tom Tromey <tromey@adacore.com>
8319
8320 * windows-nat.c (current_process_handle, current_process_id)
8321 (main_thread_id, last_sig, current_event, last_wait_event)
8322 (current_windows_thread, desired_stop_thread_id, pending_stops)
8323 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8324 (display_selectors, fake_create_process)
8325 (get_windows_debug_event): Update.
8326 * nat/windows-nat.h (current_process_handle, current_process_id)
8327 (main_thread_id, last_sig, current_event, last_wait_event)
8328 (current_windows_thread, desired_stop_thread_id, pending_stops)
8329 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8330 * nat/windows-nat.c (current_process_handle, current_process_id)
8331 (main_thread_id, last_sig, current_event, last_wait_event)
8332 (current_windows_thread, desired_stop_thread_id, pending_stops)
8333 (siginfo_er): New globals. Move from windows-nat.c.
8334
9d8679cc
TT
83352020-04-08 Tom Tromey <tromey@adacore.com>
8336
8337 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8338 (handle_load_dll): Update.
8339 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8340
28688adf
TT
83412020-04-08 Tom Tromey <tromey@adacore.com>
8342
8343 * windows-nat.c (enum thread_disposition_type): Move to
8344 nat/windows-nat.h.
8345 (windows_nat::thread_rec): Rename from thread_rec. No longer
8346 static.
8347 (windows_add_thread, windows_nat_target::fetch_registers)
8348 (windows_nat_target::store_registers, handle_exception)
8349 (windows_nat_target::resume, get_windows_debug_event)
8350 (windows_nat_target::get_tib_address)
8351 (windows_nat_target::thread_name)
8352 (windows_nat_target::thread_alive): Update.
8353 * nat/windows-nat.h (enum thread_disposition_type): Move from
8354 windows-nat.c.
8355 (thread_rec): Declare.
8356
4834dad0
TT
83572020-04-08 Tom Tromey <tromey@adacore.com>
8358
8359 * windows-nat.c: Add "using namespace".
8360 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8361 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8362
65bafd5b
TT
83632020-04-08 Tom Tromey <tromey@adacore.com>
8364
8365 * nat/windows-nat.h (struct windows_thread_info): Declare
8366 destructor.
8367 * nat/windows-nat.c (~windows_thread_info): New.
8368
0a4afda3
TT
83692020-04-08 Tom Tromey <tromey@adacore.com>
8370
8371 PR gdb/22992
8372 * windows-nat.c (current_event): Update comment.
8373 (last_wait_event, desired_stop_thread_id): New globals.
8374 (struct pending_stop): New.
8375 (pending_stops): New global.
8376 (windows_nat_target) <stopped_by_sw_breakpoint>
8377 <supports_stopped_by_sw_breakpoint>: New methods.
8378 (windows_fetch_one_register): Add assertions. Adjust PC.
8379 (windows_continue): Handle pending stops. Suspend other threads
8380 when stepping. Use last_wait_event
8381 (wait_for_debug_event): New function.
8382 (get_windows_debug_event): Use wait_for_debug_event. Handle
8383 pending stops. Queue spurious stops.
8384 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8385 (windows_nat_target::kill): Use wait_for_debug_event.
8386 * nat/windows-nat.h (struct windows_thread_info)
8387 <stopped_at_software_breakpoint>: New field.
8388 * nat/windows-nat.c (windows_thread_info::resume): Clear
8389 stopped_at_software_breakpoint.
8390
8e61ebec
TT
83912020-04-08 Tom Tromey <tromey@adacore.com>
8392
8393 * windows-nat.c (enum thread_disposition_type): New.
8394 (thread_rec): Replace "get_context" parameter with "disposition";
8395 change type.
8396 (windows_add_thread, windows_nat_target::fetch_registers)
8397 (windows_nat_target::store_registers, handle_exception)
8398 (windows_nat_target::resume, get_windows_debug_event)
8399 (windows_nat_target::get_tib_address)
8400 (windows_nat_target::thread_name)
8401 (windows_nat_target::thread_alive): Update.
8402
98a03287
TT
84032020-04-08 Tom Tromey <tromey@adacore.com>
8404
8405 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8406 (windows_continue): Use windows_continue::resume.
8407 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8408 resume>: Declare new methods.
8409 * nat/windows-nat.c: New file.
8410 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8411
7c7411bc
TT
84122020-04-08 Tom Tromey <tromey@adacore.com>
8413
8414 * windows-nat.c (windows_add_thread, windows_delete_thread)
8415 (windows_nat_target::fetch_registers)
8416 (windows_nat_target::store_registers, fake_create_process)
8417 (windows_nat_target::resume, windows_nat_target::resume)
8418 (get_windows_debug_event, windows_nat_target::wait)
8419 (windows_nat_target::pid_to_str)
8420 (windows_nat_target::get_tib_address)
8421 (windows_nat_target::get_ada_task_ptid)
8422 (windows_nat_target::thread_name)
8423 (windows_nat_target::thread_alive): Use lwp, not tid.
8424
2950fdf7
TT
84252020-04-08 Tom Tromey <tromey@adacore.com>
8426
8427 * windows-nat.c (handle_exception)
8428 (windows_nat_target::thread_name): Update.
8429 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8430 <name>: Now unique_xmalloc_ptr.
8431
62fe396b
TT
84322020-04-08 Tom Tromey <tromey@adacore.com>
8433
8434 * windows-nat.c (thread_rec)
8435 (windows_nat_target::fetch_registers): Update.
8436 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8437 Update comment.
8438 <debug_registers_changed, reload_context>: Now bool.
8439
e9534bd2
TT
84402020-04-08 Tom Tromey <tromey@adacore.com>
8441
8442 * windows-nat.c (windows_add_thread): Use new.
8443 (windows_init_thread_list, windows_delete_thread): Use delete.
8444 (get_windows_debug_event): Update.
8445 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8446 destructor, and initializers.
8447
ae1f8880
TT
84482020-04-08 Tom Tromey <tromey@adacore.com>
8449
8450 * windows-nat.c (struct windows_thread_info): Remove.
8451 * nat/windows-nat.h: New file.
8452
55a1e039
TT
84532020-04-08 Tom Tromey <tromey@adacore.com>
8454
8455 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8456 (thread_rec, windows_add_thread, windows_delete_thread)
8457 (windows_continue): Update.
8458
93366324
TT
84592020-04-08 Tom Tromey <tromey@adacore.com>
8460
8461 * windows-nat.c (struct windows_thread_info): Remove typedef.
8462 (thread_head): Remove.
8463 (thread_list): New global.
8464 (thread_rec, windows_add_thread, windows_init_thread_list)
8465 (windows_delete_thread, windows_continue): Update.
8466
0f2265e2
SM
84672020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8468
8469 * windows-tdep.h (windows_init_abi): Add comment.
8470 (cygwin_init_abi): New declaration.
8471 * windows-tdep.c: Split signal enumeration in two, one for
8472 Windows and one for Cygwin.
8473 (windows_gdb_signal_to_target): Only deal with signal of the
8474 Windows OS ABI.
8475 (cygwin_gdb_signal_to_target): New function.
8476 (windows_init_abi): Rename to windows_init_abi_common, don't set
8477 gdb_signal_to_target gdbarch method. Add new new function with
8478 this name.
8479 (cygwin_init_abi): New function.
8480 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8481 comment. Don't call windows_init_abi.
8482 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8483 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8484 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8485 i386_windows_init_abi_common, don't call windows_init_abi. Add
8486 a new function of this name.
8487 (i386_cygwin_init_abi): New function.
8488 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8489 OS ABI Cygwin.
8490
3810f182
SM
84912020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8492
8493 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8494 parameter.c.
8495 (dwarf2_read_gdb_index): Update.
8496
063f8e80
KR
84972020-04-07 Kamil Rytarowski <n54@gmx.com>
8498
8499 * nbsd-tdep.c: Include "objfiles.h".
8500 (nbsd_skip_solib_resolver): New.
8501 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8502
85a9510c 85032020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8504
8505 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8506 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8507 with DW_LLE_base_addressx are being emitted in DWARFv5.
8508 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8509 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8510 unsigned integer.
8511
9fc3eaae 85122020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8513
8514 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8515 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8516 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8517 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8518 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8519 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8520 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8521
8522
41144253 85232020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8524
8525 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8526 (read_loclist_index): New function definition.
8527 (lookup_loclist_base): New function definition.
8528 (read_loclist_header): New function definition.
8529 (dwarf2_cu): Add loclist_base and loclist_header field.
8530 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8531 (read_full_die_1): Read the value of DW_AT_loclists_base.
8532 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8533 (read_attribute_value): Handle DW_FORM_loclistx.
8534 (skip_one_die): Handle DW_FORM_loclistx.
8535 (loclist_header): New structure declaration.
8536 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8537
9f4e76a4
SM
85382020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8539
8540 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8541 constructor. Remove `addr` parameter from other constructor and
8542 add `per_cu` parameter.
8543 * dwarf2/read.c (create_partial_symtab): Update.
8544
25c11aca
TV
85452020-04-07 Tom de Vries <tdevries@suse.de>
8546
8547 PR symtab/25796
8548 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8549 (partial_die_info::fixup): Inherit has_const_value.
8550
5707e24b
TV
85512020-04-07 Tom de Vries <tdevries@suse.de>
8552
8553 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8554 symbols without address.
8555
05f00e22
KR
85562020-04-06 Kamil Rytarowski <n54@gmx.com>
8557
8558 * nbsd-nat.h (struct thread_info): Add forward declaration.
8559 (nbsd_nat_target::thread_alive): Add.
8560 (nbsd_nat_target::thread_name): Likewise.
8561 (nbsd_nat_target::update_thread_list): Likewise.
8562 (update_thread_list::post_attach): Likewise.
8563 (post_attach::pid_to_str): Likewise.
8564 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8565 (nbsd_thread_lister): Add.
8566 (nbsd_nat_target::thread_alive): Likewise.
8567 (nbsd_nat_target::thread_name): Likewise.
8568 (nbsd_add_threads): Likewise.
8569 (update_thread_list::post_attach): Likewise.
8570 (nbsd_nat_target::update_thread_list): Likewise.
8571 (post_attach::pid_to_str): Likewise.
8572
6ee448cc
TT
85732020-04-06 Tom Tromey <tromey@adacore.com>
8574
8575 * ada-valprint.c (print_variant_part): Extract the variant field.
8576 (print_field_values): Use the field as the outer value when
8577 recursing.
8578
dea34e8c
TT
85792020-04-06 Tom Tromey <tromey@adacore.com>
8580
8581 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8582 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8583 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8584 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8585 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8586
93689ce9
TT
85872020-04-06 Tom Tromey <tromey@adacore.com>
8588
8589 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8590 TYPE_CODE_ERROR.
8591
79743962
KR
85922020-04-06 Kamil Rytarowski <n54@gmx.com>
8593
8594 * nbsd-tdep.c: Include "gdbarch.h".
8595 Define enum with NetBSD signal numbers.
8596 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8597 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8598 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8599 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8600 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8601 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8602 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8603 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8604 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8605 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8606 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8607 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8608
9e7c9a03
HD
86092020-04-03 Hannes Domani <ssbssa@yahoo.de>
8610
8611 PR gdb/25325
8612 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8613
d9e49b61
TT
86142020-04-03 Tom Tromey <tromey@adacore.com>
8615
8616 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8617 Read constant block.
8618
e0fc5c3f
SM
86192020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8620
8621 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8622 (gdb_bfd_get_full_section_contents): New declaration.
8623 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8624 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8625 gdb_bfd_get_full_section_contents.
8626
e2ff18a0
SM
86272020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8628
8629 * exec.c (build_section_table): Replace internal_error with
8630 gdb_assert.
8631 (section_table_xfer_memory_partial): Likewise.
8632 * mdebugread.c (parse_partial_symbols): Likewise.
8633 * psymtab.c (lookup_partial_symbol): Likewise.
8634 * utils.c (wrap_here): Likewise.
8635
0830d301
TT
86362020-04-02 Tom Tromey <tromey@adacore.com>
8637
8638 * f-lang.c (build_fortran_types): Use arch_type to initialize
8639 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8640
e7da7f8f
TT
86412020-04-02 Tom Tromey <tromey@adacore.com>
8642
8643 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8644 of attributes.
8645
c90d28ac
AB
86462020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8647 Bernd Edlinger <bernd.edlinger@hotmail.de>
8648 Tom Tromey <tromey@adacore.com>
8649
8650 * buildsym.c (buildsym_compunit::record_line): Remove
8651 deduplication code.
8652
1aa98955
TV
86532020-04-02 Tom de Vries <tdevries@suse.de>
8654
8655 PR ada/24671
8656 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8657
d3214198
TV
86582020-04-02 Tom de Vries <tdevries@suse.de>
8659
8660 * dwarf2/read.c (dwarf2_gdb_index_functions,
8661 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8662 NULL.
8663 * psymtab.c (psym_lookup_global_symbol_language): New function.
8664 (psym_functions): Init psym_lookup_global_symbol_language with
8665 psym_lookup_global_symbol_language.
8666 * symfile-debug.c (debug_sym_quick_functions): Init
8667 lookup_global_symbol_language with NULL.
8668 * symfile.c (set_initial_language): Remove fixme comment.
8669 * symfile.h (struct quick_symbol_functions): Add
8670 lookup_global_symbol_language.
8671 * symtab.c (find_quick_global_symbol_language): New function.
8672 (find_main_name): Use find_quick_global_symbol_language.
8673
2836752f
SM
86742020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8675
8676 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8677
64dc2d4b
BE
86782020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8679
8680 * buildsym.c (record_line): Fix undefined behavior and preserve
8681 lines at eof.
8682
bbe3dc41
BE
86832020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8684
8685 * buildsym.c (record_line): Fix the resizing condition.
8686
6b4a335b
TT
86872020-04-01 Tom Tromey <tom@tromey.com>
8688
8689 * value.h (value_literal_complex): Add comment.
8690 * valops.c (value_literal_complex): Refer to value.h.
8691
3638a098
TT
86922020-04-01 Tom Tromey <tom@tromey.com>
8693
8694 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8695 (scalar_type): New rule, from typebase.
8696 (typebase): Use scalar_type. Recognize complex types.
8697 (field_name): Handle FLOAT_KEYWORD.
8698 (ident_tokens): Add _Complex and __complex__.
8699
c34e8714
TT
87002020-04-01 Tom Tromey <tom@tromey.com>
8701
8702 PR exp/25299:
8703 * valarith.c (promotion_type, complex_binop): New functions.
8704 (scalar_binop): Handle complex numbers. Use promotion_type.
8705 (value_pos, value_neg, value_complement): Handle complex numbers.
8706
fa649bb7
TT
87072020-04-01 Tom Tromey <tom@tromey.com>
8708
8709 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8710 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8711 (parse_number): Handle complex numbers.
8712
981c08ce
TT
87132020-04-01 Tom Tromey <tom@tromey.com>
8714
8715 * c-valprint.c (c_decorations): Change complex suffix to "i".
8716
4c99290d
TT
87172020-04-01 Tom Tromey <tom@tromey.com>
8718
8719 * valprint.c (generic_value_print_complex): Use accessors.
8720 * value.h (value_real_part, value_imaginary_part): Declare.
8721 * valops.c (value_real_part, value_imaginary_part): New
8722 functions.
8723 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8724
5b930b45
TT
87252020-04-01 Tom Tromey <tom@tromey.com>
8726
8727 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8728 (read_range_type): Update.
8729 * mdebugread.c (basic_type): Update.
8730 * go-lang.c (build_go_types): Use init_complex_type.
8731 * gdbtypes.h (struct main_type) <complex_type>: New member.
8732 (init_complex_type): Update.
8733 (arch_complex_type): Don't declare.
8734 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8735 Make name if none given. Use alloc_type_copy. Look for cached
8736 complex type.
8737 (arch_complex_type): Remove.
8738 (gdbtypes_post_init): Use init_complex_type.
8739 * f-lang.c (build_fortran_types): Use init_complex_type.
8740 * dwarf2/read.c (read_base_type): Update.
8741 * d-lang.c (build_d_types): Use init_complex_type.
8742 * ctfread.c (read_base_type): Update.
8743
53cccef1
TBA
87442020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8745
8746 * infrun.c (stop_all_threads): Update assertion, plus when
8747 stopping threads, take into account that we might be trying
8748 to stop an all-stop target.
8749 (stop_waiting): Call 'stop_all_threads' if there exists a
8750 non-stop target.
8751
a0714d30
TBA
87522020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8753
8754 * target.h (exists_non_stop_target): New function declaration.
8755 * target.c (exists_non_stop_target): New function.
8756
60e22c1e
HD
87572020-04-01 Hannes Domani <ssbssa@yahoo.de>
8758
8759 PR gdb/24789
8760 * eval.c (is_integral_or_integral_reference): New function.
8761 (evaluate_subexp_standard): Allow integer references in
8762 pointer arithmetic.
8763
e139a727
TBA
87642020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8765
8766 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8767 check for no ptid in the stop reply when the target is non-stop.
8768
e0802d59
TT
87692020-04-01 Tom Tromey <tromey@adacore.com>
8770
8771 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8772 "name" parameter to rvalue reference. Initialize m_name_holder.
8773 <lookup_name_info>: New overloads.
8774 <name>: Return gdb::string_view.
8775 <c_str>: New method.
8776 <make_ignore_params>: Update.
8777 <search_name_hash>: Update.
8778 <language_lookup_name>: Return const char *.
8779 <m_name>: Change type.
8780 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8781 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8782 (lookup_name_info::match_any): Update.
8783 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8784 Update.
8785 * minsyms.c (linkage_name_str): Update.
8786 * language.c (default_symbol_name_matcher): Update.
8787 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8788 Update.
8789 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8790 (ada_lookup_name_info::ada_lookup_name_info): Update.
8791 (literal_symbol_name_matcher): Update.
8792
8c072cb6
TT
87932020-04-01 Tom Tromey <tromey@adacore.com>
8794
8795 * psymtab.c (psymtab_search_name): Remove function.
8796 (psym_lookup_symbol): Create search name and lookup name here.
8797 (lookup_partial_symbol): Remove "name" parameter; add
8798 lookup_name.
8799 (psym_expand_symtabs_for_function): Update.
8800
6f29a534
TT
88012020-03-31 Joel Jones <joelkevinjones@gmail.com>
8802
8803 PR tui/25597:
8804 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8805
af62665e
TT
88062020-03-31 Tom Tromey <tromey@adacore.com>
8807
8808 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8809 memcpy.
8810
d1a89da5
NC
88112020-03-30 Nelson Chu <nelson.chu@sifive.com>
8812
8813 * features/riscv/32bit-csr.xml: Regenerated.
8814 * features/riscv/64bit-csr.xml: Regenerated.
8815
d8af9068
TT
88162020-03-30 Tom Tromey <tromey@adacore.com>
8817
8818 * ada-valprint.c (print_variant_part): Update.
8819 * ada-lang.h (ada_which_variant_applies): Update.
8820 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8821 outer_valaddr parameters; replace with "outer" value parameter.
8822 (to_fixed_variant_branch_type): Update.
8823
227c0bf4
PFC
88242020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8825
8826 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8827 <list>. Remove inclusion of observable.h.
8828 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8829 (struct arch_lwp_info): New struct.
8830 (class ppc_linux_dreg_interface): New class.
8831 (struct ppc_linux_process_info): New struct.
8832 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8833 <low_new_clone, low_forget_process, low_prepare_to_resume>
8834 <copy_thread_dreg_state, mark_thread_stale>
8835 <mark_debug_registers_changed, register_hw_breakpoint>
8836 <clear_hw_breakpoint, register_wp, clear_wp>
8837 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8838 <num_memory_accesses, get_trigger_type>
8839 <create_watchpoint_request, hwdebug_point_cmp>
8840 <init_arch_lwp_info, get_arch_lwp_info>
8841 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8842 methods.
8843 <struct ptid_hash>: New inner struct.
8844 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8845 members.
8846 (saved_dabr_value, hwdebug_info, max_slots_number)
8847 (struct hw_break_tuple, struct thread_points, ppc_threads)
8848 (have_ptrace_hwdebug_interface)
8849 (hwdebug_find_thread_points_by_tid)
8850 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8851 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8852 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8853 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8854 use m_dreg_interface.
8855 (hwdebug_point_cmp): Change to...
8856 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8857 reference arguments instead of pointers.
8858 (ppc_linux_nat_target::ranged_break_num_registers): Use
8859 m_dreg_interface.
8860 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8861 m_dreg_interface. Call register_hw_breakpoint.
8862 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8863 m_dreg_interface. Call clear_hw_breakpoint.
8864 (get_trigger_type): Change to...
8865 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8866 comment.
8867 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8868 use m_dreg_interface. Call register_hw_breakpoint.
8869 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8870 use m_dreg_interface. Call clear_hw_breakpoint.
8871 (can_use_watchpoint_cond_accel): Change to...
8872 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8873 method. Update comment, use m_dreg_interface and
8874 m_process_info.
8875 (calculate_dvc): Change to...
8876 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8877 m_dreg_interface.
8878 (num_memory_accesses): Change to...
8879 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8880 (check_condition): Change to...
8881 (ppc_linux_nat_target::check_condition): ...this method.
8882 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8883 comment, use m_dreg_interface.
8884 (create_watchpoint_request): Change to...
8885 (ppc_linux_nat_target::create_watchpoint_request): ...this
8886 method. Use m_dreg_interface.
8887 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8888 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8889 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8890 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8891 (ppc_linux_nat_target::low_forget_process)
8892 (ppc_linux_nat_target::low_new_fork)
8893 (ppc_linux_nat_target::low_new_clone)
8894 (ppc_linux_nat_target::low_delete_thread)
8895 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8896 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8897 only call mark_thread_stale.
8898 (ppc_linux_thread_exit): Remove.
8899 (ppc_linux_nat_target::stopped_data_address): Change to...
8900 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8901 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8902 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8903 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8904 comment. Call low_stopped_data_address.
8905 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8906 m_dreg_interface.
8907 (ppc_linux_nat_target::masked_watch_num_registers): Use
8908 m_dreg_interface.
8909 (ppc_linux_nat_target::copy_thread_dreg_state)
8910 (ppc_linux_nat_target::mark_thread_stale)
8911 (ppc_linux_nat_target::mark_debug_registers_changed)
8912 (ppc_linux_nat_target::register_hw_breakpoint)
8913 (ppc_linux_nat_target::clear_hw_breakpoint)
8914 (ppc_linux_nat_target::register_wp)
8915 (ppc_linux_nat_target::clear_wp)
8916 (ppc_linux_nat_target::init_arch_lwp_info)
8917 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8918 (_initialize_ppc_linux_nat): Remove observer callback.
8919
4db10d8f
PFC
89202020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8921
8922 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8923 (ppc_linux_nat_target::auxv_parse)
8924 (ppc_linux_nat_target::read_description)
8925 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8926 Move up.
8927
1310c1b0
PFC
89282020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8929
8930 * linux-nat.h (low_new_clone): New method.
8931 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8932
69b037c3
SM
89332020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8934
8935 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8936 (dbx_expand_psymtab): ... this.
8937 (start_psymtab): Update.
8938 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8939 (mdebug_expand_psymtab): ... this.
8940 (parse_partial_symbols): Update.
8941 (new_psymtab): Update.
8942 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8943 (xcoff_expand_psymtab): ... this.
8944 (xcoff_start_psymtab): Update.
8945
48993951
SM
89462020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8947
8948 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8949 <expand_dependencies>: ... this.
8950 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8951 (partial_symtab::expand_dependencies): ... this.
8952 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8953 Update.
8954 (dwarf2_psymtab::expand_psymtab): Update.
8955 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8956 * mdebugread.c (psymtab_to_symtab_1): Update.
8957 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8958
3ad83046
SM
89592020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8960
8961 * psympriv.h (discard_psymtab): Remove.
8962 * dbxread.c (dbx_end_psymtab): Update.
8963 * xcoffread.c (xcoff_end_psymtab): Update.
8964
4d1b9ab6
TT
89652020-03-28 Tom Tromey <tom@tromey.com>
8966
8967 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8968 comment.
8969
f1749218
TT
89702020-03-28 Tom Tromey <tom@tromey.com>
8971
8972 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8973
ebea7626
HD
89742020-03-27 Hannes Domani <ssbssa@yahoo.de>
8975
8976 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8977
a879b4d5
JB
89782020-03-26 John Baldwin <jhb@FreeBSD.org>
8979
8980 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8981
0826b30a
TT
89822020-03-26 Tom Tromey <tom@tromey.com>
8983
8984 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8985 (mark_common_block_symbol_computed, read_tag_string_type)
8986 (attr_to_dynamic_prop, read_subrange_type): Update.
8987 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8988 to be methods on struct attribute.
8989 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8990 (read_call_site_scope, partial_die_info::read)
8991 (partial_die_info::read, lookup_die_type, follow_die_ref):
8992 Update.
8993 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8994 from dwarf2_get_ref_die_offset.
8995 (attribute::constant_value): New method, from
8996 dwarf2_get_attr_constant_value.
8997 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8998 Declare method.
8999 <constant_value>: New method.
9000
2b2558bf
TT
90012020-03-26 Tom Tromey <tom@tromey.com>
9002
9003 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9004 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9005 (dwarf_type_encoding_name): Move to stringify.c.
9006 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9007 * dwarf2/stringify.c: New file.
9008 * dwarf2/stringify.h: New file.
9009
eeb64781
TT
90102020-03-26 Tom Tromey <tom@tromey.com>
9011
9012 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9013 Rewrite.
9014
a39fdb41
TT
90152020-03-26 Tom Tromey <tom@tromey.com>
9016
9017 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9018 methods.
9019 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9020 (lookup_ranges_base): Likewise.
9021 (read_cutu_die_from_dwo, read_full_die_1): Update.
9022
436c571c
TT
90232020-03-26 Tom Tromey <tom@tromey.com>
9024
9025 * dwarf2/read.c (read_import_statement, read_file_scope)
9026 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9027 (read_lexical_block_scope, read_call_site_scope)
9028 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9029 (handle_struct_member_die, process_structure_scope)
9030 (update_enumeration_type_from_children)
9031 (process_enumeration_scope, read_array_type, read_common_block)
9032 (read_namespace, read_module, read_subroutine_type): Update.
9033 (sibling_die): Remove.
9034
052c8bb8
TT
90352020-03-26 Tom Tromey <tom@tromey.com>
9036
9037 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9038 (build_type_psymtabs_reader, read_structure_type)
9039 (read_enumeration_type, read_full_die_1): Update.
9040 (dwarf2_attr_no_follow): Move to die.h.
9041 * dwarf2/die.h (struct die_info) <attr>: New method.
9042
2b24b6e4
TT
90432020-03-26 Tom Tromey <tom@tromey.com>
9044
9045 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9046 <base_address>: Now an optional.
9047 (dwarf2_find_base_address, dwarf2_rnglists_process)
9048 (dwarf2_ranges_process, fill_in_loclist_baton)
9049 (dwarf2_symbol_mark_computed): Update.
9050
c2d50fd0
TT
90512020-03-26 Tom Tromey <tom@tromey.com>
9052
9053 * dwarf2/read.c (struct die_info): Move to die.h.
9054 * dwarf2/die.h: New file.
9055
0df7ad3a
TT
90562020-03-26 Tom Tromey <tom@tromey.com>
9057
9058 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9059 * dwarf2/read.c
9060 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9061 Move to line-header.c.
9062 (read_checked_initial_length_and_offset, read_formatted_entries):
9063 Likewise.
9064 (dwarf_decode_line_header): Split into two.
9065 * dwarf2/line-header.c
9066 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9067 Move from read.c.
9068 (read_checked_initial_length_and_offset, read_formatted_entries):
9069 Likewise.
9070 (dwarf_decode_line_header): New function, split from read.c.
9071
86c0bb4c
TT
90722020-03-26 Tom Tromey <tom@tromey.com>
9073
9074 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9075 Declare method.
9076 * dwarf2/read.c (read_attribute_value): Update.
9077 (dwarf2_per_objfile::read_line_string): Rename from
9078 read_indirect_line_string.
9079 (read_formatted_entries): Update.
9080
2ef46c2f
TT
90812020-03-26 Tom Tromey <tom@tromey.com>
9082
9083 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9084 variable.
9085
4f9c1eda
TT
90862020-03-26 Tom Tromey <tom@tromey.com>
9087
9088 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9089 const.
9090 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9091 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9092 parameter const.
9093
5a0e026f
TT
90942020-03-26 Tom Tromey <tom@tromey.com>
9095
9096 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9097 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9098 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9099 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9100
8844c11b
TT
91012020-03-26 Tom Tromey <tom@tromey.com>
9102
9103 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9104 file_names_size, file_full_name, file_file_name>: Use const.
9105 <file_name_at, file_names>: Add const overload.
9106 * dwarf2/line-header.c (line_header::file_file_name)
9107 (line_header::file_full_name): Update.
9108
c90ec28a
TT
91092020-03-26 Tom Tromey <tom@tromey.com>
9110
9111 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9112 (macro_start_file, consume_improper_spaces)
9113 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9114 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9115 (dwarf_decode_macros): Move to macro.c.
9116 * dwarf2/macro.c: New file.
9117 * dwarf2/macro.h: New file.
9118 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9119
4f44ae6c
TT
91202020-03-26 Tom Tromey <tom@tromey.com>
9121
9122 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9123 method.
9124 * dwarf2/section.c: New method. From
9125 read_indirect_string_at_offset_from.
9126 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9127 (read_indirect_string_at_offset_from): Move to section.c.
9128 (read_indirect_string_at_offset): Rewrite.
9129 (read_indirect_line_string_at_offset): Remove.
9130 (read_indirect_string, read_indirect_line_string)
9131 (dwarf_decode_macro_bytes): Update.
9132
a0194fa8
TT
91332020-03-26 Tom Tromey <tom@tromey.com>
9134
9135 * dwarf2/section.h (struct dwarf2_section_info)
9136 <overload_complaint>: Declare.
9137 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9138 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9139 Rename from dwarf2_section_buffer_overflow_complaint.
9140 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9141 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9142
3d27bbdb
TT
91432020-03-26 Tom Tromey <tom@tromey.com>
9144
9145 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9146 Declare.
9147 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9148 Move from read.c.
9149 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9150 to section.c.
9151
9eac9650
TT
91522020-03-26 Tom Tromey <tom@tromey.com>
9153
9154 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9155
bf80d710
TT
91562020-03-26 Tom Tromey <tom@tromey.com>
9157
9158 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9159 "builder".
9160 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9161 parameter.
9162 (dwarf_decode_macros): Update.
9163
0314b390
TT
91642020-03-26 Tom Tromey <tom@tromey.com>
9165
9166 * dwarf2/read.c (read_attribute_value): Update.
9167 (read_indirect_string_from_dwz): Move to dwz.c; change into
9168 method.
9169 (dwarf_decode_macro_bytes): Update.
9170 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9171 * dwarf2/dwz.c: New file.
9172 * Makefile.in (COMMON_SFILES): Add dwz.c.
9173
9fda78b6
TT
91742020-03-26 Tom Tromey <tom@tromey.com>
9175
9176 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9177 * dwarf2/read.c: Add include.
9178 * dwarf2/index-write.c: Add include.
9179 * dwarf2/index-cache.c: Add include.
9180 * dwarf2/dwz.h: New file.
9181
33aa3c10
TT
91822020-03-25 Tom Tromey <tom@tromey.com>
9183
9184 * compile/compile-object-load.c (get_out_value_type): Mention
9185 correct symbol name in error message.
9186
d503b685
HD
91872020-03-25 Hannes Domani <ssbssa@yahoo.de>
9188
9189 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9190
7b1eff95
TV
91912020-03-25 Tom de Vries <tdevries@suse.de>
9192
9193 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9194 * symmisc.c (dump_symtab_1): Print user and includes fields.
9195 (maintenance_info_symtabs): Same.
9196
dd895392
AB
91972020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9198
9199 PR gdb/25534
9200 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9201 (riscv_regcache_cooked_write): New function.
9202 (riscv_push_dummy_call): Use new function.
9203 (riscv_return_value): Likewise.
9204
5ab2fbf1
SM
92052020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9206
9207 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9208 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9209 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9210 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9211 * infrun.c (follow_fork): Likewise.
9212 (follow_fork_inferior): Likewise.
9213 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9214 * linux-nat.h (class linux_nat_target): Likewise.
9215 * remote.c (class remote_target) <follow_fork>: Likewise.
9216 (remote_target::follow_fork): Likewise.
9217 * target-delegates.c: Re-generate.
9218 * target.c (default_follow_fork): Likewise.
9219 (target_follow_fork): Likewise.
9220 * target.h (struct target_ops) <follow_fork>: Likewise.
9221 (target_follow_fork): Likewise.
9222
a64fafb5
TV
92232020-03-24 Tom de Vries <tdevries@suse.de>
9224
9225 * psymtab.c (maintenance_info_psymtabs): Print user field.
9226
fe26d3a3
TT
92272020-03-20 Tom Tromey <tromey@adacore.com>
9228
9229 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9230 const.
9231 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9232 const.
9233
c884cc46
SM
92342020-03-20 Simon Marchi <simon.marchi@efficios.com>
9235
9236 * ptrace.m4: Don't check for ptrace declaration.
9237 * config.in: Re-generate.
9238 * configure: Re-generate.
9239 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9240 not defined.
9241
1ff700c2
KR
92422020-03-20 Kamil Rytarowski <n54@gmx.com>
9243
9244 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9245 `PTRACE_TYPE_RET'.
9246 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9247 * sparc-nat.c (gdb_ptrace): Likewise.
9248 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9249
f7d4f0b1
TT
92502020-03-20 Tom Tromey <tromey@adacore.com>
9251
9252 * c-exp.y (lex_one_token): Fix assert.
9253
f67210ff
TT
92542020-03-20 Tom Tromey <tromey@adacore.com>
9255
9256 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9257 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9258 strncpy call.
9259
1773be9e
TT
92602020-03-20 Tom Tromey <tromey@adacore.com>
9261
9262 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9263
70304be9
TT
92642020-03-20 Tom Tromey <tromey@adacore.com>
9265
9266 * ada-valprint.c (print_variant_part): Remove parameters; switch
9267 to value-based API.
9268 (print_field_values): Likewise.
9269 (ada_val_print_struct_union): Likewise.
9270 (ada_value_print_1): Update.
9271
9faa006d
KR
92722020-03-20 Kamil Rytarowski <n54@gmx.com>
9273
9274 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9275 nbsd_nat_target instead of inf_ptrace_target.
9276 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9277 nbsd_nat_target.
9278
4a90f062
KR
92792020-03-20 Kamil Rytarowski <n54@gmx.com>
9280
9281 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9282 it to the ptrace call.
9283 * (store_registers): Likewise.
9284
92852020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9286
9287 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9288 it to the ptrace call.
9289 * (store_registers): Likewise.
9290
2d07da27
LM
92912020-03-19 Luis Machado <luis.machado@linaro.org>
9292
9293 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9294 valid, fetch vg value from ptrace.
9295
f09db380
KR
92962020-03-19 Kamil Rytarowski <n54@gmx.com>
9297 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9298 * inf-ptrace.c: Likewise.
9299 * (gdb_ptrace): Add.
9300 * (inf_ptrace_target::resume): Update.
9301 * (inf_ptrace_target::xfer_partial): Likewise.
9302 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9303 * (inf_ptrace_peek_poke): Update.
9304
fcc7376e
KR
93052020-03-19 Kamil Rytarowski <n54@gmx.com>
9306
9307 * x86-bsd-nat.c (gdb_ptrace): New.
9308 * (x86bsd_dr_set): Add new argument `ptid'.
9309 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9310 x86bsd_dr_set_addr): Update.
9311
cada5fc9
AB
93122020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9313
9314 * remote.c (remote_target::process_stop_reply): Handle events for
9315 all threads differently.
9316
19a2740f
AB
93172020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9318
9319 * completer.c (completion_tracker::remove_completion): Define new
9320 function.
9321 * completer.h (completion_tracker::remove_completion): Declare new
9322 function.
9323 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9324 when adding a C++ function symbol.
9325
724fd9ba
AB
93262020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9327
9328 * completer.c (completion_tracker::completion_hash_entry): Define
9329 new class.
9330 (advance_to_filename_complete_word_point): Call
9331 recompute_lowest_common_denominator.
9332 (completion_tracker::completion_tracker): Call discard_completions
9333 to setup the hash table.
9334 (completion_tracker::discard_completions): Allow for being called
9335 from the constructor, pass new equal function, and element deleter
9336 when constructing the hash table. Initialise new class member
9337 variables.
9338 (completion_tracker::maybe_add_completion): Remove use of
9339 m_entries_vec, and store more information into m_entries_hash.
9340 (completion_tracker::recompute_lcd_visitor): New function, most
9341 content taken from...
9342 (completion_tracker::recompute_lowest_common_denominator):
9343 ...here, this now just visits each item in the hash calling the
9344 above visitor.
9345 (completion_tracker::build_completion_result): Remove use of
9346 m_entries_vec, call recompute_lowest_common_denominator.
9347 * completer.h (completion_tracker::have_completions): Remove use
9348 of m_entries_vec.
9349 (completion_tracker::completion_hash_entry): Declare new class.
9350 (completion_tracker::recompute_lowest_common_denominator): Change
9351 function signature.
9352 (completion_tracker::recompute_lcd_visitor): Declare new function.
9353 (completion_tracker::m_entries_vec): Delete.
9354 (completion_tracker::m_entries_hash): Initialize to NULL.
9355 (completion_tracker::m_lowest_common_denominator_valid): New
9356 member variable.
9357 (completion_tracker::m_lowest_common_denominator_max_length): New
9358 member variable.
9359
5a82b8a1
KR
93602020-03-17 Kamil Rytarowski <n54@gmx.com>
9361
9362 * regformats/regdef.h: Put reg in gdb namespace.
9363
fb516a69
KR
93642020-03-17 Kamil Rytarowski <n54@gmx.com>
9365
9366 * i386-bsd-nat.c (gdb_ptrace): New.
9367 * (i386bsd_fetch_inferior_registers,
9368 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9369 * (i386bsd_fetch_inferior_registers,
9370 i386bsd_store_inferior_registers) Use gdb_ptrace.
9371
1c0aa1fb
KR
93722020-03-17 Kamil Rytarowski <n54@gmx.com>
9373
9374 * amd64-bsd-nat.c (gdb_ptrace): New.
9375 * (amd64bsd_fetch_inferior_registers,
9376 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9377 * (amd64bsd_fetch_inferior_registers,
9378 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9379
5ccd2fb7
KR
93802020-03-17 Kamil Rytarowski <n54@gmx.com>
9381
9382 * user-regs.c (user_reg::read): Rename to...
9383 (user_reg::xread): ...this.
9384 * (append_user_reg): Rename argument `read' to `xread'.
9385 * (user_reg_add_builtin): Likewise.
9386 * (user_reg_add): Likewise.
9387 * (value_of_user_reg): Likewise.
9388
2108a63a
KR
93892020-03-17 Kamil Rytarowski <n54@gmx.com>
9390
9391 * sparc-nat.c (gdb_ptrace): New.
9392 * sparc-nat.c (sparc_fetch_inferior_registers)
9393 (sparc_store_inferior_registers) Remove obsolete comment.
9394 * sparc-nat.c (sparc_fetch_inferior_registers)
9395 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9396 * sparc-nat.c (sparc_fetch_inferior_registers)
9397 (sparc_store_inferior_registers) Use gdb_ptrace.
9398
a225c9a8
KR
93992020-03-17 Kamil Rytarowski <n54@gmx.com>
9400
9401 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9402 it to the ptrace call.
9403 * sh-nbsd-nat.c (store_registers): Likewise.
9404
98097623
KR
94052020-03-17 Kamil Rytarowski <n54@gmx.com>
9406
9407 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9408 nbsd_nat_target instead of inf_ptrace_target.
9409 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9410 nbsd_nat_target.
9411
9e38d619
KR
94122020-03-17 Kamil Rytarowski <n54@gmx.com>
9413
9414 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9415
a2ecbe9f
KR
94162020-03-17 Kamil Rytarowski <n54@gmx.com>
9417
9418 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9419 <sys/sysctl.h>.
9420 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9421
58990295
TV
94222020-03-17 Tom de Vries <tdevries@suse.de>
9423
9424 PR gdb/23710
9425 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9426 fields.
9427 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9428 fields.
9429 (process_imported_unit_die): Skip import of c++ CUs.
9430
771dd3a8
TT
94312020-03-16 Tom Tromey <tom@tromey.com>
9432
9433 * p-valprint.c (pascal_object_print_value): Initialize
9434 base_value.
9435
817a7585
AK
94362020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9437 Shahab Vahedi <shahab@synopsys.com>
9438
9439 * Makefile.in: Add arch/arc.o
9440 * configure.tgt: Likewise.
9441 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9442 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9443 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9444 * arc-tdep.h (arc_read_description): Add proto type.
9445 * arch/arc.c: New file.
9446 * arch/arc.h: Likewise.
9447 * features/Makefile: Replace old target descriptions with new.
9448 * features/arc-arcompact.c: Remove.
9449 * features/arc-arcompact.xml: Likewise.
9450 * features/arc-v2.c: Likewise
9451 * features/arc-v2.xml: Likewise
9452 * features/arc/aux-arcompact.xml: New file.
9453 * features/arc/aux-v2.xml: Likewise.
9454 * features/arc/core-arcompact.xml: Likewise.
9455 * features/arc/core-v2.xml: Likewise.
9456 * features/arc/aux-arcompact.c: Generate.
9457 * features/arc/aux-v2.c: Likewise.
9458 * features/arc/core-arcompact.c: Likewise.
9459 * features/arc/core-v2.c: Likewise.
9460 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9461
67430cd0
TT
94622020-03-16 Tom Tromey <tromey@adacore.com>
9463
9464 PR gdb/25663:
9465 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9466 putting value into bcache.
9467
30efb6c7
SM
94682020-03-16 Simon Marchi <simon.marchi@efficios.com>
9469
9470 PR gdb/21500
9471 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9472 to...
9473 (amd64_windows_init_abi_common): ... this. Don't set size of
9474 long type.
9475 (amd64_windows_init_abi): New function.
9476 (amd64_cygwin_init_abi): New function.
9477 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9478 the Cygwin OS ABI.
9479 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9480 comment.
9481
8db52437
SM
94822020-03-16 Simon Marchi <simon.marchi@efficios.com>
9483
9484 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9485 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9486 (pe_import_directory_entry): New struct type.
9487 (is_linked_with_cygwin_dll): New function.
9488 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9489 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9490 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9491
5982a56a
SM
94922020-03-16 Simon Marchi <simon.marchi@efficios.com>
9493
9494 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9495 i386_cygwin_core_osabi_sniffer.
9496
7a1998df
SM
94972020-03-16 Simon Marchi <simon.marchi@efficios.com>
9498
9499 * i386-cygwin-tdep.c: Rename to...
9500 * i386-windows-tdep.c: ... this.
9501 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9502 i386-windows-tdep.c.
9503 * configure.tgt: Likewise.
9504
053205cc
SM
95052020-03-16 Simon Marchi <simon.marchi@efficios.com>
9506
9507 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9508 * osabi.c (gdb_osabi_names): Add "Windows".
9509 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9510 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9511 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9512 i386_cygwin_osabi_sniffer.
9513 (_initialize_i386_cygwin_tdep): Register OS ABI
9514 GDB_OSABI_WINDOWS for i386.
9515 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9516 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9517 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9518 for x86-64.
9519 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9520 when the target matches '*-*-mingw*'.
9521
fe4b2ee6
SM
95222020-03-16 Simon Marchi <simon.marchi@efficios.com>
9523
9524 * defs.h (enum gdb_osabi): Move to...
9525 * osabi.h (enum gdb_osabi): ... here.
9526 * gdbarch.sh: Include osabi.h in gdbarch.h.
9527 * gdbarch.h: Re-generate.
9528
cb9b645d
SM
95292020-03-16 Simon Marchi <simon.marchi@efficios.com>
9530
9531 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9532 function.
9533 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9534
3293bbaf
TT
95352020-03-14 Tom Tromey <tom@tromey.com>
9536
9537 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9538 for C++.
9539 (c_type_print_modifier): Likewise. Add "language" parameter.
9540 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9541 (c_type_print_base_1): Update.
9542 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9543 constants.
9544 * type-stack.c (type_stack::insert): Handle tp_atomic and
9545 tp_restrict.
9546 (type_stack::follow_type_instance_flags): Likewise.
9547 (type_stack::follow_types): Likewise. Merge type-following code.
9548 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9549 (space_identifier, cv_with_space_id)
9550 (const_or_volatile_or_space_identifier_noopt)
9551 (const_or_volatile_or_space_identifier): Remove.
9552 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9553 rules.
9554 (ptr_operator, typebase): Update.
9555 (enum token_flag) <FLAG_C>: New constant.
9556 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9557 "_Atomic".
9558 (lex_one_token): Handle FLAG_C.
9559
154151a6
KR
95602020-03-14 Kamil Rytarowski <n54@gmx.com>
9561
9562 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9563 it to the ptrace call.
9564 * m68k-bsd-nat.c (store_registers): Likewise.
9565
bc107784
KR
95662020-03-14 Kamil Rytarowski <n54@gmx.com>
9567
9568 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9569 gdb_byte *.
9570 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9571 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9572 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9573
01a80117
KR
95742020-03-14 Kamil Rytarowski <n54@gmx.com>
9575
9576 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9577 nbsd_nat_target instead of inf_ptrace_target.
9578 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9579 nbsd_nat_target.
9580
f90280ca
KR
95812020-03-14 Kamil Rytarowski <n54@gmx.com>
9582
9583 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9584 register_t.
9585
6def66f1
KR
95862020-03-14 Kamil Rytarowski <n54@gmx.com>
9587
9588 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9589 it to the ptrace call.
9590 * alpha-bsd-nat.c (store_registers): Likewise.
9591
66eaca97
KR
95922020-03-14 Kamil Rytarowski <n54@gmx.com>
9593
9594 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9595 includes.
9596 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9597 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9598 fill_fpregset): Likewise.
9599
4fed520b
KR
96002020-03-14 Kamil Rytarowski <n54@gmx.com>
9601
9602 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9603 nbsd_nat_target instead of inf_ptrace_target.
9604 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9605 nbsd_nat_target.
9606
2190cf06
KR
96072020-03-14 Kamil Rytarowski <n54@gmx.com>
9608
9609 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9610 register_t.
9611
75c56d3d
KR
96122020-03-14 Kamil Rytarowski <n54@gmx.com>
9613
9614 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9615 it to the ptrace call.
9616 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9617 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9618 * arm-nbsd-nat.c (store_register): Likewise.
9619 * arm-nbsd-nat.c (store_regs): Likewise.
9620 * arm-nbsd-nat.c (store_fp_register): Likewise.
9621 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9622
6018d381
KR
96232020-03-14 Kamil Rytarowski <n54@gmx.com>
9624
9625 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9626 nbsd_nat_target instead of inf_ptrace_target.
9627 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9628 nbsd_nat_target.
9629
013f99f0
KR
96302020-03-14 Kamil Rytarowski <n54@gmx.com>
9631
9632 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9633 it to the ptrace call.
9634 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9635
12753073
KR
96362020-03-14 Kamil Rytarowski <n54@gmx.com>
9637
6227b330
KR
9638 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9639 it to the ptrace call.
9640 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9641
96422020-03-14 Kamil Rytarowski <n54@gmx.com>
9643
9644 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9645 gdb_byte *.
12753073
KR
9646 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9647
d5be5fa4
KR
96482020-03-14 Kamil Rytarowski <n54@gmx.com>
9649
9650 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9651 instead of inf_ptrace_target.
9652 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9653 nbsd_nat_target.
9654
8110f842
KR
96552020-03-14 Kamil Rytarowski <n54@gmx.com>
9656
9657 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9658 register_t.
9659
52feded7
KR
96602020-03-14 Kamil Rytarowski <n54@gmx.com>
9661
9662 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9663 register_t.
9664
25567eee
KR
96652020-03-14 Kamil Rytarowski <n54@gmx.com>
9666
9667 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9668 register_t.
9669
426a9c18
TT
96702020-03-13 Tom Tromey <tom@tromey.com>
9671
9672 * value.h (val_print): Don't declare.
9673 * valprint.h (val_print_array_elements)
9674 (val_print_scalar_formatted, generic_val_print): Don't declare.
9675 * valprint.c (generic_val_print_array): Take a struct value.
9676 (generic_val_print_ptr, generic_val_print_memberptr)
9677 (generic_val_print_bool, generic_val_print_int)
9678 (generic_val_print_char, generic_val_print_complex)
9679 (generic_val_print): Remove.
9680 (generic_value_print): Update.
9681 (do_val_print): Remove unused parameters. Don't call
9682 la_val_print.
9683 (val_print): Remove.
9684 (common_val_print): Update. Don't call value_check_printable.
9685 (val_print_scalar_formatted, val_print_array_elements): Remove.
9686 * rust-lang.c (rust_val_print): Remove.
9687 (rust_language_defn): Update.
9688 * p-valprint.c (pascal_val_print): Remove.
9689 (pascal_value_print_inner): Update.
9690 (pascal_object_print_val_fields, pascal_object_print_val):
9691 Remove.
9692 (pascal_object_print_static_field): Update.
9693 * p-lang.h (pascal_val_print): Don't declare.
9694 * p-lang.c (pascal_language_defn): Update.
9695 * opencl-lang.c (opencl_language_defn): Update.
9696 * objc-lang.c (objc_language_defn): Update.
9697 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9698 * m2-lang.h (m2_val_print): Don't declare.
9699 * m2-lang.c (m2_language_defn): Update.
9700 * language.h (struct language_defn) <la_val_print>: Remove.
9701 * language.c (unk_lang_value_print_inner): Rename. Change
9702 argument types.
9703 (unknown_language_defn, auto_language_defn): Update.
9704 * go-valprint.c (go_val_print): Remove.
9705 * go-lang.h (go_val_print): Don't declare.
9706 * go-lang.c (go_language_defn): Update.
9707 * f-valprint.c (f_val_print): Remove.
9708 * f-lang.h (f_value_print): Don't declare.
9709 * f-lang.c (f_language_defn): Update.
9710 * d-valprint.c (d_val_print): Remove.
9711 * d-lang.h (d_value_print): Don't declare.
9712 * d-lang.c (d_language_defn): Update.
9713 * cp-valprint.c (cp_print_value_fields)
9714 (cp_print_value_fields_rtti, cp_print_value): Remove.
9715 (cp_print_static_field): Update.
9716 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9717 (c_val_print_struct, c_val_print_union, c_val_print_int)
9718 (c_val_print_memberptr, c_val_print): Remove.
9719 * c-lang.h (c_val_print_array, cp_print_value_fields)
9720 (cp_print_value_fields_rtti): Don't declare.
9721 * c-lang.c (c_language_defn, cplus_language_defn)
9722 (asm_language_defn, minimal_language_defn): Update.
9723 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9724 (ada_val_print_enum): Take a struct value.
9725 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9726 (ada_val_print): Remove.
9727 (ada_value_print_1): Update.
9728 (printable_val_type): Remove.
9729 * ada-lang.h (ada_val_print): Don't declare.
9730 * ada-lang.c (ada_language_defn): Update.
9731
42331a1e
TT
97322020-03-13 Tom Tromey <tom@tromey.com>
9733
9734 * valprint.c (do_val_print): Update.
9735 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9736 a struct value.
9737 (value_to_value_object_no_release): Declare.
9738 * python/py-value.c (value_to_value_object_no_release): New
9739 function.
9740 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9741 struct value.
9742 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9743 function.
9744 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9745 a struct value.
9746 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9747 Declare.
9748 (gdbscm_apply_val_pretty_printer): Take a struct value.
9749 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9750 value.
9751 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9752 value.
9753 * extension-priv.h (struct extension_language_ops)
9754 <apply_val_pretty_printer>: Take a struct value.
9755 * cp-valprint.c (cp_print_value): Create a struct value.
9756 (cp_print_value): Update.
9757
3a916a97
TT
97582020-03-13 Tom Tromey <tom@tromey.com>
9759
9760 * ada-valprint.c (print_field_values): Call common_val_print.
9761
b59eac37
TT
97622020-03-13 Tom Tromey <tom@tromey.com>
9763
9764 * ada-valprint.c (val_print_packed_array_elements): Remove
9765 bitoffset and val parameters. Call common_val_print.
9766 (ada_val_print_string): Remove offset, address, and original_value
9767 parameters.
9768 (ada_val_print_array): Update.
9769 (ada_value_print_array): New function.
9770 (ada_value_print_1): Call it.
9771
03371129
TT
97722020-03-13 Tom Tromey <tom@tromey.com>
9773
9774 * ada-valprint.c (ada_value_print): Use common_val_print.
9775
2e088f8b
TT
97762020-03-13 Tom Tromey <tom@tromey.com>
9777
9778 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9779
39ef85a8
TT
97802020-03-13 Tom Tromey <tom@tromey.com>
9781
9782 * ada-valprint.c (ada_value_print_num): New function.
9783 (ada_value_print_1): Use it.
9784
b9fa6e07
TT
97852020-03-13 Tom Tromey <tom@tromey.com>
9786
9787 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9788
416595d6
TT
97892020-03-13 Tom Tromey <tom@tromey.com>
9790
9791 * ada-valprint.c (ada_value_print_ptr): New function.
9792 (ada_value_print_1): Use it.
9793
5b5e15ec
TT
97942020-03-13 Tom Tromey <tom@tromey.com>
9795
9796 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9797 call common_val_print.
9798 (ada_val_print_1): Update.
9799 (ada_value_print_1): New function.
9800 (ada_value_print_inner): Rewrite.
9801
fbf54e75
TT
98022020-03-13 Tom Tromey <tom@tromey.com>
9803
9804 * cp-valprint.c (cp_print_value_fields): Update.
9805 (cp_print_value): New function.
9806
64b653ca
TT
98072020-03-13 Tom Tromey <tom@tromey.com>
9808
9809 * m2-valprint.c (m2_value_print_inner): Use
9810 cp_print_value_fields.
9811 * cp-valprint.c (cp_print_value_fields): New function.
9812 * c-valprint.c (c_value_print_struct): New function.
9813 (c_value_print_inner): Use c_value_print_struct.
9814 * c-lang.h (cp_print_value_fields): Declare.
9815
6999f067
TT
98162020-03-13 Tom Tromey <tom@tromey.com>
9817
9818 * c-valprint.c (c_value_print_array): New function.
9819 (c_value_print_inner): Use it.
9820
ce80b8bd
TT
98212020-03-13 Tom Tromey <tom@tromey.com>
9822
9823 * c-valprint.c (c_value_print_memberptr): New function.
9824 (c_value_print_inner): Use it.
9825
2faac269
TT
98262020-03-13 Tom Tromey <tom@tromey.com>
9827
9828 * c-valprint.c (c_value_print_int): New function.
9829 (c_value_print_inner): Use it.
9830
da3e2c29
TT
98312020-03-13 Tom Tromey <tom@tromey.com>
9832
9833 * c-valprint.c (c_value_print_ptr): New function.
9834 (c_value_print_inner): Use it.
9835
50836231
TT
98362020-03-13 Tom Tromey <tom@tromey.com>
9837
9838 * c-valprint.c (c_value_print_inner): Rewrite.
9839
4f412b6e
TT
98402020-03-13 Tom Tromey <tom@tromey.com>
9841
9842 * valprint.c (generic_value_print_complex): New function.
9843 (generic_value_print): Use it.
9844
f5354008
TT
98452020-03-13 Tom Tromey <tom@tromey.com>
9846
9847 * valprint.c (generic_val_print_float): Don't call
9848 val_print_scalar_formatted.
9849 (generic_val_print, generic_value_print): Update.
9850
3eec3b05
TT
98512020-03-13 Tom Tromey <tom@tromey.com>
9852
9853 * valprint.c (generic_value_print_char): New function
9854 (generic_value_print): Use it.
9855
fdddfccb
TT
98562020-03-13 Tom Tromey <tom@tromey.com>
9857
9858 * valprint.c (generic_value_print_int): New function.
9859 (generic_value_print): Use it.
9860
6dde7521
TT
98612020-03-13 Tom Tromey <tom@tromey.com>
9862
9863 * valprint.c (generic_value_print_bool): New function.
9864 (generic_value_print): Use it.
9865
4112d2e6
TT
98662020-03-13 Tom Tromey <tom@tromey.com>
9867
9868 * valprint.c (generic_val_print_func): Simplify.
9869 (generic_val_print, generic_value_print): Update.
9870
65786af6
TT
98712020-03-13 Tom Tromey <tom@tromey.com>
9872
9873 * valprint.c (generic_val_print_flags): Remove.
9874 (generic_val_print, generic_value_print): Update.
9875 (val_print_type_code_flags): Add original_value parameter.
9876
40f3ce18
TT
98772020-03-13 Tom Tromey <tom@tromey.com>
9878
9879 * valprint.c (generic_val_print): Update.
9880 (generic_value_print): Update.
9881 * valprint.c (generic_val_print_enum): Don't call
9882 val_print_scalar_formatted.
9883
2a5b130b
TT
98842020-03-13 Tom Tromey <tom@tromey.com>
9885
9886 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9887 * valprint.c (generic_value_print_ptr): New function.
9888
abc66ce9
TT
98892020-03-13 Tom Tromey <tom@tromey.com>
9890
9891 * valprint.c (generic_value_print): Rewrite.
9892
07a32858
TT
98932020-03-13 Tom Tromey <tom@tromey.com>
9894
9895 * p-valprint.c (pascal_object_print_value_fields)
9896 (pascal_object_print_value): New functions.
9897
64d64d3a
TT
98982020-03-13 Tom Tromey <tom@tromey.com>
9899
9900 * p-valprint.c (pascal_value_print_inner): Rewrite.
9901
6a95a1f5
TT
99022020-03-13 Tom Tromey <tom@tromey.com>
9903
9904 * f-valprint.c (f_value_print_innner): Rewrite.
9905
59fcdac6
TT
99062020-03-13 Tom Tromey <tom@tromey.com>
9907
9908 * m2-valprint.c (m2_print_unbounded_array): New overload.
9909 (m2_print_unbounded_array): Update.
9910 (m2_print_array_contents): Take a struct value.
9911 (m2_value_print_inner): Rewrite.
9912
d133c3e1
TT
99132020-03-13 Tom Tromey <tom@tromey.com>
9914
9915 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9916 (d_value_print_inner): New function.
9917 * d-lang.h (d_value_print_inner): Declare.
9918 * d-lang.c (d_language_defn): Use d_value_print_inner.
9919
23b0f06b
TT
99202020-03-13 Tom Tromey <tom@tromey.com>
9921
9922 * go-valprint.c (go_value_print_inner): New function.
9923 * go-lang.h (go_value_print_inner): Declare.
9924 * go-lang.c (go_language_defn): Use go_value_print_inner.
9925
5f56f7cb
TT
99262020-03-13 Tom Tromey <tom@tromey.com>
9927
9928 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9929 API.
9930 (rust_val_print): Rewrite.
9931 (rust_value_print_inner): New function, from rust_val_print.
9932 (rust_language_defn): Use rust_value_print_inner.
9933
26792ee0
TT
99342020-03-13 Tom Tromey <tom@tromey.com>
9935
9936 * ada-valprint.c (ada_value_print_inner): New function.
9937 * ada-lang.h (ada_value_print_inner): Declare.
9938 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9939
24051bbe
TT
99402020-03-13 Tom Tromey <tom@tromey.com>
9941
9942 * f-valprint.c (f_value_print_innner): New function.
9943 * f-lang.h (f_value_print_innner): Declare.
9944 * f-lang.c (f_language_defn): Use f_value_print_innner.
9945
c0941be6
TT
99462020-03-13 Tom Tromey <tom@tromey.com>
9947
9948 * p-valprint.c (pascal_value_print_inner): New function.
9949 * p-lang.h (pascal_value_print_inner): Declare.
9950 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9951
62c4663d
TT
99522020-03-13 Tom Tromey <tom@tromey.com>
9953
9954 * m2-valprint.c (m2_value_print_inner): New function.
9955 * m2-lang.h (m2_value_print_inner): Declare.
9956 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9957
62182190
TT
99582020-03-13 Tom Tromey <tom@tromey.com>
9959
9960 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9961 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9962 * c-valprint.c (c_value_print_inner): New function.
9963 * c-lang.h (c_value_print_inner): Declare.
9964 * c-lang.c (c_language_defn, cplus_language_defn)
9965 (asm_language_defn, minimal_language_defn): Use
9966 c_value_print_inner.
9967
1e592a8a
TT
99682020-03-13 Tom Tromey <tom@tromey.com>
9969
9970 * p-valprint.c (pascal_object_print_value_fields): Now static.
9971 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9972
7fe471e9
TT
99732020-03-13 Tom Tromey <tom@tromey.com>
9974
9975 * c-valprint.c (c_val_print_array): Simplify.
9976
d121c6ce
TT
99772020-03-13 Tom Tromey <tom@tromey.com>
9978
9979 * valprint.c (value_print_array_elements): New function.
9980 * valprint.h (value_print_array_elements): Declare.
9981
4dba70ee
TT
99822020-03-13 Tom Tromey <tom@tromey.com>
9983
9984 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9985 * mips-tdep.c (mips_print_register): Use
9986 value_print_scalar_formatted.
9987
4f9ae810
TT
99882020-03-13 Tom Tromey <tom@tromey.com>
9989
9990 * valprint.h (value_print_scalar_formatted): Declare.
9991 * valprint.c (value_print_scalar_formatted): New function.
9992
156bfec9
TT
99932020-03-13 Tom Tromey <tom@tromey.com>
9994
9995 * valprint.h (generic_value_print): Declare.
9996 * valprint.c (generic_value_print): New function.
9997
2b4e573d
TT
99982020-03-13 Tom Tromey <tom@tromey.com>
9999
10000 * valprint.c (do_val_print): Call la_value_print_inner, if
10001 available.
10002 * rust-lang.c (rust_language_defn): Update.
10003 * p-lang.c (pascal_language_defn): Update.
10004 * opencl-lang.c (opencl_language_defn): Update.
10005 * objc-lang.c (objc_language_defn): Update.
10006 * m2-lang.c (m2_language_defn): Update.
10007 * language.h (struct language_defn) <la_value_print_inner>: New
10008 member.
10009 * language.c (unknown_language_defn, auto_language_defn): Update.
10010 * go-lang.c (go_language_defn): Update.
10011 * f-lang.c (f_language_defn): Update.
10012 * d-lang.c (d_language_defn): Update.
10013 * c-lang.c (c_language_defn, cplus_language_defn)
10014 (asm_language_defn, minimal_language_defn): Update.
10015 * ada-lang.c (ada_language_defn): Update.
10016
a1f6a07c
TT
100172020-03-13 Tom Tromey <tom@tromey.com>
10018
10019 * c-valprint.c (c_value_print): Use common_val_print.
10020
410cf315
TT
100212020-03-13 Tom Tromey <tom@tromey.com>
10022
10023 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10024
72a45c93
TT
100252020-03-13 Tom Tromey <tom@tromey.com>
10026
10027 * f-valprint.c (f77_print_array_1, f_val_print): Use
10028 common_val_print.
10029
040f66bd
TT
100302020-03-13 Tom Tromey <tom@tromey.com>
10031
10032 * riscv-tdep.c (riscv_print_one_register_info): Use
10033 common_val_print.
10034
a6e05a6c
TT
100352020-03-13 Tom Tromey <tom@tromey.com>
10036
10037 * mi/mi-main.c (output_register): Use common_val_print.
10038
3444c526
TT
100392020-03-13 Tom Tromey <tom@tromey.com>
10040
10041 * infcmd.c (default_print_one_register_info): Use
10042 common_val_print.
10043
c2a44efe
TT
100442020-03-13 Tom Tromey <tom@tromey.com>
10045
10046 * valprint.h (common_val_print_checked): Declare.
10047 * valprint.c (common_val_print_checked): New function.
10048 * stack.c (print_frame_arg): Use common_val_print_checked.
10049
b0c26e99
TT
100502020-03-13 Tom Tromey <tom@tromey.com>
10051
10052 * valprint.c (do_val_print): New function, from val_print.
10053 (val_print): Use do_val_print.
10054 (common_val_print): Use do_val_print.
10055
ce3acbe9
TT
100562020-03-13 Tom Tromey <tom@tromey.com>
10057
10058 * valprint.c (value_print): Use scoped_value_mark.
10059
96c7f873
TV
100602020-03-13 Tom de Vries <tdevries@suse.de>
10061
10062 PR symtab/25646
10063 * psymtab.c (partial_symtab::partial_symtab): Don't set
10064 globals_offset and statics_offset. Push element onto
10065 current_global_psymbols and current_static_psymbols stacks.
10066 (concat): New function.
10067 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10068 element from current_global_psymbols and current_static_psymbols
10069 stacks. Concat popped elements to global_psymbols and
10070 static_symbols.
10071 (add_psymbol_to_list): Use current_global_psymbols and
10072 current_static_psymbols stacks.
10073 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10074 current_static_psymbols fields.
10075
6ba0a321
CB
100762020-03-12 Christian Biesinger <cbiesinger@google.com>
10077
10078 * corelow.c (sniff_core_bfd): Remove.
10079 (class core_target) <m_core_vec>: Remove.
10080 (core_target::core_target): Update.
10081 (core_file_fns): Remove.
10082 (deprecated_add_core_fns): Remove.
10083 (default_core_sniffer): Remove.
10084 (sniff_core_bfd): Remove.
10085 (default_check_format): Remove.
10086 (gdb_check_format): Remove.
10087 (core_target_open): Update.
10088 (core_target::get_core_register_section): Update.
10089 (get_core_registers_cb): Update.
10090 (core_target::fetch_registers): Update.
10091 * gdbcore.h (struct core_fns): Remove.
10092 (deprecated_add_core_fns): Remove.
10093 (default_core_sniffer): Remove.
10094 (default_check_format): Remove.
10095
227031b2
TT
100962020-03-12 Tom Tromey <tom@tromey.com>
10097
10098 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10099 CORE_ADDR.
10100 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10101
53807e9f
TT
101022020-03-12 Tom Tromey <tom@tromey.com>
10103
10104 * remote.c (remote_target::download_tracepoint)
10105 (remote_target::enable_tracepoint)
10106 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10107 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10108 sprintf_vma.
10109
64f25102
TT
101102020-03-12 Tom Tromey <tom@tromey.com>
10111
10112 * symfile-mem.c: Update CORE_ADDR size assert.
10113
272cd5a3
SM
101142020-03-12 Simon Marchi <simon.marchi@efficios.com>
10115
10116 * selftest.m4: Move to gdbsupport/.
10117 * acinclude.m4: Update path to selftest.m4.
10118
74cd3f9d
SM
101192020-03-12 Simon Marchi <simon.marchi@efficios.com>
10120
10121 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10122 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10123 gdbarch-selfselftests.c and selftest-arch.c.
10124 (SUBDIR_UNITTESTS_OBS): Rename to...
10125 (SELFTESTS_OBS): ... this.
10126 (COMMON_SFILES): Remove disasm-selftests.c and
10127 gdbarch-selftests.c.
10128 * configure.ac: Don't add selftest-arch.{c,o} to
10129 CONFIG_{SRCS,OBS}.
10130 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10131 preprocessor conditions.
10132
db6878ac
SM
101332020-03-12 Simon Marchi <simon.marchi@efficios.com>
10134
10135 * configure.ac: Don't source bfd/development.sh.
10136 * selftest.m4: Modify comment.
10137 * configure: Re-generate.
10138
4d696a5c
SM
101392020-03-12 Simon Marchi <simon.marchi@efficios.com>
10140
10141 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10142 not "true" or "false".
10143 * configure: Re-generate.
10144
8dd8e1c7
CB
101452020-03-12 Christian Biesinger <cbiesinger@google.com>
10146
10147 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10148 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10149 renamed to arm_nbsd_supply_gregset.
10150 (fetch_register): Update to call arm_nbsd_supply_gregset.
10151 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10152 (arm_netbsd_nat_target::fetch_registers): Update.
10153 (fetch_elfcore_registers): Removed.
10154 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10155 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10156 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10157 not require NetBSD system headers.
10158 (arm_nbsd_regset): New struct.
10159 (arm_nbsd_iterate_over_regset_sections): New function.
10160 (arm_netbsd_init_abi_common): Updated to call
10161 set_gdbarch_iterate_over_regset_sections.
10162 * arm-nbsd-tdep.h: New file.
10163
dd69bf7a
KB
101642020-03-11 Kevin Buettner <kevinb@redhat.com>
10165
10166 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10167 recursion.
10168
a0761e34
SM
101692020-03-11 Simon Marchi <simon.marchi@efficios.com>
10170
10171 * configure: Re-generate.
10172
e7a82140
TT
101732020-03-11 Tom Tromey <tromey@adacore.com>
10174
10175 * ada-typeprint.c (print_choices): Fix comment.
10176
dcc050c8
AB
101772020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10178
10179 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10180 previous item in the list, when the list has no items.
10181
1c33af77
TV
101822020-03-11 Tom de Vries <tdevries@suse.de>
10183
10184 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10185 PROP_LOCLIST handling code.
10186
8c95582d
AB
101872020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10188
10189 * buildsym-legacy.c (record_line): Pass extra parameter to
10190 record_line.
10191 * buildsym.c (buildsym_compunit::record_line): Take an extra
10192 parameter, reduce duplication in the line table, and record the
10193 is_stmt flag in the line table.
10194 * buildsym.h (buildsym_compunit::record_line): Add extra
10195 parameter.
10196 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10197 non-statement lines.
10198 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10199 this to the symtab builder.
10200 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10201 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10202 through to dwarf_record_line_1.
10203 * infrun.c (process_event_stop_test): When stepping, don't stop at
10204 a non-statement instruction, and only refresh the step info when
10205 we land in the middle of a line's range. Also add an extra
10206 comment.
10207 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10208 field.
10209 * record-btrace.c (btrace_find_line_range): Only record lines
10210 marked as is-statement.
10211 * stack.c (frame_show_address): Show the frame address if we are
10212 in a non-statement sal.
10213 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10214 (maintenance_print_one_line_table): Print a header for the is_stmt
10215 column, and include is_stmt information in the output.
10216 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10217 preference to non-statements.
10218 (find_pcs_for_symtab_line): Prefer is-statement entries.
10219 (find_line_common): Likewise.
10220 * symtab.h (struct linetable_entry): Add is_stmt field.
10221 (struct symtab_and_line): Likewise.
10222 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10223 arranging the line table.
10224
e4003a34
TV
102252020-03-07 Tom de Vries <tdevries@suse.de>
10226
10227 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10228 DIE.
10229
e8932576
TT
102302020-03-07 Tom Tromey <tom@tromey.com>
10231
10232 * valops.c (value_literal_complex): Remove obsolete comment.
10233 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10234 comment.
10235
29734269
SM
102362020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10237
10238 * infrun.h: Forward-declare thread_info.
10239 (set_step_info): Add thread_info parameter, add doc.
10240 * infrun.c (set_step_info): Add thread_info parameter, move doc
10241 to header.
10242 * infrun.c (process_event_stop_test): Pass thread to
10243 set_step_info call.
10244 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10245 set_step_info.
10246 (prepare_one_step): Add thread_info parameter, pass it to
10247 set_step_frame and prepare_one_step (recursive) call.
10248 (step_1): Pass thread to prepare_one_step call.
10249 (step_command_fsm::should_stop): Pass thread to
10250 prepare_one_step.
10251 (until_next_fsm): Pass thread to set_step_frame call.
10252 (finish_command): Pass thread to set_step_info call.
10253
b7d64b29
HD
102542020-03-06 Hannes Domani <ssbssa@yahoo.de>
10255
10256 * windows-tdep.c (windows_solib_create_inferior_hook):
10257 Check if inferior is running.
10258
09f2921c
TV
102592020-03-06 Tom de Vries <tdevries@suse.de>
10260
10261 * NEWS: Fix "the the".
10262 * ctfread.c: Same.
10263
fd760e79
TV
102642020-03-06 Tom de Vries <tdevries@suse.de>
10265
10266 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10267
20ea4a60
AB
102682020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10269
10270 * .dir-locals.el: Add a comment referencing the other copies of
10271 this file.
10272
0afbabf0
JB
102732020-03-05 John Baldwin <jhb@FreeBSD.org>
10274
10275 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10276 psargs.
10277
842806cb
TBA
102782020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10279
10280 * .gitattributes: New file.
10281
be1e3d3e
TT
102822020-03-04 Tom Tromey <tom@tromey.com>
10283
10284 * symmisc.c (print_symbol_bcache_statistics)
10285 (print_objfile_statistics): Update.
10286 * symfile.c (allocate_symtab): Use intern.
10287 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10288 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10289 macro_cache>: Remove.
10290 <string_cache>: New member.
10291 (struct objfile) <intern>: New methods.
10292 * elfread.c (elf_symtab_read): Use intern.
10293 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10294 (dwarf2_compute_name, dwarf2_physname)
10295 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10296 names.
10297 (guess_partial_die_structure_name): Update.
10298 (partial_die_info::fixup): Intern name.
10299 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10300 name.
10301 (dwarf2_name): Intern name. Update.
10302 * buildsym.c (buildsym_compunit::get_macro_table): Use
10303 string_cache.
10304
4e7625fd
TT
103052020-03-04 Tom Tromey <tom@tromey.com>
10306
10307 * jit.c (bfd_open_from_target_memory): Make "target" const.
10308 * corefile.c (gnutarget): Now const.
10309 * gdbcore.h (gnutarget): Now const.
10310
46f9f931
HD
103112020-03-04 Hannes Domani <ssbssa@yahoo.de>
10312
10313 * NEWS: Mention support for WOW64 processes.
10314 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10315 (amd64_windows_segment_register_p): Remove static.
10316 (_initialize_amd64_windows_nat): Update.
10317 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10318 * i386-windows-nat.c (context_offset): Update.
10319 (i386_mappings): Rename and remove static.
10320 (i386_windows_segment_register_p): Remove static.
10321 (_initialize_i386_windows_nat): Update.
10322 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10323 (STATUS_WX86_SINGLE_STEP): New macro.
10324 (EnumProcessModulesEx): New macro.
10325 (Wow64SuspendThread): New macro.
10326 (Wow64GetThreadContext): New macro.
10327 (Wow64SetThreadContext): New macro.
10328 (Wow64GetThreadSelectorEntry): New macro.
10329 (windows_set_context_register_offsets): Add static.
10330 (windows_set_segment_register_p): Likewise.
10331 (windows_add_thread): Adapt for WOW64 processes.
10332 (windows_fetch_one_register): Likewise.
10333 (windows_nat_target::fetch_registers): Likewise.
10334 (windows_store_one_register): Likewise.
10335 (display_selector): Likewise.
10336 (display_selectors): Likewise.
10337 (handle_exception): Likewise.
10338 (windows_continue): Likewise.
10339 (windows_nat_target::resume): Likewise.
10340 (windows_add_all_dlls): Likewise.
10341 (do_initial_windows_stuff): Likewise.
10342 (windows_nat_target::attach): Likewise.
10343 (windows_get_exec_module_filename): Likewise.
10344 (windows_nat_target::create_inferior): Likewise.
10345 (windows_xfer_siginfo): Likewise.
10346 (_initialize_loadable): Initialize Wow64SuspendThread,
10347 Wow64GetThreadContext, Wow64SetThreadContext,
10348 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10349 * windows-nat.h (windows_set_context_register_offsets):
10350 Remove declaration.
10351 (windows_set_segment_register_p): Likewise.
10352 (i386_windows_segment_register_p): Add declaration.
10353 (amd64_windows_segment_register_p): Likewise.
10354
440cf44e
LM
103552020-03-04 Luis Machado <luis.machado@linaro.org>
10356
10357 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10358 in "info registers" for AArch64/ARM.
10359
10360 The change caused "info registers" to not print GPR's.
10361
10362 gdb/ChangeLog:
10363
10364 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10365
10366 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10367 when reg->group is empty and reggroup is not.
10368
1009d92f
TT
103692020-03-03 Tom Tromey <tromey@adacore.com>
10370
10371 * dwarf2/frame.c (struct dwarf2_frame_cache)
10372 <checked_tailcall_bottom, entry_cfa_sp_offset,
10373 entry_cfa_sp_offset_p>: Remove members.
10374 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10375 (dwarf2_frame_prev_register): Don't call
10376 dwarf2_tailcall_sniffer_first.
10377 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10378 * frame-unwind.c (add_unwinder): New fuction.
10379 (frame_unwind_init): Use it. Add tailcall unwinder.
10380
5e5d66b6
AB
103812020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10382 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10383
10384 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10385 value should be printed as true.
10386
584cf46d
HD
103872020-03-03 Hannes Domani <ssbssa@yahoo.de>
10388
10389 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10390 (windows_init_abi): Set and use windows_so_ops.
10391
7b973adc
SDJ
103922020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10393
10394 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10395 when verifying if dealing with a convenience variable.
10396
bb7b70ab
LM
103972020-03-03 Luis Machado <luis.machado@linaro.org>
10398
10399 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10400
9822cb57
SM
104012020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10402
10403 * infrun.c (gdbarch_supports_displaced_stepping): New.
10404 (use_displaced_stepping): Break up conditions in smaller pieces.
10405 Use gdbarch_supports_displaced_stepping.
10406 (displaced_step_prepare_throw): Use
10407 gdbarch_supports_displaced_stepping.
10408
63e163f2
AB
104092020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10410
10411 * NEWS: Mention new behaviour of the history filename.
10412 * top.c (write_history_p): Add comment.
10413 (show_write_history_p): Add header comment, give a different
10414 message when history writing is on, but the history filename is
10415 empty.
10416 (history_filename): Add comment.
10417 (history_filename_empty): New function.
10418 (show_history_filename): Add header comment, give a different
10419 message when the filename is empty.
10420 (init_history): Compare history_filename against nullptr, and only
10421 read history if the filename is not empty.
10422 (set_history_filename): Add header comment, and only make
10423 non-empty filenames absolute.
10424 (init_main): Make the filename argument to 'set history filename'
10425 optional.
10426
81b86b97
CB
104272020-03-02 Christian Biesinger <cbiesinger@google.com>
10428
10429 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10430 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10431 (fetch_fp_register): Update.
10432 (fetch_fp_regs): Update.
10433 (store_fp_register): Update.
10434 (store_fp_regs): Update.
10435 (arm_netbsd_nat_target::read_description): New function.
10436 (fetch_elfcore_registers): Update.
10437
24ed6739
AB
104382020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10439
10440 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10441 general_thread if the stop reply is missing a thread-id.
10442 (remote_target::process_stop_reply): Use the first non-exited
10443 thread if the target didn't pass a thread-id.
10444 * infrun.c (do_target_wait): Move call to
10445 switch_to_inferior_no_thread to ....
10446 (do_target_wait_1): ... here.
10447
a84bb2a0
JT
104482020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10449
10450 * debuginfod-support.c: Include defs.h first.
10451
658dadf0
TV
104522020-02-28 Tom de Vries <tdevries@suse.de>
10453
10454 * symfile.c (set_initial_language): Use default language for lookup.
10455
4ebe4877
SM
104562020-02-28 Simon Marchi <simon.marchi@efficios.com>
10457
10458 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10459 reader variable, pass `this` to read_cutu_die_from_dwo.
10460
e5da1139
AM
104612020-02-27 Aaron Merey <amerey@redhat.com>
10462
10463 * source.c (open_source_file): Check for nullptr when computing
10464 srcpath.
10465
317f7127
TT
104662020-02-27 Tom Tromey <tromey@adacore.com>
10467
10468 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10469 member.
10470 (dwarf2_add_field): Don't update nfields.
10471 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10472
3104d9ee
AB
104732020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10474
10475 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10476 abs.
10477
b83470bf
TT
104782020-02-26 Tom Tromey <tom@tromey.com>
10479
10480 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10481 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10482 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10483 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10484 per_cu_data.
10485
edfe0a0c
TT
104862020-02-26 Tom Tromey <tom@tromey.com>
10487
10488 * dwarf2/index-write.c (psym_index_map): Change type.
10489 (add_address_entry_worker, write_one_signatured_type)
10490 (recursively_count_psymbols, recursively_write_psymbols)
10491 (class debug_names, psyms_seen_size, write_gdbindex)
10492 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10493
0d79cdc4
AM
104942020-02-26 Aaron Merey <amerey@redhat.com>
10495
10496 * Makefile.in: Handle optional debuginfod support.
10497 * NEWS: Update.
10498 * README: Add --with-debuginfod summary.
10499 * config.in: Regenerate.
10500 * configure: Regenerate.
10501 * configure.ac: Handle optional debuginfod support.
10502 * debuginfod-support.c: debuginfod helper functions.
10503 * debuginfod-support.h: Ditto.
10504 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10505 summary.
10506 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10507 when a dwz file cannot be found.
10508 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10509 debuginfo file cannot be found.
10510 * source.c (open_source_file): Query debuginfod servers when a
10511 source file cannot be found.
10512 * top.c (print_gdb_configuration): Include
10513 --{with,without}-debuginfod in the output.
10514
b65ce565
JG
105152020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10516
10517 * thread.c (thr_try_catch_cmd): Print thread name.
10518
d4c9a4f8
SM
105192020-02-26 Simon Marchi <simon.marchi@efficios.com>
10520
10521 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10522 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10523 dwarf2_fetch_die_type_sect_off): Move to...
10524 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10525 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10526 dwarf2_fetch_die_type_sect_off): ... here.
10527 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10528 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10529 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10530
0dce4280
TV
105312020-02-26 Tom de Vries <tdevries@suse.de>
10532
10533 PR gdb/25603
10534 * symfile.c (set_initial_language): Exit-early if
10535 language_mode == language_mode_manual.
10536
450a1bfc
SM
105372020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10538
10539 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10540 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10541 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10542
9e80cfa1
AB
105432020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10544
10545 * gdbtypes.c (create_array_type_with_stride): Handle negative
10546 array strides.
10547 * valarith.c (value_subscripted_rvalue): Likewise.
10548
09624f1f
LM
105492020-02-25 Luis Machado <luis.machado@linaro.org>
10550
10551 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10552
8cb5117c
SM
105532020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10554
10555 * loc.h (dwarf2_get_die_type): Move to...
10556 * read.h (dwarf2_get_die_type): ... here.
10557 * read.c (dwarf2_get_die_type): Move doc to header.
10558
c325c44e
JB
105592020-02-25 Joel Brobecker <brobecker@adacore.com>
10560
10561 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10562 'gnulib/Makefile.in' to the list.
10563
4ac93832
TT
105642020-02-24 Tom Tromey <tom@tromey.com>
10565
10566 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10567 Remove.
10568 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10569 XOBNEWVEC.
10570
197400e8
TT
105712020-02-24 Tom Tromey <tom@tromey.com>
10572
10573 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10574 New method.
10575 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10576 (dw2_do_instantiate_symtab, dw2_get_file_names)
10577 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10578
76935768
TT
105792020-02-24 Tom Tromey <tom@tromey.com>
10580
10581 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10582 make_scoped_restore.
10583 (dwarf2_psymtab::read_symtab): Don't clear
10584 reading_partial_symbols.
10585
a88ef40d
TV
105862020-02-24 Tom de Vries <tdevries@suse.de>
10587
10588 PR gdb/25592
10589 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10590
c9af6521
TV
105912020-02-24 Tom de Vries <tdevries@suse.de>
10592
10593 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10594 commands layout next/prev/regs.
10595
5707a07a
TT
105962020-02-22 Tom Tromey <tom@tromey.com>
10597
10598 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10599 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10600
3b0fb49e
TT
106012020-02-22 Tom Tromey <tom@tromey.com>
10602
10603 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10604
283be8bf
TT
106052020-02-22 Tom Tromey <tom@tromey.com>
10606
10607 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10608 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10609 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10610 * tui/tui.c (_initialize_tui): Add usage text.
10611
ca793b96
TT
106122020-02-22 Tom Tromey <tom@tromey.com>
10613
10614 * tui/tui-win.c (tui_set_focus_command)
10615 (tui_set_win_height_command): Use error_no_arg.
10616 (_initialize_tui_win): Update help text.
10617 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10618
432b5c40
TT
106192020-02-22 Tom Tromey <tom@tromey.com>
10620
10621 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10622 * tui/tui-disasm.h (struct tui_disasm_window)
10623 <display_start_addr>: Declare.
10624 * tui/tui-source.h (struct tui_source_window)
10625 <display_start_addr>: Declare.
10626 * tui/tui-winsource.h (struct tui_source_window_base)
10627 <show_source_line, display_start_addr>: New methods.
10628 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10629 Rename and move to protected section.
10630 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10631 (tui_source_window_base::do_erase_source_content): Update.
10632 (tui_source_window_base::show_source_line): Now a method.
10633 (tui_source_window_base::show_source_content)
10634 (tui_source_window_base::tui_source_window_base)
10635 (tui_source_window_base::rerender)
10636 (tui_source_window_base::refill)
10637 (tui_source_window_base::do_scroll_horizontal)
10638 (tui_source_window_base::set_is_exec_point_at)
10639 (tui_source_window_base::update_breakpoint_info)
10640 (tui_source_window_base::update_exec_info): Update.
10641 * tui/tui-source.c (tui_source_window::set_contents)
10642 (tui_source_window::showing_source_p)
10643 (tui_source_window::do_scroll_vertical)
10644 (tui_source_window::location_matches_p)
10645 (tui_source_window::line_is_displayed): Update.
10646 (tui_source_window::display_start_addr): New method.
10647 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10648 (tui_disasm_window::do_scroll_vertical)
10649 (tui_disasm_window::location_matches_p): Update.
10650 (tui_disasm_window::display_start_addr): New method.
10651
01b1af32
TT
106522020-02-22 Tom Tromey <tom@tromey.com>
10653
10654 * NEWS: Add entry for gdb.register_window_type.
10655 * tui/tui-layout.h (window_factory): New typedef.
10656 (tui_register_window): Declare.
10657 * tui/tui-layout.c (saved_tui_windows): New global.
10658 (tui_apply_current_layout): Use it.
10659 (tui_register_window): New function.
10660 * python/python.c (do_start_initialization): Call
10661 gdbpy_initialize_tui.
10662 (python_GdbMethods): Add "register_window_type" function.
10663 * python/python-internal.h (gdbpy_register_tui_window)
10664 (gdbpy_initialize_tui): Declare.
10665 * python/py-tui.c: New file.
10666 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10667
fc96d20b
TT
106682020-02-22 Tom Tromey <tom@tromey.com>
10669
10670 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10671
935c78c0
TT
106722020-02-22 Tom Tromey <tom@tromey.com>
10673
10674 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10675 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10676 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10677 (tui_set_win_focus_to): Move from tui-win.c.
10678
0240c8f1
TT
106792020-02-22 Tom Tromey <tom@tromey.com>
10680
10681 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10682 functions.
10683 (known_window_types): New global.
10684 (tui_get_window_by_name): Reimplement.
10685 (initialize_known_windows): New function.
10686 (validate_window_name): Rewrite.
10687 (_initialize_tui_layout): Call initialize_known_windows.
10688
fdb01f0c
TT
106892020-02-22 Tom Tromey <tom@tromey.com>
10690
10691 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10692 Remove constants.
10693 * tui/tui-winsource.h (struct tui_source_window_base)
10694 <tui_source_window_base>: Remove parameter.
10695 * tui/tui-winsource.c
10696 (tui_source_window_base::tui_source_window_base): Remove
10697 parameter.
10698 (tui_source_window_base::refill): Update.
10699 * tui/tui-stack.h (struct tui_locator_window)
10700 <tui_locator_window>: Update.
10701 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10702 Default the constructor.
10703 * tui/tui-regs.h (struct tui_data_item_window)
10704 <tui_data_item_window>: Default the constructor.
10705 (struct tui_data_window) <tui_data_window>: Likewise.
10706 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10707 Default the constructor.
10708 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10709 Default the constructor.
10710 <type>: Remove.
10711 (struct tui_win_info) <tui_win_info>: Default the constructor.
10712 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10713 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10714 Default the constructor.
10715
865a5aec
TT
107162020-02-22 Tom Tromey <tom@tromey.com>
10717
10718 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10719 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10720 * tui/tui-win.c (tui_resize_all): Don't call
10721 tui_delete_invisible_windows.
10722 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10723 done.
10724 (tui_set_layout): Update.
10725 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10726 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10727 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10728
e098d18c
TT
107292020-02-22 Tom Tromey <tom@tromey.com>
10730
10731 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10732 correctly.
10733
eb9c8874
TT
107342020-02-22 Tom Tromey <tom@tromey.com>
10735
10736 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10737
7eed1a8e
TT
107382020-02-22 Tom Tromey <tom@tromey.com>
10739
10740 * tui/tui-winsource.h (struct tui_source_window_iterator)
10741 <inner_iterator>: New etytypedef.
10742 <tui_source_window_iterator>: Take "end" parameter.
10743 <tui_source_window_iterator>: Take iterator.
10744 <operator*, advance>: Update.
10745 <m_iter>: Change type.
10746 <m_end>: New field.
10747 (struct tui_source_windows) <begin, end>: Update.
10748 * tui/tui-layout.c (tui_windows): New global.
10749 (tui_apply_current_layout): Clear tui_windows.
10750 (tui_layout_window::apply): Update tui_windows.
10751 * tui/tui-data.h (tui_windows): Declare.
10752 (all_tui_windows): Now inline function.
10753 (class tui_window_iterator, struct all_tui_windows): Remove.
10754
7c043ba6
TT
107552020-02-22 Tom Tromey <tom@tromey.com>
10756
10757 PR tui/17850:
10758 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10759 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10760 "height" argument.
10761 (class tui_layout_window) <get_sizes>: Likewise.
10762 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10763 argument.
10764 <get_sizes>: Add "height" argument.
10765 <m_vertical>: New field.
10766 * tui/tui-layout.c (tui_layout_split::clone): Update.
10767 (tui_layout_split::get_sizes): Add "height" argument.
10768 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10769 (tui_new_layout_command): Parse "-horizontal".
10770 (_initialize_tui_layout): Update help string.
10771 (tui_layout_split::specification): Add "-horizontal" when needed.
10772 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10773 argument.
10774 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10775 New methods.
10776
6bc56648
TT
107772020-02-22 Tom Tromey <tom@tromey.com>
10778
10779 * tui/tui-layout.h (enum tui_adjust_result): New.
10780 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10781 (class tui_layout_window) <adjust_size>: Return
10782 tui_adjust_result. Rewrite.
10783 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10784 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10785
c22fef7e
TT
107862020-02-22 Tom Tromey <tom@tromey.com>
10787
10788 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10789 parameter and return types.
10790 (class tui_layout_base) <specification>: Add "depth".
10791 (class tui_layout_window) <specification>: Add "depth".
10792 (class tui_layout_split) <specification>: Add "depth".
10793 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10794 and return types.
10795 (tui_new_layout_command): Parse sub-layouts.
10796 (_initialize_tui_layout): Update help string.
10797 (tui_layout_window::specification): Add "depth".
10798 (add_layout_command): Update.
10799
ee325b61
TT
108002020-02-22 Tom Tromey <tom@tromey.com>
10801
10802 * NEWS: Add "tui new-layout" item.
10803 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10804 Add new-layout command to help text.
10805 (validate_window_name): New function.
10806 (tui_new_layout_command): New function.
10807 (_initialize_tui_layout): Register "new-layout".
10808 (tui_layout_window::specification): New method.
10809 (tui_layout_window::specification): New method.
10810 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10811 method.
10812 (class tui_layout_window) <specification>: New method.
10813 (class tui_layout_split) <specification>: New method.
10814
416eb92d
TT
108152020-02-22 Tom Tromey <tom@tromey.com>
10816
10817 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10818 * tui/tui-win.c (window_name_completer): Update comment.
10819 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10820 Declare method.
10821 (class tui_layout_window) <replace_window>: Likewise.
10822 (class tui_layout_split) <replace_window>: Likewise.
10823 (tui_set_layout): Don't declare.
10824 (tui_set_initial_layout): Declare function.
10825 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10826 (asm_regs_layout): New globals.
10827 (tui_current_layout, show_layout): Remove.
10828 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10829 (find_layout, tui_apply_layout): New function.
10830 (layout_completer): Remove.
10831 (tui_next_layout): Reimplement.
10832 (tui_next_layout_command): New function.
10833 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10834 (tui_regs_layout): Reimplement.
10835 (tui_regs_layout_command): New function.
10836 (extract_display_start_addr): Rewrite.
10837 (next_layout, prev_layout): Remove.
10838 (tui_layout_window::replace_window): New method.
10839 (tui_layout_split::replace_window): New method.
10840 (destroy_layout): New function.
10841 (layout_list): New global.
10842 (add_layout_command): New function.
10843 (initialize_layouts): Update.
10844 (tui_layout_command): New function.
10845 (_initialize_tui_layout): Install "layout" commands.
10846 * tui/tui-data.h (enum tui_layout_type): Remove.
10847 (tui_current_layout): Don't declare.
10848
0dbc2fc7
TT
108492020-02-22 Tom Tromey <tom@tromey.com>
10850
10851 * tui/tui-regs.c (tui_reg_layout): Remove.
10852 (tui_reg_command): Use tui_regs_layout.
10853 * tui/tui-layout.h (tui_reg_command): Declare.
10854 * tui/tui-layout.c (tui_reg_command): New function.
10855
5afe342e
TT
108562020-02-22 Tom Tromey <tom@tromey.com>
10857
10858 * tui/tui.c (tui_rl_delete_other_windows): Call
10859 tui_remove_some_windows.
10860 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10861 Declare method.
10862 (class tui_layout_window) <remove_windows>: New method.
10863 (class tui_layout_split) <remove_windows>: Declare.
10864 (tui_remove_some_windows): Declare.
10865 * tui/tui-layout.c (tui_remove_some_windows): New function.
10866 (tui_layout_split::remove_windows): New method.
10867
427326a8
TT
108682020-02-22 Tom Tromey <tom@tromey.com>
10869
10870 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10871 * tui/tui-layout.h (tui_next_layout): Declare.
10872 * tui/tui-layout.c (tui_next_layout): New function.
10873
3fe12b6d
TT
108742020-02-22 Tom Tromey <tom@tromey.com>
10875
10876 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10877 correct coordinates.
10878
59b8b5d2
TT
108792020-02-22 Tom Tromey <tom@tromey.com>
10880
10881 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10882 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10883 DATA_WIN case.
10884
2a3d458b
TT
108852020-02-22 Tom Tromey <tom@tromey.com>
10886
10887 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10888 TUI_DISASM_WIN, not tui_win_list.
10889
3f0cbb04
TT
108902020-02-22 Tom Tromey <tom@tromey.com>
10891
10892 * valprint.c (generic_val_print_enum_1)
10893 (val_print_type_code_flags): Style member names.
10894 * rust-lang.c (val_print_struct, rust_print_enum)
10895 (rust_print_struct_def, rust_internal_print_type): Style member
10896 names.
10897 * p-valprint.c (pascal_object_print_value_fields): Style member
10898 names. Only call fprintf_symbol_filtered for static members.
10899 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10900 * f-valprint.c (f_val_print): Style member names.
10901 * f-typeprint.c (f_type_print_base): Style member names.
10902 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10903 call fprintf_symbol_filtered for static members.
10904 (cp_print_class_member): Style member names.
10905 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10906 member names.
10907 * ada-valprint.c (ada_print_scalar): Style enum names.
10908 (ada_val_print_enum): Likewise.
10909 * ada-typeprint.c (print_enum_type): Style enum names.
10910
d4d947ae
TT
109112020-02-21 Tom Tromey <tom@tromey.com>
10912
10913 * psympriv.h (struct partial_symtab): Update comment.
10914
e94e944b
TT
109152020-02-21 Tom Tromey <tromey@adacore.com>
10916
10917 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10918 type is CORE_ADDR.
10919
1eb73179
TV
109202020-02-21 Tom de Vries <tdevries@suse.de>
10921
10922 PR gdb/25534
10923 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10924 if dependencies[i]->user != NULL.
10925
4f180d53
AT
109262020-02-21 Ali Tamur <tamur@google.com>
10927
10928 * dwarf2/read.c (dwarf2_name): Add null check.
10929
22b6cd70
TT
109302020-02-20 Tom Tromey <tom@tromey.com>
10931
10932 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10933 ">=", in binary search.
10934 (dwarf2_find_containing_comp_unit): New overload.
10935 (run_test): New self-test.
10936 (_initialize_dwarf2_read): Register new test.
10937
bd0cf5a6
NC
109382020-02-20 Nelson Chu <nelson.chu@sifive.com>
10939
10940 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10941 * riscv-tdep.h: Likewise.
10942 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10943 rv32-only CSR.
10944 * features/riscv/64bit-csr.xml: Regenerated.
10945
3f702acd
SDJ
109462020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10947 Tom Tromey <tom@tromey.com>
10948
10949 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10950 of 'fputc_unfiltered'.
10951 (putchar_unfiltered): Call 'fputc_unfiltered'.
10952 (fputc_unfiltered): Call 'fputs_unfiltered'.
10953
d13c7322
AB
109542020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10955
10956 * config.in: Regenerate.
10957 * configure: Regenerate.
10958 * configure.ac: Add --with-python-libdir option.
10959 * main.c: Use WITH_PYTHON_LIBDIR.
10960
869d8950
TT
109612020-02-19 Tom Tromey <tom@tromey.com>
10962
10963 * symtab.c (general_symbol_info::compute_and_set_names): Use
10964 obstack_strndup. Simplify call to symbol_set_demangled_name.
10965
298e9637
SM
109662020-02-19 Simon Marchi <simon.marchi@efficios.com>
10967
10968 * dwarf2/read.c (allocate_signatured_type_table,
10969 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10970 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10971 Remove objfile parameter, update all callers.
10972
08410482
DE
109732020-02-19 Doug Evans <dje@google.com>
10974
10975 PR rust/25535
10976 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10977 rust_enum_variant calculation.
10978
dfdeeca1
TT
109792020-02-19 Tom Tromey <tromey@adacore.com>
10980
10981 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10982
2ef5453b
TT
109832020-02-19 Tom Tromey <tromey@adacore.com>
10984
10985 * ada-lang.c (cache_symbol): Use obstack_strdup.
10986
9f1528a1
AB
109872020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10988
10989 * configure: Regenerate.
10990
d3c22fa8
TT
109912020-02-19 Tom Tromey <tromey@adacore.com>
10992
10993 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10994 NULL check.
10995
bf84f706
MR
109962020-02-19 Maciej W. Rozycki <macro@wdc.com>
10997
10998 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10999
d1c9b20f
AB
110002020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11001
11002 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11003 if GDBSERVER is not defined.
11004 (riscv_tdesc_cache): Likewise, also store const target_desc.
11005 (STATIC_IN_GDB): Define.
11006 (riscv_create_target_description): Update declaration with
11007 STATIC_IN_GDB.
11008 (riscv_lookup_target_description): New function, only define if
11009 GDBSERVER is not defined.
11010 * arch/riscv.h (riscv_create_target_description): Declare only
11011 when GDBSERVER is defined.
11012 (riscv_lookup_target_description): New declaration when GDBSERVER
11013 is not defined.
11014 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11015 (riscv_linux_read_features): ...this, and return
11016 riscv_gdbarch_features instead of target_desc.
11017 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11018 (riscv_linux_read_description): Rename to...
11019 (riscv_linux_read_features): ...this.
11020 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11021 Update to use riscv_gdbarch_features and
11022 riscv_lookup_target_description.
11023 * riscv-tdep.c (riscv_find_default_target_description): Use
11024 riscv_lookup_target_description instead of
11025 riscv_create_target_description.
11026
373d7ac0
SM
110272020-02-18 Simon Marchi <simon.marchi@efficios.com>
11028
11029 * valprint.c (generic_val_print_enum_1): When printing a flag
11030 enum with value 0 and there is no enumerator with value 0, print
11031 just "0" instead of "(unknown: 0x0)".
11032
b29a2df0
SM
110332020-02-18 Simon Marchi <simon.marchi@efficios.com>
11034
11035 * valprint.c (generic_val_print_enum_1): Print unknown part of
11036 flag enum in hex.
11037
6740f0cc
SM
110382020-02-18 Simon Marchi <simon.marchi@efficios.com>
11039
11040 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11041 flag enums to contain duplicate enumerators.
11042 * valprint.c (generic_val_print_enum_1): Update comment.
11043
edd45eb0
SM
110442020-02-18 Simon Marchi <simon.marchi@efficios.com>
11045
11046 * dwarf2/read.c: Include "count-one-bits.h".
11047 (update_enumeration_type_from_children): If an enumerator has
11048 multiple bits set, don't treat the enumeration as a "flag enum".
11049 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11050 of flag enums have 0 or 1 bit set.
11051
6d0cf446
BE
110522020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11053
11054 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11055 conversion.
11056 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11057 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11058 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11059 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11060 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11061
7001c1b7
SM
110622020-02-18 Simon Marchi <simon.marchi@efficios.com>
11063
11064 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11065
fdb61c6c
SM
110662020-02-14 Simon Marchi <simon.marchi@efficios.com>
11067
11068 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11069 displaced_step_closure_up.
11070 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11071 (struct displaced_step_closure_up):
11072 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11073 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11074 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11075 Likewise.
11076 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11077 * gdbarch.c, gdbarch.h: Re-generate.
11078 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11079 displaced_step_closure_up.
11080 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11081 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11082 * infrun.h (displaced_step_closure_up): New type alias.
11083 (struct displaced_step_inferior_state) <step_closure>: Change
11084 type to displaced_step_closure_up.
11085 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11086 displaced_step_closure_up.
11087 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11088
a4a38eb4
TT
110892020-02-14 Tom Tromey <tom@tromey.com>
11090
11091 * minidebug.c (gnu_debug_key): New global.
11092 (find_separate_debug_file_in_section): Use it.
11093
e8217e61
SM
110942020-02-14 Simon Marchi <simon.marchi@efficios.com>
11095
11096 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11097 std::unique_ptr.
11098 * gdbarch.c: Re-generate.
11099 * gdbarch.h: Re-generate.
11100 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11101 change.
11102 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11103 type to std::unique_ptr.
11104 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11105 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11106 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11107 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11108 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11109 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11110 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11111 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11112 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11113
d8d83535
SM
111142020-02-14 Simon Marchi <simon.marchi@efficios.com>
11115
11116 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11117 std::unique_ptr.
11118 (displaced_step_clear): Rename to...
11119 (displaced_step_reset): ... this. Just call displaced->reset ().
11120 (displaced_step_clear_cleanup): Rename to...
11121 (displaced_step_reset_cleanup): ... this.
11122 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11123 (displaced_step_fixup): Likewise.
11124 (resume_1): Likewise.
11125 (handle_inferior_event): Restore child's memory before calling
11126 displaced_step_fixup on the parent.
11127 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11128 to std::unique_ptr.
11129 <step_closure>: Change type to std::unique_ptr.
11130
5f661e03
SM
111312020-02-14 Simon Marchi <simon.marchi@efficios.com>
11132
11133 * arm-tdep.c: Include count-one-bits.h.
11134 (cleanup_block_store_pc): Use count_one_bits.
11135 (cleanup_block_load_pc): Use count_one_bits.
11136 (arm_copy_block_xfer): Use count_one_bits.
11137 (thumb2_copy_block_xfer): Use count_one_bits.
11138 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11139 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11140 (thumb_get_next_pcs_raw): Use count_one_bits.
11141 (arm_get_next_pcs_raw): Use count_one_bits_l.
11142 * arch/arm.c (bitcount): Remove.
11143 * arch/arm.h (bitcount): Remove.
11144
8084e579
TT
111452020-02-14 Tom Tromey <tromey@adacore.com>
11146
11147 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11148 Update.
11149 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11150 * dwarf2/loc.c (call_site_find_chain_1): Return
11151 unique_xmalloc_ptr.
11152 (call_site_find_chain): Likewise.
11153
258bf0ee
RB
111542020-02-14 Richard Biener <rguenther@suse.de>
11155
11156 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11157 on expression with division operators.
11158
f98a8458
AKS
111592020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11160
11161 * MAINTAINERS (Write After Approval): Adding myself.
11162
d1437c0e
TT
111632020-02-12 Tom Tromey <tom@tromey.com>
11164
11165 * event-loop.c (event_data, gdb_event, event_handler_func):
11166 Remove.
11167
3d4560f7
TT
111682020-02-12 Tom Tromey <tom@tromey.com>
11169
11170 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11171 (dwarf2_frame_objfile_data): Add comment.
11172 (find_comp_unit, set_comp_unit): New functions.
11173 (dwarf2_frame_find_fde): Use find_comp_unit.
11174 (dwarf2_build_frame_info): Use set_comp_unit.
11175
21982304
TT
111762020-02-12 Tom Tromey <tom@tromey.com>
11177
11178 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11179 (comp_unit): Don't initialize objfile.
11180 (execute_cfa_program): Add text_offset parameter.
11181 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11182 (dwarf2_frame_cache): Update.
11183 (dwarf2_build_frame_info): Don't set "objfile" member.
11184
4debb237
TT
111852020-02-12 Tom Tromey <tom@tromey.com>
11186
11187 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11188 (decode_frame_entry): Likewise.
11189 (dwarf2_build_frame_info): Update.
11190
0d404d44
TT
111912020-02-12 Tom Tromey <tom@tromey.com>
11192
11193 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11194 (decode_frame_entry_1): Use the comp_unit obstack.
11195
a7a3ae5c
TT
111962020-02-12 Tom Tromey <tom@tromey.com>
11197
11198 * dwarf2/frame.c (struct comp_unit): Add initializers and
11199 constructor.
11200 (dwarf2_frame_objfile_data): Store a comp_unit.
11201 (dwarf2_frame_find_fde): Update.
11202 (dwarf2_build_frame_info): Use "new".
11203
a9d65418
TT
112042020-02-12 Tom Tromey <tom@tromey.com>
11205
11206 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11207 (dwarf2_fde_table): Typedef for std::vector.
11208 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11209 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11210 (decode_frame_entry): Update.
11211 (dwarf2_build_frame_info): Use "new".
11212
7559c217
CB
112132020-02-12 Christian Biesinger <cbiesinger@google.com>
11214
11215 * arm-tdep.c (arm_gdbarch_init): Update.
11216 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11217 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11218 have_neon, is_m>: Change to bool.
11219
aeefc73c
CB
112202020-02-12 Christian Biesinger <cbiesinger@google.com>
11221
11222 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11223
d27b8e5f
TT
112242020-02-12 Tom Tromey <tom@tromey.com>
11225
11226 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11227
cd5900f3
HD
112282020-02-12 Hannes Domani <ssbssa@yahoo.de>
11229
11230 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11231 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11232
f056b22b
TT
112332020-02-11 Tom Tromey <tom@tromey.com>
11234
11235 * psymtab.h: Update comment.
11236
f92ff6b5
TT
112372020-02-11 Tom Tromey <tom@tromey.com>
11238
11239 * gdb_obstack.h (struct auto_obstack): Use
11240 DISABLE_COPY_AND_ASSIGN.
11241
3fd6912b
TT
112422020-02-11 Tom Tromey <tom@tromey.com>
11243
11244 * dwarf2/frame.h (struct objfile): Don't forward declare.
11245
69ed9b74
CB
112462020-02-11 Christian Biesinger <cbiesinger@google.com>
11247
11248 * cris-tdep.c (cris_supply_gregset): Change signature to match
11249 what struct regset expects.
11250 (cris_regset): New struct.
11251 (fetch_core_registers): Remove.
11252 (cris_iterate_over_regset_sections): New function.
11253 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11254 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11255
bda874f6
CB
112562020-02-11 Christian Biesinger <cbiesinger@google.com>
11257
11258 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11259 registers.
11260
754e1564
CB
112612020-02-11 Christian Biesinger <cbiesinger@google.com>
11262
11263 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11264
8ddd8e0e
SM
112652020-02-11 Simon Marchi <simon.marchi@efficios.com>
11266
11267 * configure: Re-generate.
11268
898e7f60
SM
112692020-02-11 Simon Marchi <simon.marchi@efficios.com>
11270
11271 * configure: Re-generate.
11272
58df732b
SM
112732020-02-11 Simon Marchi <simon.marchi@efficios.com>
11274
11275 * acinclude: Update warning.m4 path.
11276 * warning.m4: Move to gdbsupport.
11277
da5bd37e
TT
112782020-02-11 Tom Tromey <tromey@adacore.com>
11279
11280 * remote.c (remote_console_output): Update.
11281 * printcmd.c (printf_command): Update.
11282 * event-loop.c (gdb_wait_for_event): Update.
11283 * linux-nat.c (sigchld_handler): Update.
11284 * remote-sim.c (gdb_os_write_stdout): Update.
11285 (gdb_os_flush_stdout): Update.
11286 (gdb_os_flush_stderr): Update.
11287 (gdb_os_write_stderr): Update.
11288 * exceptions.c (print_exception): Update.
11289 * remote-fileio.c (remote_fileio_func_read): Update.
11290 (remote_fileio_func_write): Update.
11291 * tui/tui.c (tui_enable): Update.
11292 * tui/tui-interp.c (tui_interp::init): Update.
11293 * utils.c (init_page_info): Update.
11294 (putchar_unfiltered, fputc_unfiltered): Update.
11295 (gdb_flush): Update.
11296 (emit_style_escape): Update.
11297 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11298 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11299 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11300 (stderr_file::write): Update.
11301 (stderr_file::puts): Update.
11302 * ui-file.h (ui_file_isatty, ui_file_write)
11303 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11304 (ui_file_puts): Don't declare.
11305
85f0dd3c
TV
113062020-02-10 Tom de Vries <tdevries@suse.de>
11307
11308 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11309 sentinel to char *.
11310
2e927613
TV
113112020-02-09 Tom de Vries <tdevries@suse.de>
11312
11313 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11314 filename if it matches "<artificial>".
11315
6bafc845
HD
113162020-02-09 Hannes Domani <ssbssa@yahoo.de>
11317
11318 * windows-tdep.c (struct enum_value_name): New struct.
11319 (create_enum): New function.
11320 (windows_get_siginfo_type): Create and use enum types.
11321
7928d571
HD
113222020-02-09 Hannes Domani <ssbssa@yahoo.de>
11323
11324 * NEWS: Mention $_siginfo support for Windows.
11325 * windows-nat.c (handle_exception): Set siginfo_er.
11326 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11327 (windows_xfer_siginfo): New function.
11328 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11329 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11330 (init_windows_gdbarch_data): New function.
11331 (get_windows_gdbarch_data): New function.
11332 (windows_get_siginfo_type): New function.
11333 (windows_init_abi): Register windows_get_siginfo_type.
11334 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11335
6751ebae
TT
113362020-02-08 Tom Tromey <tom@tromey.com>
11337
11338 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11339 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11340 <keep>: Declare method.
11341 <m_keep>: Remove member.
11342 <~cutu_reader>: Remove.
11343 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11344 (cutu_reader::cutu_reader): Update.
11345 (cutu_reader::keep): Rename from ~cutu_reader.
11346 (process_psymtab_comp_unit, build_type_psymtabs_1)
11347 (process_skeletonless_type_unit, load_partial_comp_unit)
11348 (load_full_comp_unit, dwarf2_read_addr_index)
11349 (read_signatured_type): Update.
11350
135f5437
TT
113512020-02-08 Tom Tromey <tom@tromey.com>
11352
11353 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11354 "want_partial_unit" parameter.
11355 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11356 Inline check for DW_TAG_partial_unit.
11357 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11358
9f66ff1c
TT
113592020-02-08 Tom Tromey <tom@tromey.com>
11360
11361 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11362 read.c.
11363 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11364 read.c.
11365
c8a7a66f
TT
113662020-02-08 Tom Tromey <tom@tromey.com>
11367
11368 * dwarf2/read.c (read_address): Move to comp-unit.c.
11369 (dwarf2_rnglists_process, dwarf2_ranges_process)
11370 (read_attribute_value, dwarf_decode_lines_1)
11371 (var_decode_location, decode_locdesc): Update.
11372 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11373 read.c. Remove "cu" parameter.
11374 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11375 method.
11376
8266302d
TT
113772020-02-08 Tom Tromey <tom@tromey.com>
11378
11379 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11380 (read_indirect_line_string): Update.
11381 * dwarf2/comp-unit.c (read_offset): Remove.
11382 (read_comp_unit_head): Update.
11383 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11384 method.
11385 (read_offset): Don't declare.
11386
4057dfde
TT
113872020-02-08 Tom Tromey <tom@tromey.com>
11388
11389 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11390 * dwarf2/read.c (struct comp_unit_head): Move to
11391 dwarf2/comp-unit.h.
11392 (enum class rcuh_kind): Move to comp-unit.h.
11393 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11394 (read_comp_unit_head, error_check_comp_unit_head)
11395 (read_and_check_comp_unit_head): Move to comp-unit.c.
11396 (read_offset, dwarf_unit_type_name): Likewise.
11397 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11398 (cutu_reader::cutu_reader, read_call_site_scope)
11399 (find_partial_die, follow_die_offset): Update.
11400 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11401
24aa364d
TT
114022020-02-08 Tom Tromey <tom@tromey.com>
11403
11404 * dwarf2/read.c (read_offset_1): Move to leb.c.
11405 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11406 (dwarf_decode_macro_bytes): Update.
11407 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11408 * dwarf2/leb.h (read_offset): Declare.
11409
2c7d5afc
TT
114102020-02-08 Tom Tromey <tom@tromey.com>
11411
11412 * dwarf2/read.c (dwarf2_section_size): Remove.
11413 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11414 Update.
11415 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11416
4075cb26
TT
114172020-02-08 Tom Tromey <tom@tromey.com>
11418
11419 * dwarf2/read.c (read_initial_length): Move to leb.c.
11420 * dwarf2/leb.h (read_initial_length): Declare.
11421 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11422 handle_nonstd parameter.
11423 * dwarf2/frame.c (read_initial_length): Remove.
11424 (decode_frame_entry_1): Update.
11425
09ba997f
TT
114262020-02-08 Tom Tromey <tom@tromey.com>
11427
11428 * dwarf2/loc.c (dwarf2_find_location_expression)
11429 (dwarf_evaluate_loc_desc::get_tls_address)
11430 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11431 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11432 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11433 (dwarf2_compile_property_to_c)
11434 (dwarf2_loc_desc_get_symbol_read_needs)
11435 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11436 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11437 (loclist_describe_location, loclist_tracepoint_var_ref)
11438 (loclist_generate_c_location): Update.
11439 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11440 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11441 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11442 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11443 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11444 (dwarf2_per_cu_data::addr_size)
11445 (dwarf2_per_cu_data::ref_addr_size)
11446 (dwarf2_per_cu_data::text_offset)
11447 (dwarf2_per_cu_data::addr_type): Now methods.
11448 (per_cu_header_read_in): Make per_cu "const".
11449 (dwarf2_version): Remove.
11450 (dwarf2_per_cu_data::int_type): Now a method.
11451 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11452 (set_die_type, read_array_type, read_subrange_index_type)
11453 (read_tag_string_type, read_subrange_type): Update.
11454 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11455 offset_size, ref_addr_size, text_offset, addr_type, version,
11456 objfile, int_type, addr_sized_int_type>: Declare methods.
11457
96c738c0
TT
114582020-02-08 Tom Tromey <tom@tromey.com>
11459
11460 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11461 Move earlier.
11462
8fdd972c
TT
114632020-02-08 Tom Tromey <tom@tromey.com>
11464
11465 * dwarf2/read.h (dwarf_line_debug): Declare.
11466 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11467 * dwarf2/read.c: Move line_header code to new files.
11468 (dwarf_line_debug): No longer static.
11469 * dwarf2/line-header.c: New file.
11470 * dwarf2/line-header.h: New file.
11471
03075812
TT
114722020-02-08 Tom Tromey <tom@tromey.com>
11473
11474 * dwarf2/read.c (struct line_header) <file_full_name,
11475 file_file_name>: Return unique_xmalloc_ptr.
11476 (line_header::file_file_name): Update.
11477 (line_header::file_full_name): Update.
11478 (dw2_get_file_names_reader): Update.
11479 (macro_start_file): Update.
11480
bb822404
TT
114812020-02-08 Tom Tromey <tom@tromey.com>
11482
11483 * dwarf2/read.c (struct line_header) <file_full_name,
11484 file_file_name>: Declare methods.
11485 (dw2_get_file_names_reader): Update.
11486 (file_file_name): Now a method.
11487 (file_full_name): Likewise.
11488 (macro_start_file): Update.
11489
009b64fc
TT
114902020-02-08 Tom Tromey <tom@tromey.com>
11491
11492 * dwarf2/read.c (dwarf_always_disassemble)
11493 (show_dwarf_always_disassemble): Move to loc.c.
11494 (_initialize_dwarf2_read): Move "always-disassemble" registration
11495 to loc.c.
11496 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11497 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11498 static.
11499 (show_dwarf_always_disassemble): Move from read.c.
11500 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11501
5895093f
TT
115022020-02-08 Tom Tromey <tom@tromey.com>
11503
11504 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11505 (create_quick_file_names_table): Return htab_up.
11506 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11507 Update.
11508 * dwarf2/read.h (struct dwarf2_per_objfile)
11509 <quick_file_names_table>: Now htab_up.
11510
b3b32279
TT
115112020-02-08 Tom Tromey <tom@tromey.com>
11512
11513 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11514
1d33d811
TT
115152020-02-08 Tom Tromey <tom@tromey.com>
11516
11517 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11518 Rewrite.
11519 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11520 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11521 (abbrev_table::abbrev_table): No longer inline.
11522 (ABBREV_HASH_SIZE): Remove.
11523 (abbrev_table::m_abbrevs): Now an htab_up.
11524
86de1d91
TT
115252020-02-08 Tom Tromey <tom@tromey.com>
11526
11527 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11528 (cutu_reader): Update.
11529 (build_type_psymtabs_1): Update.
11530 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11531 (abbrev_table::alloc_abbrev): Update.
11532 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11533 (abbrev_table::read): New static method, renamed from
11534 abbrev_table_read_table.
11535 (abbrev_table::alloc_abbrev)
11536 (abbrev_table::add_abbrev): Now private.
11537 (abbrev_table::abbrev_table): Now private.
11538 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11539
0335378b
TT
115402020-02-08 Tom Tromey <tom@tromey.com>
11541
11542 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11543 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11544 htab_up.
11545
48b490f2
TT
115462020-02-08 Tom Tromey <tom@tromey.com>
11547
11548 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11549 htab_up.
11550 (lookup_dwo_unit_in_dwp): Update.
11551 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11552 on obstack.
11553
bc68fb19
TT
115542020-02-08 Tom Tromey <tom@tromey.com>
11555
11556 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11557 obstack.
11558
d15acc42
TT
115592020-02-08 Tom Tromey <tom@tromey.com>
11560
11561 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11562 line_header_hash.
11563 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11564 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11565 Change type to htab_up.
11566
eaa5fa8b
TT
115672020-02-08 Tom Tromey <tom@tromey.com>
11568
11569 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11570 htab_up. Don't allocate on obstack.
11571 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11572 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11573 Change type to htab_up.
11574
b0b6a987
TT
115752020-02-08 Tom Tromey <tom@tromey.com>
11576
11577 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11578 Change type to htab_up.
11579 * dwarf2/read.c (create_signatured_type_table_from_index)
11580 (create_signatured_type_table_from_debug_names)
11581 (create_all_type_units, add_type_unit)
11582 (lookup_dwo_signatured_type, lookup_signatured_type)
11583 (process_skeletonless_type_unit): Update.
11584 (create_debug_type_hash_table, create_debug_types_hash_table):
11585 Change type of types_htab.
11586 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11587 htab_up. Don't allocate on obstack.
11588 (create_cus_hash_table): Change type of cus_htab parameter.
11589 (struct dwo_file) <cus, tus>: Now htab_up.
11590 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11591 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11592 (queue_and_load_all_dwo_tus): Update.
11593 * dwarf2/index-write.c (write_gdbindex): Update.
11594 (write_debug_names): Update.
11595
39856def
TT
115962020-02-08 Tom Tromey <tom@tromey.com>
11597
11598 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11599 dwarf2/read.c. Remove "next" member. Add constructor ntad
11600 destructor.
11601 (struct dwarf2_per_objfile) <queue>: New member.
11602 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11603 dwarf2/read.h.
11604 (dwarf2_queue, dwarf2_queue_tail): Remove.
11605 (class dwarf2_queue_guard): Add parameter to constructor. Use
11606 DISABLE_COPY_AND_ASSIGN.
11607 <m_per_objfile>: New member.
11608 <~dwarf2_queue_guard>: Rewrite.
11609 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11610 Update.
11611 (~dwarf2_queue_item): New.
11612
3e225074
TT
116132020-02-08 Tom Tromey <tom@tromey.com>
11614
11615 * dwarf2/read.c (struct die_info) <has_children>: New member.
11616 (dw2_get_file_names_reader): Remove has_children.
11617 (dw2_get_file_names): Update.
11618 (read_cutu_die_from_dwo): Remove has_children.
11619 (cutu_reader::init_tu_and_read_dwo_dies)
11620 (cutu_reader::cutu_reader): Update.
11621 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11622 Remove has_children.
11623 (build_type_psymtabs_1, process_skeletonless_type_unit)
11624 (load_partial_comp_unit, load_full_comp_unit): Update.
11625 (create_dwo_cu_reader): Remove has_children.
11626 (create_cus_hash_table, read_die_and_children): Update.
11627 (read_full_die_1,read_full_die): Remove has_children.
11628 (read_signatured_type): Update.
11629 (class cutu_reader) <has_children>: Remove.
11630
82ca8957
TT
116312020-02-08 Tom Tromey <tom@tromey.com>
11632
11633 * dwarf2/expr.c: Rename from dwarf2expr.c.
11634 * dwarf2/expr.h: Rename from dwarf2expr.h.
11635 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11636 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11637 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11638 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11639 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11640 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11641 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11642 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11643 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11644 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11645 * dwarf2/loc.c: Rename from dwarf2loc.c.
11646 * dwarf2/loc.h: Rename from dwarf2loc.h.
11647 * dwarf2/read.c: Rename from dwarf2read.c.
11648 * dwarf2/read.h: Rename from dwarf2read.h.
11649 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11650 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11651 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11652 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11653 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11654 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11655 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11656 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11657 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11658 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11659 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11660 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11661 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11662 Update.
11663 * Makefile.in (COMMON_SFILES): Update.
11664 (HFILES_NO_SRCDIR): Update.
11665
9e35d499
TT
116662020-02-08 Tom Tromey <tom@tromey.com>
11667
11668 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11669 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11670
1eba2311
TT
116712020-02-08 Tom Tromey <tom@tromey.com>
11672
11673 * dwarf2read.h (struct die_info): Don't declare.
11674
e41c2da2
TT
116752020-02-08 Tom Tromey <tom@tromey.com>
11676
11677 * dwarf2read.h (die_info_ptr): Remove typedef.
11678
4fc6c0d5
TT
116792020-02-08 Tom Tromey <tom@tromey.com>
11680
11681 * dwarf2read.c (read_call_site_scope)
11682 (handle_data_member_location, dwarf2_add_member_fn)
11683 (mark_common_block_symbol_computed, read_common_block)
11684 (attr_to_dynamic_prop, partial_die_info::read)
11685 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11686 (dwarf2_symbol_mark_computed, set_die_type): Update.
11687 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11688 method.
11689 (attr_form_is_block): Don't declare.
11690 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11691
cd6c91b4
TT
116922020-02-08 Tom Tromey <tom@tromey.com>
11693
11694 * dwarf2read.c (dwarf2_find_base_address, )
11695 (read_call_site_scope, rust_containing_type)
11696 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11697 (handle_data_member_location, dwarf2_add_member_fn)
11698 (get_alignment, read_structure_type, process_structure_scope)
11699 (mark_common_block_symbol_computed, read_common_block)
11700 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11701 (partial_die_info::read, read_attribute_value, new_symbol)
11702 (lookup_die_type, dwarf2_get_ref_die_offset)
11703 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11704 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11705 (dwarf2_symbol_mark_computed): Update.
11706 * dwarf2/attribute.h (struct attribute) <value_as_address,
11707 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11708 methods.
11709 (value_as_address, attr_form_is_section_offset)
11710 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11711 * dwarf2/attribute.c (attribute::value_as_address)
11712 (attribute::form_is_section_offset, attribute::form_is_constant)
11713 (attribute::form_is_ref): Now methods.
11714
162dce55
TT
117152020-02-08 Tom Tromey <tom@tromey.com>
11716
11717 * dwarf2read.c (struct attribute, DW_STRING)
11718 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11719 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11720 (attr_form_is_block, attr_form_is_section_offset)
11721 (attr_form_is_constant, attr_form_is_ref): Move.
11722 * dwarf2/attribute.h: New file.
11723 * dwarf2/attribute.c: New file, from dwarf2read.c.
11724 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11725
3054dd54
TT
117262020-02-08 Tom Tromey <tom@tromey.com>
11727
11728 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11729 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11730 Move.
11731 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11732 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11733 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11734 abbrev.c.
11735 * dwarf2/abbrev.h: New file.
11736 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11737 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11738
96b79293
TT
117392020-02-08 Tom Tromey <tom@tromey.com>
11740
11741 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11742 (dwarf2_section_size, dwarf2_get_section_info)
11743 (create_signatured_type_table_from_debug_names)
11744 (create_addrmap_from_aranges, read_debug_names_from_section)
11745 (get_gdb_index_contents_from_section, read_comp_unit_head)
11746 (error_check_comp_unit_head, read_abbrev_offset)
11747 (create_debug_type_hash_table, init_cu_die_reader)
11748 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11749 (read_comp_units_from_section, create_cus_hash_table)
11750 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11751 (create_dwp_v2_section, dwarf2_rnglists_process)
11752 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11753 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11754 (read_indirect_string_from_dwz, read_addr_index_1)
11755 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11756 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11757 (fill_in_loclist_baton): Update.
11758 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11759 get_containing_section, get_bfd_owner, get_bfd_section,
11760 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11761 (dwarf2_read_section, get_section_name, get_section_file_name)
11762 (get_containing_section, get_section_bfd_owner)
11763 (get_section_bfd_section, get_section_name, get_section_file_name)
11764 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11765 declare.
11766 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11767 (dwarf2_section_info::get_bfd_owner)
11768 (dwarf2_section_info::get_bfd_section)
11769 (dwarf2_section_info::get_name)
11770 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11771 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11772 (dwarf2_section_info::read): Now methods.
11773 * dwarf-index-write.c (class debug_names): Update.
11774
2c86cff9
TT
117752020-02-08 Tom Tromey <tom@tromey.com>
11776
11777 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11778 Move to dwarf2/section.h.
11779 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11780 (get_section_bfd_section, get_section_name)
11781 (get_section_file_name, get_section_id, get_section_flags)
11782 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11783 dwarf2/section.c.
11784 * dwarf2/section.h: New file.
11785 * dwarf2/section.c: New file, from dwarf2read.c.
11786 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11787
f4382c45
TT
117882020-02-08 Tom Tromey <tom@tromey.com>
11789
11790 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11791 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11792 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11793 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11794 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11795 * dwarf2/leb.h: New file, from dwarf2read.c.
11796 * dwarf2/leb.c: New file, from dwarf2read.c.
11797 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11798 Remove.
11799 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11800 (COMMON_SFILES): Add dwarf2/leb.c.
11801
01840b7a
JB
118022020-02-08 Joel Brobecker <brobecker@adacore.com>
11803
11804 GDB 9.1 released.
11805
dfcb27e4
IB
118062020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11807
11808 PR gdb/25190:
aac66a4c
SM
11809 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11810 * gdb/remote.c (remote_console_output): Update.
11811 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11812 (ui_file_puts): ...this.
11813 * gdb/ui-file.h (ui_file_puts): Add declaration.
11814 * gdb/utils.c (emit_style_escape): Update.
11815 (flush_wrap_buffer): Update.
11816 (fputs_maybe_filtered): Update.
11817 (fputs_unfiltered): Add function.
dfcb27e4 11818
faa17681
IB
118192020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11820
aac66a4c
SM
11821 * gdb/event-loop.c (gdb_wait_for_event): Update.
11822 * gdb/printcmd.c (printf_command): Update.
11823 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11824 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11825 (gdb_os_flush_stderr): Update.
11826 * gdb/remote.c (remote_console_output): Update.
11827 * gdb/ui-file.c (gdb_flush): Rename to...
11828 (ui_file_flush): ...this.
11829 (stderr_file::write): Update.
11830 (stderr_file::puts): Update.
11831 * gdb/ui-file.h (gdb_flush): Rename to...
11832 (ui_file_flush): ...this.
11833 * gdb/utils.c (gdb_flush): Add function.
11834 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 11835
5abbbe1d
TT
118362020-02-07 Tom Tromey <tromey@adacore.com>
11837
11838 PR breakpoints/24915:
11839 * source.c (find_and_open_source): Do not check basenames_may_differ.
11840
919adfe8
TT
118412020-02-07 Tom Tromey <tom@tromey.com>
11842
11843 * README: Update gdbserver documentation.
11844 * gdbserver: Move to top level.
11845 * configure.tgt (build_gdbserver): Remove.
11846 * configure.ac: Remove --enable-gdbserver.
11847 * configure: Rebuild.
11848 * Makefile.in (distclean): Don't mention gdbserver.
11849
1d5d29e7
SV
118502020-02-06 Shahab Vahedi <shahab@synopsys.com>
11851
11852 * source-cache.c (source_cache::ensure): Surround
11853 get_plain_source_lines with a try/catch.
11854 (source_cache::get_line_charpos): Get rid of try/catch
11855 and only check for the return value of "ensure".
11856 * tui/tui-source.c (tui_source_window::set_contents):
11857 Simplify "nlines" calculation.
11858
6eb1129c
SV
118592020-02-06 Shahab Vahedi <shahab@synopsys.com>
11860
11861 * MAINTAINERS (Write After Approval): Add myself.
11862
c6a42d11
CB
118632020-02-05 Christian Biesinger <cbiesinger@google.com>
11864
11865 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11866 function call.
11867
c8ecdda6
CB
118682020-02-05 Christian Biesinger <cbiesinger@google.com>
11869
11870 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11871
f6480e70
MR
118722020-02-05 Maciej W. Rozycki <macro@wdc.com>
11873
11874 * nat/riscv-linux-tdesc.h: New file.
11875 * nat/riscv-linux-tdesc.c: New file, taking code from...
11876 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11877 ... here.
11878 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11879 NATDEPFILES.
11880
dcc9fbc6
AB
118812020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11882
11883 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11884 we don't set the fake simulator ptid to the null_ptid.
11885
719546c4
SM
118862020-02-03 Simon Marchi <simon.marchi@efficios.com>
11887
11888 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11889 * gdbthread.h (class thread_info) <resumed>: Likewise.
11890 * infrun.c (resume_1): Likewise.
11891 (proceed): Likewise.
11892 (infrun_thread_stop_requested): Likewise.
11893 (stop_all_threads): Likewise.
11894 (handle_inferior_event): Likewise.
11895 (restart_threads): Likewise.
11896 (finish_step_over): Likewise.
11897 (keep_going_stepped_thread): Likewise.
11898 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11899 (linux_handle_extended_wait): Likewise.
11900 * record-btrace.c (get_thread_current_frame_id): Likewise.
11901 * record-full.c (record_full_wait_1): Likewise.
11902 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11903 * target.c (target_resume): Likewise.
11904 * thread.c (set_running_thread): Likewise.
11905
e409c542
AKS
119062020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11907
11908 * f-valprint.c (f77_print_array_1): Changed datatype of index
11909 variable to LONGEST from int to enable it to contain bound
11910 values correctly.
11911
ee98c0da
MR
119122020-02-03 Maciej W. Rozycki <macro@wdc.com>
11913
11914 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11915 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11916 offsets according to FLEN determined.
11917 (riscv_linux_nat_target::read_description): Determine FLEN
11918 dynamically.
11919 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11920 according to FLEN determined.
11921 (riscv_linux_nat_target::store_registers): Likewise.
11922
aa66aac4
SV
119232020-02-01 Shahab Vahedi <shahab@synopsys.com>
11924
11925 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11926 when reg->group is empty and reggroup is not.
11927
fd9faca8
TT
119282020-01-31 Tom Tromey <tromey@adacore.com>
11929
11930 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11931 Call beneath target's mourn_inferior after unpushing.
11932
42330a68
AB
119332020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11934
11935 PR tui/9765
11936 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11937 have enough lines to fill the screen, still return the lowest
11938 address we found.
11939
7a27a45b
AB
119402020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11941
11942 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11943 '-', '<', and '>' commands.
11944
c47f70e2
PA
119452020-01-29 Pedro Alves <palves@redhat.com>
11946 Sergio Durigan Junior <sergiodj@redhat.com>
11947
11948 * infcmd.c (construct_inferior_arguments): Assert that
11949 'argc' is greater than 0.
11950
5133a315
LM
119512020-01-29 Luis Machado <luis.machado@linaro.org>
11952
11953 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11954 (BRK_INSN_MASK): Define to 0xd4200000.
11955 (aarch64_program_breakpoint_here_p): New function.
11956 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11957 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11958 breakpoint.c.
11959 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11960 breakpoint.h
11961 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11962 call gdbarch_program_breakpoint_here_p.
11963 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11964 default_program_breakpoint_here_p, changed return type to bool and
11965 simplified.
11966 * breakpoint.h (program_breakpoint_here): Moved prototype to
11967 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11968 return type to bool.
11969 * gdbarch.c: Regenerate.
11970 * gdbarch.h: Regenerate.
11971 * gdbarch.sh (program_breakpoint_here_p): New method.
11972 * infrun.c (handle_signal_stop): Call
11973 gdbarch_program_breakpoint_here_p.
11974
168f8c6b
TT
119752020-01-26 Tom Tromey <tom@tromey.com>
11976
11977 * ctfread.c (struct ctf_fp_info): Reindent.
11978 (_initialize_ctfread): Remove.
11979
128a391f
TT
119802020-01-26 Tom Tromey <tom@tromey.com>
11981
11982 * psymtab.c (partial_map_expand_apply)
11983 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11984 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11985 (psym_print_stats, psym_expand_symtabs_for_function)
11986 (psym_map_symbol_filenames, psym_map_matching_symbols)
11987 (psym_expand_symtabs_matching)
11988 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11989 (maintenance_check_psymtabs): Use new methods.
11990 * psympriv.h (struct partial_symtab) <readin_p,
11991 get_compunit_symtab>: New methods.
11992 <readin, compunit_symtab>: Remove members.
11993 (struct standard_psymtab): New.
11994 (struct legacy_psymtab): Derive from standard_psymtab.
11995 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11996 standard_psymtab.
11997 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11998
0494dbec
TT
119992020-01-26 Tom Tromey <tom@tromey.com>
12000
12001 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12002 read_dependencies. Add assert.
12003 * psymtab.c (partial_symtab::read_dependencies): New method.
12004 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12005 method.
12006 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12007 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12008 read_dependencies.
12009 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12010 Add assert.
12011
8566b89b
TT
120122020-01-26 Tom Tromey <tom@tromey.com>
12013
12014 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12015 Call expand_psymtab.
12016 (xcoff_read_symtab): Call expand_psymtab.
12017 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12018 legacy_expand_psymtab.
12019 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12020 method.
12021 (struct legacy_psymtab) <expand_psymtab>: Implement.
12022 <legacy_expand_psymtab>: New member.
12023 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12024 (parse_partial_symbols): Set legacy_expand_psymtab.
12025 (psymtab_to_symtab_1): Change argument order. Call
12026 expand_psymtab.
12027 (new_psymtab): Set legacy_expand_psymtab.
12028 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12029 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12030 expand_psymtab.
12031 (dwarf2_psymtab::expand_psymtab): Rename from
12032 psymtab_to_symtab_1. Call expand_psymtab.
12033 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12034 (dbx_end_psymtab): Likewise.
12035 (dbx_psymtab_to_symtab_1): Change argument order. Call
12036 expand_psymtab.
12037 (dbx_read_symtab): Call expand_psymtab.
12038 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12039 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12040 (ctf_psymtab::read_symtab): Call expand_psymtab.
12041
077cbab2
TT
120422020-01-26 Tom Tromey <tom@tromey.com>
12043
12044 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12045 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12046 messages.
12047 * mdebugread.c (mdebug_read_symtab): Remove prints.
12048 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12049 assert.
12050 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12051
891813be
TT
120522020-01-26 Tom Tromey <tom@tromey.com>
12053
12054 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12055 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12056 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12057 legacy_symtab.
12058 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12059 * psymtab.c (psymtab_to_symtab): Call method.
12060 (dump_psymtab): Update.
12061 * psympriv.h (struct partial_symtab): Add virtual destructor.
12062 <read_symtab>: New method.
12063 (struct legacy_symtab): New.
12064 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12065 (struct pst_map) <pst>: Now a legacy_psymtab.
12066 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12067 (new_psymtab): Use legacy_psymtab.
12068 * dwarf2read.h (struct dwarf2_psymtab): New.
12069 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12070 * dwarf2read.c (dwarf2_create_include_psymtab)
12071 (dwarf2_build_include_psymtabs, create_type_unit_group)
12072 (create_partial_symtab, process_psymtab_comp_unit_reader)
12073 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12074 (set_partial_user): Use dwarf2_psymtab.
12075 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12076 (psymtab_to_symtab_1, process_full_comp_unit)
12077 (process_full_type_unit, dwarf2_ranges_read)
12078 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12079 (dwarf_decode_lines): Use dwarf2_psymtab.
12080 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12081 (add_address_entry_worker, write_one_signatured_type)
12082 (recursively_count_psymbols, recursively_write_psymbols)
12083 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12084 (write_debug_names): Likewise.
12085 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12086 <pst>: Now a legacy_psymtab.
12087 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12088 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12089 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12090 * ctfread.c (struct ctf_psymtab): New.
12091 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12092 ctf_psymtab.
12093 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12094 (create_partial_symtab): Return a ctf_psymtab.
12095 (scan_partial_symbols): Update.
12096
c3693a1d
TT
120972020-01-26 Tom Tromey <tom@tromey.com>
12098
12099 * xcoffread.c (xcoff_start_psymtab): Use new.
12100 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12101 renamed from start_psymtab_common.
12102 * psympriv.h (struct partial_symtab): Add new constructor.
12103 (start_psymtab_common): Don't declare.
12104 * mdebugread.c (parse_partial_symbols): Use new.
12105 * dwarf2read.c (create_partial_symtab): Use new.
12106 * dbxread.c (start_psymtab): Use new.
12107 * ctfread.c (create_partial_symtab): Use new.
12108
32caafd0
TT
121092020-01-26 Tom Tromey <tom@tromey.com>
12110
12111 * xcoffread.c (xcoff_end_psymtab): Use new.
12112 * psymtab.c (start_psymtab_common): Use new.
12113 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12114 Update.
12115 * psympriv.h (struct partial_symtab): Add parameters to
12116 constructor. Don't inline.
12117 (allocate_psymtab): Don't declare.
12118 * mdebugread.c (new_psymtab): Use new.
12119 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12120 * dbxread.c (dbx_end_psymtab): Use new.
12121
abaa2f23
TT
121222020-01-26 Tom Tromey <tom@tromey.com>
12123
12124 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12125 allocate_psymtab. Update documentation.
12126 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12127 allocate_psymtab. Do not use new.
12128 (allocate_psymtab): Use new. Update.
12129
6d94535f
TT
121302020-01-26 Tom Tromey <tom@tromey.com>
12131
12132 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12133 * psymtab.c (psym_print_stats): Update.
12134 * psympriv.h (struct partial_symtab) <readin,
12135 psymtabs_addrmap_supported, anonymous>: Now bool.
12136 * mdebugread.c (psymtab_to_symtab_1): Update.
12137 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12138 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12139 (process_full_comp_unit, process_full_type_unit): Update.
12140 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12141 * ctfread.c (psymtab_to_symtab): Update.
12142
6f17252b
TT
121432020-01-26 Tom Tromey <tom@tromey.com>
12144
12145 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12146 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12147 * psymtab.c (psymtab_storage): Delete psymtabs.
12148 (psymtab_storage::allocate_psymtab): Use new.
12149 (psymtab_storage::discard_psymtab): Use delete.
12150 * psympriv.h (struct partial_symtab): Add constructor and
12151 initializers.
12152
f6f1cebc
TT
121532020-01-26 Tom Tromey <tom@tromey.com>
12154
12155 * machoread.c: Do not include psympriv.h.
12156
e47e48f6
PW
121572020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12158
12159 * NEWS: Mention the new option and the set/show commands.
12160
a2fedca9
PW
121612020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12162
12163 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12164 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12165 (validate_exec_file): New variables, enums, functions.
12166 (exec_file_locate_attach, print_section_info): Style the filenames.
12167 (_initialize_exec): Install show_exec_file_mismatch_command and
12168 set_exec_file_mismatch_command.
12169 * gdbcore.h (validate_exec_file): Declare.
12170 * infcmd.c (attach_command): Call validate_exec_file.
12171 * remote.c ( remote_target::remote_add_inferior): Likewise.
12172
7ffa82e1
AB
121732020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12174
12175 * frame.c (find_frame_sal): Move call to get_next_frame into more
12176 inner scope.
12177 * inline-frame.c (inilne_state) <inline_state>: Update argument
12178 types.
12179 (inilne_state) <skipped_symbol>: Rename to...
12180 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12181 (skip_inline_frames): Build vector of skipped symbols and use this
12182 to reate the inline_state.
12183 (inline_skipped_symbol): Add a comment and some assertions, fetch
12184 skipped symbol from the list.
12185
3d92a3e3
AB
121862020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12187
12188 * buildsym.c (lte_is_less_than): Delete.
12189 (buildsym_compunit::end_symtab_with_blockvector): Create local
12190 lambda function to sort line table entries, and use
12191 std::stable_sort instead of std::sort.
12192 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12193 markers when looking for a previous line.
12194
94a72be7
AB
121952020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12196
12197 * dwarf2read.c (lnp_state_machine::record_line): Include
12198 end_sequence parameter in debug print out. Record the line if we
12199 are at an end_sequence marker even if it's not the start of a
12200 statement.
12201 * symmisc.c (maintenance_print_one_line_table): Print end of
12202 sequence markers with 'END' not '0'.
12203
53af73bf
PA
122042020-01-24 Pedro Alves <palves@redhat.com>
12205
12206 PR gdb/25410
12207 * thread.c (scoped_restore_current_thread::restore): Use
12208 switch_to_inferior_no_thread.
12209 * exec.c: Include "progspace-and-thread.h".
12210 (add_target_sections, remove_target_sections):
12211 scoped_restore_current_pspace_and_thread instead of
12212 scoped_restore_current_thread.
12213 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12214 and aspace to the inferior before calling clone_program_space.
12215 Remove stale comment.
12216
3050c6f4
CB
122172020-01-24 Christian Biesinger <cbiesinger@google.com>
12218
12219 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12220 (arm_netbsd_nat_target::fetch_registers): ...this.
12221 (arm_nbsd_nat_target::store_registers): Rename to...
12222 (arm_netbsd_nat_target::store_registers): ...this.
12223
73685c7e
CB
122242020-01-24 Christian Biesinger <cbiesinger@google.com>
12225
12226 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12227 register_t.
12228
89203d40
CB
122292020-01-24 Christian Biesinger <cbiesinger@google.com>
12230
12231 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12232 Update comment.
12233 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12234 Likewise.
12235 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12236 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12237 the correct replacement (iterate_over_regset_sections).
12238 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12239 Update comment.
12240
1ba1ac88
AB
122412020-01-24 Graham Markall <graham.markall@embecosm.com>
12242
12243 PR gdb/23718
12244 * gdb/python/python.c (execute_gdb_command): Call
12245 async_enable_stdin in catch block.
12246
f3364a6d
AB
122472020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12248
12249 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12250 SWITCH_THRU_ALL_UIS.
12251
733d0a67
AB
122522020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12253
12254 PR tui/9765
12255 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12256 comment, add extra parameter, and update to store previous symbol
12257 when appropriate.
12258 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12259 add extra parameter.
12260 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12261 remove unneeded parameter, add try/catch around gdb_print_insn,
12262 rewrite to add items to asm_lines vector.
12263 (tui_find_backward_disassembly_start_address): New function.
12264 (tui_find_disassembly_address): Updated throughout.
12265 (tui_disasm_window::set_contents): Update for changes to
12266 tui_disassemble.
12267 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12268 number of lines to scroll.
12269
b3b3bada
SM
122702020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12271
12272 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12273 (SECT_OFF_DATA): Likewise.
12274 (SECT_OFF_RODATA): Likewise.
12275 (SECT_OFF_TEXT): Likewise.
12276 (SECT_OFF_BSS): Likewise.
12277 (struct objfile) <text_section_offset, data_section_offset>: New
12278 methods.
12279 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12280 objfile::text_section_offset.
12281 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12282 * coffread.c (coff_symtab_read): Likewise.
12283 (enter_linenos): Likewise.
12284 (process_coff_symbol): Likewise.
12285 * ctfread.c (get_objfile_text_range): Likewise.
12286 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12287 Use objfile::data_section_offset.
12288 * dwarf2-frame.c (execute_cfa_program): Use
12289 objfile::text_section_offset.
12290 (dwarf2_frame_find_fde): Likewise.
12291 * dwarf2read.c (create_addrmap_from_index): Likewise.
12292 (create_addrmap_from_aranges): Likewise.
12293 (dw2_find_pc_sect_compunit_symtab): Likewise.
12294 (process_psymtab_comp_unit_reader): Likewise.
12295 (add_partial_symbol): Likewise.
12296 (add_partial_subprogram): Likewise.
12297 (process_full_comp_unit): Likewise.
12298 (read_file_scope): Likewise.
12299 (read_func_scope): Likewise.
12300 (read_lexical_block_scope): Likewise.
12301 (read_call_site_scope): Likewise.
12302 (dwarf2_rnglists_process): Likewise.
12303 (dwarf2_ranges_process): Likewise.
12304 (dwarf2_ranges_read): Likewise.
12305 (dwarf_decode_lines_1): Likewise.
12306 (new_symbol): Likewise.
12307 (dwarf2_fetch_die_loc_sect_off): Likewise.
12308 (dwarf2_per_cu_text_offset): Likewise.
12309 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12310 * hppa-tdep.c (read_unwind_info): Likewise.
12311 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12312 * psympriv.h (struct partial_symtab): Likewise.
12313 * psymtab.c (find_pc_sect_psymtab): Likewise.
12314 * solib-svr4.c (enable_break): Likewise.
12315 * stap-probe.c (relocate_address): Use
12316 objfile::data_section_offset.
12317 * xcoffread.c (enter_line_range): Use
12318 objfile::text_section_offset.
12319 (read_xcoff_symtab): Likewise.
12320
ab53f382
SM
123212020-01-23 Simon Marchi <simon.marchi@efficios.com>
12322
12323 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12324 declaration to narrower scopes.
12325
e7eee665
SM
123262020-01-23 Simon Marchi <simon.marchi@efficios.com>
12327
12328 * darwin-nat.h (struct darwin_exception_msg, enum
12329 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12330 Move up.
12331 (class darwin_nat_target) <wait_1, check_new_threads,
12332 decode_exception_message, decode_message, stop_inferior,
12333 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12334 * darwin-nat.c (darwin_check_new_threads): Rename to...
12335 (darwin_nat_target::check_new_threads): ... this.
12336 (darwin_suspend_inferior_it): Remove.
12337 (darwin_decode_exception_message): Rename to...
12338 (darwin_nat_target::decode_exception_message): ... this.
12339 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12340 (darwin_decode_message): Rename to...
12341 (darwin_nat_target::decode_message): ... this.
12342 (cancel_breakpoint): Rename to...
12343 (darwin_nat_target::cancel_breakpoint): ... this.
12344 (darwin_wait): Rename to...
12345 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12346 instead of iterate_over_inferiors.
12347 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12348 (darwin_stop_inferior): Rename to...
12349 (darwin_nat_target::stop_inferior): ... this.
12350 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12351 (darwin_init_thread_list): Rename to...
12352 (darwin_nat_target::init_thread_list): ... this.
12353 (darwin_ptrace_him): Rename to...
12354 (darwin_nat_target::ptrace_him): ... this.
12355 (darwin_nat_target::create_inferior): Pass lambda function to
12356 fork_inferior.
12357 (darwin_nat_target::detach): Call stop_inferior instead of
12358 darwin_stop_inferior.
12359 * fork-inferior.h (fork_inferior): Change init_trace_fun
12360 parameter to gdb::function_view.
12361 * fork-inferior.c (fork_inferior): Likewise.
12362
c162ed3e
HD
123632020-01-23 Hannes Domani <ssbssa@yahoo.de>
12364
12365 * i386-cygwin-tdep.c (core_process_module_section): Update.
12366 * windows-nat.c (struct lm_info_windows): Add text_offset.
12367 (windows_xfer_shared_libraries): Update.
12368 * windows-tdep.c (windows_xfer_shared_library):
12369 Add text_offset_cached argument.
12370 * windows-tdep.h (windows_xfer_shared_library): Update.
12371
a1237872
SM
123722020-01-21 Simon Marchi <simon.marchi@efficios.com>
12373
12374 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12375
b3ee6dd9
SM
123762020-01-21 Simon Marchi <simon.marchi@efficios.com>
12377
12378 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12379 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12380 replace with range-based for.
12381 (gdbsim_interrupt_inferior): Remove.
12382 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12383 with a range-based for. Inline code from
12384 gdbsim_interrupt_inferior.
12385
f9fac3c8
SM
123862020-01-21 Simon Marchi <simon.marchi@efficios.com>
12387
12388 * infrun.c (proceed): Fix indentation.
12389
f6474de9
TT
123902020-01-21 Tom Tromey <tromey@adacore.com>
12391
12392 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12393 * python/python.c (python_extension_ops): Update.
12394 (gdbpy_colorize): New function.
12395 * python/lib/gdb/__init__.py (colorize): New function.
12396 * extension.h (ext_lang_colorize): Declare.
12397 * extension.c (ext_lang_colorize): New function.
12398 * extension-priv.h (struct extension_language_ops) <colorize>: New
12399 member.
12400 * cli/cli-style.c (_initialize_cli_style): Update help text.
12401
f0c702d4
LM
124022020-01-21 Luis Machado <luis.machado@linaro.org>
12403
12404 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12405 <cond>: Change type to bool.
12406 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12407 (aarch64_displaced_step_cb): Likewise.
12408 (aarch64_displaced_step_tb): Likewise.
12409
1ab139e5
LM
124102020-01-21 Luis Machado <luis.machado@linaro.org>
12411
12412 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12413 output.
12414
0c271889
LM
124152020-01-21 Luis Machado <luis.machado@linaro.org>
12416
12417 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12418 <pc_adjust>: Adjust the documentation.
12419 (aarch64_displaced_step_fixup): Check if PC really moved before
12420 adjusting it.
12421
4d89c1c7
TT
124222020-01-19 Tom Tromey <tom@tromey.com>
12423
12424 * disasm.c (~gdb_disassembler): New destructor.
12425 (gdb_buffered_insn_length): Call disassemble_free_target.
12426 * disasm.h (class gdb_disassembler): Declare destructor. Use
12427 DISABLE_COPY_AND_ASSIGN.
12428
c0ab21c2
TT
124292020-01-19 Tom Tromey <tom@tromey.com>
12430
12431 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12432 (die_reader_func_ftype): Remove.
12433 (cutu_reader): New class.
12434 (dw2_get_file_names_reader): Remove "data" parameter.
12435 (dw2_get_file_names): Use cutu_reader.
12436 (create_debug_type_hash_table): Update.
12437 (read_cutu_die_from_dwo): Update comment.
12438 (lookup_dwo_unit): Add dwo_name parameter.
12439 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12440 die_reader_func_ftype and data parameters.
12441 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12442 Remove die_reader_func_ftype and data parameters.
12443 (~cutu_reader): New; from init_cutu_and_read_dies.
12444 (cutu_reader::cutu_reader): Rename from
12445 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12446 and data parameters.
12447 (init_cutu_and_read_dies_simple): Remove.
12448 (struct process_psymtab_comp_unit_data): Remove.
12449 (process_psymtab_comp_unit_reader): Remove data parameter; add
12450 want_partial_unit and pretend_language parameters.
12451 (process_psymtab_comp_unit): Use cutu_reader.
12452 (build_type_psymtabs_reader): Remove data parameter.
12453 (build_type_psymtabs_1): Use cutu_reader.
12454 (process_skeletonless_type_unit): Likewise.
12455 (load_partial_comp_unit_reader): Remove.
12456 (load_partial_comp_unit): Use cutu_reader.
12457 (load_full_comp_unit_reader): Remove.
12458 (load_full_comp_unit): Use cutu_reader.
12459 (struct create_dwo_cu_data): Remove.
12460 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12461 dwo_unit parameters.
12462 (create_cus_hash_table): Use cutu_reader.
12463 (struct dwarf2_read_addr_index_data): Remove.
12464 (dwarf2_read_addr_index_reader): Remove.
12465 (dwarf2_read_addr_index): Use cutu_reader.
12466 (read_signatured_type_reader): Remove.
12467 (read_signatured_type): Use cutu_reader.
12468
45bbae5c
TT
124692020-01-19 Tom Tromey <tom@tromey.com>
12470
12471 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12472 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12473 (tui_wrefresh): Declare.
12474 * tui/tui-wingeneral.c (suppress_output): New global.
12475 (tui_suppress_output, ~tui_suppress_output): New constructor and
12476 destructor.
12477 (tui_wrefresh): New function.
12478 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12479 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12480 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12481 method.
12482 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12483 tui_wrefresh.
12484 (tui_data_window::no_refresh): New method.
12485 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12486 (tui_reg_command): Use tui_suppress_output
12487 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12488 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12489 method.
12490 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12491
4f13c1c0
TT
124922020-01-19 Tom Tromey <tom@tromey.com>
12493
12494 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12495 Handle case where symtab is null.
12496
fa47e446
SM
124972020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12498
12499 * linux-fork.c (one_fork_p): Simplify.
12500
26f42329
SM
125012020-01-17 Simon Marchi <simon.marchi@efficios.com>
12502
12503 * top.c (struct qt_args): Remove.
12504 (kill_or_detach): Change return type to void, replace `void *`
12505 parameter with a proper one.
12506 (print_inferior_quit_action): Likewise.
12507 (quit_confirm): Use range-based for loop to iterate over inferiors.
12508 (quit_force): Likewise.
12509
a9ac81b1
SM
125102020-01-17 Simon Marchi <simon.marchi@efficios.com>
12511
12512 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12513 `void *` parameter with proper parameters.
12514 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12515 (print_one_inferior): Change return type to void, replace `void *`
12516 parameter with proper parameters.
12517 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12518 inferiors.
12519 (get_other_inferior): Remove.
12520 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12521 inferiors.
12522
788eca49
SM
125232020-01-17 Simon Marchi <simon.marchi@efficios.com>
12524
12525 * mi/mi-interp.c (report_initial_inferior): Remove.
12526 (mi_interp::init): Use range-based for to iterate over inferiors.
12527
d9bc85b6
SM
125282020-01-17 Simon Marchi <simon.marchi@efficios.com>
12529
12530 * python/py-inferior.c (build_inferior_list): Remove.
12531 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12532
40c94099
CB
125332020-01-16 Christian Biesinger <cbiesinger@google.com>
12534
12535 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12536 (btrace_stitch_trace): Likewise.
12537 * charset.c (intermediate_encoding): Likewise (vaild).
12538 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12539 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12540 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12541
e0cdfe3c
HD
125422020-01-16 Hannes Domani <ssbssa@yahoo.de>
12543
12544 * windows-tdep.c (windows_get_tlb_type):
12545 Add rtl_user_process_parameters type.
12546
790f1718 125472020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12548 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12549
12550 PR build/24805
12551 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12552 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12553 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12554 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12555 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12556 (ps_plog): Redeclare exported functions with default visibility.
12557
3112ed97
NA
125582020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12559
12560 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12561 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12562
8dc3273e
SM
125632020-01-15 Simon Marchi <simon.marchi@efficios.com>
12564
12565 * infcmd.c (post_create_inferior): Use get_thread_regcache
12566 instead of get_current_regcache.
12567
ff47f4f0
TT
125682020-01-14 Tom Tromey <tom@tromey.com>
12569
12570 PR symtab/12535:
12571 * python/python.c (gdbpy_decode_line): Treat empty string the same
12572 as no argument.
12573
975f45b7
TT
125742020-01-14 Tom Tromey <tom@tromey.com>
12575
12576 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12577
25e57356
TT
125782020-01-14 Tom Tromey <tom@tromey.com>
12579
12580 * nat/linux-btrace.c: Don't include <config.h>.
12581 * nat/linux-ptrace.c: Don't include <config.h>.
12582 * nat/x86-linux-dregs.c: Don't include <config.h>.
12583
05ea2a05
TT
125842020-01-14 Tom Tromey <tom@tromey.com>
12585
12586 * configure: Rebuild.
12587 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12588
01027315
TT
125892020-01-14 Tom Tromey <tom@tromey.com>
12590
12591 * nat/x86-linux-dregs.c: Include configh.h.
12592 * nat/linux-ptrace.c: Include configh.h.
12593 * nat/linux-btrace.c: Include configh.h.
12594 * defs.h: Include config.h, bfd.h.
12595 * configure.ac: Don't source common.host.
12596 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12597 * configure: Rebuild.
12598 * acinclude.m4: Update path.
12599 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12600 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12601 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12602 (CLIBS): Add LIBSUPPORT.
12603 (CDEPS): Likewise.
12604 (COMMON_SFILES): Remove gdbsupport files.
12605 (HFILES_NO_SRCDIR): Likewise.
12606 (stamp-version): Update path to create-version.sh.
12607 (ALLDEPFILES): Remove gdbsupport files.
12608
b2ceabe8
TT
126092020-01-14 Tom Tromey <tom@tromey.com>
12610
12611 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12612 USE_WIN32API when needed.
12613 * configure.ac (USE_WIN32API): Don't define.
12614 (WIN32LIBS): Use WIN32APILIBS.
12615 * configure: Rebuild.
12616
25c51f71
TT
126172020-01-14 Tom Tromey <tom@tromey.com>
12618
12619 * configure: Rebuild.
12620 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12621
717c684d
BE
126222020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12623
12624 * skip.c (skip_function_command): Make skip w/o arguments use the
12625 name of the inlined function if pc is inside any inlined function.
12626
7da6a5b9
LM
126272020-01-14 Luis Machado <luis.machado@linaro.org>
12628
12629 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12630 * infrun.c (resume_1): Likewise.
12631 (handle_inferior_event): Remove stale comment.
12632 * linux-nat.c (linux_nat_target::resume): Update comments.
12633 (save_stop_reason): Likewise.
12634 (linux_nat_filter_event): Likewise.
12635 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12636
44e4c775
AB
126372020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12638
12639 * elfread.c (record_minimal_symbol): Set section index to 0 for
12640 non-allocatable sections.
12641
18a8505e
AT
12642
126432020-01-13 Ali Tamur <tamur@google.com>
12644
12645 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12646 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12647 to gdb::optional. Update comments.
12648 (dwo_file): Update comments.
12649 (read_attribute): Update API to take an additional out parameter,
12650 need_reprocess. This is used to mark attributes that need other
12651 attributes (e.g. str_offsets_base) for correct computation which may not
12652 have been read yet.
12653 (read_attribute_reprocess): New function declaration.
12654 (read_addr_index): Likewise.
12655 (read_dwo_str_index): Likewise.
12656 (read_stub_str_index): Likewise.
12657 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12658 (lookup_addr_base): New function definition.
12659 (lookup_ranges_base): Likewise.
12660 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12661 lookup_ranges_base.
12662 (init_cutu_and_read_dies): Update comments.
12663 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12664 unit. This is used to inherit parent's str_offsets_base and addr_base.
12665 Update comments.
12666 (init_cutu_and_read_dies_simple): Reflect API changes.
12667 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12668 (create_cus_hash_table): Change API to take parent compile unit.
12669 Reflect API changes.
12670 (open_and_init_dwo_file): Reflect API changes.
12671 (dwarf2_get_pc_bounds): Update comments.
12672 (dwarf2_record_block_ranges): Likewise.
12673 (read_full_die_1): Change implementation to reprocess attributes that
12674 need str_offsets_base and addr_base.
12675 (partial_die_info::read): Likewise.
12676 (read_attribute_reprocess): New function definition.
12677 (read_attribute_value): Change API to take an additional out parameter,
12678 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12679 when a non-dwo compile unit has index based attributes.
12680 (read_attribute): Reflect API changes.
12681 (read_addr_index_1): Reflect API changes. Update comments.
12682 (dwarf2_read_addr_index_data): Reflect API changes.
12683 (dwarf2_read_addr_index): Likewise.
12684 (read_str_index): Change API and implementation. This becomes a helper
12685 to be used by the new string index related methods. Update error
12686 message and comments.
12687 (read_dwo_str_index): New function definition.
12688 (read_stub_str_index): Likewise.
12689 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12690 * symfile.h (dwarf2_debug_sections): Likewise.
12691 * xcoffread.c (dwarf2_debug_sections): Likewise.
12692
0cac9354
SM
126932020-01-13 Simon Marchi <simon.marchi@efficios.com>
12694
12695 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12696 core_reg_sect type to gdb_byte *.
12697 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12698 * cris-tdep.c (fetch_core_registers): Likewise.
12699 * corelow.c (core_target::get_core_register_section): Change
12700 type of `contents` to gdb::byte_vector.
12701
9a6d629c
AB
127022020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12703
12704 * tui/tui-wingeneral.c (box_win): Position the title in the center
12705 of the border.
12706
d8b2f9e3
SM
127072020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12708
12709 * corelow.c (core_target::get_core_register_section): Use
12710 std::vector instead of alloca.
12711
bb564c58
SM
127122020-01-13 Simon Marchi <simon.marchi@efficios.com>
12713
12714 * warning.m4: Add -Wmissing-declarations to build_warnings.
12715 * configure: Re-generate.
12716
6b366111
SM
127172020-01-13 Simon Marchi <simon.marchi@efficios.com>
12718
12719 * python/python.c (init__gdb_module): Add declaration.
12720
6c265988
SM
127212020-01-13 Simon Marchi <simon.marchi@efficios.com>
12722
12723 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12724 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12725 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12726 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12727 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12728 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12729 * ada-exp.y (_initialize_ada_exp): Add declaration.
12730 * ada-lang.c (_initialize_ada_language): Add declaration.
12731 * ada-tasks.c (_initialize_tasks): Add declaration.
12732 * agent.c (_initialize_agent): Add declaration.
12733 * aix-thread.c (_initialize_aix_thread): Add declaration.
12734 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12735 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12736 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12737 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12738 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12739 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12740 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12741 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12742 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12743 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12744 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12745 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12746 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12747 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12748 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12749 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12750 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12751 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12752 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12753 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12754 * annotate.c (_initialize_annotate): Add declaration.
12755 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12756 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12757 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12758 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12759 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12760 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12761 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12762 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12763 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12764 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12765 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12766 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12767 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12768 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12769 * auto-load.c (_initialize_auto_load): Add declaration.
12770 * auxv.c (_initialize_auxv): Add declaration.
12771 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12772 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12773 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12774 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12775 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12776 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12777 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12778 * breakpoint.c (_initialize_breakpoint): Add declaration.
12779 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12780 * btrace.c (_initialize_btrace): Add declaration.
12781 * charset.c (_initialize_charset): Add declaration.
12782 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12783 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12784 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12785 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12786 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12787 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12788 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12789 * coffread.c (_initialize_coffread): Add declaration.
12790 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12791 * compile/compile.c (_initialize_compile): Add declaration.
12792 * complaints.c (_initialize_complaints): Add declaration.
12793 * completer.c (_initialize_completer): Add declaration.
12794 * copying.c (_initialize_copying): Add declaration.
12795 * corefile.c (_initialize_core): Add declaration.
12796 * corelow.c (_initialize_corelow): Add declaration.
12797 * cp-abi.c (_initialize_cp_abi): Add declaration.
12798 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12799 * cp-support.c (_initialize_cp_support): Add declaration.
12800 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12801 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12802 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12803 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12804 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12805 * ctfread.c (_initialize_ctfread): Add declaration.
12806 * d-lang.c (_initialize_d_language): Add declaration.
12807 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12808 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12809 * dbxread.c (_initialize_dbxread): Add declaration.
12810 * dcache.c (_initialize_dcache): Add declaration.
12811 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12812 * disasm.c (_initialize_disasm): Add declaration.
12813 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12814 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12815 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12816 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12817 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12818 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12819 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12820 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12821 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12822 * elfread.c (_initialize_elfread): Add declaration.
12823 * exec.c (_initialize_exec): Add declaration.
12824 * extension.c (_initialize_extension): Add declaration.
12825 * f-lang.c (_initialize_f_language): Add declaration.
12826 * f-valprint.c (_initialize_f_valprint): Add declaration.
12827 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12828 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12829 * filesystem.c (_initialize_filesystem): Add declaration.
12830 * findcmd.c (_initialize_mem_search): Add declaration.
12831 * findvar.c (_initialize_findvar): Add declaration.
12832 * fork-child.c (_initialize_fork_child): Add declaration.
12833 * frame-base.c (_initialize_frame_base): Add declaration.
12834 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12835 * frame.c (_initialize_frame): Add declaration.
12836 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12837 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12838 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12839 * gcore.c (_initialize_gcore): Add declaration.
12840 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12841 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12842 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12843 * gdbarch.c (_initialize_gdbarch): Add declaration.
12844 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12845 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12846 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12847 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12848 * go-lang.c (_initialize_go_language): Add declaration.
12849 * go32-nat.c (_initialize_go32_nat): Add declaration.
12850 * guile/guile.c (_initialize_guile): Add declaration.
12851 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12852 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12853 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12854 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12855 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12856 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12857 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12858 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12859 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12860 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12861 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12862 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12863 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12864 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12865 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12866 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12867 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12868 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12869 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12870 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12871 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12872 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12873 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12874 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12875 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12876 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12877 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12878 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12879 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12880 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12881 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12882 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12883 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12884 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12885 * infcall.c (_initialize_infcall): Add declaration.
12886 * infcmd.c (_initialize_infcmd): Add declaration.
12887 * inflow.c (_initialize_inflow): Add declaration.
12888 * infrun.c (_initialize_infrun): Add declaration.
12889 * interps.c (_initialize_interpreter): Add declaration.
12890 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12891 * jit.c (_initialize_jit): Add declaration.
12892 * language.c (_initialize_language): Add declaration.
12893 * linux-fork.c (_initialize_linux_fork): Add declaration.
12894 * linux-nat.c (_initialize_linux_nat): Add declaration.
12895 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12896 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12897 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12898 * m2-lang.c (_initialize_m2_language): Add declaration.
12899 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12900 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12901 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12902 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12903 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12904 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12905 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12906 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12907 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12908 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12909 * machoread.c (_initialize_machoread): Add declaration.
12910 * macrocmd.c (_initialize_macrocmd): Add declaration.
12911 * macroscope.c (_initialize_macroscope): Add declaration.
12912 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12913 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12914 * maint.c (_initialize_maint_cmds): Add declaration.
12915 * mdebugread.c (_initialize_mdebugread): Add declaration.
12916 * memattr.c (_initialize_mem): Add declaration.
12917 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12918 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12919 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12920 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12921 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12922 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12923 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12924 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12925 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12926 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12927 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12928 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12929 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12930 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12931 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12932 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12933 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12934 * mipsread.c (_initialize_mipsread): Add declaration.
12935 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12936 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12937 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12938 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12939 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12940 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12941 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12942 * nto-procfs.c (_initialize_procfs): Add declaration.
12943 * objc-lang.c (_initialize_objc_language): Add declaration.
12944 * observable.c (_initialize_observer): Add declaration.
12945 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12946 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12947 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12948 * osabi.c (_initialize_gdb_osabi): Add declaration.
12949 * osdata.c (_initialize_osdata): Add declaration.
12950 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12951 * parse.c (_initialize_parse): Add declaration.
12952 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12953 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12954 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12955 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12956 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12957 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12958 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12959 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12960 * printcmd.c (_initialize_printcmd): Add declaration.
12961 * probe.c (_initialize_probe): Add declaration.
12962 * proc-api.c (_initialize_proc_api): Add declaration.
12963 * proc-events.c (_initialize_proc_events): Add declaration.
12964 * proc-service.c (_initialize_proc_service): Add declaration.
12965 * procfs.c (_initialize_procfs): Add declaration.
12966 * producer.c (_initialize_producer): Add declaration.
12967 * psymtab.c (_initialize_psymtab): Add declaration.
12968 * python/python.c (_initialize_python): Add declaration.
12969 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12970 * record-btrace.c (_initialize_record_btrace): Add declaration.
12971 * record-full.c (_initialize_record_full): Add declaration.
12972 * record.c (_initialize_record): Add declaration.
12973 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12974 * regcache.c (_initialize_regcache): Add declaration.
12975 * reggroups.c (_initialize_reggroup): Add declaration.
12976 * remote-notif.c (_initialize_notif): Add declaration.
12977 * remote-sim.c (_initialize_remote_sim): Add declaration.
12978 * remote.c (_initialize_remote): Add declaration.
12979 * reverse.c (_initialize_reverse): Add declaration.
12980 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12981 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12982 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12983 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12984 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12985 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12986 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12987 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12988 Add declaration.
12989 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12990 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12991 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12992 * rust-exp.y (_initialize_rust_exp): Add declaration.
12993 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12994 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12995 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12996 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12997 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12998 * score-tdep.c (_initialize_score_tdep): Add declaration.
12999 * ser-go32.c (_initialize_ser_dos): Add declaration.
13000 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13001 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13002 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13003 * ser-uds.c (_initialize_ser_socket): Add declaration.
13004 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13005 * serial.c (_initialize_serial): Add declaration.
13006 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13007 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13008 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13009 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13010 * skip.c (_initialize_step_skip): Add declaration.
13011 * sol-thread.c (_initialize_sol_thread): Add declaration.
13012 * solib-aix.c (_initialize_solib_aix): Add declaration.
13013 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13014 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13015 * solib-frv.c (_initialize_frv_solib): Add declaration.
13016 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13017 * solib-target.c (_initialize_solib_target): Add declaration.
13018 * solib.c (_initialize_solib): Add declaration.
13019 * source-cache.c (_initialize_source_cache): Add declaration.
13020 * source.c (_initialize_source): Add declaration.
13021 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13022 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13023 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13024 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13025 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13026 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13027 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13028 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13029 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13030 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13031 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13032 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13033 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13034 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13035 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13036 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13037 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13038 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13039 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13040 * stabsread.c (_initialize_stabsread): Add declaration.
13041 * stack.c (_initialize_stack): Add declaration.
13042 * stap-probe.c (_initialize_stap_probe): Add declaration.
13043 * std-regs.c (_initialize_frame_reg): Add declaration.
13044 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13045 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13046 * symfile.c (_initialize_symfile): Add declaration.
13047 * symmisc.c (_initialize_symmisc): Add declaration.
13048 * symtab.c (_initialize_symtab): Add declaration.
13049 * target.c (_initialize_target): Add declaration.
13050 * target-connection.c (_initialize_target_connection): Add
13051 declaration.
13052 * target-dcache.c (_initialize_target_dcache): Add declaration.
13053 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13054 * thread.c (_initialize_thread): Add declaration.
13055 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13056 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13057 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13058 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13059 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13060 * tracectf.c (_initialize_ctf): Add declaration.
13061 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13062 * tracefile.c (_initialize_tracefile): Add declaration.
13063 * tracepoint.c (_initialize_tracepoint): Add declaration.
13064 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13065 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13066 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13067 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13068 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13069 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13070 * tui/tui.c (_initialize_tui): Add declaration.
13071 * typeprint.c (_initialize_typeprint): Add declaration.
13072 * ui-style.c (_initialize_ui_style): Add declaration.
13073 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13074 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13075 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13076 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13077 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13078 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13079 * unittests/filtered_iterator-selftests.c
13080 (_initialize_filtered_iterator_selftests): Add declaration.
13081 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13082 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13083 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13084 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13085 * unittests/main-thread-selftests.c
13086 (_initialize_main_thread_selftests): Add declaration.
13087 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13088 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13089 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13090 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13091 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13092 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13093 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13094 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13095 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13096 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13097 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13098 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13099 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13100 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13101 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13102 declaration.
13103 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13104 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13105 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13106 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13107 * user-regs.c (_initialize_user_regs): Add declaration.
13108 * utils.c (_initialize_utils): Add declaration.
13109 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13110 * valops.c (_initialize_valops): Add declaration.
13111 * valprint.c (_initialize_valprint): Add declaration.
13112 * value.c (_initialize_values): Add declaration.
13113 * varobj.c (_initialize_varobj): Add declaration.
13114 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13115 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13116 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13117 * windows-nat.c (_initialize_windows_nat): Add declaration.
13118 (_initialize_check_for_gdb_ini): Add declaration.
13119 (_initialize_loadable): Add declaration.
13120 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13121 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13122 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13123 * xcoffread.c (_initialize_xcoffread): Add declaration.
13124 * xml-support.c (_initialize_xml_support): Add declaration.
13125 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13126 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13127 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13128 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13129
e2de1eec
SM
131302020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13131
13132 * regformats/regdat.sh: Generate declaration for init function.
13133
e0037b4c
SM
131342020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13135
13136 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13137 up.
13138 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13139 close_one_inferior>: New methods.
13140 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13141 pass down target to find_inferior_pid.
13142 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13143 Pass down target to find_inferior_ptid.
13144 (gdbsim_target::create_inferior): Pass down target to
13145 add_thread_silent.
13146 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13147 target down to find_inferior_ptid and switch_to_thread.
13148 (gdbsim_target::close): Update to call close_one_inferior.
13149 (struct resume_data): Remove.
13150 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13151 directly, rather than through a void pointer.
13152 (gdbsim_target::resume): Update to call resume_one_inferior.
13153
58920b5b
SM
131542020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13155
13156 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13157
4ec89149
PA
131582020-01-12 Pedro Alves <palves@redhat.com>
13159
13160 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13161 directly for the current inferior instead of
13162 discard_all_inferiors.
13163 (discard_all_inferiors): Delete.
13164
7c392d1d
TT
131652020-01-11 Tom Tromey <tom@tromey.com>
13166
13167 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13168 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13169 deprecated_safe_get_selected_frame.
13170
d9ebdab7
TBA
131712020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13172
13173 * inferior.c (print_inferior): Switch inferior before printing it.
13174
f3c469b9
PA
131752020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13176 Pedro Alves <palves@redhat.com>
13177
13178 * progspace-and-thread.c (switch_to_program_space_and_thread):
13179 Assert there's an inferior for PSPACE. Use
13180 switch_to_inferior_no_thread to switch the inferior too.
13181 * progspace.c (program_space::~program_space): Call
13182 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13183 (program_space::free_all_objfiles): Don't call clear_symtab_users
13184 here.
13185 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13186
65c574f6
PA
131872020-01-10 Pedro Alves <palves@redhat.com>
13188
13189 * NEWS: Mention multi-target debugging, "info connections", and
13190 "add-inferior -no-connection".
13191
2f4fcf00
PA
131922020-01-10 Pedro Alves <palves@redhat.com>
13193
13194 * infrun.c: Include "target-connection.h".
13195 (check_multi_target_resumption): New.
13196 (proceed): Call it.
13197 * target-connection.c (make_target_connection_string): Make
13198 extern.
13199 * target-connection.h (make_target_connection_string): Declare.
13200
121b3efd
PA
132012020-01-10 Pedro Alves <palves@redhat.com>
13202
13203 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13204 * inferior.c (uiout_field_connection): New function.
13205 (print_inferior): Add new "connection-id" column.
13206 (add_inferior_command): Show connection number/string of added
13207 inferior.
13208 * process-stratum-target.h
13209 (process_stratum_target::connection_string): New virtual method.
13210 (process_stratum_target::connection_number): New field.
13211 * remote.c (remote_target::connection_string): New override.
13212 * target-connection.c: New file.
13213 * target-connection.h: New file.
13214 * target.c (decref_target): Remove process_stratum targets from
13215 the connection list.
13216 (target_stack::push): Add process_stratum targets to the
13217 connection list.
13218
4f837581
PA
132192020-01-10 Pedro Alves <palves@redhat.com>
13220
13221 Revert:
13222 2016-04-12 Pedro Alves <palves@redhat.com>
13223 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13224 Remove references to name.
13225 * serial.h (struct serial) <name>: Delete.
13226
f4ec508e
PA
132272020-01-10 Pedro Alves <palves@redhat.com>
13228
13229 * gdbarch-selftests.c (register_to_value_test): Remove "target
13230 already pushed" check.
13231
5b6d1e4f
PA
132322020-01-10 Pedro Alves <palves@redhat.com>
13233 John Baldwin <jhb@FreeBSD.org>
13234
13235 * aarch64-linux-nat.c
13236 (aarch64_linux_nat_target::thread_architecture): Adjust.
13237 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13238 (task_command_1): Likewise.
13239 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13240 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13241 (aix_thread_target::store_registers)
13242 (aix_thread_target::thread_alive): Adjust.
13243 * amd64-fbsd-tdep.c: Include "inferior.h".
13244 (amd64fbsd_get_thread_local_address): Pass down target.
13245 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13246 thread's gdbarch instead of target_gdbarch.
13247 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13248 get_last_target_status.
13249 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13250 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13251 inferiors.
13252 (update_inserted_breakpoint_locations): Skip if inferiors with no
13253 execution.
13254 (update_global_location_list): When handling moribund locations,
13255 find representative inferior for location's pspace, and use thread
13256 count of its process_stratum target.
13257 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13258 * bsd-uthread.c (bsd_uthread_target::wait): Use
13259 as_process_stratum_target and adjust thread_change_ptid and
13260 add_thread calls.
13261 (bsd_uthread_target::update_thread_list): Use
13262 as_process_stratum_target and adjust find_thread_ptid,
13263 thread_change_ptid and add_thread calls.
13264 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13265 find_thread_ptid call.
13266 * corelow.c (add_to_thread_list): Adjust add_thread call.
13267 (core_target_open): Adjust add_thread_silent and thread_count
13268 calls.
13269 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13270 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13271 * event-top.c (async_disconnect): Pop targets from all inferiors.
13272 * exec.c (add_target_sections): Push exec target on all inferiors
13273 sharing the program space.
13274 (remove_target_sections): Remove the exec target from all
13275 inferiors sharing the program space.
13276 (exec_on_vfork): New.
13277 * exec.h (exec_on_vfork): Declare.
13278 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13279 Pass it down.
13280 (fbsd_nat_target::update_thread_list): Adjust.
13281 (fbsd_nat_target::resume): Adjust.
13282 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13283 down.
13284 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13285 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13286 get_thread_arch_regcache call.
13287 * fork-child.c (gdb_startup_inferior): Pass target down to
13288 startup_inferior and set_executing.
13289 * gdbthread.h (struct process_stratum_target): Forward declare.
13290 (add_thread, add_thread_silent, add_thread_with_info)
13291 (in_thread_list): Add process_stratum_target parameter.
13292 (find_thread_ptid(inferior*, ptid_t)): New overload.
13293 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13294 parameter.
13295 (all_threads()): Delete overload.
13296 (all_threads, all_non_exited_threads): Add process_stratum_target
13297 parameter.
13298 (all_threads_safe): Use brace initialization.
13299 (thread_count): Add process_stratum_target parameter.
13300 (set_resumed, set_running, set_stop_requested, set_executing)
13301 (threads_are_executing, finish_thread_state): Add
13302 process_stratum_target parameter.
13303 (switch_to_thread): Use is_current_thread.
13304 * i386-fbsd-tdep.c: Include "inferior.h".
13305 (i386fbsd_get_thread_local_address): Pass down target.
13306 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13307 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13308 have_inferiors check.
13309 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13310 (inf_ptrace_target::attach): Adjust.
13311 * infcall.c (run_inferior_call): Adjust.
13312 * infcmd.c (run_command_1): Pass target to
13313 scoped_finish_thread_state.
13314 (proceed_thread_callback): Skip inferiors with no execution.
13315 (continue_command): Rename 'all_threads' local to avoid hiding
13316 'all_threads' function. Adjust get_last_target_status call.
13317 (prepare_one_step): Adjust set_running call.
13318 (signal_command): Use user_visible_resume_target. Compare thread
13319 pointers instead of inferior_ptid.
13320 (info_program_command): Adjust to pass down target.
13321 (attach_command): Mark target's 'thread_executing' flag.
13322 (stop_current_target_threads_ns): New, factored out from ...
13323 (interrupt_target_1): ... this. Switch inferior before making
13324 target calls.
13325 * inferior-iter.h
13326 (struct all_inferiors_iterator, struct all_inferiors_range)
13327 (struct all_inferiors_safe_range)
13328 (struct all_non_exited_inferiors_range): Filter on
13329 process_stratum_target too. Remove explicit.
13330 * inferior.c (inferior::inferior): Push dummy target on target
13331 stack.
13332 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13333 Add process_stratum_target parameter, and pass it down.
13334 (have_live_inferiors): Adjust.
13335 (switch_to_inferior_and_push_target): New.
13336 (add_inferior_command, clone_inferior_command): Handle
13337 "-no-connection" parameter. Use
13338 switch_to_inferior_and_push_target.
13339 (_initialize_inferior): Mention "-no-connection" option in
13340 the help of "add-inferior" and "clone-inferior" commands.
13341 * inferior.h: Include "process-stratum-target.h".
13342 (interrupt_target_1): Use bool.
13343 (struct inferior) <push_target, unpush_target, target_is_pushed,
13344 find_target_beneath, top_target, process_target, target_at,
13345 m_stack>: New.
13346 (discard_all_inferiors): Delete.
13347 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13348 (all_inferiors, all_non_exited_inferiors): Add
13349 process_stratum_target parameter.
13350 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13351 (target_last_proc_target): New global.
13352 (follow_fork_inferior): Push target on new inferior. Pass target
13353 to add_thread_silent. Call exec_on_vfork. Handle target's
13354 reference count.
13355 (follow_fork): Adjust get_last_target_status call. Also consider
13356 target.
13357 (follow_exec): Push target on new inferior.
13358 (struct execution_control_state) <target>: New field.
13359 (user_visible_resume_target): New.
13360 (do_target_resume): Call target_async.
13361 (resume_1): Set target's threads_executing flag. Consider resume
13362 target.
13363 (commit_resume_all_targets): New.
13364 (proceed): Also consider resume target. Skip threads of inferiors
13365 with no execution. Commit resumtion in all targets.
13366 (start_remote): Pass current inferior to wait_for_inferior.
13367 (infrun_thread_stop_requested): Consider target as well. Pass
13368 thread_info pointer to clear_inline_frame_state instead of ptid.
13369 (infrun_thread_thread_exit): Consider target as well.
13370 (random_pending_event_thread): New inferior parameter. Use it.
13371 (do_target_wait): Rename to ...
13372 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13373 down.
13374 (threads_are_resumed_pending_p, do_target_wait): New.
13375 (prepare_for_detach): Adjust calls.
13376 (wait_for_inferior): New inferior parameter. Handle it. Use
13377 do_target_wait_1 instead of do_target_wait.
13378 (fetch_inferior_event): Adjust. Switch to representative
13379 inferior. Pass target down.
13380 (set_last_target_status): Add process_stratum_target parameter.
13381 Save target in global.
13382 (get_last_target_status): Add process_stratum_target parameter and
13383 handle it.
13384 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13385 (context_switch): Check inferior_ptid == null_ptid before calling
13386 inferior_thread().
13387 (get_inferior_stop_soon): Pass down target.
13388 (wait_one): Rename to ...
13389 (poll_one_curr_target): ... this.
13390 (struct wait_one_event): New.
13391 (wait_one): New.
13392 (stop_all_threads): Adjust.
13393 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13394 event's target.
13395 (switch_back_to_stepped_thread): Also consider target.
13396 (print_stop_event): Update.
13397 (normal_stop): Update. Also consider the resume target.
13398 * infrun.h (wait_for_inferior): Remove declaration.
13399 (user_visible_resume_target): New declaration.
13400 (get_last_target_status, set_last_target_status): New
13401 process_stratum_target parameter.
13402 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13403 process_stratum_target parameter, and use it.
13404 (clear_inline_frame_state (thread_info*)): New.
13405 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13406 process_stratum_target parameter.
13407 (clear_inline_frame_state (thread_info*)): Declare.
13408 * linux-fork.c (delete_checkpoint_command): Pass target down to
13409 find_thread_ptid.
13410 (checkpoint_command): Adjust.
13411 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13412 instead of just tweaking inferior_ptid.
13413 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13414 (exit_lwp): Pass target down to find_thread_ptid.
13415 (attach_proc_task_lwp_callback): Pass target down to
13416 add_thread/set_running/set_executing.
13417 (linux_nat_target::attach): Pass target down to
13418 thread_change_ptid.
13419 (get_detach_signal): Pass target down to find_thread_ptid.
13420 Consider last target status's target.
13421 (linux_resume_one_lwp_throw, resume_lwp)
13422 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13423 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13424 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13425 (linux_nat_target::async_wait_fd): New.
13426 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13427 target down.
13428 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13429 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13430 * linux-thread-db.c (struct thread_db_info::process_target): New
13431 field.
13432 (add_thread_db_info): Save target.
13433 (get_thread_db_info): New process_stratum_target parameter. Also
13434 match target.
13435 (delete_thread_db_info): New process_stratum_target parameter.
13436 Also match target.
13437 (thread_from_lwp): Adjust to pass down target.
13438 (thread_db_notice_clone): Pass down target.
13439 (check_thread_db_callback): Pass down target.
13440 (try_thread_db_load_1): Always push the thread_db target.
13441 (try_thread_db_load, record_thread): Pass target down.
13442 (thread_db_target::detach): Pass target down. Always unpush the
13443 thread_db target.
13444 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13445 target down. Always unpush the thread_db target.
13446 (find_new_threads_callback, thread_db_find_new_threads_2)
13447 (thread_db_target::update_thread_list): Pass target down.
13448 (thread_db_target::pid_to_str): Pass current inferior down.
13449 (thread_db_target::get_thread_local_address): Pass target down.
13450 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13451 target down.
13452 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13453 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13454 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13455 (procfs_init_inferior): Rename to ...
13456 (procfs_target::procfs_init_inferior): ... this and adjust.
13457 (procfs_target::create_inferior, procfs_notice_thread)
13458 (procfs_do_thread_registers): Adjust.
13459 * ppc-fbsd-tdep.c: Include "inferior.h".
13460 (ppcfbsd_get_thread_local_address): Pass down target.
13461 * proc-service.c (ps_xfer_memory): Switch current inferior and
13462 program space as well.
13463 (get_ps_regcache): Pass target down.
13464 * process-stratum-target.c
13465 (process_stratum_target::thread_address_space)
13466 (process_stratum_target::thread_architecture): Pass target down.
13467 * process-stratum-target.h
13468 (process_stratum_target::threads_executing): New field.
13469 (as_process_stratum_target): New.
13470 * ravenscar-thread.c
13471 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13472 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13473 down.
13474 * record-btrace.c (record_btrace_target::info_record): Adjust.
13475 (record_btrace_target::record_method)
13476 (record_btrace_target::record_is_replaying)
13477 (record_btrace_target::fetch_registers)
13478 (get_thread_current_frame_id, record_btrace_target::resume)
13479 (record_btrace_target::wait, record_btrace_target::stop): Pass
13480 target down.
13481 * record-full.c (record_full_wait_1): Switch to event thread.
13482 Pass target down.
13483 * regcache.c (regcache::regcache)
13484 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13485 process_stratum_target parameter and handle it.
13486 (current_thread_target): New global.
13487 (get_thread_regcache): Add process_stratum_target parameter and
13488 handle it. Switch inferior before calling target method.
13489 (get_thread_regcache): Pass target down.
13490 (get_thread_regcache_for_ptid): Pass target down.
13491 (registers_changed_ptid): Add process_stratum_target parameter and
13492 handle it.
13493 (registers_changed_thread, registers_changed): Pass target down.
13494 (test_get_thread_arch_aspace_regcache): New.
13495 (current_regcache_test): Define a couple local test_target_ops
13496 instances and use them for testing.
13497 (readwrite_regcache): Pass process_stratum_target parameter.
13498 (cooked_read_test, cooked_write_test): Pass mock_target down.
13499 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13500 (get_thread_arch_aspace_regcache): Add process_stratum_target
13501 parameter.
13502 (regcache::target): New method.
13503 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13504 (regcache::registers_changed_ptid): Add process_stratum_target
13505 parameter.
13506 (regcache::m_target): New field.
13507 (registers_changed_ptid): Add process_stratum_target parameter.
13508 * remote.c (remote_state::supports_vCont_probed): New field.
13509 (remote_target::async_wait_fd): New method.
13510 (remote_unpush_and_throw): Add remote_target parameter.
13511 (get_current_remote_target): Adjust.
13512 (remote_target::remote_add_inferior): Push target.
13513 (remote_target::remote_add_thread)
13514 (remote_target::remote_notice_new_inferior)
13515 (get_remote_thread_info): Pass target down.
13516 (remote_target::update_thread_list): Skip threads of inferiors
13517 bound to other targets. (remote_target::close): Don't discard
13518 inferiors. (remote_target::add_current_inferior_and_thread)
13519 (remote_target::process_initial_stop_replies)
13520 (remote_target::start_remote)
13521 (remote_target::remote_serial_quit_handler): Pass down target.
13522 (remote_target::remote_unpush_target): New remote_target
13523 parameter. Unpush the target from all inferiors.
13524 (remote_target::remote_unpush_and_throw): New remote_target
13525 parameter. Pass it down.
13526 (remote_target::open_1): Check whether the current inferior has
13527 execution instead of checking whether any inferior is live. Pass
13528 target down.
13529 (remote_target::remote_detach_1): Pass down target. Use
13530 remote_unpush_target.
13531 (extended_remote_target::attach): Pass down target.
13532 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13533 (remote_target::append_resumption): Pass down target.
13534 (remote_target::append_pending_thread_resumptions)
13535 (remote_target::remote_resume_with_hc, remote_target::resume)
13536 (remote_target::commit_resume): Pass down target.
13537 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13538 (remote_target::interrupt_query)
13539 (remote_target::remove_new_fork_children)
13540 (remote_target::check_pending_events_prevent_wildcard_vcont)
13541 (remote_target::remote_parse_stop_reply)
13542 (remote_target::process_stop_reply): Pass down target.
13543 (first_remote_resumed_thread): New remote_target parameter. Pass
13544 it down.
13545 (remote_target::wait_as): Pass down target.
13546 (unpush_and_perror): New remote_target parameter. Pass it down.
13547 (remote_target::readchar, remote_target::remote_serial_write)
13548 (remote_target::getpkt_or_notif_sane_1)
13549 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13550 down target.
13551 (remote_target::mourn_inferior): Pass down target. Use
13552 remote_unpush_target.
13553 (remote_target::core_of_thread)
13554 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13555 (remote_target::pid_to_exec_file)
13556 (remote_target::thread_handle_to_thread_info): Pass down target.
13557 (remote_target::async_wait_fd): New.
13558 * riscv-fbsd-tdep.c: Include "inferior.h".
13559 (riscv_fbsd_get_thread_local_address): Pass down target.
13560 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13561 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13562 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13563 Adjust.
13564 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13565 * solib-svr4.c (enable_break): Pass down target.
13566 * spu-multiarch.c (parse_spufs_run): Pass down target.
13567 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13568 * target-delegates.c: Regenerate.
13569 * target.c (g_target_stack): Delete.
13570 (current_top_target): Return the current inferior's top target.
13571 (target_has_execution_1): Refer to the passed-in inferior's top
13572 target.
13573 (target_supports_terminal_ours): Check whether the initial
13574 inferior was already created.
13575 (decref_target): New.
13576 (target_stack::push): Incref/decref the target.
13577 (push_target, push_target, unpush_target): Adjust.
13578 (target_stack::unpush): Defref target.
13579 (target_is_pushed): Return bool. Adjust to refer to the current
13580 inferior's target stack.
13581 (dispose_inferior): Delete, and inline parts ...
13582 (target_preopen): ... here. Only dispose of the current inferior.
13583 (target_detach): Hold strong target reference while detaching.
13584 Pass target down.
13585 (target_thread_name): Add assertion.
13586 (target_resume): Pass down target.
13587 (target_ops::beneath, find_target_at): Adjust to refer to the
13588 current inferior's target stack.
13589 (get_dummy_target): New.
13590 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13591 has a thread running.
13592 (initialize_targets): Rename to ...
13593 (_initialize_target): ... this.
13594 * target.h: Include "gdbsupport/refcounted-object.h".
13595 (struct target_ops): Inherit refcounted_object.
13596 (target_ops::shortname, target_ops::longname): Make const.
13597 (target_ops::async_wait_fd): New method.
13598 (decref_target): Declare.
13599 (struct target_ops_ref_policy): New.
13600 (target_ops_ref): New typedef.
13601 (get_dummy_target): Declare function.
13602 (target_is_pushed): Return bool.
13603 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13604 (all_matching_threads_iterator::all_matching_threads_iterator):
13605 Handle filter target.
13606 * thread-iter.h (struct all_matching_threads_iterator, struct
13607 all_matching_threads_range, class all_non_exited_threads_range):
13608 Filter by target too. Remove explicit.
13609 * thread.c (threads_executing): Delete.
13610 (inferior_thread): Pass down current inferior.
13611 (clear_thread_inferior_resources): Pass down thread pointer
13612 instead of ptid_t.
13613 (add_thread_silent, add_thread_with_info, add_thread): Add
13614 process_stratum_target parameter. Use it for thread and inferior
13615 searches.
13616 (is_current_thread): New.
13617 (thread_info::deletable): Use it.
13618 (find_thread_ptid, thread_count, in_thread_list)
13619 (thread_change_ptid, set_resumed, set_running): New
13620 process_stratum_target parameter. Pass it down.
13621 (set_executing): New process_stratum_target parameter. Pass it
13622 down. Adjust reference to 'threads_executing'.
13623 (threads_are_executing): New process_stratum_target parameter.
13624 Adjust reference to 'threads_executing'.
13625 (set_stop_requested, finish_thread_state): New
13626 process_stratum_target parameter. Pass it down.
13627 (switch_to_thread): Also match inferior.
13628 (switch_to_thread): New process_stratum_target parameter. Pass it
13629 down.
13630 (update_threads_executing): Reimplement.
13631 * top.c (quit_force): Pop targets from all inferior.
13632 (gdb_init): Don't call initialize_targets.
13633 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13634 Declare.
13635 (windows_add_thread, windows_delete_thread): Adjust.
13636 (get_windows_debug_event): Rename to ...
13637 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13638 * tracefile-tfile.c (tfile_target_open): Pass down target.
13639 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13640 Forward declare.
13641 (switch_to_thread): Add process_stratum_target parameter.
13642 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13643 parameter. Use it.
13644 (mi_on_resume): Pass target down.
13645 * nat/fork-inferior.c (startup_inferior): Add
13646 process_stratum_target parameter. Pass it down.
13647 * nat/fork-inferior.h (startup_inferior): Add
13648 process_stratum_target parameter.
13649 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13650
75c6c844
PA
136512020-01-10 Pedro Alves <palves@redhat.com>
13652
13653 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13654 directly. Instead find the first thread in the thread list and
13655 use switch_to_thread.
13656
78f2c40a
PA
136572020-01-10 Pedro Alves <palves@redhat.com>
13658
13659 * remote.c (remote_target::remote_add_inferior): Don't bind a
13660 process to the current inferior if the current inferior is already
13661 bound to a process.
13662
e7af6c70
TBA
136632020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13664 Pedro Alves <palves@redhat.com>
13665
13666 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13667 If no process is specified, return null_ptid instead of
13668 inferior_ptid.
13669 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13670 TARGET_WAITKIND_SIGNALLED with no pid.
13671
31ba933e
PA
136722020-01-10 Pedro Alves <palves@redhat.com>
13673
13674 * remote.c (first_remote_resumed_thread): New.
13675 (remote_target::wait_as): Use it as default event_ptid instead of
13676 inferior_ptid.
13677
735fc2ca
PA
136782020-01-10 Pedro Alves <palves@redhat.com>
13679
13680 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13681
c17e02e1
PA
136822020-01-10 Pedro Alves <palves@redhat.com>
13683
13684 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13685 not -1.
13686
ab1ddbcf
PA
136872020-01-10 Pedro Alves <palves@redhat.com>
13688
13689 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13690 ptid to get_last_target_status.
13691 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13692 ptid to get_last_target_status.
13693 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13694 get_last_target_status.
13695 (info_program_command): Don't pass a target_waitstatus to
13696 get_last_target_status.
13697 * infrun.c (init_wait_for_inferior): Use
13698 nullify_last_target_wait_ptid.
13699 (get_last_target_status): Handle nullptr arguments.
13700 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13701 (print_stop_event): Don't pass a ptid to get_last_target_status.
13702 (normal_stop): Don't pass a ptid to get_last_target_status.
13703 * infrun.h (get_last_target_status, set_last_target_status): Move
13704 comments here and update.
13705 (nullify_last_target_wait_ptid): Declare.
13706 * linux-fork.c (fork_load_infrun_state): Remove local extern
13707 declaration of nullify_last_target_wait_ptid.
13708 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13709 to get_last_target_status.
13710
f3f8ece4
PA
137112020-01-10 Pedro Alves <palves@redhat.com>
13712
13713 * gdbthread.h (scoped_restore_current_thread)
13714 <dont_restore, restore, m_dont_restore>: Declare.
13715 * thread.c (thread_alive): Add assertion. Return bool.
13716 (switch_to_thread_if_alive): New.
13717 (prune_threads): Switch inferior/thread.
13718 (print_thread_info_1): Switch thread before calling target methods.
13719 (scoped_restore_current_thread::restore): New, factored out from
13720 ...
13721 (scoped_restore_current_thread::~scoped_restore_current_thread):
13722 ... this.
13723 (scoped_restore_current_thread::scoped_restore_current_thread):
13724 Add assertion.
13725 (thread_apply_all_command, thread_select): Use
13726 switch_to_thread_if_alive.
13727 * infrun.c (proceed, restart_threads, handle_signal_stop)
13728 (switch_back_to_stepped_thread): Switch current thread before
13729 calling target methods.
13730
db2d40f7
PA
137312020-01-10 Pedro Alves <palves@redhat.com>
13732
13733 * inferior.c (switch_to_inferior_no_thread): New function,
13734 factored out from ...
13735 (inferior_command): ... here.
13736 * inferior.h (switch_to_inferior_no_thread): Declare.
13737 * mi/mi-main.c (run_one_inferior): Use
13738 switch_to_inferior_no_thread.
13739
bd420a2d
PA
137402020-01-10 Pedro Alves <palves@redhat.com>
13741
13742 * infcmd.c (kill_command): Remove dead code.
13743
ddf5db90
PA
137442020-01-10 Pedro Alves <palves@redhat.com>
13745
13746 * remote.c (remote_target::mourn_inferior): No longer check
13747 whether the target is running.
13748
5018ce90
PA
137492020-01-10 Pedro Alves <palves@redhat.com>
13750
13751 * corelow.c (core_target::has_execution): Change parameter type to
13752 inferior pointer.
13753 * inferior.c (number_of_live_inferiors): Use
13754 inferior::has_execution instead of target_has_execution_1.
13755 * inferior.h (inferior::has_execution): New.
13756 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13757 inferior::has_execution instead of target_has_execution_1.
13758 * process-stratum-target.c
13759 (process_stratum_target::has_execution): Change parameter type to
13760 inferior pointer. Check the inferior's PID instead of
13761 inferior_ptid.
13762 * process-stratum-target.h
13763 (process_stratum_target::has_execution): Change parameter type to
13764 inferior pointer.
13765 * record-full.c (record_full_core_target::has_execution): Change
13766 parameter type to inferior pointer.
13767 * target.c (target_has_execution_1): Change parameter type to
13768 inferior pointer.
13769 (target_has_execution_current): Adjust.
13770 * target.h (target_ops::has_execution): Change parameter type to
13771 inferior pointer.
13772 (target_has_execution_1): Change parameter type to inferior
13773 pointer. Change return type to bool.
13774 * tracefile.h (tracefile_target::has_execution): Change parameter
13775 type to inferior pointer.
13776
74375d18
PA
137772020-01-10 Pedro Alves <palves@redhat.com>
13778
13779 * exceptions.c (print_flush): Remove current_top_target() check.
13780
acdf84a6
PA
137812020-01-10 Pedro Alves <palves@redhat.com>
13782
13783 * remote.c (show_remote_exec_file): Show the current inferior's
13784 exec-file instead of the command variable's value.
13785
ec506636
PA
137862020-01-10 Pedro Alves <palves@redhat.com>
13787
13788 * record-full.c (record_full_resume_ptid): New global.
13789 (record_full_target::resume): Set it.
13790 (record_full_wait_1): Use record_full_resume_ptid instead of
13791 inferior_ptid.
13792
873657b9
PA
137932020-01-10 Pedro Alves <palves@redhat.com>
13794
13795 * gdbthread.h (scoped_restore_current_thread)
13796 <dont_restore, restore, m_dont_restore>: Declare.
13797 * thread.c (thread_alive): Add assertion. Return bool.
13798 (switch_to_thread_if_alive): New.
13799 (prune_threads): Switch inferior/thread.
13800 (print_thread_info_1): Switch thread before calling target methods.
13801 (scoped_restore_current_thread::restore): New, factored out from
13802 ...
13803 (scoped_restore_current_thread::~scoped_restore_current_thread):
13804 ... this.
13805 (scoped_restore_current_thread::scoped_restore_current_thread):
13806 Add assertion.
13807 (thread_apply_all_command, thread_select): Use
13808 switch_to_thread_if_alive.
13809
7f0ae84c
GB
138102020-01-10 George Barrett <bob@bob131.so>
13811
13812 * stap-probe.c (stap_modify_semaphore): Don't check for null
13813 semaphores.
13814 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13815 for null semaphores.
13816
f5a7c406
AB
138172020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13818
13819 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13820 all source windows, and maintain horizontal scroll status while
13821 doing so.
13822
9ae6bf64
TT
138232020-01-09 Tom Tromey <tom@tromey.com>
13824
13825 PR tui/18932:
13826 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13827 update_source_window, not print_source_lines.
13828
b2efe70c
AB
138292020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13830
13831 * tui/tui.c (tui_enable): Register tui hooks after calling
13832 tui_display_main.
13833
5f23a082
CB
138342020-01-09 Christian Biesinger <cbiesinger@google.com>
13835
13836 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13837
3061113b
SM
138382020-01-08 Simon Marchi <simon.marchi@efficios.com>
13839
13840 * thread.c (print_thread_info_1): Fix indentation.
13841
57d75002
CB
138422020-01-09 Christian Biesinger <cbiesinger@google.com>
13843
13844 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13845 unique_xmalloc_ptr outside the if to always free the demangled name.
13846
6a053cb1
TT
138472020-01-08 Tom Tromey <tromey@adacore.com>
13848
13849 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13850 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13851 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13852 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13853 Remove.
13854 (section_offsets): New typedef.
13855 * symtab.c (fixup_section, get_msymbol_address): Update.
13856 * symmisc.c (dump_msymbols): Update.
13857 * symfile.h (relative_addr_info_to_section_offsets)
13858 (symfile_map_offsets_to_segments): Update.
13859 * symfile.c (build_section_addr_info_from_objfile)
13860 (init_objfile_sect_indices): Update.
13861 (struct place_section_arg): Change type of "offsets".
13862 (place_section): Update.
13863 (relative_addr_info_to_section_offsets): Change type of
13864 "section_offsets". Remove "num_sections" parameter.
13865 (default_symfile_offsets, syms_from_objfile_1)
13866 (set_objfile_default_section_offset): Update.
13867 (reread_symbols): No need to preserve section offsets by hand.
13868 (symfile_map_offsets_to_segments): Change type of "offsets".
13869 * stap-probe.c (relocate_address): Update.
13870 * stabsread.h (process_one_symbol): Update.
13871 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13872 (solib_target_relocate_section_addresses): Update.
13873 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13874 Update.
13875 * solib-frv.c (frv_relocate_main_executable): Update.
13876 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13877 * solib-aix.c (solib_aix_get_section_offsets): Change return
13878 type.
13879 (solib_aix_solib_create_inferior_hook): Update.
13880 * remote.c (remote_target::get_offsets): Update.
13881 * psymtab.c (find_pc_sect_psymtab): Update.
13882 * psympriv.h (struct partial_symbol) <address, text_low,
13883 text_high>: Update.
13884 * objfiles.h (obj_section_offset): Update.
13885 (struct objfile) <section_offsets>: Change type.
13886 <num_sections>: Remove.
13887 (objfile_relocate): Update.
13888 * objfiles.c (entry_point_address_query): Update
13889 (relocate_one_symbol): Change type of "section_offsets".
13890 (objfile_relocate1, objfile_relocate1): Change type of
13891 "new_offsets".
13892 (objfile_rebase1): Update.
13893 * mipsread.c (mipscoff_symfile_read): Update.
13894 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13895 parameter.
13896 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13897 (parse_external, psymtab_to_symtab_1): Update.
13898 * machoread.c (macho_symfile_offsets): Update.
13899 * ia64-tdep.c (ia64_find_unwind_table): Update.
13900 * hppa-tdep.c (read_unwind_info): Update.
13901 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13902 * dwarf2read.c (create_addrmap_from_index)
13903 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13904 (process_psymtab_comp_unit_reader, add_partial_symbol)
13905 (add_partial_subprogram, process_full_comp_unit)
13906 (read_file_scope, read_func_scope, read_lexical_block_scope)
13907 (read_call_site_scope, dwarf2_rnglists_process)
13908 (dwarf2_ranges_process, dwarf2_ranges_read)
13909 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13910 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13911 Update.
13912 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13913 Update.
13914 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13915 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13916 (process_one_symbol): Change type of "section_offsets".
13917 * ctfread.c (get_objfile_text_range): Update.
13918 * coffread.c (coff_symtab_read, enter_linenos)
13919 (process_coff_symbol): Update.
13920 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13921 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13922
456e800a
TT
139232020-01-08 Tom Tromey <tromey@adacore.com>
13924
13925 * dwarf2read.c (parse_macro_definition): Use std::string.
13926 (parse_macro_definition): Likewise.
13927
6dfa2fc2
TT
139282020-01-08 Tom Tromey <tromey@adacore.com>
13929
13930 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13931 (ATTR_ALLOC_CHUNK): Remove.
13932
421d1616
TT
139332020-01-08 Tom Tromey <tromey@adacore.com>
13934
13935 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13936
43816ebc
TT
139372020-01-08 Tom Tromey <tromey@adacore.com>
13938
13939 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13940 (dwarf2_compute_name, open_dwo_file): Likewise.
13941 (process_enumeration_scope): Use std::vector.
13942 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13943 (partial_die_info::fixup, dwarf2_start_subfile)
13944 (guess_full_die_structure_name, dwarf2_name): Likewise.
13945 (determine_prefix): Update.
13946 (guess_full_die_structure_name): Make return type const.
13947 (partial_die_full_name): Return unique_xmalloc_ptr.
13948 (DW_FIELD_ALLOC_CHUNK): Remove.
13949
4212d509
TT
139502020-01-07 Tom Tromey <tromey@adacore.com>
13951
13952 PR build/24937:
13953 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13954
06a6207a
JT
139552020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13956
13957 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13958
153d79c4
AB
139592020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13960
13961 * stack.c (print_frame_info): Move disassemble_next_line code
13962 inside source_print block.
13963
66182876
EZ
139642020-01-06 Eli Zaretskii <eliz@gnu.org>
13965
13966 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13967 gdb/signals.h, as we are now using native signal symbols.
13968
cbfa8581
SV
139692020-01-06 Shahab Vahedi <shahab@synopsys.com>
13970
13971 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13972 overflow by an early check of content vs threshold.
aac66a4c 13973 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
13974 Likewise.
13975
3f602821
EZ
139762020-01-06 Eli Zaretskii <eliz@gnu.org>
13977
13978 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13979
a08c904d
JT
139802020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13981
13982 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13983 export table if no section contains it's RVA.
13984
89a65580
EZ
139852020-01-06 Eli Zaretskii <eliz@gnu.org>
13986
13987 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13988
8b7fcda2
HD
139892020-01-06 Hannes Domani <ssbssa@yahoo.de>
13990
13991 * source.c (print_source_lines_base): Set last_line_listed.
13992
a61b4f69
SV
139932020-01-06 Shahab Vahedi <shahab@synopsys.com>
13994
13995 * tui/tui-disasm.c: Remove trailing spaces.
13996
559e7e50
EZ
139972020-01-06 Eli Zaretskii <eliz@gnu.org>
13998 Pedro Alves <palves@redhat.com>
13999
14000 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14001 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14002 (windows_gdb_signal_to_target): New function, uses the above
14003 enumeration to convert GDB internal signal codes to equivalent
14004 Windows codes.
14005 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14006 * windows-nat.c: Include "gdb_wait.h".
14007 (get_windows_debug_event): Extract the fatal exception from the
14008 exit status and convert to the equivalent Posix signal number.
14009 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14010 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14011 * gdbsupport/gdb_wait.c: New file, implements
14012 windows_status_to_termsig.
14013 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14014 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14015
f2302a34
AB
140162020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14017
14018 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14019 show_layout.
14020
6a5206eb
LM
140212020-01-05 Luis Machado <luis.machado@linaro.org>
14022
14023 * aarch64-linux-nat.c
14024 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14025 and bfd_mach_aarch64.
14026
6ec1d75e
PW
140272020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14028
14029 * ui-file.c (stdio_file::can_emit_style_escape)
14030 (tee_file::can_emit_style_escape): Ensure style is used also on
14031 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14032 to gdb_stdout.
14033 * main.c (set_gdb_data_directory): Use file style to output the
14034 warning that the given pathname is not a directory.
14035 * top.c (show_history_filename, gdb_safe_append_history)
14036 (show_gdb_datadir): Use file style.
14037
44f81a76
HD
140382020-01-03 Hannes Domani <ssbssa@yahoo.de>
14039
14040 * solib-target.c (struct lm_info_target):
14041 Change offsets to be a unique_xmalloc_ptr.
14042 (solib_target_relocate_section_addresses): Update.
14043
25057eb0
HD
140442020-01-03 Hannes Domani <ssbssa@yahoo.de>
14045
14046 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14047
6e2118f5
BE
140482020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14049
14050 * MAINTAINERS (Write After Approval): Add myself.
14051
8133c7dc
LM
140522020-01-02 Luis Machado <luis.machado@linaro.org>
14053
14054 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14055 Cell BE architecture.
14056 * target.h (struct target_ops) <thread_architecture>: Likewise.
14057
48189bec
HD
140582020-01-01 Hannes Domani <ssbssa@yahoo.de>
14059
14060 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14061
ead1063b
HD
140622020-01-01 Hannes Domani <ssbssa@yahoo.de>
14063
14064 * MAINTAINERS (Write After Approval): Add myself.
14065
e5d78223
JB
140662020-01-01 Joel Brobecker <brobecker@adacore.com>
14067
14068 * gdbarch.sh: Update copyright year range of generated files.
14069
b811d2c2
JB
140702020-01-01 Joel Brobecker <brobecker@adacore.com>
14071
14072 Update copyright year range in all GDB files.
14073
5f4def5c
JB
140742020-01-01 Joel Brobecker <brobecker@adacore.com>
14075
14076 * copyright.py: Convert to Python 3.
14077
51fd4002
JB
140782020-01-01 Joel Brobecker <brobecker@adacore.com>
14079
14080 * copyright.py: Adapt after move of gnulib directory from gdb
14081 directory to toplevel directory.
14082
5fb651f2
JB
140832020-01-01 Joel Brobecker <brobecker@adacore.com>
14084
14085 * copyright.py (main): Exit if run from the wrong directory.
14086
5dd8bf88
JB
140872020-01-01 Joel Brobecker <brobecker@adacore.com>
14088
14089 * top.c (print_gdb_version): Change copyright year to 2020.
14090
9f71dacb 140912020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14092
9f71dacb 14093 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14094
9f71dacb 14095For older changes see ChangeLog-2019.
c906108c
SS
14096\f
14097Local Variables:
14098mode: change-log
14099left-margin: 8
14100fill-column: 74
14101version-control: never
57da7796 14102coding: utf-8
c906108c 14103End:
This page took 3.38074 seconds and 4 git commands to generate.